Re: [ansible-project] --skip-tags equivalent inside playbooks

2019-01-31 Thread Igor Cicimov
Anyone knows if this is possible in any ansible release? On Thursday, December 17, 2015 at 8:08:14 AM UTC+11, Igor Cicimov wrote: > > This sounds like very reasonable request, option like: > > - { role: A, skip-tags: [t1, t2] } > > whould be very useful in case of playbook with many roles having s

Re: [ansible-project] Ansible play to check if port is up on windows target host

2019-01-31 Thread Mauricio Tavares
Maybe https://docs.ansible.com/ansible/latest/modules/win_wait_for_module.html instead? On Thu, Jan 31, 2019 at 11:26 PM Sindhuja Koneru wrote: > > Hi, > > can anyone guide me why i am getting this failure message even when both the > ports are UP and running. > > > PLAYBOOK: > == > > --

[ansible-project] Network, vars, and role housecleaning

2019-01-31 Thread Mauricio Tavares
So I need to define lots of variables for a specific host because I am configuring its network (turning more interfaces on and whatnot). So I created a host_vars/oddhost.yml that have lines like this: home_nic: "eth0" interfaces: - { vlan: 2, nic: "{{ home_nic }}.{{ vlan }}", [...]

[ansible-project] Ansible play to check if port is up on windows target host

2019-01-31 Thread Sindhuja Koneru
Hi, can anyone guide me why i am getting this failure message even when both the ports are UP and running. PLAYBOOK: == --- - hosts: windows_target_Machines gather_facts: false tasks: - name: Check if a port is running wait_for: port: "{{ item }}"

[ansible-project] Cisco Show Power Inline command with Ansible

2019-01-31 Thread Michael Sawires
Hi There, I have a request to match a specific line in output of show power inline command below, mainly I need to extract line number 4 from below: DP-M-R4-C9K#sh power inline Module Available Used Remaining (Watts) (Watts)(Watts) -- - ---

Re: [ansible-project] become_flags for specific inventory host

2019-01-31 Thread Matt Martz
To place it in hostvars you need to name it `ansible_become_flags`: https://docs.ansible.com/ansible/latest/user_guide/intro_inventory.html#list-of-behavioral-inventory-parameters On Thu, Jan 31, 2019 at 11:56 AM Bruno Cochofel wrote: > Hi, > > I have the need to configure become_flags var for

[ansible-project] become_flags for specific inventory host

2019-01-31 Thread Bruno Cochofel
Hi, I have the need to configure become_flags var for some of my inventory hosts (because of old sudo versions not accepting " -H -S -n"). I was trying to do this on my dynamic inventory with hostvars for that host, but doesn't work, I think become_flags only works for plays and tasks. Can I h

Re: [ansible-project] Override a role's templates?

2019-01-31 Thread Kai Stian Olstad
On 31.01.2019 13:44, Dick Visser wrote: BTW - Ideally I would like to be able to use the same inheritance structure that is already in place for variables, in particular these concepts: - group_templates/all - group_templates/mygroup - host_templates/myhost Instead of template module use the

[ansible-project] Configure the ssh connection plugin to add ssh proxy and user information to the hostname when connecting

2019-01-31 Thread Urs Lamprecht
We are forced to use CyberArc PSM Proxy which describes itself as a "ssh proxy". For what I know this is _not_ a jump host / bastion host solution ! I can not access my target servers directly, the only open ssh port is that of the PSM Proxy, the proxy forwards to the target server and logs me i

Re: [ansible-project] Override a role's templates?

2019-01-31 Thread S C Rigler
Maybe something like setting "NAGIOS_TEMPLATE: nagios_local.j2" in your role's defaults then override NAGIOS_TEMPLATE (inventory variable or whatever) as needed with a path to an alternate template. On Thu, Jan 31, 2019 at 6:44 AM Dick Visser wrote: > > Hi > > I'm using roles extensively to separ

[ansible-project] Override a role's templates?

2019-01-31 Thread Dick Visser
Hi I'm using roles extensively to separate functionality, and I'm trying to keep the roles as general as possible. The resulting playbooks are very minimal, containing not more than a set of include_role tasks. Many roles use templates, which are stored inside the role's templates directory. Thos

[ansible-project] Re: RabbitMQ Hostname Mismatch

2019-01-31 Thread Pcis
Did you manage to fix this issue, I'm having the same problem -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscr...@googlegroups.com. To

[ansible-project] Re: RabbitMQ Hostname Mismatch

2019-01-31 Thread paul . silverwood
Did you manage to fix this issue, I'm getting the same error On Tuesday, 19 June 2018 20:26:42 UTC+1, muha...@swordfish.co.za wrote: > > Farily new to ansible, so apologies if I'm missing something obvious. > > Ansible version: 2.5.5 > > Issue: My task throws a hostname mismatch error when adding