# Latest

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

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

**Page:** 937

---

## [Docker module - idempotence problem](https://forum.ansible.com/t/docker-module-idempotence-problem/16240)

<div class="topic-metadata">

**Author:** [@Andrei\_Pashkin](https://forum.ansible.com/u/Andrei_Pashkin)\
**Replies:** 2\
**Last updated:** [September 16, 2014, 4:05pm UTC](https://forum.ansible.com/t/docker-module-idempotence-problem/16240 "2014-09-16T16:05:43Z")

</div>

Hi all! I’ve found, that if run such command: - docker: image=registry state=running And then: - docker: image=registry state=running\`\` env=\`\`"SOMEVAR=1" The module will return “ok”, not “changed” and docker con…

---

## [creating users](https://forum.ansible.com/t/creating-users/16245)

<div class="topic-metadata">

**Author:** [@Frank3](https://forum.ansible.com/u/Frank3)\
**Replies:** 3\
**Last updated:** [September 16, 2014, 3:37pm UTC](https://forum.ansible.com/t/creating-users/16245 "2014-09-16T15:37:44Z")

</div>

Hi, I am trying to create users and groups and add users to groups and keys well, you know. Does this layout looks correct? vars/users.yml groups: admins: state: present webmasters: state: present admins: user1…

---

## [Problem with conditional](https://forum.ansible.com/t/problem-with-conditional/16219)

<div class="topic-metadata">

**Author:** [@oravirt](https://forum.ansible.com/u/oravirt)\
**Replies:** 2\
**Last updated:** [September 16, 2014, 3:37pm UTC](https://forum.ansible.com/t/problem-with-conditional/16219 "2014-09-16T15:37:36Z")

</div>

Hi, I’ve got a dictionary as below. I loop through that dictionary using a value and grep a file searching to see if the value already exists. If it doesnt I want to use that value in the next task (mytask) to do someth…

---

## [repo best practice?](https://forum.ansible.com/t/repo-best-practice/16244)

<div class="topic-metadata">

**Author:** [@Guy\_Matz](https://forum.ansible.com/u/Guy_Matz)\
**Replies:** 1\
**Last updated:** [September 16, 2014, 3:15pm UTC](https://forum.ansible.com/t/repo-best-practice/16244 "2014-09-16T15:15:02Z")

</div>

Hello! Anyone have thoughts on how to best organize a repo for ansible? One big’un vs repo per role, etc? Thanks!

---

## [Variable substitution and with\_items](https://forum.ansible.com/t/variable-substitution-and-with-items/16242)

<div class="topic-metadata">

**Author:** [@Jose\_Moreira](https://forum.ansible.com/u/Jose_Moreira)\
**Replies:** 3\
**Last updated:** [September 16, 2014, 3:13pm UTC](https://forum.ansible.com/t/variable-substitution-and-with-items/16242 "2014-09-16T15:13:20Z")

</div>

Hello, my company (me) recently started using Ansible (1.7.1) for multi-stage server provisioning (both on local vagrant and ec2). Even though i haven’t utilized the variable much, i have defined: environment: producti…

---

## [agent on server](https://forum.ansible.com/t/agent-on-server/16227)

<div class="topic-metadata">

**Author:** [@Nitin\_Kumar](https://forum.ansible.com/u/Nitin_Kumar)\
**Replies:** 5\
**Last updated:** [September 16, 2014, 2:47pm UTC](https://forum.ansible.com/t/agent-on-server/16227 "2014-09-16T14:47:53Z")

</div>

Hi, For Ansible we say its agentless. But in our requirement we need to have a agent on client which polls management server depending on some events to trigger some activities back. Say client is going down, it will t…

---

## [migrating from chef to ansible](https://forum.ansible.com/t/migrating-from-chef-to-ansible/16243)

<div class="topic-metadata">

**Author:** [@Guy\_Matz1](https://forum.ansible.com/u/Guy_Matz1)\
**Replies:** 1\
**Last updated:** [September 16, 2014, 2:46pm UTC](https://forum.ansible.com/t/migrating-from-chef-to-ansible/16243 "2014-09-16T14:46:50Z")

</div>

Hello! I need to convert a chef cookbook to ansible as part of a proof-of-concept . . . anyone have a thoughts/suggestion about the best way to go about this? any pitfalls, etc. to avoid? I’ve just been going through th…

---

## [issues with git hanging using git module](https://forum.ansible.com/t/issues-with-git-hanging-using-git-module/16218)

<div class="topic-metadata">

**Author:** [@Devin\_Austin](https://forum.ansible.com/u/Devin_Austin)\
**Replies:** 4\
**Last updated:** [September 16, 2014, 2:31pm UTC](https://forum.ansible.com/t/issues-with-git-hanging-using-git-module/16218 "2014-09-16T14:31:10Z")

</div>

Hi all, I’m relatively new to ansible, I’ve used it for a small work project, and am now trying to use it to deploy a rails app I’ve been working on. Michael DeHaan sent me here from twitter, so here goes. Long story …

---

## [Rax module](https://forum.ansible.com/t/rax-module/16241)

<div class="topic-metadata">

**Author:** [@Graham\_Hay](https://forum.ansible.com/u/Graham_Hay)\
**Replies:** 2\
**Last updated:** [September 16, 2014, 1:52pm UTC](https://forum.ansible.com/t/rax-module/16241 "2014-09-16T13:52:58Z")

</div>

Hi, We’ve run into a problem with the rax module. It worked fine to create our test env, but when we came to creating the prod version, it didn’t do anything. (No errors, but no changes either). Our incantation looks li…

---

## [unable to parse uri content in a handler](https://forum.ansible.com/t/unable-to-parse-uri-content-in-a-handler/16220)

<div class="topic-metadata">

**Author:** [@Anuj\_Agrawal](https://forum.ansible.com/u/Anuj_Agrawal)\
**Replies:** 2\
**Last updated:** [September 16, 2014, 1:20pm UTC](https://forum.ansible.com/t/unable-to-parse-uri-content-in-a-handler/16220 "2014-09-16T13:20:56Z")

</div>

I have a handler of the following form: name: reinit task\_handler uri: url=some\_url return\_content=yes register: webpage delegate\_to: localhost Now I want to look for some string in webpage.content and mark this a …

---

## [How to use host inventory file as a variable in playbook?](https://forum.ansible.com/t/how-to-use-host-inventory-file-as-a-variable-in-playbook/16235)

<div class="topic-metadata">

**Author:** [@Benjamin\_Leung](https://forum.ansible.com/u/Benjamin_Leung)\
**Replies:** 3\
**Last updated:** [September 16, 2014, 12:49pm UTC](https://forum.ansible.com/t/how-to-use-host-inventory-file-as-a-variable-in-playbook/16235 "2014-09-16T12:49:26Z")

</div>

Lets say I have a playbook with the following code name: Check port command: nc -z -v {{asdf\_servers}} 8089 ignore\_errors: true in the group var asdf\_servers: localhost Is there a way to use the entire host invent…

---

## [Always allow ansible-galaxy to install with git SHAs as versions](https://forum.ansible.com/t/always-allow-ansible-galaxy-to-install-with-git-shas-as-versions/16223)

<div class="topic-metadata">

**Author:** [@Ches\_Martin](https://forum.ansible.com/u/Ches_Martin)\
**Replies:** 2\
**Last updated:** [September 16, 2014, 3:31am UTC](https://forum.ansible.com/t/always-allow-ansible-galaxy-to-install-with-git-shas-as-versions/16223 "2014-09-16T03:31:29Z")

</div>

Hi folks, Apologies in advance if this has perhaps already changed, I see there are some forthcoming changes like new role file format, and I haven’t dug into what all has been happening on master just yet. I had a bunc…

---

## [Is remote\_user used if I want to carry out action as that user rathe than ssh\_user?](https://forum.ansible.com/t/is-remote-user-used-if-i-want-to-carry-out-action-as-that-user-rathe-than-ssh-user/16236)

<div class="topic-metadata">

**Author:** [@John\_Wong](https://forum.ansible.com/u/John_Wong)\
**Replies:** 2\
**Last updated:** [September 16, 2014, 2:24am UTC](https://forum.ansible.com/t/is-remote-user-used-if-i-want-to-carry-out-action-as-that-user-rathe-than-ssh-user/16236 "2014-09-16T02:24:22Z")

</div>

my ansible\_ssh\_user is root, but I want a particular role to use a particular user. For example, create a directory with this remote\_user as owner and group. I know I can set the owner-permission using file module, but …

---

## [testing](https://forum.ansible.com/t/testing/16222)

<div class="topic-metadata">

**Author:** [@Devin\_Austin](https://forum.ansible.com/u/Devin_Austin)\
**Replies:** 3\
**Last updated:** [September 16, 2014, 1:25am UTC](https://forum.ansible.com/t/testing/16222 "2014-09-16T01:25:41Z")

</div>

just making sure my posts are coming through, I know they need to be moderated, so if it’s just in the queue, ignore this. Thanks!

---

## [How to flatten host vars into a string.](https://forum.ansible.com/t/how-to-flatten-host-vars-into-a-string/16226)

<div class="topic-metadata">

**Author:** [@Alain\_Kreienbuhl](https://forum.ansible.com/u/Alain_Kreienbuhl)\
**Replies:** 3\
**Last updated:** [September 16, 2014, 12:58am UTC](https://forum.ansible.com/t/how-to-flatten-host-vars-into-a-string/16226 "2014-09-16T00:58:35Z")

</div>

Hello, I’m trying to build a String based on host vars from a group. I see how to loop thru host in a group {% for host in groups\['app\_servers'\] %} {{ hostvars\[host\]\['my\_cool\_var'\] }} {% endfor %} But not how to f…

---

## [Sudo syntax help, please.](https://forum.ansible.com/t/sudo-syntax-help-please/16233)

<div class="topic-metadata">

**Author:** [@Tiglath](https://forum.ansible.com/u/Tiglath)\
**Replies:** 2\
**Last updated:** [September 15, 2014, 8:36pm UTC](https://forum.ansible.com/t/sudo-syntax-help-please/16233 "2014-09-15T20:36:14Z")

</div>

User@server ~/ ansible server2 -i group.ini -m shell -a “cd /tmp/tmp; /usr/bin/tar xf …/data.tar --same-permissions --same-owner” --sudo -K sudo password: sslmioq | FAILED =\> ssh connection closed waiting for sudo or…

---

## [Unarchive question](https://forum.ansible.com/t/unarchive-question/16231)

<div class="topic-metadata">

**Author:** [@Tiglath](https://forum.ansible.com/u/Tiglath)\
**Replies:** 1\
**Last updated:** [September 15, 2014, 8:31pm UTC](https://forum.ansible.com/t/unarchive-question/16231 "2014-09-15T20:31:00Z")

</div>

Is there a way to tell unarchive to use /usr/gny/bin/tar instead of /usr/bin/tar? Because the latter does not work on Solaris 11. Thanks

---

## [Dependencies with another names are installed and break provisioning](https://forum.ansible.com/t/dependencies-with-another-names-are-installed-and-break-provisioning/16232)

<div class="topic-metadata">

**Author:** [@Robert\_Kowalski](https://forum.ansible.com/u/Robert_Kowalski)\
**Replies:** 1\
**Last updated:** [September 15, 2014, 8:02pm UTC](https://forum.ansible.com/t/dependencies-with-another-names-are-installed-and-break-provisioning/16232 "2014-09-15T20:02:02Z")

</div>

Hi list, I noticed that Ansible installs some roles with another name and I opened https://github.com/ansible/ansible/issues/8908 - which is marked as fixed now, but it still does not work for me: if I install my role: …

---

## [Howto access 'exists' from a register: var which has results?](https://forum.ansible.com/t/howto-access-exists-from-a-register-var-which-has-results/16208)

<div class="topic-metadata">

**Author:** [@Patrick\_Ansible-ML](https://forum.ansible.com/u/Patrick_Ansible-ML)\
**Replies:** 2\
**Last updated:** [September 15, 2014, 5:40pm UTC](https://forum.ansible.com/t/howto-access-exists-from-a-register-var-which-has-results/16208 "2014-09-15T17:40:54Z")

</div>

Hi, I have a task which checks if some files exist and does a register. In the next task, how do I access the exists: \[false|true\] result for use in 'when:'? I tried variations of things like this: 'repos\_extra\_installe…

---

## [Unique Host Entries In Inventory File?](https://forum.ansible.com/t/unique-host-entries-in-inventory-file/16229)

<div class="topic-metadata">

**Author:** [@Tiglath](https://forum.ansible.com/u/Tiglath)\
**Replies:** 1\
**Last updated:** [September 15, 2014, 5:07pm UTC](https://forum.ansible.com/t/unique-host-entries-in-inventory-file/16229 "2014-09-15T17:07:11Z")

</div>

I read in another thread that hosts must appear only once in the inventory file. That’s a problem, but it doesn’t seem to matter much, everything runs fine, so I wonder… My inventory file groups hosts into, qa\_servers,…

---

## [How to make use of provided tags with --skip-tags or --tags inside a (role)-task ?](https://forum.ansible.com/t/how-to-make-use-of-provided-tags-with-skip-tags-or-tags-inside-a-role-task/16191)

<div class="topic-metadata">

**Author:** [@Nicolai\_Froehlich](https://forum.ansible.com/u/Nicolai_Froehlich)\
**Replies:** 2\
**Last updated:** [September 15, 2014, 2:24pm UTC](https://forum.ansible.com/t/how-to-make-use-of-provided-tags-with-skip-tags-or-tags-inside-a-role-task/16191 "2014-09-15T14:24:58Z")

</div>

\---- Question Is it possible to access the list of provided tags ( --tags, --skip-tags ) from a variable inside a task? Is it maybe possible to access the invoked command itself from variable? Is it possible to use pa…

---

## [Looping over Subelements example incorrect?](https://forum.ansible.com/t/looping-over-subelements-example-incorrect/16224)

<div class="topic-metadata">

**Author:** [@Patrick\_Ansible-ML](https://forum.ansible.com/u/Patrick_Ansible-ML)\
**Replies:** 1\
**Last updated:** [September 15, 2014, 1:35pm UTC](https://forum.ansible.com/t/looping-over-subelements-example-incorrect/16224 "2014-09-15T13:35:38Z")

</div>

Hi, Just tried out the authorize\_key example in the 'Looping over Subelements' section of the docs \[1\] and wonder if it's incorrect? When I try the example it only saves the last key instead of all of them. Copy of exa…

---

## [Modeling question: roles  vs. plays](https://forum.ansible.com/t/modeling-question-roles-vs-plays/16225)

<div class="topic-metadata">

**Author:** [@Marc\_Abramowitz](https://forum.ansible.com/u/Marc_Abramowitz)\
**Replies:** 1\
**Last updated:** [September 15, 2014, 10:38am UTC](https://forum.ansible.com/t/modeling-question-roles-vs-plays/16225 "2014-09-15T10:38:53Z")

</div>

We have a good 30 or so Python web applications because we have an SOA architecture. Each listens on a different port, requires different nginx routing rules, requires different Python packages (and sometimes OS packages…

---

## [proxmox module?](https://forum.ansible.com/t/proxmox-module/13282)

<div class="topic-metadata">

**Author:** [@Dude4Linux](https://forum.ansible.com/u/Dude4Linux)\
**Replies:** 6\
**Last updated:** [September 15, 2014, 8:17am UTC](https://forum.ansible.com/t/proxmox-module/13282 "2014-09-15T08:17:57Z")

</div>

I just heard about Ansible at DrupalCorn Camp. Found this thread while looking for a proxmox module. Do you have any progress to report?

---

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

<div class="topic-metadata">

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

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

---

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

<div class="topic-metadata">

**Author:** [@Adham\_H](https://forum.ansible.com/u/Adham_H)\
**Replies:** 0\
**Last updated:** [September 14, 2014, 8:31pm UTC](https://forum.ansible.com/t/set-facts-with-loops/16221 "2014-09-14T20:31:03Z")

</div>

Hi, I am trying to compile a list that would use with\_fileglob but it seems that set\_facts does not work with loops i.e. \`

---

## [integration tests: atomic\_copy fails when trying to chown from root to nobody as nobody](https://forum.ansible.com/t/integration-tests-atomic-copy-fails-when-trying-to-chown-from-root-to-nobody-as-nobody/16211)

<div class="topic-metadata">

**Author:** [@Michael\_Peters](https://forum.ansible.com/u/Michael_Peters)\
**Replies:** 1\
**Last updated:** [September 14, 2014, 5:13pm UTC](https://forum.ansible.com/t/integration-tests-atomic-copy-fails-when-trying-to-chown-from-root-to-nobody-as-nobody/16211 "2014-09-14T17:13:25Z")

</div>

I was trying to get the integration tests (non\_destructive) running (with sudo) but ran into a failure. TASK: \[test\_copy | overwrite the file as user nobody\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* failed: \[testhost\] =\> {"failed": …

---

## [Access to external fact](https://forum.ansible.com/t/access-to-external-fact/16217)

<div class="topic-metadata">

**Author:** [@antony.perigault](https://forum.ansible.com/u/antony.perigault)\
**Replies:** 1\
**Last updated:** [September 14, 2014, 5:01pm UTC](https://forum.ansible.com/t/access-to-external-fact/16217 "2014-09-14T17:01:37Z")

</div>

Hello, My problem is simple. I created a script that return a json with server network informations when run: script.py --host . How can I use this facts ? I test with setup module but it seems to need a script that re…

---

## [Bringing cohesion to ec2\_facts and EC2 inventory plugin](https://forum.ansible.com/t/bringing-cohesion-to-ec2-facts-and-ec2-inventory-plugin/16209)

<div class="topic-metadata">

**Author:** [@Ches\_Martin](https://forum.ansible.com/u/Ches_Martin)\
**Replies:** 6\
**Last updated:** [September 14, 2014, 4:57pm UTC](https://forum.ansible.com/t/bringing-cohesion-to-ec2-facts-and-ec2-inventory-plugin/16209 "2014-09-14T16:57:04Z")

</div>

Hi folks, I dug around the list to see if anyone has raised this point before and didn’t find it addressed directly, excuse me if I missed something. Michael has stated before that it would be nice if the ec2\_facts mod…

---

## [unarchive module / unarchive action](https://forum.ansible.com/t/unarchive-module-unarchive-action/16216)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Replies:** 0\
**Last updated:** [September 14, 2014, 1:36pm UTC](https://forum.ansible.com/t/unarchive-module-unarchive-action/16216 "2014-09-14T13:36:33Z")

</div>

I replied to another post about this one just recently, so please refer to that reply. Thanks!

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

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