Re: [ansible-project] ssh management ansible

2021-10-22 Thread Dick Visser
On Sat, 23 Oct 2021 at 00:49, Ndricim Danaj wrote: > TASK [Set up multiple authorized ssh] > ** > fatal: [web1]: FAILED! => {"msg": "The task includes an option with an > undefined variable. The error was: 'item' is undefined\n\nThe error appears > to be in

Re: [ansible-project] ssh management ansible

2021-10-22 Thread Alex Wanderley
Hi, "with_key:" should actually be "with_items" Alex On Fri, Oct 22, 2021 at 4:49 PM Ndricim Danaj wrote: > TASK [Set up multiple authorized ssh] > ** > fatal: [web1]: FAILED! => {"msg": "The task includes an option with an > undefined variable. The err

[ansible-project] ssh management ansible

2021-10-22 Thread Ndricim Danaj
TASK [Set up multiple authorized ssh] ** fatal: [web1]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'item' is undefined\n\nThe error appears to be in '/home/ndricim/playbooks/00.yml': line 5, column 9, but may

[ansible-project] Re: kerberos: Bad HTTP response returned from server. Code 500

2021-10-22 Thread Tim Stauffer
I ran into this. Upgrading the python modules *pykerberos* and *pywinrm* fixed it for me. On Wednesday, September 29, 2021 at 6:26:23 AM UTC-7 gajendra@gmail.com wrote: > Good evening All > > I am facing a small issue, could you please let me out > > This works if i allow unencrypted is tr

Re: [ansible-project] Want to add hidden password for url

2021-10-22 Thread Paulo Silva
Maybe vault os what you need: https://docs.ansible.com/ansible/latest/user_guide/vault.html A sexta, 22/10/2021, 10:50, vaishnavi kakad escreveu: > Hi All, > > How we can add the hidden password in Ansible ? > > For eg : > - name: Download image files > get_url: > url: http://0.0.0.0/XYZ.

Re: [ansible-project] one email for multiple hosts

2021-10-22 Thread Dick Visser
I think run_once only works when in a playbook task. Not when it's buried inside a role On Fri, 22 Oct 2021 at 19:56, Raja Natte wrote: > Yes > > On Fri, Oct 22, 2021, 1:55 PM Dick Visser wrote: > >> So this mail task is part of that role? >> >> >> On Fri, 22 Oct 2021 at 16:09, Raj wrote: >> >

Re: [ansible-project] one email for multiple hosts

2021-10-22 Thread Raja Natte
Yes On Fri, Oct 22, 2021, 1:55 PM Dick Visser wrote: > So this mail task is part of that role? > > > On Fri, 22 Oct 2021 at 16:09, Raj wrote: > >> Hi, VGM >> >> my playbook call roles ssl scan ( final part is email to send once) >> but it is sending 100 emails >> >> --- >> - hosts: "{{ web }}

Re: [ansible-project] one email for multiple hosts

2021-10-22 Thread Dick Visser
So this mail task is part of that role? On Fri, 22 Oct 2021 at 16:09, Raj wrote: > Hi, VGM > > my playbook call roles ssl scan ( final part is email to send once) but > it is sending 100 emails > > --- > - hosts: "{{ web }}" > gather_facts: yes > roles: > - SSL_scan > > On Thursday,

Re: [ansible-project] one email for multiple hosts

2021-10-22 Thread Raja Natte
Yes.. No errors email sending included run one and delegate_to localhost Thanks On Fri, Oct 22, 2021, 10:19 AM Stefan Hornburg (Racke) wrote: > On 22/10/2021 16:09, Raj wrote: > > Hi, VGM > > > > my playbook call roles ssl scan ( final part is email to send once) > but it is sending 100 emai

Re: [ansible-project] Want to add hidden password for url

2021-10-22 Thread Jorge Rúa
Have you considered using secrets? On Fri, Oct 22, 2021, 14:50 vaishnavi kakad wrote: > Hi All, > > How we can add the hidden password in Ansible ? > > For eg : > - name: Download image files > get_url: > url: http://0.0.0.0/XYZ.tar.gz > url_username:XYZ > *url_password: *

Re: [ansible-project] one email for multiple hosts

2021-10-22 Thread Stefan Hornburg (Racke)
On 22/10/2021 16:09, Raj wrote: Hi, VGM my playbook call roles  ssl scan  ( final part is email to send once)  but it is sending 100 emails Did you ever check the indentation on your task sending email as advised? delegate_to should really work. Regards     Racke --- - hosts: "{

Re: [ansible-project] one email for multiple hosts

2021-10-22 Thread Raj
Hi, VGM my playbook call roles ssl scan ( final part is email to send once) but it is sending 100 emails --- - hosts: "{{ web }}" gather_facts: yes roles: - SSL_scan On Thursday, October 14, 2021 at 11:09:29 AM UTC-4 dick@geant.org wrote: > So, post that playbook > > On Thu, 14

[ansible-project] Want to add hidden password for url

2021-10-22 Thread vaishnavi kakad
Hi All, How we can add the hidden password in Ansible ? For eg : - name: Download image files get_url: url: http://0.0.0.0/XYZ.tar.gz url_username:XYZ *url_password: * * (I want to add hidden password here. ) Can you please let me know if you have any idea . Thanks, Va

Re: [ansible-project] Ansible not installing the windows update

2021-10-22 Thread Dick Visser
On Fri, 22 Oct 2021 at 14:25, Lucky Lakshman wrote: > > - name: Install only particular updates based on the KB numbers > win_updates: > category_name: > Typo? -- Dick Visser Trust & Identity Service Operations Manager GÉANT -- You received this mess

[ansible-project] Ansible not installing the windows update

2021-10-22 Thread Lucky Lakshman
Hello, I have used the below yaml file. The file is getting executing but the installation is not going on. - hosts: win tasks: - name: Return list of found updates and log to C:\WinUpdates.txt win_updates: category_names: SecurityUpdates

[ansible-project] mapping values are not allowed in this context

2021-10-22 Thread Yanni G
Hello everyone I had a small task that used to work fine but suddenly it gives me errors. *FAILED! => {"msg": "The conditional check 'ACTION == \"install\"' failed. The error was: error while evaluating conditional (ACTION == \"install\"): 'ACTION' is undefined\n\nThe error appears to be in '