# Latest

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

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

**Page:** 878

---

## [register a variable in one playbook and use in a different playbook](https://forum.ansible.com/t/register-a-variable-in-one-playbook-and-use-in-a-different-playbook/17996)

<div class="topic-metadata">

**Author:** [@Felix\_Wong](https://forum.ansible.com/u/Felix_Wong)\
**Replies:** 1\
**Last updated:** [April 18, 2015, 6:37pm UTC](https://forum.ansible.com/t/register-a-variable-in-one-playbook-and-use-in-a-different-playbook/17996 "2015-04-18T18:37:09Z")

</div>

Hi, is there a way to register a variable in one playbook and then use it somewhere else in a different playbook?

---

## [access local file from ansible custom module](https://forum.ansible.com/t/access-local-file-from-ansible-custom-module/18012)

<div class="topic-metadata">

**Author:** [@Shaps](https://forum.ansible.com/u/Shaps)\
**Replies:** 0\
**Last updated:** [April 18, 2015, 9:05am UTC](https://forum.ansible.com/t/access-local-file-from-ansible-custom-module/18012 "2015-04-18T09:05:29Z")

</div>

Hi jack, what do you mean by accessing local files? You can use synchronise or copy to push the file to the remote or “fetch” to pull it.

---

## [ansible loop break hack](https://forum.ansible.com/t/ansible-loop-break-hack/18010)

<div class="topic-metadata">

**Author:** [@Daniel\_Siechniewicz](https://forum.ansible.com/u/Daniel_Siechniewicz)\
**Replies:** 0\
**Last updated:** [April 17, 2015, 10:58pm UTC](https://forum.ansible.com/t/ansible-loop-break-hack/18010 "2015-04-17T22:58:16Z")

</div>

I've got a hack for what seems like a lack of "break" in ansible loops. How ugly is that (and is there a better way)?

---

## [Ansible array manipulation](https://forum.ansible.com/t/ansible-array-manipulation/18008)

<div class="topic-metadata">

**Author:** [@Michael\_Liu1](https://forum.ansible.com/u/Michael_Liu1)\
**Replies:** 4\
**Last updated:** [April 17, 2015, 9:28pm UTC](https://forum.ansible.com/t/ansible-array-manipulation/18008 "2015-04-17T21:28:13Z")

</div>

I’m having an issue adding an element to an array. What i need to do is… get an array list of IDs from an api using the uri module (no issues here) add an element to this array (issue here!) send a PUT with the updated…

---

## [Ansible 1.9.1 rc3 is now available for testing](https://forum.ansible.com/t/ansible-1-9-1-rc3-is-now-available-for-testing/18007)

<div class="topic-metadata">

**Author:** [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Replies:** 0\
**Last updated:** [April 17, 2015, 7:51pm UTC](https://forum.ansible.com/t/ansible-1-9-1-rc3-is-now-available-for-testing/18007 "2015-04-17T19:51:00Z")

</div>

Hi all, we’ve just tagged the rc3 release for 1.9.1 to address a bug reported by Rene Moser. To test from source, simply clone the git repository (if you haven’t already) and do the following: $ git checkout v1.9.1-0.3…

---

## [Debugging modules](https://forum.ansible.com/t/debugging-modules/18006)

<div class="topic-metadata">

**Author:** [@Christoph\_Haas](https://forum.ansible.com/u/Christoph_Haas)\
**Replies:** 1\
**Last updated:** [April 17, 2015, 5:25pm UTC](https://forum.ansible.com/t/debugging-modules/18006 "2015-04-17T17:25:56Z")

</div>

Hi… it assume that the mysql\_user module is slightly buggy because it claims "changed=1" after a privileges change although nothing was changed. But I don't just like to complain but instead debug the module and see i…

---

## [Variable precedence in a group hierarchy](https://forum.ansible.com/t/variable-precedence-in-a-group-hierarchy/18005)

<div class="topic-metadata">

**Author:** [@sandra.kosmalla](https://forum.ansible.com/u/sandra.kosmalla)\
**Replies:** 2\
**Last updated:** [April 17, 2015, 3:55pm UTC](https://forum.ansible.com/t/variable-precedence-in-a-group-hierarchy/18005 "2015-04-17T15:55:06Z")

</div>

Hello list, I need to understand following variable precedence problem. I have an inventory file with following group hierarchy: \` inventory file host1 host2 \[group1\] host1 host2 \[group11:children\] group1 \[gro…

---

## [version 0.9: wait\_for suck in wait until timeout, it cannot wake up after the host can be accessed by ssh](https://forum.ansible.com/t/version-0-9-wait-for-suck-in-wait-until-timeout-it-cannot-wake-up-after-the-host-can-be-accessed-by-ssh/17625)

<div class="topic-metadata">

**Author:** [@hce](https://forum.ansible.com/u/hce)\
**Replies:** 7\
**Last updated:** [April 17, 2015, 3:21pm UTC](https://forum.ansible.com/t/version-0-9-wait-for-suck-in-wait-until-timeout-it-cannot-wake-up-after-the-host-can-be-accessed-by-ssh/17625 "2015-04-17T15:21:44Z")

</div>

Hi, I have following wait\_for statement after reboot the host, but it stuck in the wait until the timeout even the host can be accessed manually when I run ssh the host. Is it a bug or what I could be missing? name: W…

---

## [Accessing Previously Set Facts in a Module](https://forum.ansible.com/t/accessing-previously-set-facts-in-a-module/17934)

<div class="topic-metadata">

**Author:** [@Julian\_Berman](https://forum.ansible.com/u/Julian_Berman)\
**Replies:** 9\
**Last updated:** [April 17, 2015, 2:59pm UTC](https://forum.ansible.com/t/accessing-previously-set-facts-in-a-module/17934 "2015-04-17T14:59:33Z")

</div>

I apologize for asking this because I see a number of previous threads, but none of them hit exactly this point, or the answers don’t appear to have worked for me yet so I’m trying to figure out if I’m just completely mi…

---

## [Ansible 1.9.1 rc2 is now available for testing](https://forum.ansible.com/t/ansible-1-9-1-rc2-is-now-available-for-testing/17984)

<div class="topic-metadata">

**Author:** [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Replies:** 1\
**Last updated:** [April 17, 2015, 12:16pm UTC](https://forum.ansible.com/t/ansible-1-9-1-rc2-is-now-available-for-testing/17984 "2015-04-17T12:16:04Z")

</div>

Hi all, we’ve just tagged the rc2 release for 1.9.1 To test from source, simply clone the git repository (if you haven’t already) and do the following: $ git checkout v1.9.1-0.2.rc2 $ git submodule update $ . hacking…

---

## [Ansible Core Team Hangouts](https://forum.ansible.com/t/ansible-core-team-hangouts/17995)

<div class="topic-metadata">

**Author:** [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Replies:** 1\
**Last updated:** [April 17, 2015, 12:13pm UTC](https://forum.ansible.com/t/ansible-core-team-hangouts/17995 "2015-04-17T12:13:08Z")

</div>

Hi all, In the interest of working more closely with contributors and helping PRs get merged in, the core team will be hosting a weekly Google Hangout in which anyone who’d like to discuss a PR on Github can join and wo…

---

## [Best Practices for dealing with multiple related sets of properties?](https://forum.ansible.com/t/best-practices-for-dealing-with-multiple-related-sets-of-properties/18003)

<div class="topic-metadata">

**Author:** [@Brad\_Smith](https://forum.ansible.com/u/Brad_Smith)\
**Replies:** 0\
**Last updated:** [April 17, 2015, 9:54am UTC](https://forum.ansible.com/t/best-practices-for-dealing-with-multiple-related-sets-of-properties/18003 "2015-04-17T09:54:16Z")

</div>

Hello all, Suppose I want to deploy multiple versions of a service (let’s call them v1 and v2, though they could also be different services with the same setup steps) to two environments (dev and prod). Since steps to d…

---

## [Ansible Vault - Crypto JS implementation](https://forum.ansible.com/t/ansible-vault-crypto-js-implementation/18002)

<div class="topic-metadata">

**Author:** [@Jan\_Koprowski](https://forum.ansible.com/u/Jan_Koprowski)\
**Replies:** 0\
**Last updated:** [April 17, 2015, 9:07am UTC](https://forum.ansible.com/t/ansible-vault-crypto-js-implementation/18002 "2015-04-17T09:07:58Z")

</div>

Hi, Reviewing vaulted files is really painful process. I’ve tried to implement some Chrome, Gerrit focused solution. Idea behind it is have Chrome plugin encrypting selected content using configured password. Unfortu…

---

## [Run Playbook with only several tags with the dependencies](https://forum.ansible.com/t/run-playbook-with-only-several-tags-with-the-dependencies/18001)

<div class="topic-metadata">

**Author:** [@Ruhut\_Tambunan](https://forum.ansible.com/u/Ruhut_Tambunan)\
**Replies:** 0\
**Last updated:** [April 17, 2015, 7:23am UTC](https://forum.ansible.com/t/run-playbook-with-only-several-tags-with-the-dependencies/18001 "2015-04-17T07:23:03Z")

</div>

Hello guys, I have a little problem in running a playbook. So, let’s just say I have this kind of roles: myproject --roles ++cars.yml --dodge --meta ++main.yml --tasks ++main.yml ++charger.yml ++viper.yml …

---

## [docker module how to get  --cap-add=NET\_ADMIN](https://forum.ansible.com/t/docker-module-how-to-get-cap-add-net-admin/18000)

<div class="topic-metadata">

**Author:** [@Steve\_Kieu](https://forum.ansible.com/u/Steve_Kieu)\
**Replies:** 2\
**Last updated:** [April 17, 2015, 3:11am UTC](https://forum.ansible.com/t/docker-module-how-to-get-cap-add-net-admin/18000 "2015-04-17T03:11:14Z")

</div>

Hi team, I am sorry if it has been answered somewhere but my google search does not show yet. How can I get something like --cap-add=NET\_ADMIN when using docker module to start a docker container my exmaple like below …

---

## [Parse JSON output from uri module](https://forum.ansible.com/t/parse-json-output-from-uri-module/16789)

<div class="topic-metadata">

**Author:** [@Petr\_Sukharev](https://forum.ansible.com/u/Petr_Sukharev)\
**Replies:** 4\
**Last updated:** [April 17, 2015, 2:26am UTC](https://forum.ansible.com/t/parse-json-output-from-uri-module/16789 "2015-04-17T02:26:45Z")

</div>

Hello! I have some strange problem with register option in role and json fomat. I try to communicate with my Monitoring System (Zabbix) via Zabbix API. A need to send some data, collect some data and make some work aroun…

---

## [How do I specify a specific package version when using the homebrew modules?](https://forum.ansible.com/t/how-do-i-specify-a-specific-package-version-when-using-the-homebrew-modules/17998)

<div class="topic-metadata">

**Author:** [@Philip\_Kania](https://forum.ansible.com/u/Philip_Kania)\
**Replies:** 0\
**Last updated:** [April 16, 2015, 9:52pm UTC](https://forum.ansible.com/t/how-do-i-specify-a-specific-package-version-when-using-the-homebrew-modules/17998 "2015-04-16T21:52:42Z")

</div>

brew allows be to install a specific version of a module. e.g. brew install mongodb 2.6 I don’t see a way of doing this with the Ansible homebrew module. I’ve looked at the documentation and the source code and search…

---

## [indempotence best practices questions and playbook example](https://forum.ansible.com/t/indempotence-best-practices-questions-and-playbook-example/17997)

<div class="topic-metadata">

**Author:** [@Vince\_Skahan](https://forum.ansible.com/u/Vince_Skahan)\
**Replies:** 0\
**Last updated:** [April 16, 2015, 9:31pm UTC](https://forum.ansible.com/t/indempotence-best-practices-questions-and-playbook-example/17997 "2015-04-16T21:31:20Z")

</div>

I’m a little confused about best practices for indempotence in Ansible. Here’s a quick playbook that does the following: installs mysql-server on a minimal debian system, preseeding the questions (ugh) the package asks…

---

## [Ansible windows 8.1 management...](https://forum.ansible.com/t/ansible-windows-8-1-management/17991)

<div class="topic-metadata">

**Author:** [@Michael\_Legleux](https://forum.ansible.com/u/Michael_Legleux)\
**Replies:** 1\
**Last updated:** [April 16, 2015, 6:14pm UTC](https://forum.ansible.com/t/ansible-windows-8-1-management/17991 "2015-04-16T18:14:16Z")

</div>

Ansible 1.8.4 on ubuntu 12.04 to connect to windows 8.1 guest vm using literally the exact same windows module examples from the ansible documentation. ansible -m win\_ping and -m setup work great. 2 Problems standing i…

---

## [module\_utils/ec2.py Do we need the AWS\_REGION list](https://forum.ansible.com/t/module-utils-ec2-py-do-we-need-the-aws-region-list/17989)

<div class="topic-metadata">

**Author:** [@Toshio\_Kuratomi](https://forum.ansible.com/u/Toshio_Kuratomi)\
**Replies:** 1\
**Last updated:** [April 16, 2015, 4:24pm UTC](https://forum.ansible.com/t/module-utils-ec2-py-do-we-need-the-aws-region-list/17989 "2015-04-16T16:24:10Z")

</div>

Fedora Infrastructure is using openstack with the ec2 compat layer and thus the region was being set to something local rather than the official aws regions. It looks like boto allows this via the BOTO\_ENDPOINTS envi…

---

## [exit code on skipping: no hosts match](https://forum.ansible.com/t/exit-code-on-skipping-no-hosts-match/17993)

<div class="topic-metadata">

**Author:** [@Alex\_Rodenberg1](https://forum.ansible.com/u/Alex_Rodenberg1)\
**Replies:** 2\
**Last updated:** [April 16, 2015, 2:57pm UTC](https://forum.ansible.com/t/exit-code-on-skipping-no-hosts-match/17993 "2015-04-16T14:57:11Z")

</div>

Hi What is the reason for doing Exit code 0 on a skipping: no hosts match ? I would really love to get a different exit code, so I get a warning if my playbook failed to run against a host… My ansible inventory is run…

---

## [Run only those tasks tagged as both X and Y?](https://forum.ansible.com/t/run-only-those-tasks-tagged-as-both-x-and-y/17994)

<div class="topic-metadata">

**Author:** [@Ben\_Overmyer](https://forum.ansible.com/u/Ben_Overmyer)\
**Replies:** 1\
**Last updated:** [April 16, 2015, 1:28pm UTC](https://forum.ansible.com/t/run-only-those-tasks-tagged-as-both-x-and-y/17994 "2015-04-16T13:28:31Z")

</div>

Is there a way in an ansible-playbook run to only run those tasks that have all of the specified tags? E.g., ansible-playbook myplaybook.yml --tags nginx AND config would only run tasks that have both nginx and config t…

---

## [extra-var should decide about used vars in role](https://forum.ansible.com/t/extra-var-should-decide-about-used-vars-in-role/17992)

<div class="topic-metadata">

**Author:** [@Mateusz\_Rumian](https://forum.ansible.com/u/Mateusz_Rumian)\
**Replies:** 0\
**Last updated:** [April 16, 2015, 8:57am UTC](https://forum.ansible.com/t/extra-var-should-decide-about-used-vars-in-role/17992 "2015-04-16T08:57:30Z")

</div>

Hello guys, I’m a “noob” in Ansible. I have some probs with passing extra-vars to my playbook. My playbook contains few roles to run. name: Instal Java etc… hosts: localhost connection: local roles: java mys…

---

## [EC2 Inventory Script - boto profiles (ansible 1.8)](https://forum.ansible.com/t/ec2-inventory-script-boto-profiles-ansible-1-8/17990)

<div class="topic-metadata">

**Author:** [@Gary\_Malouf](https://forum.ansible.com/u/Gary_Malouf)\
**Replies:** 0\
**Last updated:** [April 16, 2015, 2:10am UTC](https://forum.ansible.com/t/ec2-inventory-script-boto-profiles-ansible-1-8/17990 "2015-04-16T02:10:24Z")

</div>

I’ve been struggling to get the inventory script to pick up my boto profile (I have multiple aws account creds to manage). What is the correct filter to use in the ec2.ini to specify the profile that should be used? Also…

---

## [Registering returns to a dictionary attribute](https://forum.ansible.com/t/registering-returns-to-a-dictionary-attribute/17987)

<div class="topic-metadata">

**Author:** [@Tony\_Yarusso](https://forum.ansible.com/u/Tony_Yarusso)\
**Replies:** 0\
**Last updated:** [April 15, 2015, 9:38pm UTC](https://forum.ansible.com/t/registering-returns-to-a-dictionary-attribute/17987 "2015-04-15T21:38:53Z")

</div>

So, I have a dictionary variable containing information about all of my users, like this: user\_dictionary: bjones: realname: Bob Jones uniqueid: 1007 status: active notes: Database consultant Part of my playbook c…

---

## [Windows Hosts Setup](https://forum.ansible.com/t/windows-hosts-setup/17983)

<div class="topic-metadata">

**Author:** [@Ravi\_Kanth](https://forum.ansible.com/u/Ravi_Kanth)\
**Replies:** 1\
**Last updated:** [April 15, 2015, 9:21pm UTC](https://forum.ansible.com/t/windows-hosts-setup/17983 "2015-04-15T21:21:54Z")

</div>

Dear All, I am new to ansible and i have installed latest version 2.1.1 in our environment. i was trying to add windows hosts to our inventory and i am following the ansible documentation “http://docs.ansible.com/intro…

---

## [Modules for Pivotal Tracker and Github](https://forum.ansible.com/t/modules-for-pivotal-tracker-and-github/17986)

<div class="topic-metadata">

**Author:** [@Christo\_Crampton](https://forum.ansible.com/u/Christo_Crampton)\
**Replies:** 0\
**Last updated:** [April 15, 2015, 8:24pm UTC](https://forum.ansible.com/t/modules-for-pivotal-tracker-and-github/17986 "2015-04-15T20:24:20Z")

</div>

Hi I would be interested in creating Ansible modules for Pivotal Tracker and Github, and wanted to check if this might be something useful that might be worth contributing back to the extras repo. I’ve already started …

---

## [Python ansible playbook and output](https://forum.ansible.com/t/python-ansible-playbook-and-output/17784)

<div class="topic-metadata">

**Author:** [@Valeriy\_Solovyov](https://forum.ansible.com/u/Valeriy_Solovyov)\
**Replies:** 2\
**Last updated:** [April 15, 2015, 8:02pm UTC](https://forum.ansible.com/t/python-ansible-playbook-and-output/17784 "2015-04-15T20:02:58Z")

</div>

Hello, I write playbook and python code to run it.Code i took from ansible-playbook as example: playbook=params\[“playbook”\] inventory=ansible.inventory.Inventory(hosts) inventory.set\_playbook\_basedir(os.path.dirname(…

---

## [access the facts from the module](https://forum.ansible.com/t/access-the-facts-from-the-module/17979)

<div class="topic-metadata">

**Author:** [@jack1](https://forum.ansible.com/u/jack1)\
**Replies:** 1\
**Last updated:** [April 15, 2015, 7:26pm UTC](https://forum.ansible.com/t/access-the-facts-from-the-module/17979 "2015-04-15T19:26:48Z")

</div>

Hi All: We are trying to write some site custom modules, it requires to access other facts generated from our custom modules. Anyone knows how to do it? or is there a way to pass json objects to the module? Thanks Jac…

---

## [Problem with variables structure (loop with\_items)](https://forum.ansible.com/t/problem-with-variables-structure-loop-with-items/17959)

<div class="topic-metadata">

**Author:** [@wredetobias](https://forum.ansible.com/u/wredetobias)\
**Replies:** 1\
**Last updated:** [April 15, 2015, 7:12pm UTC](https://forum.ansible.com/t/problem-with-variables-structure-loop-with-items/17959 "2015-04-15T19:12:26Z")

</div>

Hi, I am trying to create a role for multiple installations of apache on one host. My group\_vars: apache: { name: vhost1, dir: installation1, …lot of other variables… file: { src: /deploy/1.txt, dst: /tmp/1.tx…

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

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