# Archives

**URL:** https://forum.ansible.com/c/archives/31.md?page=586

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

**Page:** 587

---

## [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…

---

## [Assign the result from a powershell script to ansible playbook variable](https://forum.ansible.com/t/assign-the-result-from-a-powershell-script-to-ansible-playbook-variable/21556)

<div class="topic-metadata">

**Author:** [@Jonathan\_Anderson](https://forum.ansible.com/u/Jonathan_Anderson)\
**Replies:** 4\
**Last updated:** [May 25, 2016, 8:26pm UTC](https://forum.ansible.com/t/assign-the-result-from-a-powershell-script-to-ansible-playbook-variable/21556 "2016-05-25T20:26:24Z")

</div>

Control Node: CentOS 7 Ansible 2.1 Remote Node: Windows 7 Powershell 3 I’m running a powershell script (from my playbook) that returns a number via stdout. How do I assign the result (6999) to my playbo…

---

## [ec2.results is not being defined](https://forum.ansible.com/t/ec2-results-is-not-being-defined/21524)

<div class="topic-metadata">

**Author:** [@Eric\_S1](https://forum.ansible.com/u/Eric_S1)\
**Replies:** 8\
**Last updated:** [May 25, 2016, 7:36pm UTC](https://forum.ansible.com/t/ec2-results-is-not-being-defined/21524 "2016-05-25T19:36:23Z")

</div>

ansible ver=2.0.2 When I’m registering the ec2 var isn’t results suppose to be automatically defined as the results of what was registered in the variable. I’m getting this when trying to debug the ec2.results var: TAS…

---

## [Ansible with Windows - 401 Error](https://forum.ansible.com/t/ansible-with-windows-401-error/21452)

<div class="topic-metadata">

**Author:** [@Bud\_Calabrese](https://forum.ansible.com/u/Bud_Calabrese)\
**Replies:** 20\
**Last updated:** [May 25, 2016, 7:20pm UTC](https://forum.ansible.com/t/ansible-with-windows-401-error/21452 "2016-05-25T19:20:36Z")

</div>

I am working on getting Windows with Ansible working. I have a CentOS 7 control machine joined to my AD domain. I ran through the steps http://docs.ansible.com/ansible/intro\_windows.html. When I tried the \[bud@ansible a…

---

## [Playbook help - syntax](https://forum.ansible.com/t/playbook-help-syntax/21554)

<div class="topic-metadata">

**Author:** [@Bud\_Calabrese](https://forum.ansible.com/u/Bud_Calabrese)\
**Replies:** 4\
**Last updated:** [May 25, 2016, 7:02pm UTC](https://forum.ansible.com/t/playbook-help-syntax/21554 "2016-05-25T19:02:37Z")

</div>

I am working on a Ansible file that will update our Windows boxes instead of using SCCM. I keep getting an error. Here is my playbook. --- - hosts: Windows connection: winrm tasks: - name: Install Critical Updat…

---

## [Changing UFW rules](https://forum.ansible.com/t/changing-ufw-rules/21567)

<div class="topic-metadata">

**Author:** [@Guy\_Knights](https://forum.ansible.com/u/Guy_Knights)\
**Replies:** 1\
**Last updated:** [May 25, 2016, 5:55pm UTC](https://forum.ansible.com/t/changing-ufw-rules/21567 "2016-05-25T17:55:52Z")

</div>

Does anyone have a solution for dealing with changes to UFW rules in Ansible? The issue is that occasionally, I have to change a rule in some way (change IPs/networks, change port) but the old rule still remains. I could…

---

## [Error when using mysql\_db to assign privileges in MySQL on RDS.](https://forum.ansible.com/t/error-when-using-mysql-db-to-assign-privileges-in-mysql-on-rds/21557)

<div class="topic-metadata">

**Author:** [@Daniel\_McQuillen](https://forum.ansible.com/u/Daniel_McQuillen)\
**Replies:** 1\
**Last updated:** [May 25, 2016, 3:29pm UTC](https://forum.ansible.com/t/error-when-using-mysql-db-to-assign-privileges-in-mysql-on-rds/21557 "2016-05-25T15:29:31Z")

</div>

Hi all, I’ve been working with Ansible as I try to set up a specific configuration for Open EdX (the open source MOOC) to work with MySQL hosted by Amazon’s RDS service. At one point in the Open EdX ansible plays, it t…

---

## [Ansible playbook help](https://forum.ansible.com/t/ansible-playbook-help/21545)

<div class="topic-metadata">

**Author:** [@aaron.trujillo](https://forum.ansible.com/u/aaron.trujillo)\
**Replies:** 1\
**Last updated:** [May 25, 2016, 3:25pm UTC](https://forum.ansible.com/t/ansible-playbook-help/21545 "2016-05-25T15:25:17Z")

</div>

I am attempting to add a task within my playbook that alters a conf file. I want to add text within a selected line. I don’t want to delete the line and then add the line back with the added text I need the line to remai…

---

## [Ansible 2.1.0 RC4 is ready for testing](https://forum.ansible.com/t/ansible-2-1-0-rc4-is-ready-for-testing/21515)

<div class="topic-metadata">

**Author:** [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Replies:** 2\
**Last updated:** [May 25, 2016, 3:22pm UTC](https://forum.ansible.com/t/ansible-2-1-0-rc4-is-ready-for-testing/21515 "2016-05-25T15:22:28Z")

</div>

Hi all, we’re happy to announce that RC4 for 2.1.0 is now available for testing. This updated release candidate fixes two more bugs (one very long standing and one a result of a change in this release): Fixes a bug wh…

---

## [Ansible 2.2 ios modules are failing with message "Failed to connect to the host via ssh."](https://forum.ansible.com/t/ansible-2-2-ios-modules-are-failing-with-message-failed-to-connect-to-the-host-via-ssh/21548)

<div class="topic-metadata">

**Author:** [@davis\_mathew\_kuriako](https://forum.ansible.com/u/davis_mathew_kuriako)\
**Replies:** 1\
**Last updated:** [May 25, 2016, 3:22pm UTC](https://forum.ansible.com/t/ansible-2-2-ios-modules-are-failing-with-message-failed-to-connect-to-the-host-via-ssh/21548 "2016-05-25T15:22:09Z")

</div>

I’m not able to run ios\_command module in Ansible 2.1 for executing commands on my cisco routers. I’ve written a playbook for testing ios\_command module on cisco routers. Following is the playbook I wrote \`

---

## [how to use insertbefore/after correctly?](https://forum.ansible.com/t/how-to-use-insertbefore-after-correctly/21555)

<div class="topic-metadata">

**Author:** [@aaron.trujillo](https://forum.ansible.com/u/aaron.trujillo)\
**Replies:** 1\
**Last updated:** [May 25, 2016, 2:55pm UTC](https://forum.ansible.com/t/how-to-use-insertbefore-after-correctly/21555 "2016-05-25T14:55:31Z")

</div>

lineinfile: dest=/etc/rsyslog.conf insertafter=“\*.\*;auth,authpriv.none” regexp=“\*.\*;auth,authpriv.none” line=“Listen 8080” The only thing that happens here is Listen 8080 replaces the .;auth,authpriv.none line. should i…

---

## [append users to another group](https://forum.ansible.com/t/append-users-to-another-group/21560)

<div class="topic-metadata">

**Author:** [@Marc\_Roelofs](https://forum.ansible.com/u/Marc_Roelofs)\
**Replies:** 1\
**Last updated:** [May 25, 2016, 2:55pm UTC](https://forum.ansible.com/t/append-users-to-another-group/21560 "2016-05-25T14:55:28Z")

</div>

I am trying to figure out how to generate a list of users on a remote machine who are currently already a member of group A , and append them all to group B Is this possible ? Could not find a way to lookup existing us…

---

## [Run custom lookups in a file a then copy this file to another destination](https://forum.ansible.com/t/run-custom-lookups-in-a-file-a-then-copy-this-file-to-another-destination/21566)

<div class="topic-metadata">

**Author:** [@sivel](https://forum.ansible.com/u/sivel)\
**Replies:** 0\
**Last updated:** [May 25, 2016, 2:49pm UTC](https://forum.ansible.com/t/run-custom-lookups-in-a-file-a-then-copy-this-file-to-another-destination/21566 "2016-05-25T14:49:23Z")

</div>

Custom lookup should still be invoked using the lookup function, something like: myproperty={{ lookup(‘my\_custom\_lookup’, my\_custom\_var1) }} And you would need to use the template module as a task to get that templatin…

---

## [Whitespace in comma-delimited lists](https://forum.ansible.com/t/whitespace-in-comma-delimited-lists/21544)

<div class="topic-metadata">

**Author:** [@Ricky](https://forum.ansible.com/u/Ricky)\
**Replies:** 1\
**Last updated:** [May 25, 2016, 2:47pm UTC](https://forum.ansible.com/t/whitespace-in-comma-delimited-lists/21544 "2016-05-25T14:47:20Z")

</div>

I was hunting down the cause to an error message I received when adding a user to some groups. - name: users | create app remote user user: name: "{{ app\_remote\_user }}" groups: adm, wheel createhome: yes…

[Previous page](https://forum.ansible.com/c/archives/31.md?page=585)

[Next page](https://forum.ansible.com/c/archives/31.md?page=587)
