Re: [ansible-project] How to pass information/variable while creating VM on esxxi server using Vmware_guest module

2020-01-16 Thread Rohan Kalap
Thank you, I went through your document it's really helpful, I will try those. Will let you know if i am able to use it. On Friday, 10 January 2020 19:31:41 UTC+5:30, naveen s wrote: > > Hello Rohan, > > it is always better to have the variables and its values in the group_vars > section and

[ansible-project] Re: How can I connect to Windows Server using WinRM without password(like linux ssh authentication)?

2020-01-16 Thread Jiwoong Lee
Thanks for reply jessi, I think your mentioned commands for openstack environment isn't it? Could you please easily and further explain how can I connect to Ansible Server to Windows without password. Thanks, 2020년 1월 16일 목요일 오후 3시 28분 25초 UTC+9, renu jessi 님의 말: > > WinRM HTTPS Listener > >

[ansible-project] List of triggered tasks

2020-01-16 Thread Guy Knights
Hi all, Is there a globally-available list of triggered tasks? I'd love to be able to send a notification of some kind at the end of a series of playbook runs, which would include the list of changed tasks and any other information that might be useful. Thanks, Guy --

[ansible-project] Re: Windows mapped drives – what the hell is going on?

2020-01-16 Thread Jordan Borean
This is unfortunately outside of what I know and I can't really offer and more help. From what I can see the registry settings are the same when Ansible creates the drive vs when it's created with net use, even net use sees the drive, it's just not available. What you need to do now is enable

[ansible-project] Re: loop and pass variables from vars_files to task command

2020-01-16 Thread Matthew DeSantos
Well I've tried rearranging my playbook to use a lookup plugin, which seems to work but I still can't figure out how to loop over my list until it completes. I added this 'vars' section to the play with the same results as before (a single VLAN gets created and ansible moves onto the next

[ansible-project] Ansible firewalld module question

2020-01-16 Thread Xinhuan Zheng
Hello, In Ansible firewalld module: https://docs.ansible.com/ansible/latest/modules/firewalld_module.html?highlight=firewalld, in the examples like below: - firewalld: service: https permanent: yes state: enabled We want to make it more descriptive in our role's tasks/main.yml

Re: [ansible-project] Re: Does current Ansible support templates macro?

2020-01-16 Thread Xinhuan Zheng
Hello Mr. Botka, This is exactly what I am looking for. It looks so neat with ini_file module instead of template. I'll play with it in my tasks. Thank you very much! :) - Xinhuan On Thursday, January 16, 2020 at 10:50:25 AM UTC-5, Vladimir Botka wrote: > > On Thu, 16 Jan 2020 05:49:07 -0800

[ansible-project] prompt with loop

2020-01-16 Thread Karther
I would like that with each creation of vm of my csv file, it asks me for a confirmation o / n which I put in my prompt? Example: Would you like to create this vm "vmname" (o / n)? : I would like him to ask me this question each time I create my vm, so each loop My tasks is : vars_prompt:

Re: [ansible-project] Re: Does current Ansible support templates macro?

2020-01-16 Thread Vladimir Botka
On Thu, 16 Jan 2020 05:49:07 -0800 (PST) Xinhuan Zheng wrote: > sssd_config: > sssd: > debug_level: 1 > additional_key: additional_value > another_addtional_key: another_additional_value > nss: > reconnection_retries: 3 >

[ansible-project] How create vlans if he don't exist in the file gathred by ios_facts

2020-01-16 Thread Kaouane Alaaeddine
Hello, I want to create (configurate) "vlan" in my device (switch) when it is not available on my equipment for configurate or ( add) vlan in the switch I use the module "ios_vlans" for gather facts of my device I use "ios_facts" you will find below how are stored all the vlans currently

Re: [ansible-project] Re: Does current Ansible support templates macro?

2020-01-16 Thread Xinhuan Zheng
Hello, Your testing looks fine in the test data model. However, the sssd_config real data model is like below: sssd_config: sssd: debug_level: 1 additional_key: additional_value another_addtional_key: another_additional_value nss:

Re: [ansible-project] Ansible passwordless login not working

2020-01-16 Thread Vladimir Botka
On Thu, 16 Jan 2020 01:36:28 -0800 (PST) Yehuda Pinhas wrote: > How is it SSH problem if I can add a public key or just regulary SSH and > its working? SSH tried (publickey,keyboard-interactive,password) and failed > fatal: [R-TEST-SNIF]: UNREACHABLE! => {"changed": false, "msg": "Failed to

[ansible-project] Skip caching facts for specific hosts

2020-01-16 Thread Anjana Raghavendra P
I run ansible playbooks on multiple servers as controller servers and now want to start using the cache plugin. As each controller server is "localhost" for playbook, the facts captured by one controller server are getting replaced by another server making the cache data not usable. So,

Re: [ansible-project] Ansible passwordless login not working

2020-01-16 Thread Yehuda Pinhas
Hi Douglas, This is the result of --ask-pass: [image: Capture.PNG] I have no idea what that means haha. What do you think? -- 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,

Re: [ansible-project] Ansible passwordless login not working

2020-01-16 Thread Douglas Evert
When adding a public key are you adding it to an amiable user or to another user and does your ping work if you pass —ask-pass? Sent from my iPhone > On Jan 16, 2020, at 04:36, Yehuda Pinhas wrote: > >  > I'm not sure that "connection: network_cli" because not matter what i do I > get the

Re: [ansible-project] Ansible passwordless login not working

2020-01-16 Thread Yehuda Pinhas
*I have no idea what to do next.. also ping check fails..* [image: Capture.PNG] *Again, if im adding the publickey for passwordless authentication Ansible works.. but without it its not..* *This is the configuration on the router side:* R-TEST-SNIF#sh run Building configuration... Current

Re: [ansible-project] Ansible passwordless login not working

2020-01-16 Thread Yehuda Pinhas
I'm not sure that "connection: network_cli" because not matter what i do I get the same error... Its just not working. How is it SSH problem if I can add a public key or just regulary SSH and its working? that proves that its not an SSH problem on my remote machine and leaves the fault in

Re: [ansible-project] register results in a text file after retrieving it on a device with (gather_facts)

2020-01-16 Thread Kaouane Alaaeddine
Hello Brian, thanks you for your answer, I've already tried to used the template fonction but i can solves this issus " i don't know exactly what i must to do I am a very beginner in this field, i don't understand all of ansible, i want some help can, and orient me or help to bluid this script

[ansible-project] Re: Windows mapped drives – what the hell is going on?

2020-01-16 Thread Pjotr Banas
Hi Jordan, 1) When you map it manually with net use, can you log off and back on and the drive still remains connected and visible in Windows Explorer? - Yes 2) The output for 'net use' on a limited process is showing that the Z map is configured but is unavailable, does the drive show up in