# Archives

**URL:** https://forum.ansible.com/c/archives/31.md?page=312

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

**Page:** 313

---

## [Thu 21st Feb - Big PR review for Ansible hackathon](https://forum.ansible.com/t/thu-21st-feb-big-pr-review-for-ansible-hackathon/29680)

<div class="topic-metadata">

**Author:** [@gundalow](https://forum.ansible.com/u/gundalow)\
**Replies:** 0\
**Last updated:** [February 14, 2019, 10:00am UTC](https://forum.ansible.com/t/thu-21st-feb-big-pr-review-for-ansible-hackathon/29680 "2019-02-14T10:00:07Z")

</div>

Ansible is a very popular project by any metric. Our delightful community contributes numerous Pull Requests (PRs) every month. Unfortunately, the volume of incoming PRs means contributors often have to wait days, weeks,…

---

## [Thu 21st Feb - Big PR review for Ansible hackathon](https://forum.ansible.com/t/thu-21st-feb-big-pr-review-for-ansible-hackathon/29679)

<div class="topic-metadata">

**Author:** [@gundalow](https://forum.ansible.com/u/gundalow)\
**Replies:** 0\
**Last updated:** [February 14, 2019, 9:59am UTC](https://forum.ansible.com/t/thu-21st-feb-big-pr-review-for-ansible-hackathon/29679 "2019-02-14T09:59:14Z")

</div>

Ansible is a very popular project by any metric. Our delightful community contributes numerous Pull Requests (PRs) every month. Unfortunately, the volume of incoming PRs means contributors often have to wait days, weeks,…

---

## [select one and two caracter of variable](https://forum.ansible.com/t/select-one-and-two-caracter-of-variable/29666)

<div class="topic-metadata">

**Author:** [@ryad9200000](https://forum.ansible.com/u/ryad9200000)\
**Replies:** 3\
**Last updated:** [February 14, 2019, 9:33am UTC](https://forum.ansible.com/t/select-one-and-two-caracter-of-variable/29666 "2019-02-14T09:33:19Z")

</div>

Hi all, I don’t now why this task not works: set\_fact: my\_variable: “{{ ansible\_user\[0 and 1\] + ‘gis’ if ansible\_user!=‘wildfly’ else ‘wildfly’ }}” But ansible\_user\[0\] + ansible\_user\[1\] works but i want one syntaxe …

---

## [local or remote execution](https://forum.ansible.com/t/local-or-remote-execution/29676)

<div class="topic-metadata">

**Author:** [@Dmitriy\_Trubov](https://forum.ansible.com/u/Dmitriy_Trubov)\
**Replies:** 2\
**Last updated:** [February 14, 2019, 6:42am UTC](https://forum.ansible.com/t/local-or-remote-execution/29676 "2019-02-14T06:42:14Z")

</div>

Hi, I have ansible task shell: “python task.py” register: result until: result.stdout.find(“in-progress”)==-1 retries: 7 delay: 20 python module executed remotely on target host. Where is executed verification o…

---

## [Ansible Template Module Backup - Manage Number of Backup Copies](https://forum.ansible.com/t/ansible-template-module-backup-manage-number-of-backup-copies/29460)

<div class="topic-metadata">

**Author:** [@Daniel\_LeBlanc](https://forum.ansible.com/u/Daniel_LeBlanc)\
**Replies:** 1\
**Last updated:** [February 14, 2019, 6:18am UTC](https://forum.ansible.com/t/ansible-template-module-backup-manage-number-of-backup-copies/29460 "2019-02-14T06:18:25Z")

</div>

Hello. I am using the Ansible template module and create a backup file each change that is pushed. Over time these backup files become large in number as more and more changes are pushed out. In my case it only makes se…

---

## [lookup inside another dictionary](https://forum.ansible.com/t/lookup-inside-another-dictionary/29678)

<div class="topic-metadata">

**Author:** [@Reza\_Azimi](https://forum.ansible.com/u/Reza_Azimi)\
**Replies:** 0\
**Last updated:** [February 14, 2019, 4:30am UTC](https://forum.ansible.com/t/lookup-inside-another-dictionary/29678 "2019-02-14T04:30:33Z")

</div>

Hi, I have this playbook:

---

## [Ansible plugin and Number of parallel processes](https://forum.ansible.com/t/ansible-plugin-and-number-of-parallel-processes/29674)

<div class="topic-metadata">

**Author:** [@eric.dunn](https://forum.ansible.com/u/eric.dunn)\
**Replies:** 0\
**Last updated:** [February 13, 2019, 8:34pm UTC](https://forum.ansible.com/t/ansible-plugin-and-number-of-parallel-processes/29674 "2019-02-13T20:34:59Z")

</div>

I’m using Jenkins with the ansible plugin. https://plugins.jenkins.io/ansible I’m trying to figure out why an ansible project run in Jenkins on 20 hosts is slower than running ansible on the command line. I tried the …

---

## [Ansible - write only specific output](https://forum.ansible.com/t/ansible-write-only-specific-output/29667)

<div class="topic-metadata">

**Author:** [@DM11](https://forum.ansible.com/u/DM11)\
**Replies:** 6\
**Last updated:** [February 13, 2019, 6:37pm UTC](https://forum.ansible.com/t/ansible-write-only-specific-output/29667 "2019-02-13T18:37:44Z")

</div>

How do you write to a file the output of a yaml? If possible, how do you only write to a file specific info if? Thanks

---

## [using json\_query against integers?](https://forum.ansible.com/t/using-json-query-against-integers/29673)

<div class="topic-metadata">

**Author:** [@Justin\_DynamicD](https://forum.ansible.com/u/Justin_DynamicD)\
**Replies:** 2\
**Last updated:** [February 13, 2019, 5:47pm UTC](https://forum.ansible.com/t/using-json-query-against-integers/29673 "2019-02-13T17:47:39Z")

</div>

Ill let a fast sample bit of code do the talking: \`

---

## [date module is not working as expected](https://forum.ansible.com/t/date-module-is-not-working-as-expected/29671)

<div class="topic-metadata">

**Author:** [@vinod93pop](https://forum.ansible.com/u/vinod93pop)\
**Replies:** 0\
**Last updated:** [February 13, 2019, 4:08pm UTC](https://forum.ansible.com/t/date-module-is-not-working-as-expected/29671 "2019-02-13T16:08:02Z")

</div>

HI team, I have a below playbook, where it works fine if I enter dates manually in vars. but it fails when passing through register. tried max possibilities. need your help hosts: one become: true tasks: shell: " d…

---

## [ansible loop iteration on result](https://forum.ansible.com/t/ansible-loop-iteration-on-result/29654)

<div class="topic-metadata">

**Author:** [@Ankur\_Gupta](https://forum.ansible.com/u/Ankur_Gupta)\
**Replies:** 1\
**Last updated:** [February 13, 2019, 3:33pm UTC](https://forum.ansible.com/t/ansible-loop-iteration-on-result/29654 "2019-02-13T15:33:06Z")

</div>

Hello All, I am trying to get ip address from ec2\_fact. So I have lists of tags. on the basis of tags, i am searching the ec2 using the ec2\_fact module and storing the result in the register variable. I am trying to g…

---

## [How to pass variable of in memory inventory to next plays using hostvars](https://forum.ansible.com/t/how-to-pass-variable-of-in-memory-inventory-to-next-plays-using-hostvars/29668)

<div class="topic-metadata">

**Author:** [@Pandu\_jh](https://forum.ansible.com/u/Pandu_jh)\
**Replies:** 0\
**Last updated:** [February 13, 2019, 2:46pm UTC](https://forum.ansible.com/t/how-to-pass-variable-of-in-memory-inventory-to-next-plays-using-hostvars/29668 "2019-02-13T14:46:18Z")

</div>

How to pass variable of in memory inventory to following next plays using hostvars. “nfs\_server” variable to be passed from play 2 to play 3 and these plays are using in-memory inventories. Play:1 add\_host: name: “{…

---

## [Version Control playbooks and tasks](https://forum.ansible.com/t/version-control-playbooks-and-tasks/29663)

<div class="topic-metadata">

**Author:** [@Tuyen\_Nguyen](https://forum.ansible.com/u/Tuyen_Nguyen)\
**Replies:** 1\
**Last updated:** [February 13, 2019, 12:48am UTC](https://forum.ansible.com/t/version-control-playbooks-and-tasks/29663 "2019-02-13T00:48:22Z")

</div>

Hi I would like to implement version control on my playbooks and on my task plays. What version control is recommended? I have heard of using git, however I have never used git before. Does anyone have experience with u…

---

## [FAILED RETRYING message in until loop](https://forum.ansible.com/t/failed-retrying-message-in-until-loop/29664)

<div class="topic-metadata">

**Author:** [@Dmitriy\_Trubov](https://forum.ansible.com/u/Dmitriy_Trubov)\
**Replies:** 0\
**Last updated:** [February 12, 2019, 11:55pm UTC](https://forum.ansible.com/t/failed-retrying-message-in-until-loop/29664 "2019-02-12T23:55:40Z")

</div>

Hi, I use until command and got message TASK \[shell\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* FAILED -…

---

## [Hosts with multiple users.](https://forum.ansible.com/t/hosts-with-multiple-users/29662)

<div class="topic-metadata">

**Author:** [@Eduardo\_Nunes\_Pereir](https://forum.ansible.com/u/Eduardo_Nunes_Pereir)\
**Replies:** 2\
**Last updated:** [February 12, 2019, 11:04pm UTC](https://forum.ansible.com/t/hosts-with-multiple-users/29662 "2019-02-12T23:04:43Z")

</div>

Someone could help me with this case where I have multiple hosts and for these hosts I do not know which exact user but I have a list with some possible possible users. inside the hosts file I create the group: vars but …

---

## [win\_environment - setting variable to value starting with %](https://forum.ansible.com/t/win-environment-setting-variable-to-value-starting-with/29656)

<div class="topic-metadata">

**Author:** [@Tuyen\_Nguyen](https://forum.ansible.com/u/Tuyen_Nguyen)\
**Replies:** 1\
**Last updated:** [February 12, 2019, 9:21pm UTC](https://forum.ansible.com/t/win-environment-setting-variable-to-value-starting-with/29656 "2019-02-12T21:21:43Z")

</div>

Hi I am trying to set some environment variables to make the value start with %, and I am getting errors. For example, if I wanted to set the TEMP environment to c:\\temp and then I want to set the PATH environment var…

---

## [problem: changing account password with ansible on aix](https://forum.ansible.com/t/problem-changing-account-password-with-ansible-on-aix/29661)

<div class="topic-metadata">

**Author:** [@jzmendo](https://forum.ansible.com/u/jzmendo)\
**Replies:** 1\
**Last updated:** [February 12, 2019, 8:49pm UTC](https://forum.ansible.com/t/problem-changing-account-password-with-ansible-on-aix/29661 "2019-02-12T20:49:34Z")

</div>

Hi. i run my playbook to change user account password but this dont work , not change the password. iam using aix 6 and 7. this same playbook work fine on Linux. this is my simple playbook to change password on a user…

---

## [stop or start application ?](https://forum.ansible.com/t/stop-or-start-application/29648)

<div class="topic-metadata">

**Author:** [@ryad9200000](https://forum.ansible.com/u/ryad9200000)\
**Replies:** 5\
**Last updated:** [February 12, 2019, 6:32pm UTC](https://forum.ansible.com/t/stop-or-start-application/29648 "2019-02-12T18:32:32Z")

</div>

Hello, How to stop or start not a service but an application. This command works but I would like an “ansible syntax” : - name: “stop my application” command: home/ …/ …/my\_application stop This command works but i …

---

## [\--skip-tags equivalent inside playbooks](https://forum.ansible.com/t/skip-tags-equivalent-inside-playbooks/15625)

<div class="topic-metadata">

**Author:** [@Dimon](https://forum.ansible.com/u/Dimon)\
**Replies:** 23\
**Last updated:** [February 12, 2019, 5:37pm UTC](https://forum.ansible.com/t/skip-tags-equivalent-inside-playbooks/15625 "2019-02-12T17:37:35Z")

</div>

Hi everybody, http://docs.ansible.com/playbooks\_tags.html mentions several ways to use tags, one of which is: { role: A, tags: \[t1, t2\] } however cli interface allows for inversion via --skip-tags (which is great BTW…

---

## [Use Ansible jinja2 filter reject in stdout\_lines](https://forum.ansible.com/t/use-ansible-jinja2-filter-reject-in-stdout-lines/29660)

<div class="topic-metadata">

**Author:** [@Pandu\_jh](https://forum.ansible.com/u/Pandu_jh)\
**Replies:** 1\
**Last updated:** [February 12, 2019, 5:35pm UTC](https://forum.ansible.com/t/use-ansible-jinja2-filter-reject-in-stdout-lines/29660 "2019-02-12T17:35:08Z")

</div>

I need to reject “" from stdout lines. all values from stdout\_lines except "” symbol to be saved to “nfs\_clients” variable "stdout\_lines": \[ "rchinnn01", "rchinnn02", "\*" \] - set\_fact…

---

## [Ansible Tower / AWX and project using roles/requirements.yml](https://forum.ansible.com/t/ansible-tower-awx-and-project-using-roles-requirements-yml/29655)

<div class="topic-metadata">

**Author:** [@ajfogg](https://forum.ansible.com/u/ajfogg)\
**Replies:** 1\
**Last updated:** [February 12, 2019, 5:19pm UTC](https://forum.ansible.com/t/ansible-tower-awx-and-project-using-roles-requirements-yml/29655 "2019-02-12T17:19:04Z")

</div>

Hi all, I’m trying to figure out a development strategy for my team and how we produce our Ansible output. We are using Ansible Tower (v3.3.1 but moving to v3.4.1 shortly) and an instance of Github Enterprise to hold o…

---

## [ansible variable conditional tcheck](https://forum.ansible.com/t/ansible-variable-conditional-tcheck/29659)

<div class="topic-metadata">

**Author:** [@ryad9200000](https://forum.ansible.com/u/ryad9200000)\
**Replies:** 2\
**Last updated:** [February 12, 2019, 5:13pm UTC](https://forum.ansible.com/t/ansible-variable-conditional-tcheck/29659 "2019-02-12T17:13:31Z")

</div>

Hi, I have a new problem, When i want test exemple: debug: msg: “ca fonctionne” when: ansible\_user\[5\] == true it don’t works. I want show this message “ca fonctionne” when ansible\_user\[5\] exist So when ansible\_us…

---

## [problem meta: end\_play  with when conditional](https://forum.ansible.com/t/problem-meta-end-play-with-when-conditional/29658)

<div class="topic-metadata">

**Author:** [@ryad9200000](https://forum.ansible.com/u/ryad9200000)\
**Replies:** 5\
**Last updated:** [February 12, 2019, 5:00pm UTC](https://forum.ansible.com/t/problem-meta-end-play-with-when-conditional/29658 "2019-02-12T17:00:54Z")

</div>

Hi all, I have a problem, i think there is a bug in ansible 2.8.0 but when i run this task : pause: prompt: “Voulez-vous effectuer ce deploiement ? (o/n)” register: response debug: msg: “deploiement effectue” …

---

## [Prompt in ansible](https://forum.ansible.com/t/prompt-in-ansible/29657)

<div class="topic-metadata">

**Author:** [@ryad9200000](https://forum.ansible.com/u/ryad9200000)\
**Replies:** 2\
**Last updated:** [February 12, 2019, 3:58pm UTC](https://forum.ansible.com/t/prompt-in-ansible/29657 "2019-02-12T15:58:09Z")

</div>

Hi all, Why when i use prompt in playbook.yml it’s works but not in /roles/tasks/main.yml ?? - vars\_prompt: - name: reponse prompt: “Voulez-vous effectuer ce deploiement ? (o/n)” When i use prompt in my main playboo…

---

## [API: proper way to launch a job and collect its results (variables)?](https://forum.ansible.com/t/api-proper-way-to-launch-a-job-and-collect-its-results-variables/29644)

<div class="topic-metadata">

**Author:** [@os1](https://forum.ansible.com/u/os1)\
**Replies:** 11\
**Last updated:** [February 12, 2019, 1:20pm UTC](https://forum.ansible.com/t/api-proper-way-to-launch-a-job-and-collect-its-results-variables/29644 "2019-02-12T13:20:12Z")

</div>

I am trying to automate some tasks using AWX jobs via API. The playbook has set\_fact or debug with some JSON data. I want to get it after the job finishes. I do: POST to launch the job and get job URL GET in a loop to…

---

## [Ansible - save config - Small business SG 500](https://forum.ansible.com/t/ansible-save-config-small-business-sg-500/29544)

<div class="topic-metadata">

**Author:** [@Jean\_berjonneau](https://forum.ansible.com/u/Jean_berjonneau)\
**Replies:** 4\
**Last updated:** [February 12, 2019, 1:18pm UTC](https://forum.ansible.com/t/ansible-save-config-small-business-sg-500/29544 "2019-02-12T13:18:12Z")

</div>

Ansible version = 2.7.5 Hello all, I am using Ansible to save configurations of all my switches but they are CISCO small businesses. I am curently using a playbook like this : \`

---

## [PLAY RECAP -- Status](https://forum.ansible.com/t/play-recap-status/29651)

<div class="topic-metadata">

**Author:** [@Juraj\_Papic](https://forum.ansible.com/u/Juraj_Papic)\
**Replies:** 7\
**Last updated:** [February 12, 2019, 11:32am UTC](https://forum.ansible.com/t/play-recap-status/29651 "2019-02-12T11:32:58Z")

</div>

Hi all, I need to execute a script every time PLAY RECAP failed=1, how can I configure my Ansible Playbook to do this? Thanks.

---

## [How can I pass extra variables to a shell script in my playbooks](https://forum.ansible.com/t/how-can-i-pass-extra-variables-to-a-shell-script-in-my-playbooks/29652)

<div class="topic-metadata">

**Author:** [@Conor\_Proud](https://forum.ansible.com/u/Conor_Proud)\
**Replies:** 1\
**Last updated:** [February 11, 2019, 8:37pm UTC](https://forum.ansible.com/t/how-can-i-pass-extra-variables-to-a-shell-script-in-my-playbooks/29652 "2019-02-11T20:37:53Z")

</div>

Hi, This looks like the right place for posting questions- but please point me in the right direction if not. I’m using the “extra variables” box on the awx web front-end to provide key-value pairs to a shell script in…

---

## [RFC: jq filter](https://forum.ansible.com/t/rfc-jq-filter/29577)

<div class="topic-metadata">

**Author:** [@moreati](https://forum.ansible.com/u/moreati)\
**Replies:** 6\
**Last updated:** [February 11, 2019, 8:11pm UTC](https://forum.ansible.com/t/rfc-jq-filter/29577 "2019-02-11T20:11:39Z")

</div>

Abstract I would like to contribute a new jq() filter to Ansible, exposing the jq expression language. This would complement the existing json\_query() filter, based on jmespath expressions. I wanted to see if such a fil…

---

## [Running as inexistent non-root user in Docker container](https://forum.ansible.com/t/running-as-inexistent-non-root-user-in-docker-container/29650)

<div class="topic-metadata">

**Author:** [@Luca\_Pireddu](https://forum.ansible.com/u/Luca_Pireddu)\
**Replies:** 2\
**Last updated:** [February 11, 2019, 7:34pm UTC](https://forum.ansible.com/t/running-as-inexistent-non-root-user-in-docker-container/29650 "2019-02-11T19:34:57Z")

</div>

Hello, I’m wondering if anyone can help me run ansible as an inexistent user in a docker container. I’m trying to build a docker container image that runs ansible as a non-root user. It therefore runs the ansible proce…

[Previous page](https://forum.ansible.com/c/archives/31.md?page=311)

[Next page](https://forum.ansible.com/c/archives/31.md?page=313)
