# Latest

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

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

**Page:** 758

---

## [role dependencies - path to parent role's templates folder](https://forum.ansible.com/t/role-dependencies-path-to-parent-roles-templates-folder/21565)

<div class="topic-metadata">

**Author:** [@profhase85](https://forum.ansible.com/u/profhase85)\
**Replies:** 3\
**Last updated:** [May 30, 2016, 12:38pm UTC](https://forum.ansible.com/t/role-dependencies-path-to-parent-roles-templates-folder/21565 "2016-05-30T12:38:10Z")

</div>

I am deploying multiple web applications that all have 4 tasks in common: \` name: copy nginx conf template: src=nginx.conf dest=/etc/nginx/{{ inventory\_hostname }}.conf enable nginx conf file: state=link … …

---

## [How to pass variables into modules in Ansible](https://forum.ansible.com/t/how-to-pass-variables-into-modules-in-ansible/21594)

<div class="topic-metadata">

**Author:** [@ZaVaZaVa](https://forum.ansible.com/u/ZaVaZaVa)\
**Replies:** 2\
**Last updated:** [May 30, 2016, 2:49am UTC](https://forum.ansible.com/t/how-to-pass-variables-into-modules-in-ansible/21594 "2016-05-30T02:49:48Z")

</div>

Hello I am new into ansible and I would appreciate some help here… I am working on a new Project to automatic our Infrastructure Network Deployment and Configuration. Question: How do I pass parameters to a YML file o…

---

## [Is there a way to register a variable with a hash key?](https://forum.ansible.com/t/is-there-a-way-to-register-a-variable-with-a-hash-key/21601)

<div class="topic-metadata">

**Author:** [@John\_Leo\_Huetter](https://forum.ansible.com/u/John_Leo_Huetter)\
**Replies:** 0\
**Last updated:** [May 29, 2016, 11:46pm UTC](https://forum.ansible.com/t/is-there-a-way-to-register-a-variable-with-a-hash-key/21601 "2016-05-29T23:46:44Z")

</div>

Hello, I run a command via looping in a “with\_items” and registering the output into a hash with the item as a key. However when I do this, I am having difficulty referencing the specific results when I try and key on …

---

## [Use "register" local to a playbook (or unset a variable)](https://forum.ansible.com/t/use-register-local-to-a-playbook-or-unset-a-variable/21597)

<div class="topic-metadata">

**Author:** [@Serdyn\_du\_Toit](https://forum.ansible.com/u/Serdyn_du_Toit)\
**Replies:** 1\
**Last updated:** [May 29, 2016, 9:05pm UTC](https://forum.ansible.com/t/use-register-local-to-a-playbook-or-unset-a-variable/21597 "2016-05-29T21:05:22Z")

</div>

Hi, How can I “register” a variable in a playbook - but in a way that it will no longer be set in subsequent playbooks that get executed. It seems that if I declare the variable at the top of the playbook, as in this e…

---

## [Assigning Groups Based on Dynamic Inventory Source](https://forum.ansible.com/t/assigning-groups-based-on-dynamic-inventory-source/21599)

<div class="topic-metadata">

**Author:** [@Daniel\_Rozeboom](https://forum.ansible.com/u/Daniel_Rozeboom)\
**Replies:** 0\
**Last updated:** [May 29, 2016, 8:37pm UTC](https://forum.ansible.com/t/assigning-groups-based-on-dynamic-inventory-source/21599 "2016-05-29T20:37:28Z")

</div>

Hi all, I’m new to Ansible, so please forgive me if this is a silly question. I’m working on loading inventory from multiple sources, one of which is dynamic using the DigitalOcean inventory script. I am able to success…

---

## [How to generate a group of ip list by referencing a variable in play books?](https://forum.ansible.com/t/how-to-generate-a-group-of-ip-list-by-referencing-a-variable-in-play-books/21519)

<div class="topic-metadata">

**Author:** [@Sicheng\_Tang](https://forum.ansible.com/u/Sicheng_Tang)\
**Replies:** 1\
**Last updated:** [May 29, 2016, 7:39pm UTC](https://forum.ansible.com/t/how-to-generate-a-group-of-ip-list-by-referencing-a-variable-in-play-books/21519 "2016-05-29T19:39:06Z")

</div>

Hi all: I have a group of host whose IPs are 10.129.51.158,10.129.50.235,10.129.50.232 and I will define them as variable, like this ip = 10.129.51.158,10.129.50.235,10.129.50.232 Is there any way to generate a play b…

---

## [AWS / RDS environment variables disagree in docs](https://forum.ansible.com/t/aws-rds-environment-variables-disagree-in-docs/21593)

<div class="topic-metadata">

**Author:** [@Darren\_S](https://forum.ansible.com/u/Darren_S)\
**Replies:** 0\
**Last updated:** [May 28, 2016, 11:02pm UTC](https://forum.ansible.com/t/aws-rds-environment-variables-disagree-in-docs/21593 "2016-05-28T23:02:48Z")

</div>

From http://docs.ansible.com/ansible/guide\_aws.html: Authentication with the AWS-related modules is handled by either specifying your access and secret key as ENV variables or module arguments. For environment vari…

---

## [Grouping modules by purpose](https://forum.ansible.com/t/grouping-modules-by-purpose/21215)

<div class="topic-metadata">

**Author:** [@Azer\_Huseyin](https://forum.ansible.com/u/Azer_Huseyin)\
**Replies:** 1\
**Last updated:** [May 28, 2016, 12:00pm UTC](https://forum.ansible.com/t/grouping-modules-by-purpose/21215 "2016-05-28T12:00:18Z")

</div>

Hi , I am investigating ansible to automate our system configuration/management tasks currently performed using mostly shell scripts. We mostly definitely will have to write custom modules, but I noticed that ansible do…

---

## [rds module doesn't support/allow Boto config file?](https://forum.ansible.com/t/rds-module-doesnt-support-allow-boto-config-file/21591)

<div class="topic-metadata">

**Author:** [@Darren\_S](https://forum.ansible.com/u/Darren_S)\
**Replies:** 1\
**Last updated:** [May 28, 2016, 6:14am UTC](https://forum.ansible.com/t/rds-module-doesnt-support-allow-boto-config-file/21591 "2016-05-28T06:14:41Z")

</div>

Attempting to provision an AWS RDS instance using http://docs.ansible.com/ansible/rds\_module.html. The module indicates that it requires boto, which itself can read configuration data from a number of paths including …

---

## [ansible-pull only does "git pull" on first run, then uses same revision forever](https://forum.ansible.com/t/ansible-pull-only-does-git-pull-on-first-run-then-uses-same-revision-forever/21589)

<div class="topic-metadata">

**Author:** [@david.stelter](https://forum.ansible.com/u/david.stelter)\
**Replies:** 0\
**Last updated:** [May 27, 2016, 10:48pm UTC](https://forum.ansible.com/t/ansible-pull-only-does-git-pull-on-first-run-then-uses-same-revision-forever/21589 "2016-05-27T22:48:42Z")

</div>

I’m finding that the first ansible-pull run works perfect, but if I run it again after the initial run to get updates it continues to use the same revision. I’m working around it by using the --purge flag, but I think th…

---

## [Best practices on deploying several java applications over several tomcat containers with haproxy load balancing and varnish cache](https://forum.ansible.com/t/best-practices-on-deploying-several-java-applications-over-several-tomcat-containers-with-haproxy-load-balancing-and-varnish-cache/21588)

<div class="topic-metadata">

**Author:** [@Raoni\_Castro](https://forum.ansible.com/u/Raoni_Castro)\
**Replies:** 0\
**Last updated:** [May 27, 2016, 10:03pm UTC](https://forum.ansible.com/t/best-practices-on-deploying-several-java-applications-over-several-tomcat-containers-with-haproxy-load-balancing-and-varnish-cache/21588 "2016-05-27T22:03:44Z")

</div>

Hi All, I’m new to this list and to ansible as well, so I’d like to apologize beforehand if the question is malformed or if it should be asked in another place. Any help is greatly appreciated. We use the following ar…

---

## [Rebooting and waiting](https://forum.ansible.com/t/rebooting-and-waiting/21583)

<div class="topic-metadata">

**Author:** [@Francisco\_Lopes](https://forum.ansible.com/u/Francisco_Lopes)\
**Replies:** 9\
**Last updated:** [May 27, 2016, 8:08pm UTC](https://forum.ansible.com/t/rebooting-and-waiting/21583 "2016-05-27T20:08:06Z")

</div>

Hello, How do I execute a reboot (if needed on Ubuntu) and wait for it to return instead of getting the unreachable error? I’m currently trying to do this based on past posts and links I found:

---

## [add\_host module not adding multiple hosts](https://forum.ansible.com/t/add-host-module-not-adding-multiple-hosts/21526)

<div class="topic-metadata">

**Author:** [@Eric\_S1](https://forum.ansible.com/u/Eric_S1)\
**Replies:** 10\
**Last updated:** [May 27, 2016, 5:49pm UTC](https://forum.ansible.com/t/add-host-module-not-adding-multiple-hosts/21526 "2016-05-27T17:49:09Z")

</div>

ansible ver=2.0.2 When I’m trying to add more than one host to a group its only adding the first one in the list. Here is my task to add hosts: name: Add hosts group temporary inventory group add\_host: name={{ item.p…

---

## [Reminder: CfP for AnsibleFest San Francisco closes June 1st](https://forum.ansible.com/t/reminder-cfp-for-ansiblefest-san-francisco-closes-june-1st/21586)

<div class="topic-metadata">

**Author:** [@Greg\_DeKoenigsberg1](https://forum.ansible.com/u/Greg_DeKoenigsberg1)\
**Replies:** 0\
**Last updated:** [May 27, 2016, 3:53pm UTC](https://forum.ansible.com/t/reminder-cfp-for-ansiblefest-san-francisco-closes-june-1st/21586 "2016-05-27T15:53:50Z")

</div>

With AnsibleFest SF, for the first time we're expanding to two tracks, so there are more opportunities than ever to speak. Get that abstract in! https://www.ansible.com/ansiblefest --g

---

## [Dump Variables - BROKEN](https://forum.ansible.com/t/dump-variables-broken/21584)

<div class="topic-metadata">

**Author:** [@Andy\_L](https://forum.ansible.com/u/Andy_L)\
**Replies:** 1\
**Last updated:** [May 27, 2016, 3:34pm UTC](https://forum.ansible.com/t/dump-variables-broken/21584 "2016-05-27T15:34:14Z")

</div>

Prior to 2.0, I used a task that dumped Ansible variables to an output file using a template. This technique was super valuable for debugging. The template looked like this: HOST Variables (“hostvars”):

---

## [Raw Command to run a UNC Powershell script](https://forum.ansible.com/t/raw-command-to-run-a-unc-powershell-script/20971)

<div class="topic-metadata">

**Author:** [@Mark\_Matthews](https://forum.ansible.com/u/Mark_Matthews)\
**Replies:** 7\
**Last updated:** [May 27, 2016, 2:11pm UTC](https://forum.ansible.com/t/raw-command-to-run-a-unc-powershell-script/20971 "2016-05-27T14:11:15Z")

</div>

Hi Is it possible to run a the following raw command to start a PowerShell script? Neither of the below work…I keep getting errors. name: Config Octo hosts: winservers tasks: name: Config Octo raw: ‘\\10.10.3.167\\…

---

## [Issue with Wordpress Update playbook](https://forum.ansible.com/t/issue-with-wordpress-update-playbook/21577)

<div class="topic-metadata">

**Author:** [@Arush\_Salil](https://forum.ansible.com/u/Arush_Salil)\
**Replies:** 1\
**Last updated:** [May 26, 2016, 8:12pm UTC](https://forum.ansible.com/t/issue-with-wordpress-update-playbook/21577 "2016-05-26T20:12:25Z")

</div>

I am writing a playbook to check for wordpress updates using wp-cli. The issues that I am facing are as below: I am unable to figure out how to iterate in “/var/www/\*/htdocs” How can I get the output of wp-cli for eac…

---

## [become\_user not being honored?](https://forum.ansible.com/t/become-user-not-being-honored/21580)

<div class="topic-metadata">

**Author:** [@Sam\_S](https://forum.ansible.com/u/Sam_S)\
**Replies:** 10\
**Last updated:** [May 26, 2016, 8:00pm UTC](https://forum.ansible.com/t/become-user-not-being-honored/21580 "2016-05-26T20:00:00Z")

</div>

Running Ansible 2.1. If I use sudo in front of the command, it works. if I remove and use “become\_user: root” it does not work. I’ve also tried setting “become: True” and I get the same results. Works: - name: restart …

---

## [meta dependencies but fire after a role](https://forum.ansible.com/t/meta-dependencies-but-fire-after-a-role/21578)

<div class="topic-metadata">

**Author:** [@James\_Morgan](https://forum.ansible.com/u/James_Morgan)\
**Replies:** 4\
**Last updated:** [May 26, 2016, 6:33pm UTC](https://forum.ansible.com/t/meta-dependencies-but-fire-after-a-role/21578 "2016-05-26T18:33:04Z")

</div>

Hi, Is there any mechanism like meta dependencies that allows me to fire a role after the main role has executed instead of before? Currently I have to call the subsequent roles in every playbook. It would be much nice…

---

## [Upgrading to Ansible 2 break EC2 inventory groups augmentation](https://forum.ansible.com/t/upgrading-to-ansible-2-break-ec2-inventory-groups-augmentation/21226)

<div class="topic-metadata">

**Author:** [@Tzach\_Livyatan1](https://forum.ansible.com/u/Tzach_Livyatan1)\
**Replies:** 4\
**Last updated:** [May 26, 2016, 6:31pm UTC](https://forum.ansible.com/t/upgrading-to-ansible-2-break-ec2-inventory-groups-augmentation/21226 "2016-05-26T18:31:57Z")

</div>

Hi I have a working play book in Ansible 1.9 As part of it, I’m defining extra groups in file inventories/ec2/hosts, for example: \` \[us-west-2\] \[us\_west\_2:children\] us-west-2 \` In Ansible 1.9, I used this group a…

---

## [Pulling an RPM via a URL and installing it... What am I doing wrong?](https://forum.ansible.com/t/pulling-an-rpm-via-a-url-and-installing-it-what-am-i-doing-wrong/21569)

<div class="topic-metadata">

**Author:** [@Adam\_Morris](https://forum.ansible.com/u/Adam_Morris)\
**Replies:** 6\
**Last updated:** [May 26, 2016, 4:25pm UTC](https://forum.ansible.com/t/pulling-an-rpm-via-a-url-and-installing-it-what-am-i-doing-wrong/21569 "2016-05-26T16:25:45Z")

</div>

Greetings, I have a playbook which includes this piece… name: Install the appropriate EPEL package for RHEL/OEL package: name=“https://dl.fedoraproject.org/pub/epel/epel-release-latest-{{ ansible\_distribution\_major\_v…

---

## [.profile](https://forum.ansible.com/t/profile/21561)

<div class="topic-metadata">

**Author:** [@fanvalt](https://forum.ansible.com/u/fanvalt)\
**Replies:** 10\
**Last updated:** [May 26, 2016, 12:49pm UTC](https://forum.ansible.com/t/profile/21561 "2016-05-26T12:49:59Z")

</div>

Hello, is it possible to run the .profile on the target server to be able to run a shell using these env variables ? example: the JAVA\_HOME variable is set in the .profile on my target environment. When running the p…

---

## [Issues with Wordpress update playbook.](https://forum.ansible.com/t/issues-with-wordpress-update-playbook/21576)

<div class="topic-metadata">

**Author:** [@Arush\_Salil](https://forum.ansible.com/u/Arush_Salil)\
**Replies:** 0\
**Last updated:** [May 26, 2016, 10:59am UTC](https://forum.ansible.com/t/issues-with-wordpress-update-playbook/21576 "2016-05-26T10:59:44Z")

</div>

I am trying to write a playbook that will iterate on a number of site’s webroot and will check for wordpress updates using wp-cli. Now following are the issues I am facing: I am unable to figure out a way to iterate o…

---

## ["with\_items" skipping with module "include'](https://forum.ansible.com/t/with-items-skipping-with-module-include/21575)

<div class="topic-metadata">

**Author:** [@anderson.goulart](https://forum.ansible.com/u/anderson.goulart)\
**Replies:** 0\
**Last updated:** [May 26, 2016, 10:58am UTC](https://forum.ansible.com/t/with-items-skipping-with-module-include/21575 "2016-05-26T10:58:15Z")

</div>

Try to run with -v option and see if there is any empty variable.

---

## [Resolving some ambiguity with requirements.yml vs meta/main.yml](https://forum.ansible.com/t/resolving-some-ambiguity-with-requirements-yml-vs-meta-main-yml/16511)

<div class="topic-metadata">

**Author:** [@mahmoudimus](https://forum.ansible.com/u/mahmoudimus)\
**Replies:** 2\
**Last updated:** [May 26, 2016, 8:44am UTC](https://forum.ansible.com/t/resolving-some-ambiguity-with-requirements-yml-vs-meta-main-yml/16511 "2016-05-26T08:44:10Z")

</div>

Hi there, I would like some clarification on this pattern I’m noticing in the documentation in regards to dependencies installed via Ansible Galaxy (http://docs.ansible.com/galaxy.html) and the Role Dependencies (http:/…

---

## [Pip module editable flag](https://forum.ansible.com/t/pip-module-editable-flag/21574)

<div class="topic-metadata">

**Author:** [@Darren\_S](https://forum.ansible.com/u/Darren_S)\
**Replies:** 0\
**Last updated:** [May 26, 2016, 8:24am UTC](https://forum.ansible.com/t/pip-module-editable-flag/21574 "2016-05-26T08:24:26Z")

</div>

Hi, I'm very confused about the 'editable' parameter for the pip module \[1\]. It defaults to True and is described as "Pass the editable flag for versioning URLs." My best guess is that this corresponds to the --edita…

---

## [OpenStack heat ansible modules](https://forum.ansible.com/t/openstack-heat-ansible-modules/21572)

<div class="topic-metadata">

**Author:** [@Sridhar\_L](https://forum.ansible.com/u/Sridhar_L)\
**Replies:** 0\
**Last updated:** [May 26, 2016, 3:59am UTC](https://forum.ansible.com/t/openstack-heat-ansible-modules/21572 "2016-05-26T03:59:02Z")

</div>

I searched for heat ansible module for deploying the VMs in OpenStack cloud but could not find any. Are there any modules available for heat to deploy the stacks using ansible?

---

## [use item in a template](https://forum.ansible.com/t/use-item-in-a-template/21563)

<div class="topic-metadata">

**Author:** [@Anoop\_Alias](https://forum.ansible.com/u/Anoop_Alias)\
**Replies:** 3\
**Last updated:** [May 26, 2016, 1:03am UTC](https://forum.ansible.com/t/use-item-in-a-template/21563 "2016-05-26T01:03:33Z")

</div>

cat main.yml \`

---

## [run a task before running everytask](https://forum.ansible.com/t/run-a-task-before-running-everytask/21570)

<div class="topic-metadata">

**Author:** [@Steve\_Kieu1](https://forum.ansible.com/u/Steve_Kieu1)\
**Replies:** 0\
**Last updated:** [May 25, 2016, 11:46pm UTC](https://forum.ansible.com/t/run-a-task-before-running-everytask/21570 "2016-05-25T23:46:05Z")

</div>

Hi Team, I have a bit silly question, is there a way to run a task before every tasks? Like a hook but not in python. My purpose is that I would insert a wait\_for the DNS to come up. Our DNS server is sometimes reload…

---

## [Some parameters are shown as illegal while running --check option in playbook](https://forum.ansible.com/t/some-parameters-are-shown-as-illegal-while-running-check-option-in-playbook/21531)

<div class="topic-metadata">

**Author:** [@santosh.ghosh](https://forum.ansible.com/u/santosh.ghosh)\
**Replies:** 1\
**Last updated:** [May 25, 2016, 9:33pm UTC](https://forum.ansible.com/t/some-parameters-are-shown-as-illegal-while-running-check-option-in-playbook/21531 "2016-05-25T21:33:09Z")

</div>

Hi All, I am trying to do a syntax check on all my .yaml files before running ansible-playbook. I am using version 2.0.2.0. However some modules give error saying that they are “illegal parameters” in an Ansible play. I…

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

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