Re: [ansible-project] Run Multiple hosts error

2022-03-29 Thread Todd Lewis
What do you get if you use `-i ./bgrsuistg` instead of `-i bgrsuistg` ? On Tuesday, March 29, 2022 at 1:18:30 PM UTC-4 Nitrous wrote: > This is what ansible dump shows: > > root@ansiblectrl01:/etc/ansible/playbooks# ansible-config dump > ACTION_WARNINGS(default) = True > AGNOSTIC_BECOME_PROMPT(de

Re: [ansible-project] Re: network_cli+ssh + jumphost: ansible_ssh_common_args is ignored

2022-03-29 Thread Gaétan QUENTIN
sorry i have said something wrong. i don't see anything in ouput but in log i can see that: 2022-03-29 17:59:36,971 p=1451 u=mylogin n=ansible | ESTABLISH PARAMIKO SSH CONNECTION FOR USER: root on PORT 22 TO labkvmbigip_16_0_0_1.public.nas-x35g.lab 2022-03-29 17:59:36,974 p=1451 u=mylogin n

Re: [ansible-project] Run Multiple hosts error

2022-03-29 Thread Nitrous
This is what ansible dump shows: root@ansiblectrl01:/etc/ansible/playbooks# ansible-config dump ACTION_WARNINGS(default) = True AGNOSTIC_BECOME_PROMPT(default) = True ALLOW_WORLD_READABLE_TMPFILES(default) = False ANSIBLE_CONNECTION_PATH(default) = None ANSIBLE_COW_ACCEPTLIST(default) = ['bud-frog

Re: [ansible-project] Run Multiple hosts error

2022-03-29 Thread Todd Lewis
Use `ansible-config dump` to see what's being set where. The command you ran is looking for your inventory at `/etc/ansible/bgrsuistg`. If that's wrong, list the full path or relative path in the parameter to the `-i` option, like `-i ./bgrsuistg` On Tuesday, March 29, 2022 at 12:54:09 PM UTC-4

Re: [ansible-project] Run Multiple hosts error

2022-03-29 Thread Nitrous
Thanks, where can I specify the path to the inventory? We usually just add a list of VMs and their IP in the /etc/ansible/host file. On Tuesday, March 29, 2022 at 11:45:05 AM UTC-5 mahe...@gmail.com wrote: > Hey, > > It works here so its likely your inventory is not in the path you think it >

Re: [ansible-project] Run Multiple hosts error

2022-03-29 Thread Stephen Maher
Hey, It works here so its likely your inventory is not in the path you think it is, its for some reason unreadable but unlikely as it looks like your logged in as root. Regards > On 29 Mar 2022, at 17:38, Nitrous wrote: > > Using /etc/ansible/ansible.cfg as config file > setting up invento

[ansible-project] Run Multiple hosts error

2022-03-29 Thread Nitrous
I have a playbook called multiple.yml that tests for ping: - name: Playbook for multiple hosts hosts: bgrsuistg tasks: - name: ping win_ping: My host file for bgrsuistg looks like this: [bgrsuistg] server1 ansible_host=10.125.xx.xx server2 ansible_host=10.125.xx.xx server3 ansible_host=

Re: [ansible-project] Issue 62360 not fixed?

2022-03-29 Thread John Pfuntner
Were packages actually removed? I noted in the original issue that if package are removed, it works. It no packages are removed, it will fail. Can you try running the playbook again? On Tuesday, March 29, 2022 at 11:02:43 AM UTC-4 Matt Martz wrote: > Seems to work as expected for me. state=a

Re: [ansible-project] Issue 62360 not fixed?

2022-03-29 Thread Matt Martz
Seems to work as expected for me. state=absent with an asterisk for the name removed all the matching packages. On Tue, Mar 29, 2022 at 9:50 AM John Pfuntner wrote: > I opened issue 62360 and > when I looked at it today, I saw it had been closed

[ansible-project] Issue 62360 not fixed?

2022-03-29 Thread John Pfuntner
I opened issue 62360 and when I looked at it today, I saw it had been closed with the remark *This has been fixed in supported versions of Ansible*. I upgraded: ansible [core 2.12.4] config file = /etc/ansible/ansible.cfg configured module

[ansible-project] New releases: ansible-core 2.12.4, ansible-core 2.11.10

2022-03-29 Thread Matt Martz
Hi all- we're happy to announce the general release of: - ansible-core 2.12.4 - ansible-core 2.11.10 How to get it - $ python3 -m pip install --user ansible-core==2.12.4 or $ python3 -m pip install --user ansible-core==2.11.10 The tar.gz of the release can be found here: * ansible

Re: [ansible-project] Re: network_cli+ssh + jumphost: ansible_ssh_common_args is ignored

2022-03-29 Thread Gaétan QUENTIN
Hi,  thanks for your answer. i have set the variable this way: ansible_ssh_common_args: '-o ProxyCommand="ssh -oStrictHostKeyChecking=no -oUserKnownHostsFile=/dev/null login@JUMP_HOST " -oStrictHostKeyChecking=no -oUserKnownHostsFile=/dev/null' and there is no trace in ansible logs that a

Re: [ansible-project] How ansible vault is safe when using scripts?

2022-03-29 Thread R Batchen
I work on ubuntu host and the ansible playbooks run on docker container with ubuntu ill try to look into gpg agent for docker container - thanks! ב-יום ראשון, 27 במרץ 2022 בשעה 19:56:24 UTC+3, dick@geant.org כתב/ה: > An option would be to use gpg-agent. Depending on your setup that > might au