Re: [ansible-project] ssh management ansible

2021-10-25 Thread steve missoh
yeah ..but he wants multiple keys to be shipped at once. so the solution is to keep everything as it is and replace *with_key* with *with_file* Regards. Le samedi 23 octobre 2021 à 08:03:18 UTC+2, dick@geant.org a écrit : > On Sat, 23 Oct 2021 at 00:49, Ndricim Danaj wrote: > >> TASK [Set

[ansible-project] Grouping subelements

2021-10-25 Thread Anil Kommareddy
Hi All, How do I group sublement port under portnames? - name: Test flatten - 1 debug: msg: "{{ item[1].port | join(',') }}" with_subelements: - "{{ new_host_groups }}" - portnames json file --- { "name": "sda", "portnames": [ { "nickname": "sdap1", "port": "2001000e1e4548956"

[ansible-project] Error :winrm ## The kind of connection which ansible will make with remote windows node' was not found"

2021-10-25 Thread Rajesh Varma
Hello Techies, I am learning the ansible on windows 10. I have configure the ubuntu and ansible on my laptop. Now i am trying to connect the windows from ubuntu .. i am getting the below error message ansible windows -m win_ping -i ansible/Inventory/Servers.ini --list-hosts My Server inventory

[ansible-project] Re: How to run ansible playbook on multiple hosts with LDAP credentials?

2021-10-25 Thread Roberto Paz
You are not forced to use asymetric keys validation. You can use regular authentication using "-k" and "-K" parametters. Also, you can provide differente ssh users on every server (if required) adding "ansible_user" variable to the inventory file: https://docs.ansible.com/ansible/latest/user_gu

[ansible-project] How to run ansible playbook on multiple hosts with LDAP credentials?

2021-10-25 Thread Linux Study
Hello All, I want execute some playbooks on multiple hosts with LDAP credentials. I don't want this activity password less. I don't want to share SSH keys between hosts. Is it possible to run playbook with LDAP credentials? Regards, Abhi -- You received this message because you are subscribed

Re: [ansible-project] Store Timestamp As A Constant Value

2021-10-25 Thread Dhiwakar Ravikumar
So, I disqualified it because in Ansible 2.12, there is an ability to define defaults for module collections, more on that here . *In ansible-core 2.12, collections can define their own

Re: [ansible-project] Store Timestamp As A Constant Value

2021-10-25 Thread Dick Visser
Use set_fact as the first task in the playbook. You disqualified that, but tbh I don't understand the reasoning behind that? Can you elaborate? On Mon, 25 Oct 2021 at 10:02, Dhiwakar Ravikumar < dhiwakarraviku...@gmail.com> wrote: > Thank you, so from that reply, I'm assuming there isn't any viab

Re: [ansible-project] Store Timestamp As A Constant Value

2021-10-25 Thread Dhiwakar Ravikumar
Thank you, so from that reply, I'm assuming there isn't any viable alternative ? On Monday, October 25, 2021 at 1:11:24 PM UTC+5:30 dick@geant.org wrote: > If you must do this before anything else you could provide the value as a > command line extra variable to ansible-playbook > > On Mon

Re: [ansible-project] Store Timestamp As A Constant Value

2021-10-25 Thread Dick Visser
If you must do this before anything else you could provide the value as a command line extra variable to ansible-playbook On Mon, 25 Oct 2021 at 07:00, Dhiwakar Ravikumar < dhiwakarraviku...@gmail.com> wrote: > I'm trying to save the timestamp corresponding to when a playbook runs in > a variable