Re: [ansible-project] vmware_guest - VM is created but the name "none"

2021-03-07 Thread Dick Visser
And a similar output of a successful attempt on your other control node? On Mon, 8 Mar 2021 at 07:29, esxi...@gmail.com wrote: > Here is the output > > > ansible-playbook > /etc/ansible/playbooks/vm-provision/vm-create-paramater.yml -f 5 > --extra-vars "vm_name=vm-name-XXX vm_ip=IP

Re: [ansible-project] How to send ansible tower metrics to prometheus

2021-03-07 Thread Ankit Vashistha
Hello, Check this: 12. Metrics — Ansible Tower Administration Guide v3.8.1 *Regards,* *Ankit* On Thu, Mar 4, 2021 at 1:22 AM Saravanan Ponnusamy wrote: > Hi Ansible experts, > We are trying to push Ansible

Re: [ansible-project] vmware_guest - VM is created but the name "none"

2021-03-07 Thread esxi...@gmail.com
Here is the output ansible-playbook /etc/ansible/playbooks/vm-provision/vm-create-paramater.yml -f 5 --extra-vars "vm_name=vm-name-XXX vm_ip=IP vcenter_name=DC-vc01.DOMAIN vcenter_folder=DC-C-Infra vcenter_rp=DC-Prod vcenter_dc=DC vcenter_cluster=DC-C-Cluster01

Re: [ansible-project] vmware_guest - VM is created but the name "none"

2021-03-07 Thread esxi...@gmail.com
Well- /etc/ansible/playbooks/vm-provision/vars/var.yml in my case only has credentials All variables are passed with -e So i do not think the issue is with vars in this case ansible-playbook /etc/ansible/playbooks/vm-provision/vm-create-paramater.yml --extra-vars "vm_name=xxx xxx

Re: [ansible-project] vmware_guest - VM is created but the name "none"

2021-03-07 Thread Dick Visser
The Linux distro on the control node is largely irrelevant. It's the way you define the variables that is the problem. Add a debug task and check what does variables really are. What is in that vars file? Typo? Etc etc On Mon, 8 Mar 2021 at 04:57, esxi...@gmail.com wrote: > Hi folks > > When i

[ansible-project] vmware_guest - VM is created but the name "none"

2021-03-07 Thread esxi...@gmail.com
Hi folks When i use below on a Ubuntu 20.04 ansible control node , vm is created but the OS name shows "none" Same playbook i am running on a CentOS7 ansible control node the then the vm name is not none but correct one Any suggestions on this Please ? cat vm-create-paramater.yml --- -

[ansible-project] Re: ansible group not working

2021-03-07 Thread esxi...@gmail.com
check why the windows box ansible doing ssh .. that is your clue On Sunday, March 7, 2021 at 6:24:10 PM UTC-8 tdub...@gmail.com wrote: > any idea why the below is failing for my hosts pa-mgt01? > > > [image: Screen Shot 2021-03-07 at 6.24.28 PM.png] > -- You received this message because you

Re: [ansible-project] Ansible showing incorrect info when i try to find free space in switch, please help

2021-03-07 Thread Dick Visser
Nothing prevents you from running a script that returns whatever you want, and use that in the conditional logic in subsequent tasks On Sun, 7 Mar 2021 at 02:33, Vikram S wrote: > I have written a script to check for free space in switch before i proceed > to copy image. I used ios_facts

Re: [ansible-project] ansible remote host to remote synchronize.py error

2021-03-07 Thread Raja Natte
While doing this verbose it hangs at 1265/AnsiballZ_synchronize.py && sleep 0'"'"'' Thanks On Sun, Mar 7, 2021, 9:54 AM Antony Stone < antony.st...@ansible.open.source.it> wrote: > On Sunday 07 March 2021 at 15:52:20, Raj wrote: > > > Hi all, > > > > Below is my playbook for copy from

Re: [ansible-project] ansible remote host to remote synchronize.py error

2021-03-07 Thread Antony Stone
On Sunday 07 March 2021 at 15:52:20, Raj wrote: > Hi all, > > Below is my playbook for copy from server A to server B. Could you please > help me on this issue. > --- > - name: copy remote to remote host > synchronize: > src: "{{ src_path }}" > dest: "{{ dest_path }}" >

[ansible-project] ansible remote host to remote synchronize.py error

2021-03-07 Thread Raj
Hi all, Below is my playbook for copy from server A to server B. Could you please help me on this issue. --- - name: copy remote to remote host synchronize: src: "{{ src_path }}" dest: "{{ dest_path }}" delegate_to: Server B while running through AWX hang with below