Re: [ansible-project] Dynamic Inventories with Openstack

2022-09-19 Thread Dick Visser
On Mon, 19 Sep 2022 at 18:25, Robert Kruck wrote: > Hello everyone, > I am working on moving our playbooks from ansible 2.9 to 2.12+ and am > having trouble understanding how to use plugin: openstack.cloud.openstack. > I am sure it is something simple I am missing or using this wrong so hoping

[ansible-project] Dynamic Inventories with Openstack

2022-09-19 Thread Robert Kruck
Hello everyone, I am working on moving our playbooks from ansible 2.9 to 2.12+ and am having trouble understanding how to use plugin: openstack.cloud.openstack. I am sure it is something simple I am missing or using this wrong so hoping someone can point me in the right direction. I have an

Re: [ansible-project] create variable from value gathered on remote

2022-09-19 Thread dulhaver via Ansible Project
> On 09/19/2022 4:25 PM CEST Todd Lewis wrote: > > do this: > >loop: "{{ found_files.files | map(attribute='path') | map('basename') | > list }}" great, that works. So one part of the puzzle is solved, thx -- You received this message because you are subscribed to the Google Groups

Re: [ansible-project] create variable from value gathered on remote

2022-09-19 Thread Todd Lewis
You're so close. You're passing in a list as a single item. Instead of loop: - "{{ found_files.files | map(attribute='path') | map('basename') | list }}" do this: loop: "{{ found_files.files | map(attribute='path') | map('basename') | list }}" On 9/19/22 10:06 AM, dulhaver via

Re: [ansible-project] create variable from value gathered on remote

2022-09-19 Thread dulhaver via Ansible Project
I manage to get something like this from a set_fact following the find TASK TASK [creating a list with the filenames] * task path: /home/gwagner/repos/ansible/open_source/postgres_create_service/tasks/fetchsomething.yml:20 ok:

Re: [ansible-project] Ansible Tower 3.8.6 - Workflow Survey - Updating choices on one question

2022-09-19 Thread glenc2...@comcast.net
Ok Thanks. I will do so. Regards, Glen On Monday, September 19, 2022 at 1:42:37 AM UTC-7 dnmv...@gmail.com wrote: > Hii > This is the ansible list. > Your question might get more response on the dedicated AWX list. > > > On Mon, 19 Sept 2022 at 02:49, glen...@comcast.net > wrote: > >> Hello

Re: [ansible-project] create variable from value gathered on remote

2022-09-19 Thread Vladimir Botka
On Mon, 19 Sep 2022 12:23:14 +0200 (CEST) dulhaver via Ansible Project wrote: > ... does not localize the files I am looking for. > >- name: fetch all .env files to fetched > ansible.builtin.fetch: >src: /opt/db/postgres/bin/.pg*env >dest: fetched/ >flat: true >

Re: [ansible-project] create variable from value gathered on remote

2022-09-19 Thread dulhaver via Ansible Project
Thanks Vladimir ... that looks pretty sophisticated (almost out of sight-ish) ... but could be a nice challenge to even understand what is going on :-) so far I detected one challenge. Maybe my initial question has not been sufficientely explicit with this. I run this against a single host

Re: [ansible-project] Ansible Tower 3.8.6 - Workflow Survey - Updating choices on one question

2022-09-19 Thread Dick Visser
Hii This is the ansible list. Your question might get more response on the dedicated AWX list. On Mon, 19 Sept 2022 at 02:49, glenc2...@comcast.net wrote: > Hello all! I have been racking my brain on how to update one field in the > survey spec to one survey question. I'm unable to write the