# Ansible Project

**URL:** https://forum.ansible.com/c/archives/ansible-project/30.md?page=35

[Latest](https://forum.ansible.com/latest.md) · [Categories](https://forum.ansible.com/categories.md) · [Tags](https://forum.ansible.com/tags.md)

**Page:** 36

---

## [Expect still prompting to continue](https://forum.ansible.com/t/expect-still-prompting-to-continue/37143)

<div class="topic-metadata">

**Author:** [@aokullu](https://forum.ansible.com/u/aokullu)\
**Replies:** 9\
**Last updated:** [September 29, 2022, 7:31am UTC](https://forum.ansible.com/t/expect-still-prompting-to-continue/37143 "2022-09-29T07:31:05Z")

</div>

Dear Team i have an issue. I have written a playbook that will perform and update of the netbackup java.

---

## [Centos7, Python3, Yum, DNF & builtin.command OH MY!](https://forum.ansible.com/t/centos7-python3-yum-dnf-builtin-command-oh-my/37153)

<div class="topic-metadata">

**Author:** [@dmartin](https://forum.ansible.com/u/dmartin)\
**Replies:** 3\
**Last updated:** [September 28, 2022, 5:23pm UTC](https://forum.ansible.com/t/centos7-python3-yum-dnf-builtin-command-oh-my/37153 "2022-09-28T17:23:29Z")

</div>

Okay! So, we have a bunch of proprietary software that we have to run on Centos 7. We’ve been using python3 for years. I’m trying to install an RPM with ansible yum module and it fails because python3. It suggests DNF, b…

---

## [How can i specify different username for different host in command line](https://forum.ansible.com/t/how-can-i-specify-different-username-for-different-host-in-command-line/37148)

<div class="topic-metadata">

**Author:** [@Cola\_CoCo](https://forum.ansible.com/u/Cola_CoCo)\
**Replies:** 7\
**Last updated:** [September 28, 2022, 1:45pm UTC](https://forum.ansible.com/t/how-can-i-specify-different-username-for-different-host-in-command-line/37148 "2022-09-28T13:45:17Z")

</div>

I executed a command like: ansible all -i "user1@ip1:22,user2@ip2:port2" -m shell -a "echo 1" --private-key /root/.ssh/id\_rsa. But it could not work. I want to know whether there is a way to let me specify different us…

---

## [How can I pass a json variable set by set\_fact to jq pipeline in ansible shell task?](https://forum.ansible.com/t/how-can-i-pass-a-json-variable-set-by-set-fact-to-jq-pipeline-in-ansible-shell-task/37147)

<div class="topic-metadata">

**Author:** [@TIYA\_JOSE](https://forum.ansible.com/u/TIYA_JOSE)\
**Replies:** 12\
**Last updated:** [September 28, 2022, 11:38am UTC](https://forum.ansible.com/t/how-can-i-pass-a-json-variable-set-by-set-fact-to-jq-pipeline-in-ansible-shell-task/37147 "2022-09-28T11:38:13Z")

</div>

Hello, I have a ansible playbook that has set a json variable using set\_fact module. I’m trying to use jq command in ansible playbook, to transform that json to a particular format, but got parse error: Invalid numeric …

---

## [Handling "file not found" for the slurp module](https://forum.ansible.com/t/handling-file-not-found-for-the-slurp-module/37146)

<div class="topic-metadata">

**Author:** [@Shabir\_Abdul\_Samdh](https://forum.ansible.com/u/Shabir_Abdul_Samdh)\
**Replies:** 2\
**Last updated:** [September 27, 2022, 1:56pm UTC](https://forum.ansible.com/t/handling-file-not-found-for-the-slurp-module/37146 "2022-09-27T13:56:25Z")

</div>

Hello All, I am trying to read a file from a remote host and do some checks on its content using the slurp module. However I want these checks to run only if the file exists. If the file is not found I want to skip some…

---

## [New releases: ansible-core 2.13.4, ansible-core 2.12.9](https://forum.ansible.com/t/new-releases-ansible-core-2-13-4-ansible-core-2-12-9/37090)

<div class="topic-metadata">

**Author:** [@sivel](https://forum.ansible.com/u/sivel)\
**Replies:** 1\
**Last updated:** [September 26, 2022, 11:12pm UTC](https://forum.ansible.com/t/new-releases-ansible-core-2-13-4-ansible-core-2-12-9/37090 "2022-09-26T23:12:54Z")

</div>

Hi all- we’re happy to announce the general release of: ansible-core 2.13.4 ansible-core 2.12.9 How to get it

---

## [become\_password and ansibe variable](https://forum.ansible.com/t/become-password-and-ansibe-variable/37141)

<div class="topic-metadata">

**Author:** [@Django](https://forum.ansible.com/u/Django)\
**Replies:** 2\
**Last updated:** [September 26, 2022, 2:26pm UTC](https://forum.ansible.com/t/become-password-and-ansibe-variable/37141 "2022-09-26T14:26:43Z")

</div>

Hello, I would like to process the become\_password in a playbook, which I request with the parameter '-K' when calling ansible-playbook. Is there a variable that Ansible automatically populates with the entered value f…

---

## [creating a postgres user - non default postgres port](https://forum.ansible.com/t/creating-a-postgres-user-non-default-postgres-port/37142)

<div class="topic-metadata">

**Author:** [@dulhaver](https://forum.ansible.com/u/dulhaver)\
**Replies:** 1\
**Last updated:** [September 26, 2022, 10:50am UTC](https://forum.ansible.com/t/creating-a-postgres-user-non-default-postgres-port/37142 "2022-09-26T10:50:30Z")

</div>

I am trying to create a postgres user/role with community.postgresql.postgresql\_user. The instance I am trying to address runs on port 5436 so my TASK looks like

---

## [JSON JMES Query need solution for proper format](https://forum.ansible.com/t/json-jmes-query-need-solution-for-proper-format/37135)

<div class="topic-metadata">

**Author:** [@AharonuReddy](https://forum.ansible.com/u/AharonuReddy)\
**Replies:** 2\
**Last updated:** [September 23, 2022, 3:04am UTC](https://forum.ansible.com/t/json-jmes-query-need-solution-for-proper-format/37135 "2022-09-23T03:04:32Z")

</div>

Hi All, I am referring https://www.middlewareinventory.com/blog/ansible-playbook-read-json-file/ → Complex JSON JMES Queries and Ansible Playbook Per this i see it should be like below screenshot output but when i test…

---

## [need help on simple arrays](https://forum.ansible.com/t/need-help-on-simple-arrays/37103)

<div class="topic-metadata">

**Author:** [@Ahmed\_Elhusseini](https://forum.ansible.com/u/Ahmed_Elhusseini)\
**Replies:** 4\
**Last updated:** [September 20, 2022, 6:23pm UTC](https://forum.ansible.com/t/need-help-on-simple-arrays/37103 "2022-09-20T18:23:54Z")

</div>

cat vars/users users: username: test homedir: /home/test shell: /bin/bash username: test1 homedir: /home/test1 shell: /bin/bash username: test2 homedir: /home/test2 shell: /bin/bash cat arrays.yaml

---

## [Docker cgroups2 and cgroupns support in Molecule](https://forum.ansible.com/t/docker-cgroups2-and-cgroupns-support-in-molecule/37130)

<div class="topic-metadata">

**Author:** [@Sudheer\_S](https://forum.ansible.com/u/Sudheer_S)\
**Replies:** 0\
**Last updated:** [September 20, 2022, 10:07am UTC](https://forum.ansible.com/t/docker-cgroups2-and-cgroupns-support-in-molecule/37130 "2022-09-20T10:07:42Z")

</div>

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: T…

---

## [create variable from value gathered on remote](https://forum.ansible.com/t/create-variable-from-value-gathered-on-remote/37112)

<div class="topic-metadata">

**Author:** [@dulhaver](https://forum.ansible.com/u/dulhaver)\
**Replies:** 9\
**Last updated:** [September 20, 2022, 9:13am UTC](https://forum.ansible.com/t/create-variable-from-value-gathered-on-remote/37112 "2022-09-20T09:13:23Z")

</div>

I am trying to automate the creation of postgresql services on a shared postgres Server as my target. we create an .env file for each service on the target with contains the portnumber used for that particular instance.…

---

## [Ansible + docker\_compose module: need DATABASES='{...}', but getting DATABASES='"{ ...}"'](https://forum.ansible.com/t/ansible-docker-compose-module-need-databases-but-getting-databases/37129)

<div class="topic-metadata">

**Author:** [@Denny\_Fuchs](https://forum.ansible.com/u/Denny_Fuchs)\
**Replies:** 0\
**Last updated:** [September 20, 2022, 9:04am UTC](https://forum.ansible.com/t/ansible-docker-compose-module-need-databases-but-getting-databases/37129 "2022-09-20T09:04:58Z")

</div>

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}}…

---

## [Dynamic Inventories with Openstack](https://forum.ansible.com/t/dynamic-inventories-with-openstack/37128)

<div class="topic-metadata">

**Author:** [@Robert2](https://forum.ansible.com/u/Robert2)\
**Replies:** 1\
**Last updated:** [September 19, 2022, 11:22pm UTC](https://forum.ansible.com/t/dynamic-inventories-with-openstack/37128 "2022-09-19T23:22:55Z")

</div>

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 thi…

---

## [Molecule : basic documentation](https://forum.ansible.com/t/molecule-basic-documentation/37118)

<div class="topic-metadata">

**Author:** [@Sudheer\_S](https://forum.ansible.com/u/Sudheer_S)\
**Replies:** 6\
**Last updated:** [September 19, 2022, 5:56pm UTC](https://forum.ansible.com/t/molecule-basic-documentation/37118 "2022-09-19T17:56:44Z")

</div>

Hello, I am trying to make a hello world type testing with Molecule. But it seems that the Molecule documentation is outdated. https://molecule.readthedocs.io/en/latest/ https://molecule.readthedocs.io/en/latest/insta…

---

## [Ansible Tower 3.8.6 - Workflow Survey - Updating choices on one question](https://forum.ansible.com/t/ansible-tower-3-8-6-workflow-survey-updating-choices-on-one-question/37120)

<div class="topic-metadata">

**Author:** [@glen](https://forum.ansible.com/u/glen)\
**Replies:** 2\
**Last updated:** [September 19, 2022, 1:19pm UTC](https://forum.ansible.com/t/ansible-tower-3-8-6-workflow-survey-updating-choices-on-one-question/37120 "2022-09-19T13:19:23Z")

</div>

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 code to actually get this done while still maintaining the survey flow as is so when i…

---

## [GitHub Webhook not working](https://forum.ansible.com/t/github-webhook-not-working/37115)

<div class="topic-metadata">

**Author:** [@Maik\_Brauer](https://forum.ansible.com/u/Maik_Brauer)\
**Replies:** 9\
**Last updated:** [September 18, 2022, 7:34pm UTC](https://forum.ansible.com/t/github-webhook-not-working/37115 "2022-09-18T19:34:26Z")

</div>

Apart from the standard configuration on a job template to connect everything with webhook service from github, it always turns into 403 Permission denied. Anything else to configure?

---

## [accessing vars for hosts that are not in the play?](https://forum.ansible.com/t/accessing-vars-for-hosts-that-are-not-in-the-play/37108)

<div class="topic-metadata">

**Author:** [@dnmvisser](https://forum.ansible.com/u/dnmvisser)\
**Replies:** 14\
**Last updated:** [September 17, 2022, 1:23am UTC](https://forum.ansible.com/t/accessing-vars-for-hosts-that-are-not-in-the-play/37108 "2022-09-17T01:23:36Z")

</div>

Hi I have a playbook that contains several plays. One play is performing API related tasks in AWS, so it’s using the local connection and localhost. The plays after that targets real hosts. Pseudo code: name: do API …

---

## [JOB | Head of Platform Engineering (London)](https://forum.ansible.com/t/job-head-of-platform-engineering-london/37109)

<div class="topic-metadata">

**Author:** [@ghost\_advocate](https://forum.ansible.com/u/ghost_advocate)\
**Replies:** 0\
**Last updated:** [September 16, 2022, 10:51am UTC](https://forum.ansible.com/t/job-head-of-platform-engineering-london/37109 "2022-09-16T10:51:39Z")

</div>

Hello, I'm working with an employer that is looking to hire (at their London office) someone capable of fulfilling a head of platform engineering position. Consequently, I had hoped that some members of this list may…

---

## [JOB | Head of Platform Engineering (London)](https://forum.ansible.com/t/job-head-of-platform-engineering-london/37107)

<div class="topic-metadata">

**Author:** [@ghost\_advocate](https://forum.ansible.com/u/ghost_advocate)\
**Replies:** 0\
**Last updated:** [September 16, 2022, 7:48am UTC](https://forum.ansible.com/t/job-head-of-platform-engineering-london/37107 "2022-09-16T07:48:41Z")

</div>

Hello, I'm working with an employer that is looking to hire (at their London office) someone capable of fulfilling a head of platform engineering position. Consequently, I had hoped that some members of this list may…

---

## [running commands inside a remote virtual environment](https://forum.ansible.com/t/running-commands-inside-a-remote-virtual-environment/37106)

<div class="topic-metadata">

**Author:** [@Fenrir\_Sivar](https://forum.ansible.com/u/Fenrir_Sivar)\
**Replies:** 1\
**Last updated:** [September 16, 2022, 7:03am UTC](https://forum.ansible.com/t/running-commands-inside-a-remote-virtual-environment/37106 "2022-09-16T07:03:54Z")

</div>

I would like to run a shell command using a python virtual environment on a remote server. (collecting static files for a django project) However, how do I activate a remote virtual environment in a task? Best Fen

---

## [Playbook output to markdown?](https://forum.ansible.com/t/playbook-output-to-markdown/37092)

<div class="topic-metadata">

**Author:** [@Leandro\_Montesoro](https://forum.ansible.com/u/Leandro_Montesoro)\
**Replies:** 4\
**Last updated:** [September 15, 2022, 2:24pm UTC](https://forum.ansible.com/t/playbook-output-to-markdown/37092 "2022-09-15T14:24:10Z")

</div>

Hello! In my organization we have some jobs in jenkins that executes differents ansible playbooks to analize things from the differents servers (for example if certain services are found installed). The problem I have,…

---

## [Create module to configure O365 tenants with graph api](https://forum.ansible.com/t/create-module-to-configure-o365-tenants-with-graph-api/37100)

<div class="topic-metadata">

**Author:** [@jose\_BATUMENI](https://forum.ansible.com/u/jose_BATUMENI)\
**Replies:** 0\
**Last updated:** [September 15, 2022, 2:21pm UTC](https://forum.ansible.com/t/create-module-to-configure-o365-tenants-with-graph-api/37100 "2022-09-15T14:21:36Z")

</div>

I want to know how I can create ansible modules for configurations of O365 tenants requesting the graph api from microsoft graph api. Is that possible?

---

## ["msg": "ssl: the specified credentials were rejected by the server"](https://forum.ansible.com/t/msg-ssl-the-specified-credentials-were-rejected-by-the-server/37093)

<div class="topic-metadata">

**Author:** [@Paul\_Briery](https://forum.ansible.com/u/Paul_Briery)\
**Replies:** 1\
**Last updated:** [September 15, 2022, 2:16pm UTC](https://forum.ansible.com/t/msg-ssl-the-specified-credentials-were-rejected-by-the-server/37093 "2022-09-15T14:16:29Z")

</div>

I’m trying to understand Ansible better in order to use it in my company’s production environment. In order to test and understand I’ve setup 2 VM’s with server 2019 and am using a Windows 2010 system with WSL enabled an…

---

## [template "Missing end of comment tag"](https://forum.ansible.com/t/template-missing-end-of-comment-tag/37094)

<div class="topic-metadata">

**Author:** [@dulhaver](https://forum.ansible.com/u/dulhaver)\
**Replies:** 2\
**Last updated:** [September 15, 2022, 9:58am UTC](https://forum.ansible.com/t/template-missing-end-of-comment-tag/37094 "2022-09-15T09:58:26Z")

</div>

I am trying to use template module to send 2 shell scripts to a remote. ### TASK ################################################################################################## - name: configure postgres - templat…

---

## [Ansible 6.4.0 has been Released!](https://forum.ansible.com/t/ansible-6-4-0-has-been-released/37097)

<div class="topic-metadata">

**Author:** [@Christian\_Adams](https://forum.ansible.com/u/Christian_Adams)\
**Replies:** 0\
**Last updated:** [September 15, 2022, 4:22am UTC](https://forum.ansible.com/t/ansible-6-4-0-has-been-released/37097 "2022-09-15T04:22:06Z")

</div>

Hi all, We’re happy to announce that the Ansible 6.4.0 package has been released! Ansible 6.4.0 will include ansible-core 2.13.4 as well as a curated set of Ansible collections to provide a vast number of modules and …

---

## [end\_play should not stop the loop in task](https://forum.ansible.com/t/end-play-should-not-stop-the-loop-in-task/37089)

<div class="topic-metadata">

**Author:** [@system](https://forum.ansible.com/u/system)\
**Replies:** 0\
**Last updated:** [September 12, 2022, 3:05pm UTC](https://forum.ansible.com/t/end-play-should-not-stop-the-loop-in-task/37089 "2022-09-12T15:05:17Z")

</div>

First, you are not showing a loop, so i can only assume these tasks are in an include\_tasks with the loop defined there. Second, you are asking Ansible to end the play, if is what is happening, it is working as expect…

---

## [end\_play is stopping the loop execution](https://forum.ansible.com/t/end-play-is-stopping-the-loop-execution/37087)

<div class="topic-metadata">

**Author:** [@PRADEEPA\_G](https://forum.ansible.com/u/PRADEEPA_G)\
**Replies:** 0\
**Last updated:** [September 12, 2022, 7:54am UTC](https://forum.ansible.com/t/end-play-is-stopping-the-loop-execution/37087 "2022-09-12T07:54:57Z")

</div>

Have the task with the loop to execute multiple sql files. but need to stop the execution of playbook using tag only after execution all the sql files. in reality the end\_play is ending immediately after execution one sq…

---

## [ansible-galaxy newb error](https://forum.ansible.com/t/ansible-galaxy-newb-error/37085)

<div class="topic-metadata">

**Author:** [@Andy\_Bach](https://forum.ansible.com/u/Andy_Bach)\
**Replies:** 0\
**Last updated:** [September 11, 2022, 1:29am UTC](https://forum.ansible.com/t/ansible-galaxy-newb-error/37085 "2022-09-11T01:29:41Z")

</div>

Hi, I am pretty new to Ansible, and followed Learn Linux TV’s excellent tutorial series. In which, one of the last things we do is refactor things into different roles/tasks. I am trying to follow the rvm1-ansible “ro…

---

## [Ansible dict date to csv file](https://forum.ansible.com/t/ansible-dict-date-to-csv-file/37083)

<div class="topic-metadata">

**Author:** [@vbotka](https://forum.ansible.com/u/vbotka)\
**Replies:** 0\
**Last updated:** [September 10, 2022, 6:04pm UTC](https://forum.ansible.com/t/ansible-dict-date-to-csv-file/37083 "2022-09-10T18:04:20Z")

</div>

Create the list. Put the below declarations into \*vars\* csv\_query: '.\[\`Clusters\`, key, value.node, value.state\]' csv: "{{ Clusters|dict2items|json\_query(csv\_query)| map('flatten')|map('join', ',')|list …

[Previous page](https://forum.ansible.com/c/archives/ansible-project/30.md?page=34)

[Next page](https://forum.ansible.com/c/archives/ansible-project/30.md?page=36)
