# Latest

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

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

**Page:** 820

---

## [Unsetting a set\_fact variable](https://forum.ansible.com/t/unsetting-a-set-fact-variable/19740)

<div class="topic-metadata">

**Author:** [@K\_Cheng](https://forum.ansible.com/u/K_Cheng)\
**Replies:** 1\
**Last updated:** [November 12, 2015, 4:37am UTC](https://forum.ansible.com/t/unsetting-a-set-fact-variable/19740 "2015-11-12T04:37:15Z")

</div>

Hi guys, I’ve got a setup which sets a fact based on whether a file exists or not. This fact works for one run in the play but doesn’t work when I want that value to be removed for another task inside the play. name…

---

## [FAILED =\> Missing sudo password when NO SUDO PASSWORD is needed](https://forum.ansible.com/t/failed-missing-sudo-password-when-no-sudo-password-is-needed/19725)

<div class="topic-metadata">

**Author:** [@Jeff1](https://forum.ansible.com/u/Jeff1)\
**Replies:** 6\
**Last updated:** [November 11, 2015, 7:51pm UTC](https://forum.ansible.com/t/failed-missing-sudo-password-when-no-sudo-password-is-needed/19725 "2015-11-11T19:51:56Z")

</div>

I have SUDO configured to work without passwords. This command works just fine: ansible quee -a “/usr/bin/sudo /usr/bin/apt-get update” This command fails with "FAILED =\> Missing sudo password " ansible quee -a “/usr…

---

## [\[Errno 8\] Exec format error on Ubuntu VBox guest on Win 10 Host](https://forum.ansible.com/t/errno-8-exec-format-error-on-ubuntu-vbox-guest-on-win-10-host/19732)

<div class="topic-metadata">

**Author:** [@TheRealPapa](https://forum.ansible.com/u/TheRealPapa)\
**Replies:** 1\
**Last updated:** [November 11, 2015, 3:54pm UTC](https://forum.ansible.com/t/errno-8-exec-format-error-on-ubuntu-vbox-guest-on-win-10-host/19732 "2015-11-11T15:54:48Z")

</div>

Hi, This is my first time with Ansible so forgive me if I missed something. I am trying to set up an Ansible script to run from my Ubuntu guest that allows me to provision Wordpress and all dependencies. The host machi…

---

## [Ansible design patterns](https://forum.ansible.com/t/ansible-design-patterns/19676)

<div class="topic-metadata">

**Author:** [@Praveen\_A](https://forum.ansible.com/u/Praveen_A)\
**Replies:** 1\
**Last updated:** [November 11, 2015, 12:04pm UTC](https://forum.ansible.com/t/ansible-design-patterns/19676 "2015-11-11T12:04:56Z")

</div>

Hello chaps, Is there any design pattern present in ansible to have a proper structure and flow like hiera in puppet. Thanks, Praveen

---

## [Common inventory for multiple separate projects/environments?](https://forum.ansible.com/t/common-inventory-for-multiple-separate-projects-environments/19703)

<div class="topic-metadata">

**Author:** [@Lupu\_Pitkanen](https://forum.ansible.com/u/Lupu_Pitkanen)\
**Replies:** 4\
**Last updated:** [November 11, 2015, 11:49am UTC](https://forum.ansible.com/t/common-inventory-for-multiple-separate-projects-environments/19703 "2015-11-11T11:49:06Z")

</div>

Hi, I’m responsible for dozens of separate projects or server environments (each containing multiple hosts) and now planning to manage all of them using ansible. There’s a requirement to have a separate git repository …

---

## [Using register with exact\_count when launching an instance on EC2](https://forum.ansible.com/t/using-register-with-exact-count-when-launching-an-instance-on-ec2/15630)

<div class="topic-metadata">

**Author:** [@Ofer\_Herman](https://forum.ansible.com/u/Ofer_Herman)\
**Replies:** 4\
**Last updated:** [November 11, 2015, 11:43am UTC](https://forum.ansible.com/t/using-register-with-exact-count-when-launching-an-instance-on-ec2/15630 "2015-11-11T11:43:45Z")

</div>

Hi, I’m using exact\_count when creating an instance on EC2, when the instance already exists the next action fails with the following error: fatal: \[localhost\] =\> One or more undefined variables: ‘unicode object’ has n…

---

## [cant install on os x 10.11](https://forum.ansible.com/t/cant-install-on-os-x-10-11/19722)

<div class="topic-metadata">

**Author:** [@pixel\_fairy](https://forum.ansible.com/u/pixel_fairy)\
**Replies:** 5\
**Last updated:** [November 11, 2015, 11:01am UTC](https://forum.ansible.com/t/cant-install-on-os-x-10-11/19722 "2015-11-11T11:01:23Z")

</div>

easy install pip worked. but when trying to install ansible, this happens. it looks like a connection error. maybe intermittent failure? \` $ sudo pip install ansible Downloading/unpacking ansible Cleaning up… Except…

---

## [yum module can't handle prefix](https://forum.ansible.com/t/yum-module-cant-handle-prefix/19731)

<div class="topic-metadata">

**Author:** [@William\_Muriithi](https://forum.ansible.com/u/William_Muriithi)\
**Replies:** 0\
**Last updated:** [November 11, 2015, 1:29am UTC](https://forum.ansible.com/t/yum-module-cant-handle-prefix/19731 "2015-11-11T01:29:41Z")

</div>

Evening I have googled for a way to pass yum module rpm prefix and I don’t think this is currently possible. Is that a right assessment? I am hoping I missed something. I will look for sometime and try to contribute th…

---

## ["ERROR: expecting dict" when trying to define a dictionary in my vars file](https://forum.ansible.com/t/error-expecting-dict-when-trying-to-define-a-dictionary-in-my-vars-file/19729)

<div class="topic-metadata">

**Author:** [@Pavel\_Vaysberg](https://forum.ansible.com/u/Pavel_Vaysberg)\
**Replies:** 1\
**Last updated:** [November 10, 2015, 9:20pm UTC](https://forum.ansible.com/t/error-expecting-dict-when-trying-to-define-a-dictionary-in-my-vars-file/19729 "2015-11-10T21:20:37Z")

</div>

Sorry if this is a beginner question, but I am having trouble defining a dictionary of key value pairs in my vars file for one of my roles. My purpose for packaging these pairs instead of just setting them as variables i…

---

## [\[windows\] Exit-Json fails / hangs](https://forum.ansible.com/t/windows-exit-json-fails-hangs/19692)

<div class="topic-metadata">

**Author:** [@David\_O\_Brien](https://forum.ansible.com/u/David_O_Brien)\
**Replies:** 9\
**Last updated:** [November 10, 2015, 5:54pm UTC](https://forum.ansible.com/t/windows-exit-json-fails-hangs/19692 "2015-11-10T17:54:45Z")

</div>

Hi, currently developing / updating my setup.ps1 PR for custom facts. \` $result = New-Object psobject @{ ansible\_facts = New-Object psobject changed = $false } Function Set-Attr($obj, $name, $value) { If the pro…

---

## [how to use variables defined in another group](https://forum.ansible.com/t/how-to-use-variables-defined-in-another-group/19718)

<div class="topic-metadata">

**Author:** [@Florin\_Andrei](https://forum.ansible.com/u/Florin_Andrei)\
**Replies:** 1\
**Last updated:** [November 10, 2015, 5:02pm UTC](https://forum.ansible.com/t/how-to-use-variables-defined-in-another-group/19718 "2015-11-10T17:02:12Z")

</div>

I have several inventory files, where many groups are defined. For the big groups, I’ve defined variables in ./group\_vars/${group\_name}/main.yml For one role, which is typically executed only against two groups (specifi…

---

## [Error Message](https://forum.ansible.com/t/error-message/19726)

<div class="topic-metadata">

**Author:** [@GBANE\_FETIGUE](https://forum.ansible.com/u/GBANE_FETIGUE)\
**Replies:** 0\
**Last updated:** [November 10, 2015, 2:17pm UTC](https://forum.ansible.com/t/error-message/19726 "2015-11-10T14:17:44Z")

</div>

Hi folks, Any ideas about that error message NOTIFIED: \[nodejs\_app | restart app\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* failed: \[qastatus0\] =\> {"failed": true, "item": ""} msg: stop: Unknown instance: start: Rej…

---

## [conditionally assign value to variable](https://forum.ansible.com/t/conditionally-assign-value-to-variable/19723)

<div class="topic-metadata">

**Author:** [@r.grosmann](https://forum.ansible.com/u/r.grosmann)\
**Replies:** 1\
**Last updated:** [November 10, 2015, 1:52pm UTC](https://forum.ansible.com/t/conditionally-assign-value-to-variable/19723 "2015-11-10T13:52:32Z")

</div>

hello group, I want to do something which should be quite easy, but I cannot find out exactly how I should do it. I want variable usedir to have the name of directory {{currentdir}}/rails if it exists, else I want to h…

---

## [user  is not allowed to execute '/bin/sh -c](https://forum.ansible.com/t/user-is-not-allowed-to-execute-bin-sh-c/19264)

<div class="topic-metadata">

**Author:** [@Srinivas\_Kotaru](https://forum.ansible.com/u/Srinivas_Kotaru)\
**Replies:** 3\
**Last updated:** [November 10, 2015, 12:35pm UTC](https://forum.ansible.com/t/user-is-not-allowed-to-execute-bin-sh-c/19264 "2015-11-10T12:35:29Z")

</div>

Hi Am having a issue to use ansible in our environment. We use sudo to run any commands. We don’t use root to login. In fact even hosting team don’t use root account. Every command ( privileged) has to be run as sudo. A…

---

## [Host not found error while executing copy module](https://forum.ansible.com/t/host-not-found-error-while-executing-copy-module/19724)

<div class="topic-metadata">

**Author:** [@Diwaakartg\_Ganesh](https://forum.ansible.com/u/Diwaakartg_Ganesh)\
**Replies:** 0\
**Last updated:** [November 10, 2015, 10:20am UTC](https://forum.ansible.com/t/host-not-found-error-while-executing-copy-module/19724 "2015-11-10T10:20:48Z")

</div>

Ansible version :1.9.4, 1.9.3, 1.9.1, Using ec2, so specifying pem key in ansible. Cfg I have used ansible for while, but this error is strange. Copy module works fine when executing in ad-hoc like the snippet below. …

---

## [Ansible 2.0: interpolate filenames with variables](https://forum.ansible.com/t/ansible-2-0-interpolate-filenames-with-variables/19721)

<div class="topic-metadata">

**Author:** [@Vikas\_Bodke](https://forum.ansible.com/u/Vikas_Bodke)\
**Replies:** 0\
**Last updated:** [November 10, 2015, 9:16am UTC](https://forum.ansible.com/t/ansible-2-0-interpolate-filenames-with-variables/19721 "2015-11-10T09:16:57Z")

</div>

I have the following playbook working in Ansible 1.9, where in i like to include a play at run time based on variable passed either as command line argument or declared under ‘vars’. - name: include another play v…

---

## [Ansible as DB/App management tool](https://forum.ansible.com/t/ansible-as-db-app-management-tool/19720)

<div class="topic-metadata">

**Author:** [@tinyzais](https://forum.ansible.com/u/tinyzais)\
**Replies:** 0\
**Last updated:** [November 10, 2015, 9:10am UTC](https://forum.ansible.com/t/ansible-as-db-app-management-tool/19720 "2015-11-10T09:10:28Z")

</div>

Hello All, I’m quite new to Ansible (just few days playing with it). And planning to build DB/App management tool on top of anisble. Tasks: stop/start/backup/patch/… When I say DB/App it mean Oracle DB and Oracle App…

---

## [Jinja can't access to a dictionnary containing var](https://forum.ansible.com/t/jinja-cant-access-to-a-dictionnary-containing-var/19715)

<div class="topic-metadata">

**Author:** [@Pierre\_Mavro](https://forum.ansible.com/u/Pierre_Mavro)\
**Replies:** 2\
**Last updated:** [November 10, 2015, 7:30am UTC](https://forum.ansible.com/t/jinja-cant-access-to-a-dictionnary-containing-var/19715 "2015-11-10T07:30:55Z")

</div>

Hi, I’ve got a dictionary which looks like this: "var": { "nm\_java\_apps\_params": { "nm-core": { "dest\_folder": '/tmp/test' "port": 9487, "start\_options": " -Xmx16G -XX:+UseG1GC -XX:+UseStringDeduplication", "version": …

---

## [Help using "gem" module with rbenv](https://forum.ansible.com/t/help-using-gem-module-with-rbenv/19717)

<div class="topic-metadata">

**Author:** [@Mike\_Dillon](https://forum.ansible.com/u/Mike_Dillon)\
**Replies:** 0\
**Last updated:** [November 10, 2015, 12:46am UTC](https://forum.ansible.com/t/help-using-gem-module-with-rbenv/19717 "2015-11-10T00:46:28Z")

</div>

Hi all- I was hoping that someone has some advice for using the “gem” module with rbenv. I’m trying to install the “whenever” gem into rbenv’s global ruby, but it’s not ending up in the correct location. My playbook lo…

---

## [Question about where new modules go](https://forum.ansible.com/t/question-about-where-new-modules-go/19709)

<div class="topic-metadata">

**Author:** [@sivel](https://forum.ansible.com/u/sivel)\
**Replies:** 6\
**Last updated:** [November 9, 2015, 10:13pm UTC](https://forum.ansible.com/t/question-about-where-new-modules-go/19709 "2015-11-09T22:13:32Z")

</div>

I’d like to get clarification about where new modules should go. I noticed on a recent submission of an openstack module that the submitter was asked to submit to core instead of extras. This goes against my understand…

---

## [Is Ansible Tower compatible with ansible 2.0 beta](https://forum.ansible.com/t/is-ansible-tower-compatible-with-ansible-2-0-beta/19714)

<div class="topic-metadata">

**Author:** [@Kirill\_Kozlov](https://forum.ansible.com/u/Kirill_Kozlov)\
**Replies:** 1\
**Last updated:** [November 9, 2015, 9:20pm UTC](https://forum.ansible.com/t/is-ansible-tower-compatible-with-ansible-2-0-beta/19714 "2015-11-09T21:20:48Z")

</div>

Hello everybody! Does anybody successfully use Ansible Tower (2.3.1 in my case) together with ansible 2.0 beta (v2.0.0-0.4.beta2)? I’m new to Tower. I received installed Tower together with ansible 1.9.4 on Debian host…

---

## [windows two hop network access issue](https://forum.ansible.com/t/windows-two-hop-network-access-issue/19711)

<div class="topic-metadata">

**Author:** [@mike\_od](https://forum.ansible.com/u/mike_od)\
**Replies:** 1\
**Last updated:** [November 9, 2015, 7:07pm UTC](https://forum.ansible.com/t/windows-two-hop-network-access-issue/19711 "2015-11-09T19:07:01Z")

</div>

I’m trying to run the script module with Kerberos auth on windows to call a powershell script that includes Add-DhcpServerv4Reservation and Add-DnsServerResourceRecord. If I set ANSIBLE\_KEEP\_REMOTE\_FILES=1 I can log ont…

---

## [Command works locally but fails through ansible (windows)](https://forum.ansible.com/t/command-works-locally-but-fails-through-ansible-windows/19705)

<div class="topic-metadata">

**Author:** [@Elliott\_Barrere](https://forum.ansible.com/u/Elliott_Barrere)\
**Replies:** 3\
**Last updated:** [November 9, 2015, 7:05pm UTC](https://forum.ansible.com/t/command-works-locally-but-fails-through-ansible-windows/19705 "2015-11-09T19:05:26Z")

</div>

Hi there - I’m trying to get the following domain join script to execute through ansible, but it always fails with error code 1: C:\\windows\\system32\\djoin.exe /PROVISION /REUSE /DOMAIN \*\*redacted\*\* /MACHINE {{ansible\_h…

---

## [exception for cloudformation module](https://forum.ansible.com/t/exception-for-cloudformation-module/19672)

<div class="topic-metadata">

**Author:** [@Clark\_Zheng](https://forum.ansible.com/u/Clark_Zheng)\
**Replies:** 2\
**Last updated:** [November 9, 2015, 5:17pm UTC](https://forum.ansible.com/t/exception-for-cloudformation-module/19672 "2015-11-09T17:17:19Z")

</div>

Hi, When i execute playbook for cloudformation module on ubuntu 14, one exception will throw as: create\_stack() got an unexpected keyword argument ‘stack\_policy\_body’. Python version is 2.7 and python-boto has already …

---

## [Execution flow on role dependencies](https://forum.ansible.com/t/execution-flow-on-role-dependencies/19712)

<div class="topic-metadata">

**Author:** [@Vonpupp](https://forum.ansible.com/u/Vonpupp)\
**Replies:** 0\
**Last updated:** [November 9, 2015, 4:43pm UTC](https://forum.ansible.com/t/execution-flow-on-role-dependencies/19712 "2015-11-09T16:43:29Z")

</div>

Hello, I’m new to Ansible and I’m building two roles: Haevas.yaourt \[1\] and Haevas.powerpill \[2\] to install and configure yaourt and powerpill on Arch Linux. Powerpill is installed via yaourt, then I’m adding the Haevas…

---

## [Deprecation of "tags=" in include](https://forum.ansible.com/t/deprecation-of-tags-in-include/19708)

<div class="topic-metadata">

**Author:** [@Michel\_Blanc](https://forum.ansible.com/u/Michel_Blanc)\
**Replies:** 3\
**Last updated:** [November 9, 2015, 3:16pm UTC](https://forum.ansible.com/t/deprecation-of-tags-in-include/19708 "2015-11-09T15:16:07Z")

</div>

Hi all, Playing with 2.0, I just stumbled on: \[DEPRECATION WARNING\]: You should not specify tags in the include parameters. All tags should be specified using the task-level option. This feature will be removed…

---

## [ansible executing every other task](https://forum.ansible.com/t/ansible-executing-every-other-task/19704)

<div class="topic-metadata">

**Author:** [@Jon1](https://forum.ansible.com/u/Jon1)\
**Replies:** 1\
**Last updated:** [November 9, 2015, 3:15pm UTC](https://forum.ansible.com/t/ansible-executing-every-other-task/19704 "2015-11-09T15:15:20Z")

</div>

I’m running: ansible 2.0.0 (devel 5b84bd6) last updated 2015/11/06 08:18:12 (GMT -500) lib/ansible/modules/core: (detached HEAD 35707bcb3c) last updated 2015/11/06 08:18:15 (GMT -500) lib/ansible/modules/extras: (deta…

---

## [Is there a simple way to find host groups for a role?](https://forum.ansible.com/t/is-there-a-simple-way-to-find-host-groups-for-a-role/18958)

<div class="topic-metadata">

**Author:** [@Sergey\_Maslyakov](https://forum.ansible.com/u/Sergey_Maslyakov)\
**Replies:** 2\
**Last updated:** [November 8, 2015, 5:08pm UTC](https://forum.ansible.com/t/is-there-a-simple-way-to-find-host-groups-for-a-role/18958 "2015-11-08T17:08:21Z")

</div>

Given an Ansible playbook, is there a simple way to list out all host groups that a given roles belongs to? My roles install applications using RPMs. If there is a fix in an application, I need to know what servers I sh…

---

## [with\_items: expects a list or a set by using it with when:](https://forum.ansible.com/t/with-items-expects-a-list-or-a-set-by-using-it-with-when/16535)

<div class="topic-metadata">

**Author:** [@bshbg](https://forum.ansible.com/u/bshbg)\
**Replies:** 5\
**Last updated:** [November 8, 2015, 3:19pm UTC](https://forum.ansible.com/t/with-items-expects-a-list-or-a-set-by-using-it-with-when/16535 "2015-11-08T15:19:16Z")

</div>

I have the following two statements which have the same when part. The first one is skipped correctly but the second creates an error. It should be skipped also. \` debug: var=“{{ sites\[env\].restricted\_areas }}” when…

---

## [dict in dict access value in with\_item](https://forum.ansible.com/t/dict-in-dict-access-value-in-with-item/19707)

<div class="topic-metadata">

**Author:** [@Pierre\_Mavro](https://forum.ansible.com/u/Pierre_Mavro)\
**Replies:** 2\
**Last updated:** [November 7, 2015, 2:47pm UTC](https://forum.ansible.com/t/dict-in-dict-access-value-in-with-item/19707 "2015-11-07T14:47:16Z")

</div>

Hi, I’ve got a dict in dict in a var file. When debuging this var, it looks like this: "var": { "nm\_java\_apps\_params": { "nm-core": { "dest\_folder": '/tmp/test' "port": 9487, "start\_options": " -Xmx16G -XX:+UseG1GC -XX…

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

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