Re: [ansible-project] Update custom attribute called OS

2021-02-09 Thread Dick Visser
Can you be more clear in what you are actually trying to achieve? What problem are you exactly having? Share a playbook or inventory that does not do what you want, for example. On Wed, 10 Feb 2021 at 06:39, esxi...@gmail.com wrote: > So again experts & it could be a feature request ... > > >

Re: [ansible-project] Update custom attribute called OS

2021-02-09 Thread esxi...@gmail.com
So again experts & it could be a feature request ... ## How can we dynamicailly update OS custome attribute - name: Set Custom Attributes community.vmware.vmware_guest_custom_attributes: validate_certs: False hostname: '{{ vcenter_hostname }}' username: '{{

Re: [ansible-project] Re: Ansible - User Create Module - Not working with Vault

2021-02-09 Thread Jeremey Wise
Sorry for not being clear.. What I did .. was .. nothing. No code change from the code posted. I use Visual Studio Code ... and did not between changes save file before running test... which then got back false "failure"... and do kept trying other things. The below code works from global

Re: [ansible-project] Re: vmware_vm_inventory filters

2021-02-09 Thread esxi...@gmail.com
Great ...it filter not only based on Tags but custom attributes as well... !!! On Tuesday, February 9, 2021 at 7:06:40 PM UTC-8 esxi...@gmail.com wrote: > Please ignore..i removed & re-added the tag & its working .. Thanks @ > Abhijeet > Kasurde > > On Tuesday, February 9, 2021 at 7:01:47 PM

[ansible-project] Parsing json outputs not returning expected results.

2021-02-09 Thread Darshan Yamakanamardi
Hello All, I am trying to parse JSON output and use it as a variable in a playbook. Whilst the JSON query works perfectly fine if I run it on the bash command line, but for some reason, Ansible is not parsing the JSON output as expected. The play book and play recap are available at the below

Re: [ansible-project] Re: vmware_vm_inventory filters

