# Latest

**URL:** https://forum.ansible.com/latest.md?page=483

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

**Page:** 484

---

## [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…

---

## [\[WARNING\]: Could not match supplied host pattern ansible 2.7.6](https://forum.ansible.com/t/warning-could-not-match-supplied-host-pattern-ansible-2-7-6/29653)

<div class="topic-metadata">

**Author:** [@aidewuado](https://forum.ansible.com/u/aidewuado)\
**Replies:** 2\
**Last updated:** [February 11, 2019, 7:03pm UTC](https://forum.ansible.com/t/warning-could-not-match-supplied-host-pattern-ansible-2-7-6/29653 "2019-02-11T19:03:56Z")

</div>

Hello community, I am trying to generate a playbook using roles, but at the moment of executing the playbook it does not recognize the inventory hosts and does not execute the ROL My structure: my inventorie .yml: …

---

## [ansible service not work but command work](https://forum.ansible.com/t/ansible-service-not-work-but-command-work/29641)

<div class="topic-metadata">

**Author:** [@ryad9200000](https://forum.ansible.com/u/ryad9200000)\
**Replies:** 9\
**Last updated:** [February 11, 2019, 5:09pm UTC](https://forum.ansible.com/t/ansible-service-not-work-but-command-work/29641 "2019-02-11T17:09:27Z")

</div>

Hi, When i use service in ansible same this task : name: “stop nginx” service: name: nginx state: stopped Same with “become: yes” and “pattern: my\_pattern\_file” but with line “command: sudo systemctl stop nginx” …

---

## [Show all services target host](https://forum.ansible.com/t/show-all-services-target-host/29647)

<div class="topic-metadata">

**Author:** [@ryad9200000](https://forum.ansible.com/u/ryad9200000)\
**Replies:** 4\
**Last updated:** [February 11, 2019, 4:26pm UTC](https://forum.ansible.com/t/show-all-services-target-host/29647 "2019-02-11T16:26:46Z")

</div>

Hi, In localhost, i can write next command in prompt : ansible localhost -m service -a “name=nginx state=started” But how show all services in target host exemple : ansible target\_host -m service -a all it’s not wor…

---

## [AWX 3.0.1](https://forum.ansible.com/t/awx-3-0-1/29649)

<div class="topic-metadata">

**Author:** [@Christopher\_Meyers](https://forum.ansible.com/u/Christopher_Meyers)\
**Replies:** 0\
**Last updated:** [February 11, 2019, 3:28pm UTC](https://forum.ansible.com/t/awx-3-0-1/29649 "2019-02-11T15:28:33Z")

</div>

Hello everyone. Today we are happy to announce the release of AWX 3.0.1. Below are some highlights of what are included in this release: Support arbitrary become plugins Exposed execution node & virtual env path to the…

---

## [Creating API endpoints with AWX](https://forum.ansible.com/t/creating-api-endpoints-with-awx/27668)

<div class="topic-metadata">

**Author:** [@dufusk](https://forum.ansible.com/u/dufusk)\
**Replies:** 5\
**Last updated:** [February 11, 2019, 2:16pm UTC](https://forum.ansible.com/t/creating-api-endpoints-with-awx/27668 "2019-02-11T14:16:44Z")

</div>

I’m posting this here because searching for this topic on google always returns the Ansible Tower API reference guide, and that’s not what i’m looking for. We are using AWX for quite a few projects, one of them being au…

---

## [groups\_vars not working \[inventory\]](https://forum.ansible.com/t/groups-vars-not-working-inventory/29284)

<div class="topic-metadata">

**Author:** [@aidewuado](https://forum.ansible.com/u/aidewuado)\
**Replies:** 7\
**Last updated:** [February 11, 2019, 1:22pm UTC](https://forum.ansible.com/t/groups-vars-not-working-inventory/29284 "2019-02-11T13:22:13Z")

</div>

Hello, im trying to using a groups vars out side of inventory, but not working my file struct: work this form: eco-sql-dev.ini \` \[win-mssql\] lab-sql1.DOMAIN.cl \[win-mssql:vars\] ansible\_user=svc-ansible-dev@DO…

---

## [using groups\_vars in INVENTORY](https://forum.ansible.com/t/using-groups-vars-in-inventory/29321)

<div class="topic-metadata">

**Author:** [@aidewuado](https://forum.ansible.com/u/aidewuado)\
**Replies:** 6\
**Last updated:** [February 11, 2019, 1:20pm UTC](https://forum.ansible.com/t/using-groups-vars-in-inventory/29321 "2019-02-11T13:20:16Z")

</div>

Hello comunity I’m trying to set up “group\_vars” in inventory, but for some reason it does not work. I’ve tried with .ini and .yml files, in both I get the same error: \` ERROR! failed to combine variables, expected d…

[Previous page](https://forum.ansible.com/latest.md?page=482)

[Next page](https://forum.ansible.com/latest.md?page=484)
