Re: [ansible-project] Re: Problem with delegate_to to group in inventory

2021-12-14 Thread Lucas Possamai
On Wed, 15 Dec 2021 at 19:00, Lucas Possamai wrote: > On Wed, 15 Dec 2021 at 18:44, Vladimir Botka wrote: > >> It's not possible to delegate a task to a group. Delegate to a host >> instead. Change the inventory. For example >> >> shell> cat hosts >> zabbixprimary ansible_host=localhost ansi

Re: [ansible-project] Re: Problem with delegate_to to group in inventory

2021-12-14 Thread Lucas Possamai
On Wed, 15 Dec 2021 at 18:44, Vladimir Botka wrote: > It's not possible to delegate a task to a group. Delegate to a host > instead. Change the inventory. For example > > shell> cat hosts > zabbixprimary ansible_host=localhost ansible_port=2235 > zabbixslave ansible_host=localhost ansible_p

Re: [ansible-project] Re: Problem with delegate_to to group in inventory

2021-12-14 Thread Vladimir Botka
On Wed, 15 Dec 2021 16:30:40 +1300 Lucas Possamai wrote: > On Wed, 15 Dec 2021 at 16:03, Lucas Possamai wrote: > >> > >> inventory file: > >> [zabbixprimary] > >> localhost ansible_port=2235 # zabbix primary > >> > >> [zabbixslave] > >> localhost ansible_port=2236 # zabbix secondary > >> > >> [z

[ansible-project] Re: Problem with delegate_to to group in inventory

2021-12-14 Thread Lucas Possamai
On Wed, 15 Dec 2021 at 16:03, Lucas Possamai wrote: > On Wed, 15 Dec 2021 at 15:36, Lucas Possamai wrote: > >> Hi guys. >> >> I'm trying to use the "delegate_to", to only run a certain task to a >> group in my inventory. >> >> inventory file: >> [zabbixprimary] >> localhost ansible_port=2235 # z

[ansible-project] Re: Problem with delegate_to to group in inventory

2021-12-14 Thread Lucas Possamai
On Wed, 15 Dec 2021 at 15:36, Lucas Possamai wrote: > Hi guys. > > I'm trying to use the "delegate_to", to only run a certain task to a group > in my inventory. > > inventory file: > [zabbixprimary] > localhost ansible_port=2235 # zabbix primary > > [zabbixslave] > localhost ansible_port=2236 # z

[ansible-project] Problem with delegate_to to group in inventory

2021-12-14 Thread Lucas Possamai
Hi guys. I'm trying to use the "delegate_to", to only run a certain task to a group in my inventory. inventory file: [zabbixprimary] localhost ansible_port=2235 # zabbix primary [zabbixslave] localhost ansible_port=2236 # zabbix secondary [zabbix:children] zabbixprimary zabbixslave main.yml: -

[ansible-project] Ansible 4.10.0 has been released

2021-12-14 Thread David Moreau Simard
Hi all, We're happy to announce that the ansible-4.10.0 package has been released to PyPi: https://pypi.org/project/ansible/4.10.0/ This new version contains bug fixes as well as new, backwards compatible features in the Ansible collections that are included in the package. This is the last expec

[ansible-project] Prevent single failure killing playbook

2021-12-14 Thread Thomas Zarowski
Hi All, I am currently running a playbook of several tasks, with serial:1 specified. If any of the tasks fail on host 1, I would like to still try them on host 2 and host 3 etc. Perhaps host 1 is just too busy at the time to execute the tasks, it seems annoying to have the whole playbook fail, p

Re: [ansible-project] Re: Creating a fact array

2021-12-14 Thread lift...@gmail.com
I used "selectattr('disabled','equalto',False)", but it gave me the desired result. Thanks, I appreciate it! Harry On Monday, December 13, 2021 at 4:29:00 PM UTC-5 uto...@gmail.com wrote: > - name: Set Disabled Users fact > set_fact: > disabled_users: "{{ user_show.results | > jso

[ansible-project] Trying to build a dynamic query using netbox.nb_lookup

2021-12-14 Thread cwispy
Hi Everyone, I am building some automation for our Netbox as the source of truth and using webhooks to fire off tasks for things like interface updates and vlan creation / deletions. The issue I have is that I am trying to pass the device id as a variable to the query for the netbox.nb_lookup