2021-02-09 Thread esxi...@gmail.com
Please ignore..i removed & re-added the tag & its working .. Thanks @ Abhijeet Kasurde On Tuesday, February 9, 2021 at 7:01:47 PM UTC-8 esxi...@gmail.com wrote: > tested on Ubuntu 20.04 .. > > I am able to see all vms > > eg > > > "xx": { > "Application": "xx", >

Re: [ansible-project] Re: vmware_vm_inventory filters

2021-02-09 Thread esxi...@gmail.com
tested on Ubuntu 20.04 .. I am able to see all vms eg "xx": { "Application": "xx", "Environment": "xx", "LOB": "xx", "Location": "xx", "NB_LAST_BACKUP": "xx", "OS": "Ubuntu18.04",

[ansible-project] Ansible-3.0.0 release candidate 1

2021-02-09 Thread Toshio Kuratomi
Hi all, We're happy to announce that the ansible-3.0.0 release candidate 1 package is now available for testing! This update is based on the ansible-base-2.10.x package just like ansible-2.10 was so the changes shouldn't be too major. However, it does contain new major versions of many

Re: [ansible-project] Re: Ansible - User Create Module - Not working with Vault

2021-02-09 Thread Antony Stone
On Tuesday 09 February 2021 at 23:43:41, Jeremey Wise wrote: > Correction: > > This was an error where I was trying too many things and did not re-test > with all correct variables set. > > This does work: > Co-worker pointed out to dump password out as variable and I saw it was > read that in

[ansible-project] Re: Ansible - User Create Module - Not working with Vault

2021-02-09 Thread Jeremey Wise
Correction: This was an error where I was trying too many things and did not re-test with all correct variables set. This does work: Co-worker pointed out to dump password out as variable and I saw it was read that in wrong as I changed several times to test things On

Re: [ansible-project] Re: GCP Tunnel through IAP

2021-02-09 Thread Jean-Yves LENHOF
Hi, Just gave some directions in the issue on github to make it work Regards, JYL Le 09/02/2021 à 17:00, C.J. Brown a écrit : Say, did you ever find a better solution here?  Because I've run into the same problem recently, and...well, it's ugly. I saw that this ticket had been filed

[ansible-project] Re: Ansible-2.10.7 released.

2021-02-09 Thread Toshio Kuratomi
Small correction. The pip install instructions should read: $ pip uninstall ansible $ pip install ansible==2.10.7 --user Thanks! -Toshio On Tue, Feb 9, 2021 at 1:28 PM Toshio Kuratomi wrote: > > Hi all, > > We're happy to announce that the ansible-2.10.7 package is now > available! This

[ansible-project] Ansible-2.10.7 released.

2021-02-09 Thread Toshio Kuratomi
Hi all, We're happy to announce that the ansible-2.10.7 package is now available! This update contains bugfixes and new, backwards compatible features in the contained collections. Ansible-2.10.x is a big change in how the Ansible package is built so if you missed out on all the changes that

Re: [ansible-project] file module, why useless src should be an error with state absent ?

2021-02-09 Thread Daniel Caillibaud
Le 09/02/21 à 13:21, Vladimir Botka a écrit : > It's possible to omit src conditionally e.g. > > - name: enable plugins for baremetal only >file: > path: "/etc/munin/plugins/{{ item }}" > state: "{{ is_baremetal | ternary('link', 'absent') }}" > src: "{{ is_baremetal |

[ansible-project] Writing output to ansible server local file

2021-02-09 Thread 'Chris Bidwell - NOAA Federal' via Ansible Project
Hi all, I've tried this and it's worked before but after an upgrade some time ago, it stopped working. I haven't used it in ages. Anyway, if I want to get variables about my inventory: mac address, ip, os version, etc., and write that to a file, what would be my syntax on doing this? -- You

[ansible-project] Re: GCP Tunnel through IAP

2021-02-09 Thread C.J. Brown
Say, did you ever find a better solution here? Because I've run into the same problem recently, and...well, it's ugly. I saw that this ticket had been filed against Ansible: https://github.com/ansible/ansible/issues/66310 ...but was auto-closed by ansibot when all this stuff got moved to

[ansible-project] Ansible - User Create Module - Not working with Vault

2021-02-09 Thread Jeremey Wise
Still learning Ansible... but I think this is a feature request / maybe a bug? Hoping their is a work around. Goal: Create a user on CentOS host with membership of wheel group, ssh key and use a provided password but NOT store password in plain text within ansible. I am using vault where

[ansible-project] (cross post) AWX "mux_client_read_packet: read header failed: Broken Pipe"

2021-02-09 Thread Ethan Sowell
(This is a cross post from the AWX Project group I made about a week ago. I am just making it here in the hopes anyone with more ansible knowledge here may be able to help me in the mean time.) I am trying to get AWX running on a docker swarm and I am running into this problem with

Re: [ansible-project] file module, why useless src should be an error with state absent ?

2021-02-09 Thread Vladimir Botka
On Tue, 9 Feb 2021 12:47:39 +0100 Daniel Caillibaud wrote: > Le 09/02/21 à 12:29, Vladimir Botka a écrit : > > > On Tue, 9 Feb 2021 11:17:26 +0100 > > Daniel Caillibaud wrote: > > > > > - name: enable plugins for baremetal only > > > file: > > > path: "/etc/munin/plugins/{{ item }}"

Re: [ansible-project] file module, why useless src should be an error with state absent ?

2021-02-09 Thread Daniel Caillibaud
Le 09/02/21 à 12:29, Vladimir Botka a écrit : > On Tue, 9 Feb 2021 11:17:26 +0100 > Daniel Caillibaud wrote: > > > - name: enable plugins for baremetal only > > file: > > path: "/etc/munin/plugins/{{ item }}" > > state: "{{ is_baremetal | ternary('link', 'absent') }}" > > src:

Re: [ansible-project] file module, why useless src should be an error with state absent ?

2021-02-09 Thread Vladimir Botka
On Tue, 9 Feb 2021 11:17:26 +0100 Daniel Caillibaud wrote: > - name: enable plugins for baremetal only > file: > path: "/etc/munin/plugins/{{ item }}" > state: "{{ is_baremetal | ternary('link', 'absent') }}" > src: "/usr/share/munin/plugins/{{ item }}" > loop: > - acpi >

[ansible-project] file module, why useless src should be an error with state absent ?

2021-02-09 Thread Daniel Caillibaud
Hi, I want a symlink to be present on some hosts and absent for others, so I write this task - name: enable plugins for baremetal only file: path: "/etc/munin/plugins/{{ item }}" state: "{{ is_baremetal | ternary('link', 'absent') }}" src: "/usr/share/munin/plugins/{{ item }}"