Re: [ansible-project] Re: need help on simple arrays

2022-09-20 Thread Ahmed Elhusseini
Thank you so much, I appreciated On Saturday, September 17, 2022 at 11:36:31 PM UTC+3 uto...@gmail.com wrote: > "users" is an array of three things. So you have to either iterate over > the array as with something like "loop:", or index it as with > "users[0]['username']", "users[0]['homedirect

[ansible-project] Docker cgroups2 and cgroupns support in Molecule

2022-09-20 Thread Sudheer Satyanarayana
Hello, I have encountered an issue with using systemd in docker. I have a role with a task like this: - name: Start and enable apache2   systemd:     name: apache2     state: started     enabled: true And it fails like this: TASK [acme.molecule_reference_role : Start and enable apache2] ***

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

2022-09-20 Thread dulhaver via Ansible Project
this is how I manged this in the end. probably the solution suggested by @Vladimit Botka is more scientific but I could not indorporate the find operation required with the rest of the suggestion ###

[ansible-project] Ansible + docker_compose module: need DATABASES='{...}', but getting DATABASES='"{ ...}"'

2022-09-20 Thread denny....@gmail.com
Hello, I'm fighting since hours with this problem. I have to add a JSON string into a container environment: It works .. if I have something like this: ... backoffice-sandbox.example.local: image: "{{BACKOFFICE_IMAGE}}" restart: always conta