# Latest

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

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

**Page:** 768

---

## [Not Working As Expected: main.yml - include something.yml tags=something](https://forum.ansible.com/t/not-working-as-expected-main-yml-include-something-yml-tags-something/21331)

<div class="topic-metadata">

**Author:** [@Jacob1](https://forum.ansible.com/u/Jacob1)\
**Replies:** 1\
**Last updated:** [May 2, 2016, 9:06pm UTC](https://forum.ansible.com/t/not-working-as-expected-main-yml-include-something-yml-tags-something/21331 "2016-05-02T21:06:02Z")

</div>

Hello, I’m writing a new playbook and executing it using ansible 2.1.0. It appears the tags I define in main.yml on an include line are being ignored. By comparison, this works as expected in ansible 1.9.2 Example: ro…

---

## [ansible ne récupére pas les tout les variables d'environnement de la machine distante](https://forum.ansible.com/t/ansible-ne-recupere-pas-les-tout-les-variables-denvironnement-de-la-machine-distante/21327)

<div class="topic-metadata">

**Author:** [@toshywoshy](https://forum.ansible.com/u/toshywoshy)\
**Replies:** 0\
**Last updated:** [May 2, 2016, 9:25am UTC](https://forum.ansible.com/t/ansible-ne-recupere-pas-les-tout-les-variables-denvironnement-de-la-machine-distante/21327 "2016-05-02T09:25:35Z")

</div>

Je pense que le module 'shell' ne peut pas utiliser des pipes/outputs, il utilise le python outputs (http://docs.ansible.com/ansible/shell\_module.html#return-values) pour ça vous devez utilizer le module 'raw' Votre act…

---

## [Query Regarding when condition](https://forum.ansible.com/t/query-regarding-when-condition/21314)

<div class="topic-metadata">

**Author:** [@Suresh\_Uppu](https://forum.ansible.com/u/Suresh_Uppu)\
**Replies:** 8\
**Last updated:** [May 2, 2016, 6:21am UTC](https://forum.ansible.com/t/query-regarding-when-condition/21314 "2016-05-02T06:21:34Z")

</div>

Hi, I am installing python-setuptools. I am have my play book like that to insatll on Suse and Redhat name: installing python-setuptools yum: name=python-setuptools state=latest when: ansible\_os\_family == “RedHat” …

---

## [Ansible with GitHub and Jenkins](https://forum.ansible.com/t/ansible-with-github-and-jenkins/21326)

<div class="topic-metadata">

**Author:** [@abidewan7](https://forum.ansible.com/u/abidewan7)\
**Replies:** 0\
**Last updated:** [May 2, 2016, 6:03am UTC](https://forum.ansible.com/t/ansible-with-github-and-jenkins/21326 "2016-05-02T06:03:06Z")

</div>

Hi Guys, I’m looking for a step by step process to configure GitHub, Jenkins (CI) and Ansible (CD) so that a code from local machine to → Github → Jenkins (CI) → Ansible (CD) → local or EC2 can be deployed. Also lookin…

---

## [storing/inserting Ansible facts into mysql database](https://forum.ansible.com/t/storing-inserting-ansible-facts-into-mysql-database/21322)

<div class="topic-metadata">

**Author:** [@Anil\_Dasmala](https://forum.ansible.com/u/Anil_Dasmala)\
**Replies:** 0\
**Last updated:** [May 1, 2016, 4:32pm UTC](https://forum.ansible.com/t/storing-inserting-ansible-facts-into-mysql-database/21322 "2016-05-01T16:32:55Z")

</div>

Hi Guys, I wanted to store facts of all servers(setup module data/output) into mysql database(for easy custom facts retrieval later) Can someone please give ideas on how to achieve this. Thanks in advance. –Anil

---

## [Force to gather fact even if gathering is set to smart](https://forum.ansible.com/t/force-to-gather-fact-even-if-gathering-is-set-to-smart/21310)

<div class="topic-metadata">

**Author:** [@Jurgen\_Haas2](https://forum.ansible.com/u/Jurgen_Haas2)\
**Replies:** 1\
**Last updated:** [May 1, 2016, 11:41am UTC](https://forum.ansible.com/t/force-to-gather-fact-even-if-gathering-is-set-to-smart/21310 "2016-05-01T11:41:41Z")

</div>

How can I force setup to run on a play even if the Ansible config file is set to gathering strategy of smart. When I include gather\_facts: True for a play, it is just ignored while the facts file for a host is availab…

---

## [Linux shadow password file chage module](https://forum.ansible.com/t/linux-shadow-password-file-chage-module/21320)

<div class="topic-metadata">

**Author:** [@John\_Buxton](https://forum.ansible.com/u/John_Buxton)\
**Replies:** 0\
**Last updated:** [May 1, 2016, 9:28am UTC](https://forum.ansible.com/t/linux-shadow-password-file-chage-module/21320 "2016-05-01T09:28:32Z")

</div>

Hello Ansible Developers, A little while ago I wrote an Ansible “chage” module in Python. https://galaxy.ansible.com/lqueryvg/chage/ It provides proper & efficient read & write access to the Linux /etc/shadow file via…

---

## [Possible bug: Using file to create directories recursively does not ensure owner/group](https://forum.ansible.com/t/possible-bug-using-file-to-create-directories-recursively-does-not-ensure-owner-group/21319)

<div class="topic-metadata">

**Author:** [@Johannes\_Kastl](https://forum.ansible.com/u/Johannes_Kastl)\
**Replies:** 0\
**Last updated:** [May 1, 2016, 9:07am UTC](https://forum.ansible.com/t/possible-bug-using-file-to-create-directories-recursively-does-not-ensure-owner-group/21319 "2016-05-01T09:07:48Z")

</div>

Hi all, using this snipped creates the directories foo, bar and xyz with the correct owner. - name: Create directories file: dest=/foo/bar/xyz owner=0 group=0 mode=0755 state=directory recurse=yes If a directory …

---

## [Replace IP by another en replace module](https://forum.ansible.com/t/replace-ip-by-another-en-replace-module/21274)

<div class="topic-metadata">

**Author:** [@Cavette](https://forum.ansible.com/u/Cavette)\
**Replies:** 1\
**Last updated:** [April 30, 2016, 11:35am UTC](https://forum.ansible.com/t/replace-ip-by-another-en-replace-module/21274 "2016-04-30T11:35:27Z")

</div>

Hello, I’m trying to replace an Ip address by anoher in a file but it doesn’t work : Initial file contains : My code below doesn’t work (invalid group reference) : name : Change IP in file replace: dest=myfile.xml…

---

## [ansible integration tests initiative](https://forum.ansible.com/t/ansible-integration-tests-initiative/21318)

<div class="topic-metadata">

**Author:** [@Rene\_Moser](https://forum.ansible.com/u/Rene_Moser)\
**Replies:** 0\
**Last updated:** [April 30, 2016, 11:26am UTC](https://forum.ansible.com/t/ansible-integration-tests-initiative/21318 "2016-04-30T11:26:58Z")

</div>

Hi To fast forward running integratino tests on outstanding PRs, I created a simple integration test setup to run tests on any PR by giving a few parameters. I started to run integration tests on Debian related distr…

---

## [Order of roles execution in playbook](https://forum.ansible.com/t/order-of-roles-execution-in-playbook/21286)

<div class="topic-metadata">

**Author:** [@Jim\_Richard](https://forum.ansible.com/u/Jim_Richard)\
**Replies:** 2\
**Last updated:** [April 30, 2016, 2:19am UTC](https://forum.ansible.com/t/order-of-roles-execution-in-playbook/21286 "2016-04-30T02:19:24Z")

</div>

I have the following that as of 1.9.4, executed the roles in the order in which they are listed: hosts: all max\_fail\_percentage: 0 gather\_facts: no roles: repositories yum-packages pip-packages java With Ansible 2.…

---

## [How to set an Ansible tier-specific inventory variable?](https://forum.ansible.com/t/how-to-set-an-ansible-tier-specific-inventory-variable/21317)

<div class="topic-metadata">

**Author:** [@Robert\_F](https://forum.ansible.com/u/Robert_F)\
**Replies:** 5\
**Last updated:** [April 29, 2016, 9:59pm UTC](https://forum.ansible.com/t/how-to-set-an-ansible-tier-specific-inventory-variable/21317 "2016-04-29T21:59:28Z")

</div>

Is it possible to create an Ansible inventory variable that isn’t associated with an inventory host or group but the server tier the playbook is run on? I have an Ansible role that installs the libffi-dev package using A…

---

## [Can you override $HOME/.ansible/cp on remote hosts?](https://forum.ansible.com/t/can-you-override-home-ansible-cp-on-remote-hosts/21308)

<div class="topic-metadata">

**Author:** [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Replies:** 1\
**Last updated:** [April 29, 2016, 9:20pm UTC](https://forum.ansible.com/t/can-you-override-home-ansible-cp-on-remote-hosts/21308 "2016-04-29T21:20:32Z")

</div>

It is documented: http://docs.ansible.com/ansible/intro\_configuration.html#control-path

---

## [Fact gathering times out](https://forum.ansible.com/t/fact-gathering-times-out/21316)

<div class="topic-metadata">

**Author:** [@E.C\_Raymond](https://forum.ansible.com/u/E.C_Raymond)\
**Replies:** 0\
**Last updated:** [April 29, 2016, 4:11pm UTC](https://forum.ansible.com/t/fact-gathering-times-out/21316 "2016-04-29T16:11:32Z")

</div>

I am seeing a problem with Ansible (1.9.4) and Debian 7 (wheezy) timing out and failing on gathering facts, specifically with autofs/network mounted volumes. Its not limited to a specific host, as it is happening at rand…

---

## [i want to use environments variables of the remote host .](https://forum.ansible.com/t/i-want-to-use-environments-variables-of-the-remote-host/21315)

<div class="topic-metadata">

**Author:** [@imed\_khaskhoussi](https://forum.ansible.com/u/imed_khaskhoussi)\
**Replies:** 1\
**Last updated:** [April 29, 2016, 4:05pm UTC](https://forum.ansible.com/t/i-want-to-use-environments-variables-of-the-remote-host/21315 "2016-04-29T16:05:11Z")

</div>

Hi there, i want to use variables from the remote host i tried to save for example the variable JAVA\_HOME existing in the remote host in a file , but the file is empty . ansible can’t find this variable . is there any…

---

## [Manage environment variables](https://forum.ansible.com/t/manage-environment-variables/21313)

<div class="topic-metadata">

**Author:** [@Stefano](https://forum.ansible.com/u/Stefano)\
**Replies:** 0\
**Last updated:** [April 29, 2016, 11:33am UTC](https://forum.ansible.com/t/manage-environment-variables/21313 "2016-04-29T11:33:02Z")

</div>

I need set the environment variable to build some app at startup, i use vars in the playbook file: --- - hosts: all sudo: yes vars: build\_env: VAR1: value1 VAR2: value2 VAR3: value3 And set…

---

## [docker ansible](https://forum.ansible.com/t/docker-ansible/21299)

<div class="topic-metadata">

**Author:** [@Vladimir\_Nomkhoev](https://forum.ansible.com/u/Vladimir_Nomkhoev)\
**Replies:** 2\
**Last updated:** [April 29, 2016, 9:06am UTC](https://forum.ansible.com/t/docker-ansible/21299 "2016-04-29T09:06:07Z")

</div>

Hi, docker run -it --name ansible ansible/ansible:centos7 /bin/bash \[root@a4b2235393a4 bin\]# ansible bash: ansible: command not found How to run ansible under docker container? Best Regards.

---

## [Distribution Version detection: please test and add more test cases](https://forum.ansible.com/t/distribution-version-detection-please-test-and-add-more-test-cases/21291)

<div class="topic-metadata">

**Author:** [@Robin\_Roth](https://forum.ansible.com/u/Robin_Roth)\
**Replies:** 2\
**Last updated:** [April 29, 2016, 8:04am UTC](https://forum.ansible.com/t/distribution-version-detection-please-test-and-add-more-test-cases/21291 "2016-04-29T08:04:01Z")

</div>

Hello, the code that fills the ‘ansible\_distribution\_\*’ variables grew fairly complex, so I cleaned it up. This was merged to devel (for 2.2) today, see https://github.com/ansible/ansible/pull/15221 While cleaning it u…

---

## [question / help needed with conditionally passing variables to a module](https://forum.ansible.com/t/question-help-needed-with-conditionally-passing-variables-to-a-module/21287)

<div class="topic-metadata">

**Author:** [@nrser](https://forum.ansible.com/u/nrser)\
**Replies:** 4\
**Last updated:** [April 29, 2016, 7:08am UTC](https://forum.ansible.com/t/question-help-needed-with-conditionally-passing-variables-to-a-module/21287 "2016-04-29T07:08:26Z")

</div>

i have a role that can optionally be provided a rbenv\_gem\_version variable that should then be optionally provided to the gem module in it’s tasks. this seems very difficult to do with a large amount of copy-pasta due t…

---

## [template: shows change every time but no change?](https://forum.ansible.com/t/template-shows-change-every-time-but-no-change/21307)

<div class="topic-metadata">

**Author:** [@Bob\_Tanner](https://forum.ansible.com/u/Bob_Tanner)\
**Replies:** 2\
**Last updated:** [April 29, 2016, 4:16am UTC](https://forum.ansible.com/t/template-shows-change-every-time-but-no-change/21307 "2016-04-29T04:16:56Z")

</div>

$ ansible --version ansible 2.2.0 (devel 7af47a3886) last updated 2016/04/28 13:40:56 (GMT -500) lib/ansible/modules/core: (detached HEAD e78ee3b128) last updated 2016/04/28 13:40:56 (GMT -500) lib/ansible/modules/ext…

---

## [Storing facts on remote hosts](https://forum.ansible.com/t/storing-facts-on-remote-hosts/21304)

<div class="topic-metadata">

**Author:** [@Volodymyr\_Linevych](https://forum.ansible.com/u/Volodymyr_Linevych)\
**Replies:** 1\
**Last updated:** [April 28, 2016, 11:31pm UTC](https://forum.ansible.com/t/storing-facts-on-remote-hosts/21304 "2016-04-28T23:31:47Z")

</div>

Hello, Ansible users! I am trying to make a group of variables persistent on hosts, preferably as a text file. I was using puppet+facter before and now I’m looking for a native way to accomplish this with ansible. My …

---

## [Can you override location for "cp" folder on remote hosts?](https://forum.ansible.com/t/can-you-override-location-for-cp-folder-on-remote-hosts/21303)

<div class="topic-metadata">

**Author:** [@John\_Leo\_Huetter](https://forum.ansible.com/u/John_Leo_Huetter)\
**Replies:** 3\
**Last updated:** [April 28, 2016, 10:40pm UTC](https://forum.ansible.com/t/can-you-override-location-for-cp-folder-on-remote-hosts/21303 "2016-04-28T22:40:20Z")

</div>

Hello, Our UNIX administrators are trying to root lock all home directories (/export/home/), including the user which Ansible uses (username: test). As such, when I send an Ansible command it fails due to the inability…

---

## [struggling with include files](https://forum.ansible.com/t/struggling-with-include-files/21297)

<div class="topic-metadata">

**Author:** [@Paul\_Davies](https://forum.ansible.com/u/Paul_Davies)\
**Replies:** 4\
**Last updated:** [April 28, 2016, 9:03pm UTC](https://forum.ansible.com/t/struggling-with-include-files/21297 "2016-04-28T21:03:49Z")

</div>

I am seriously struggling with trying to include yml files in my top level play I have prereqcheck.yml in which I want to set the host for the rest of the included files to use

---

## [Bug in apt-get ubuntu package](https://forum.ansible.com/t/bug-in-apt-get-ubuntu-package/21306)

<div class="topic-metadata">

**Author:** [@Baratali\_Izmailov](https://forum.ansible.com/u/Baratali_Izmailov)\
**Replies:** 0\
**Last updated:** [April 28, 2016, 5:15pm UTC](https://forum.ansible.com/t/bug-in-apt-get-ubuntu-package/21306 "2016-04-28T17:15:01Z")

</div>

Hello. I faced a bug when ansible-playbook incorrectly process “sudo\_flags = -i” property and, therefore, sudo doesn’t load “.profile” file with all my env variables needed for deploying. I installed ansible on my ubun…

---

## [Problems On v2 S3 Checksum Overwrite](https://forum.ansible.com/t/problems-on-v2-s3-checksum-overwrite/21305)

<div class="topic-metadata">

**Author:** [@Tennis\_Smith](https://forum.ansible.com/u/Tennis_Smith)\
**Replies:** 0\
**Last updated:** [April 28, 2016, 5:00pm UTC](https://forum.ansible.com/t/problems-on-v2-s3-checksum-overwrite/21305 "2016-04-28T17:00:26Z")

</div>

Hi Guys, Opened this months ago, but nothing has happened. Its a pretty significant problem, so the hope was it would have gotten some attention by now. Is there something I need to add? TIA, -T

---

## [Lookup in a csv file with a multiple field key](https://forum.ansible.com/t/lookup-in-a-csv-file-with-a-multiple-field-key/21296)

<div class="topic-metadata">

**Author:** [@fanvalt](https://forum.ansible.com/u/fanvalt)\
**Replies:** 2\
**Last updated:** [April 28, 2016, 2:36pm UTC](https://forum.ansible.com/t/lookup-in-a-csv-file-with-a-multiple-field-key/21296 "2016-04-28T14:36:49Z")

</div>

Hello, my csv file has the “,” delimiter and is this way: buddy,dv19,toto eric,dv05,toto buddy,dv05,toto I can easily use the lookup command on a single key like buddy or eric or dv19 or dv05. How could I proceed t…

---

## [Ansible parsing error](https://forum.ansible.com/t/ansible-parsing-error/21298)

<div class="topic-metadata">

**Author:** [@anderson.goulart](https://forum.ansible.com/u/anderson.goulart)\
**Replies:** 1\
**Last updated:** [April 28, 2016, 1:48pm UTC](https://forum.ansible.com/t/ansible-parsing-error/21298 "2016-04-28T13:48:58Z")

</div>

Hi, I am struggling with an issue that seems to be a bug introduced in newer versions of ansible or something could have changed the way of work/thinking. I want to create dynamic group vars // site.yml

---

## [user.state](https://forum.ansible.com/t/user-state/21266)

<div class="topic-metadata">

**Author:** [@Jameson](https://forum.ansible.com/u/Jameson)\
**Replies:** 12\
**Last updated:** [April 28, 2016, 12:34pm UTC](https://forum.ansible.com/t/user-state/21266 "2016-04-28T12:34:30Z")

</div>

Is it currently possible to have a conditional like: when: “{{ item }}.user.state == present” Thanks.

---

## [struggling with include files](https://forum.ansible.com/t/struggling-with-include-files/21295)

<div class="topic-metadata">

**Author:** [@Paul\_Davies1](https://forum.ansible.com/u/Paul_Davies1)\
**Replies:** 2\
**Last updated:** [April 28, 2016, 12:09pm UTC](https://forum.ansible.com/t/struggling-with-include-files/21295 "2016-04-28T12:09:40Z")

</div>

I am seriously struggling with trying to include yml files in my top level play I have prereqcheck.yml in which I want to set the host for the rest of the included files to use

---

## [How do I execute Playbooks sequentially for instances not hosts](https://forum.ansible.com/t/how-do-i-execute-playbooks-sequentially-for-instances-not-hosts/21290)

<div class="topic-metadata">

**Author:** [@Santhi](https://forum.ansible.com/u/Santhi)\
**Replies:** 1\
**Last updated:** [April 28, 2016, 12:05pm UTC](https://forum.ansible.com/t/how-do-i-execute-playbooks-sequentially-for-instances-not-hosts/21290 "2016-04-28T12:05:57Z")

</div>

We have 4 instances on a server and I am passing the sever with --limit. Now I want to execute all the tasks for playbook for each domain Mentioning serial:1, is executing tasks sequentially for server but not instances…

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

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