# Latest

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

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

**Page:** 936

---

## [multiple multi-line parsing regressions](https://forum.ansible.com/t/multiple-multi-line-parsing-regressions/16189)

<div class="topic-metadata">

**Author:** [@Abhijit\_Menon-Sen2](https://forum.ansible.com/u/Abhijit_Menon-Sen2)\
**Replies:** 6\
**Last updated:** [September 19, 2014, 5:05am UTC](https://forum.ansible.com/t/multiple-multi-line-parsing-regressions/16189 "2014-09-19T05:05:36Z")

</div>

Hi. I have a vars/foo.yml file that contains: foo: |

---

## [Way for a role to refer to files relative to the role?](https://forum.ansible.com/t/way-for-a-role-to-refer-to-files-relative-to-the-role/16284)

<div class="topic-metadata">

**Author:** [@Marc\_Abramowitz](https://forum.ansible.com/u/Marc_Abramowitz)\
**Replies:** 1\
**Last updated:** [September 19, 2014, 3:52am UTC](https://forum.ansible.com/t/way-for-a-role-to-refer-to-files-relative-to-the-role/16284 "2014-09-19T03:52:27Z")

</div>

So roles have a “files” directory and for some actions and attributes they are evaluated relative to this directory (e.g.: the “src” attribute of the “copy” module). So with: roles/common/tasks/main.yml name: Copy in s…

---

## [What if a remote environment variable doesn't exist? Ansible take this as an fatal error. How to avoid that?](https://forum.ansible.com/t/what-if-a-remote-environment-variable-doesnt-exist-ansible-take-this-as-an-fatal-error-how-to-avoid-that/16269)

<div class="topic-metadata">

**Author:** [@Zhenkai\_Jiang](https://forum.ansible.com/u/Zhenkai_Jiang)\
**Replies:** 2\
**Last updated:** [September 19, 2014, 3:27am UTC](https://forum.ansible.com/t/what-if-a-remote-environment-variable-doesnt-exist-ansible-take-this-as-an-fatal-error-how-to-avoid-that/16269 "2014-09-19T03:27:29Z")

</div>

I want to do some check using remote environment variables, which can be read from format like this {{ ansible\_env.NGINX\_HOME }} This "path" or environment variable can be absent, and that's the purpose of that check…

---

## [Which user to run plays?](https://forum.ansible.com/t/which-user-to-run-plays/16278)

<div class="topic-metadata">

**Author:** [@Skyler\_Slade](https://forum.ansible.com/u/Skyler_Slade)\
**Replies:** 5\
**Last updated:** [September 18, 2014, 9:20pm UTC](https://forum.ansible.com/t/which-user-to-run-plays/16278 "2014-09-18T21:20:41Z")

</div>

Presently I do all system administration for my organization. Another colleague will soon be handling some administration duties. I have configured Ansible to add his user using the user module. In testing this, I also c…

---

## [Unable to create docker container with docker module](https://forum.ansible.com/t/unable-to-create-docker-container-with-docker-module/16230)

<div class="topic-metadata">

**Author:** [@louis\_gueye](https://forum.ansible.com/u/louis_gueye)\
**Replies:** 4\
**Last updated:** [September 18, 2014, 6:31pm UTC](https://forum.ansible.com/t/unable-to-create-docker-container-with-docker-module/16230 "2014-09-18T18:31:34Z")

</div>

Hi all, I’ve been trying the docker module and I’m facing permission issues. My use case is the following: I installed ansible (ubuntu package 1.7.1), python pip (ubuntu package), docker-py (pip package) I created a …

---

## [Printing Information During Module Execution](https://forum.ansible.com/t/printing-information-during-module-execution/16277)

<div class="topic-metadata">

**Author:** [@Brian\_Shef](https://forum.ansible.com/u/Brian_Shef)\
**Replies:** 0\
**Last updated:** [September 18, 2014, 4:29pm UTC](https://forum.ansible.com/t/printing-information-during-module-execution/16277 "2014-09-18T16:29:31Z")

</div>

I would like to know if there is a way to print information while a module is executing – primarily as a means to demonstrate that the process is working and has not hung. Specifically, I am trying to get feedback during…

---

## [tower up and \<almost\> running](https://forum.ansible.com/t/tower-up-and-almost-running/16275)

<div class="topic-metadata">

**Author:** [@Frank3](https://forum.ansible.com/u/Frank3)\
**Replies:** 2\
**Last updated:** [September 18, 2014, 4:02pm UTC](https://forum.ansible.com/t/tower-up-and-almost-running/16275 "2014-09-18T16:02:05Z")

</div>

Hi guys, Finally I had time to install and setup Tower. After 10mins I had it up and running. I am following the PDF and everything went fine until I tried to add a project with a git based project. After adding git …

---

## [Ansible 1.7.1 : Slowness at playbook startup](https://forum.ansible.com/t/ansible-1-7-1-slowness-at-playbook-startup/16270)

<div class="topic-metadata">

**Author:** [@Ludovic\_Petetin](https://forum.ansible.com/u/Ludovic_Petetin)\
**Replies:** 2\
**Last updated:** [September 18, 2014, 2:33pm UTC](https://forum.ansible.com/t/ansible-1-7-1-slowness-at-playbook-startup/16270 "2014-09-18T14:33:44Z")

</div>

Here is a simple playbook test.yml:

---

## [parsing repository urls - not yet fixed?](https://forum.ansible.com/t/parsing-repository-urls-not-yet-fixed/16262)

<div class="topic-metadata">

**Author:** [@Tobias\_Gesellchen](https://forum.ansible.com/u/Tobias_Gesellchen)\
**Replies:** 3\
**Last updated:** [September 18, 2014, 2:24pm UTC](https://forum.ansible.com/t/parsing-repository-urls-not-yet-fixed/16262 "2014-09-18T14:24:11Z")

</div>

Hi, the recent changes regarding the repository strings with private registry urls seem to be missing a detail. Looking at the changes for https://github.com/ansible/ansible/issues/8983 only the trailing tag seems to be…

---

## [Best practices with app/database dependencies](https://forum.ansible.com/t/best-practices-with-app-database-dependencies/16274)

<div class="topic-metadata">

**Author:** [@Strahinja\_Kustudic2](https://forum.ansible.com/u/Strahinja_Kustudic2)\
**Replies:** 1\
**Last updated:** [September 18, 2014, 2:16pm UTC](https://forum.ansible.com/t/best-practices-with-app-database-dependencies/16274 "2014-09-18T14:16:53Z")

</div>

A lot of applications depend on a database and since databases are used very often, we usually have a separate role for installing a database and a role for installing an application. So if we have two roles: db and app,…

---

## [How to abort just one role and let the others run](https://forum.ansible.com/t/how-to-abort-just-one-role-and-let-the-others-run/16254)

<div class="topic-metadata">

**Author:** [@P11](https://forum.ansible.com/u/P11)\
**Replies:** 9\
**Last updated:** [September 18, 2014, 6:40am UTC](https://forum.ansible.com/t/how-to-abort-just-one-role-and-let-the-others-run/16254 "2014-09-18T06:40:55Z")

</div>

Hi all, we have a playbook with several roles in it: roles: role1 role2 role3 role4 role5 roleX … These roles install some software but each checks at the very begin if the software is already installed and if it …

---

## [installing python apps in an isolated virtualenv](https://forum.ansible.com/t/installing-python-apps-in-an-isolated-virtualenv/16266)

<div class="topic-metadata">

**Author:** [@Jeremiah\_Campbell](https://forum.ansible.com/u/Jeremiah_Campbell)\
**Replies:** 0\
**Last updated:** [September 18, 2014, 4:51am UTC](https://forum.ansible.com/t/installing-python-apps-in-an-isolated-virtualenv/16266 "2014-09-18T04:51:36Z")

</div>

There are a lot of python utilities that in a perfect world would live in their own virtualenv and not mess with the system python. A project called pipsi does this locally: https://github.com/mitsuhiko/pipsi I have f…

---

## [Task Group](https://forum.ansible.com/t/task-group/16258)

<div class="topic-metadata">

**Author:** [@Hilco\_Wijbenga](https://forum.ansible.com/u/Hilco_Wijbenga)\
**Replies:** 3\
**Last updated:** [September 17, 2014, 5:38pm UTC](https://forum.ansible.com/t/task-group/16258 "2014-09-17T17:38:58Z")

</div>

Hi all, Is there a way to group tasks (below the level of a role)? Perhaps with something with tags? I would like to conditionally run or not run a group of tasks. That would avoid the need to add a "when:" clause fo…

---

## [How to remember state?](https://forum.ansible.com/t/how-to-remember-state/16257)

<div class="topic-metadata">

**Author:** [@Hilco\_Wijbenga](https://forum.ansible.com/u/Hilco_Wijbenga)\
**Replies:** 1\
**Last updated:** [September 17, 2014, 5:31pm UTC](https://forum.ansible.com/t/how-to-remember-state/16257 "2014-09-17T17:31:01Z")

</div>

Hi all, Let's say we have a role-a with two tasks: task-1 and task-2. Task-2 only runs if task-1 has triggered a change. So far, so good. But what happens when task-2 fails? If we rerun role-a then task-1 will not tr…

---

## [Multiple ansible install versions on same control host](https://forum.ansible.com/t/multiple-ansible-install-versions-on-same-control-host/16259)

<div class="topic-metadata">

**Author:** [@Bk\_Lau](https://forum.ansible.com/u/Bk_Lau)\
**Replies:** 1\
**Last updated:** [September 17, 2014, 4:11pm UTC](https://forum.ansible.com/t/multiple-ansible-install-versions-on-same-control-host/16259 "2014-09-17T16:11:00Z")

</div>

Hi : I have a single control host that I would like to install different versions of Ansible to by placing each versions in their own separate directory. So, say, I want to execute a playbook1.yml using ansible version…

---

## [Gathering facts takes forever when host machine is offline](https://forum.ansible.com/t/gathering-facts-takes-forever-when-host-machine-is-offline/14011)

<div class="topic-metadata">

**Author:** [@Steven\_Haddox](https://forum.ansible.com/u/Steven_Haddox)\
**Replies:** 10\
**Last updated:** [September 17, 2014, 2:36pm UTC](https://forum.ansible.com/t/gathering-facts-takes-forever-when-host-machine-is-offline/14011 "2014-09-17T14:36:43Z")

</div>

When I'm trying to develop my play books while offline on my laptop (using vagrant for my Ansible provisioned server) I'm seeing really long hangs on the GATHERING FACTS task (as in the order of 3-5 minutes). After it ev…

---

## [Force color output?](https://forum.ansible.com/t/force-color-output/16250)

<div class="topic-metadata">

**Author:** [@Jason\_Harris](https://forum.ansible.com/u/Jason_Harris)\
**Replies:** 2\
**Last updated:** [September 17, 2014, 8:28am UTC](https://forum.ansible.com/t/force-color-output/16250 "2014-09-17T08:28:26Z")

</div>

Hi All, I am trying to capture ansible output with a python subprocess command. If I capture: childProcess = subprocess.Popen(“ansible-playbook …”, shell=True, subprocess.PIPE, subprocess.PIPE, cwd=dir) res = childPro…

---

## [Separate "users" for normal and "sudo" operations](https://forum.ansible.com/t/separate-users-for-normal-and-sudo-operations/13872)

<div class="topic-metadata">

**Author:** [@Mikhail\_Sobolev](https://forum.ansible.com/u/Mikhail_Sobolev)\
**Replies:** 6\
**Last updated:** [September 17, 2014, 8:18am UTC](https://forum.ansible.com/t/separate-users-for-normal-and-sudo-operations/13872 "2014-09-17T08:18:07Z")

</div>

Hi, I have a setup where the remote sites are cygwin machines. The main problem is that sudo is not available in any way (at least, I could not find any information on how to achieve this kind of functionality). The q…

---

## [set facts with loops](https://forum.ansible.com/t/set-facts-with-loops/16238)

<div class="topic-metadata">

**Author:** [@Adham\_H](https://forum.ansible.com/u/Adham_H)\
**Replies:** 4\
**Last updated:** [September 17, 2014, 7:10am UTC](https://forum.ansible.com/t/set-facts-with-loops/16238 "2014-09-17T07:10:48Z")

</div>

Hey, I am looking to concatenate variables in an array from a with\_fileglob but i am not sure that set\_fact works with loops \` hosts : all vars: myfiles : \[“old”\] tasks: name: “facts” set\_fact: myfiles: “{{ \[ite…

---

## [Boto problems with ansible playbook](https://forum.ansible.com/t/boto-problems-with-ansible-playbook/16253)

<div class="topic-metadata">

**Author:** [@Federico\_Aguirre](https://forum.ansible.com/u/Federico_Aguirre)\
**Replies:** 1\
**Last updated:** [September 17, 2014, 2:01am UTC](https://forum.ansible.com/t/boto-problems-with-ansible-playbook/16253 "2014-09-17T02:01:51Z")

</div>

Hi there.! I’m having a issue with a playbook using Route53 mod.! It fails saying:

---

## [lookup inside default issue](https://forum.ansible.com/t/lookup-inside-default-issue/16176)

<div class="topic-metadata">

**Author:** [@Sergey\_Sudakovich](https://forum.ansible.com/u/Sergey_Sudakovich)\
**Replies:** 2\
**Last updated:** [September 16, 2014, 11:37pm UTC](https://forum.ansible.com/t/lookup-inside-default-issue/16176 "2014-09-16T23:37:47Z")

</div>

Can not figure out what is going on here: tasks: jenkins\_job: uri={{jenkins\_uri}} username={{jusername}} password={{jpassword}} name=“{{branch}}{{item\[0\]}}{{item\[1\].dut | regex\_replace(‘-\\d+$’, ‘’) }}” config=“bra…

---

## [specify --vault-password-file in ansible.cfg file](https://forum.ansible.com/t/specify-vault-password-file-in-ansible-cfg-file/16239)

<div class="topic-metadata">

**Author:** [@Jason\_Harris](https://forum.ansible.com/u/Jason_Harris)\
**Replies:** 7\
**Last updated:** [September 16, 2014, 9:22pm UTC](https://forum.ansible.com/t/specify-vault-password-file-in-ansible-cfg-file/16239 "2014-09-16T21:22:49Z")

</div>

Hi All, It would be handy to be able to specify a default vault-password-file in the ansible configuration file. That way when we are operating within the ansible role we can easily encrypt, edit, and decrypt files with…

---

## [yum install @group](https://forum.ansible.com/t/yum-install-group/16249)

<div class="topic-metadata">

**Author:** [@Hilco\_Wijbenga](https://forum.ansible.com/u/Hilco_Wijbenga)\
**Replies:** 5\
**Last updated:** [September 16, 2014, 8:58pm UTC](https://forum.ansible.com/t/yum-install-group/16249 "2014-09-16T20:58:02Z")

</div>

Hi all, I noticed that using "yum: name='@group'" always results in "changed" even when the group has already been installed. Is there a way to get "ok" when nothing needs to be done? Cheers, Hilco

---

## [Error reporting for authorized\_key module](https://forum.ansible.com/t/error-reporting-for-authorized-key-module/15009)

<div class="topic-metadata">

**Author:** [@Francisco\_Reyes](https://forum.ansible.com/u/Francisco_Reyes)\
**Replies:** 5\
**Last updated:** [September 16, 2014, 7:52pm UTC](https://forum.ansible.com/t/error-reporting-for-authorized-key-module/15009 "2014-09-16T19:52:40Z")

</div>

If the key file to read is not found, shouldn’t the authorized\_key module report an error? Have this in a playbook name: Manage keys for users authorized\_key: user={{item.uname}} key=“{{lookup(‘file’,‘~/Ansible/keys/…

---

## [How to avoid repetitive entries?](https://forum.ansible.com/t/how-to-avoid-repetitive-entries/16248)

<div class="topic-metadata">

**Author:** [@Hilco\_Wijbenga](https://forum.ansible.com/u/Hilco_Wijbenga)\
**Replies:** 4\
**Last updated:** [September 16, 2014, 6:49pm UTC](https://forum.ansible.com/t/how-to-avoid-repetitive-entries/16248 "2014-09-16T18:49:00Z")

</div>

Hi all, I have a "user-vars.yml" file that contains a user and password. I also want to set "sudo: True" and "remote\_user: root". Right now I repeat all that per hosts entry:

---

## [issue (#8998) is not fixed!](https://forum.ansible.com/t/issue-8998-is-not-fixed/16234)

<div class="topic-metadata">

**Author:** [@Vadim\_Shkolin](https://forum.ansible.com/u/Vadim_Shkolin)\
**Replies:** 2\
**Last updated:** [September 16, 2014, 5:11pm UTC](https://forum.ansible.com/t/issue-8998-is-not-fixed/16234 "2014-09-16T17:11:23Z")

</div>

\` \[cfg@cfg test\]$ ansible-playbook --diff -v --check -c local -i ‘127.0.0.1,’ test.yml PLAY \[all\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* GATHERING FACTS \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [git module, accept\_hostkey=yes doesn't work](https://forum.ansible.com/t/git-module-accept-hostkey-yes-doesnt-work/15119)

<div class="topic-metadata">

**Author:** [@Damjan\_Georgievski](https://forum.ansible.com/u/Damjan_Georgievski)\
**Replies:** 4\
**Last updated:** [September 16, 2014, 5:10pm UTC](https://forum.ansible.com/t/git-module-accept-hostkey-yes-doesnt-work/15119 "2014-09-16T17:10:02Z")

</div>

I'm running the task: - name: Cloning homepage repo... sudo\_user: gitpull git: repo=ssh://git@git.server.com:222/websites/homepage.com.git dest=/var/www/{{ branch}}/ version={{ branch }} accept\_hostkey=yes changed…

---

## [Trouble using with\_items and when: stdout == 0](https://forum.ansible.com/t/trouble-using-with-items-and-when-stdout-0/16212)

<div class="topic-metadata">

**Author:** [@Patrick\_Ansible-ML](https://forum.ansible.com/u/Patrick_Ansible-ML)\
**Replies:** 2\
**Last updated:** [September 16, 2014, 4:21pm UTC](https://forum.ansible.com/t/trouble-using-with-items-and-when-stdout-0/16212 "2014-09-16T16:21:14Z")

</div>

Hi, I'm trying to do two simple things: - check if a user is present in sshd\_config AllowUsers - if not, add the user to the AllowUsers line Sounds simple enough yet my Ansible foo is still lacking severly. The probl…

---

## [authorized\_keys](https://forum.ansible.com/t/authorized-keys/16247)

<div class="topic-metadata">

**Author:** [@Frank3](https://forum.ansible.com/u/Frank3)\
**Replies:** 1\
**Last updated:** [September 16, 2014, 4:17pm UTC](https://forum.ansible.com/t/authorized-keys/16247 "2014-09-16T16:17:13Z")

</div>

Hi, I’m using authorized\_keys module without success… users: name: user1 keys: user1.pub groups: admins webmasters name: authorized\_keys authorized\_key: \> user={{ item.0.name }} key=“{{ lookup(‘file…

---

## [Make it possible to nest connection plugins](https://forum.ansible.com/t/make-it-possible-to-nest-connection-plugins/15821)

<div class="topic-metadata">

**Author:** [@Filias\_Heidt](https://forum.ansible.com/u/Filias_Heidt)\
**Replies:** 16\
**Last updated:** [September 16, 2014, 4:14pm UTC](https://forum.ansible.com/t/make-it-possible-to-nest-connection-plugins/15821 "2014-09-16T16:14:00Z")

</div>

Hi all, I’m getting my feet wet in ansible and I’m pretty exited so far. But I think I discovered a use case, which might be of interest for others: We have numerous hosts with jails on them and would like to manage th…

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

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