Re: [ansible-project] shell: umask 0022 not working

2020-01-10 Thread Masudur Rahman
Thank you very much. It worked like a charm. On Thursday, January 9, 2020 at 10:12:38 AM UTC-8, Kai Stian Olstad wrote: > > On 09.01.2020 18:32, Masudur Rahman wrote: > >- name: Change Umask to 0022 to make installer working > > shell: umask 0022 && umask > > > >-

Re: [ansible-project] equality not consistent

2020-01-10 Thread shaun
This seems to have been some sort of quoting issue. After much troubleshooting, I found the working solution: changed_when: - ((jjb_update.stderr_lines | regex_replace('.*jobs updated.\\s+(\\d+).*', '\\1')) != '0' ) -- Shaun On Sat, Nov 30, 2019 at 1:30 AM Kai Stian Olstad <

[ansible-project] Re: How to configure prompt with 2 inputs

2020-01-10 Thread Phil Griffiths
try this? name: reboot ios device cli_command: command: reload prompt: - Save? - confirm answer: - y - y On Friday, 10 January 2020 14:28:23 UTC, Srinivas Naram wrote: > > Hello Gurus > > I am working on ios_command module. This modules facilitates in

Re: [ansible-project] Question: How to use the same host for multiple groups?

2020-01-10 Thread Konstantinos Tzevelekidis
Hello, What I want to have is one host folder (i.e. Host1) which will contain a vars.yml that will define the actual ansible_host (i.e. "1.2.3.4"). So, in the inventory I will need to have: [GroupA] host1A ansible_host=Host1 [GroupB] host1B ansible_host=Host1 where the ansible_host will take

Re: [ansible-project] Question: How to use the same host for multiple groups?

2020-01-10 Thread Brian Coca
ansible_host is just a variable, you can define it anywhere you want. -- -- Brian Coca -- 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, send an email to

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

2020-01-10 Thread Abhijeet Kasurde
Hi Rohan, There are a number of ways to do this. Take a look at Prompts - https://docs.ansible.com/ansible/latest/user_guide/playbooks_prompts.html which will be interactive like you explained in the original post. But going forward you might want to use VMware guest templates and OVF images to

[ansible-project] How to configure prompt with 2 inputs

2020-01-10 Thread Srinivas Naram
Hello Gurus I am working on ios_command module. This modules facilitates in execute commands on Cisco IOS devices. While running 'reload' command it is prompting for 2 inputs, "System configuration has been modified. Save? [yes/no]" > yes "Proceed with reload? [confirm] >

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

2020-01-10 Thread naveen s
Hello Rohan, it is always better to have the variables and its values in the group_vars section and pass them while executing the playbook. 1. created a reusable playbook (create a variable inside the playbook in which you want to pass it at the time of playbook execution). 2. create a

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

2020-01-10 Thread Rohan Kalap
Hello, I am looking to create VM from vmware_guest module on esxi server which is working fine with following playbook, But- I want to pass details which are needed while booting into VM e.g hostname, username or license agreement. I tried using 1-custome values and 2-set_facts but this

Re: [ansible-project] Question: How to use the same host for multiple groups?

2020-01-10 Thread Konstantinos Tzevelekidis
Hello, Thanks a lot for your help! From what I understand is that the ansible_host should be the actual hostname (dns entry). Is there any way to pass the to the ansible_host the name of an entry in the host_vars? For example, I have in the host_vars directory, the folder Host1 where it has a