# Latest

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

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

**Page:** 942

---

## [Anyone working on windows facts?](https://forum.ansible.com/t/anyone-working-on-windows-facts/16072)

<div class="topic-metadata">

**Author:** [@j.r.hawkesworth](https://forum.ansible.com/u/j.r.hawkesworth)\
**Replies:** 8\
**Last updated:** [September 1, 2014, 8:56pm UTC](https://forum.ansible.com/t/anyone-working-on-windows-facts/16072 "2014-09-01T20:56:51Z")

</div>

I’ve starting working on adding some extra facts for windows hosts. So far I have one for the installed powershell version and another to report when the certificate (created by Trond’s setup script) will expire. Anyon…

---

## [run script](https://forum.ansible.com/t/run-script/16094)

<div class="topic-metadata">

**Author:** [@Mark\_Olliver](https://forum.ansible.com/u/Mark_Olliver)\
**Replies:** 1\
**Last updated:** [September 1, 2014, 6:36pm UTC](https://forum.ansible.com/t/run-script/16094 "2014-09-01T18:36:35Z")

</div>

Hi, What is the best way to run a script on completion of a successful ansible run. We have a set of automated tests which we need to run via a code deployment server each time we make a run of ansible. This meets our b…

---

## [Request to improve RDS module to use boto rds2](https://forum.ansible.com/t/request-to-improve-rds-module-to-use-boto-rds2/15435)

<div class="topic-metadata">

**Author:** [@iain\_wright](https://forum.ansible.com/u/iain_wright)\
**Replies:** 9\
**Last updated:** [September 1, 2014, 12:56am UTC](https://forum.ansible.com/t/request-to-improve-rds-module-to-use-boto-rds2/15435 "2014-09-01T00:56:01Z")

</div>

Hi folks, The goal was to provision an rds instance using ansible, which was easy enough using this module: http://docs.ansible.com/rds\_module.html Unfortunately this module doesn’t have the option to allow the RDS to …

---

## [Documenting inventory directories](https://forum.ansible.com/t/documenting-inventory-directories/16069)

<div class="topic-metadata">

**Author:** [@Quentin\_Stafford-Fra](https://forum.ansible.com/u/Quentin_Stafford-Fra)\
**Replies:** 2\
**Last updated:** [August 31, 2014, 1:26pm UTC](https://forum.ansible.com/t/documenting-inventory-directories/16069 "2014-08-31T13:26:10Z")

</div>

I love the ‘inventory directory’ feature, and typically have directories called, e.g: inventory/staging/ inventory/live/ inventory/docker/ inventory/local/ but I would sometimes like to document in each one how to use…

---

## [Starting EC2 Instance in 'us-west-2a' Region Gives Unexpected Error](https://forum.ansible.com/t/starting-ec2-instance-in-us-west-2a-region-gives-unexpected-error/16081)

<div class="topic-metadata">

**Author:** [@David\_Lloyd](https://forum.ansible.com/u/David_Lloyd)\
**Replies:** 2\
**Last updated:** [August 31, 2014, 3:49am UTC](https://forum.ansible.com/t/starting-ec2-instance-in-us-west-2a-region-gives-unexpected-error/16081 "2014-08-31T03:49:07Z")

</div>

I have: hosts: localhost gather\_facts: false connection: local vars: instance\_ids: ‘i-62f8a46f’ region: ‘us-west-2a’ tasks: name: Start the instance(s). local\_action: module: ec2 instance\_ids: ‘{{ instance…

---

## [How do I enable diff mode when I write a module?](https://forum.ansible.com/t/how-do-i-enable-diff-mode-when-i-write-a-module/16029)

<div class="topic-metadata">

**Author:** [@Jorgen\_Hagg](https://forum.ansible.com/u/Jorgen_Hagg)\
**Replies:** 5\
**Last updated:** [August 30, 2014, 8:13pm UTC](https://forum.ansible.com/t/how-do-i-enable-diff-mode-when-i-write-a-module/16029 "2014-08-30T20:13:10Z")

</div>

I’ve managed to write a module that supports check mode, but it would be nice if it also could display the changes it will do, that is, supporting diff mode. But I can’t find any documentation about the subject. So, a…

---

## [checking if a dynamically selected variable is defined?](https://forum.ansible.com/t/checking-if-a-dynamically-selected-variable-is-defined/16074)

<div class="topic-metadata">

**Author:** [@Dylan\_Martin2](https://forum.ansible.com/u/Dylan_Martin2)\
**Replies:** 1\
**Last updated:** [August 30, 2014, 1:25pm UTC](https://forum.ansible.com/t/checking-if-a-dynamically-selected-variable-is-defined/16074 "2014-08-30T13:25:07Z")

</div>

Hi all. I often write plays that require extra vars. eg “ansible-playbook user -e user=bob” In that play, I’ll start off with fail: msg=“You forgot to set the user variable” when: user is not defined or user == “” A…

---

## [ansible-exec: A tool to help execute playbooks](https://forum.ansible.com/t/ansible-exec-a-tool-to-help-execute-playbooks/16076)

<div class="topic-metadata">

**Author:** [@Hagai\_Kariti](https://forum.ansible.com/u/Hagai_Kariti)\
**Replies:** 1\
**Last updated:** [August 30, 2014, 11:47am UTC](https://forum.ansible.com/t/ansible-exec-a-tool-to-help-execute-playbooks/16076 "2014-08-30T11:47:02Z")

</div>

Hi all I wrote a little wrapper around ansible-playbook to help make playbooks executable. Thought you’ll be interested. More details here: http://blog.bigpanda.io/ansible-exec-ansible-playbook-wrapper-for-executing-pl…

---

## [Change bash\_profile dynamically.](https://forum.ansible.com/t/change-bash-profile-dynamically/16080)

<div class="topic-metadata">

**Author:** [@Darup\_tek](https://forum.ansible.com/u/Darup_tek)\
**Replies:** 3\
**Last updated:** [August 30, 2014, 6:43am UTC](https://forum.ansible.com/t/change-bash-profile-dynamically/16080 "2014-08-30T06:43:46Z")

</div>

I am little clueless on how to solve this issue. There are couple of hosts I need to remotely change the .bash\_profile. Locally I run the command this way. echo “”# .bash\_profile Get the aliases and functions if \[ -f…

---

## [Behavior of get\_url if file exists in destination?](https://forum.ansible.com/t/behavior-of-get-url-if-file-exists-in-destination/16071)

<div class="topic-metadata">

**Author:** [@Levi\_Notik](https://forum.ansible.com/u/Levi_Notik)\
**Replies:** 9\
**Last updated:** [August 29, 2014, 8:50pm UTC](https://forum.ansible.com/t/behavior-of-get-url-if-file-exists-in-destination/16071 "2014-08-29T20:50:16Z")

</div>

I’m trying to use get\_url to download a file to a group of hosts. My play looks like this: \`

---

## [Do-until seems not to work with delegate](https://forum.ansible.com/t/do-until-seems-not-to-work-with-delegate/16077)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Replies:** 0\
**Last updated:** [August 29, 2014, 8:21pm UTC](https://forum.ansible.com/t/do-until-seems-not-to-work-with-delegate/16077 "2014-08-29T20:21:44Z")

</div>

What happened here is you had a task failure on several of the machines, and the do/until is not ignoring errors (because it’s not told to) failed: \[sc2-dock3-web3 → {{ item }}\] =\> (item=sc2-dock3-lb) =\> {“attempts”: 6,…

---

## [why the mode of files was changed when copy the file to remote computer.](https://forum.ansible.com/t/why-the-mode-of-files-was-changed-when-copy-the-file-to-remote-computer/16068)

<div class="topic-metadata">

**Author:** [@Simon\_Zhang](https://forum.ansible.com/u/Simon_Zhang)\
**Replies:** 8\
**Last updated:** [August 29, 2014, 7:20pm UTC](https://forum.ansible.com/t/why-the-mode-of-files-was-changed-when-copy-the-file-to-remote-computer/16068 "2014-08-29T19:20:45Z")

</div>

Hello, Recently, I have a problem about Ansible. In the current folder “test” contains a file “aaa.sh” with file mode “-rwxrwxr-x”. I copy the directory using the example playbook. --- - name: Copy file hosts: 192.16…

---

## [Do-until seems not to work with delegate](https://forum.ansible.com/t/do-until-seems-not-to-work-with-delegate/16075)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Replies:** 0\
**Last updated:** [August 29, 2014, 6:43pm UTC](https://forum.ansible.com/t/do-until-seems-not-to-work-with-delegate/16075 "2014-08-29T18:43:40Z")

</div>

This doesn’t seem to be a do/until problem, since the command is failing because a binary is not present. Example: hosts: all tasks: shell: /usr/bin/wrong register: blip delay: 1 retries: 4 until: blip.stdout.f…

---

## [Ansible - win\_get\_url copy file from network share](https://forum.ansible.com/t/ansible-win-get-url-copy-file-from-network-share/15911)

<div class="topic-metadata">

**Author:** [@Gopinath\_Suryadevara](https://forum.ansible.com/u/Gopinath_Suryadevara)\
**Replies:** 7\
**Last updated:** [August 29, 2014, 5:15pm UTC](https://forum.ansible.com/t/ansible-win-get-url-copy-file-from-network-share/15911 "2014-08-29T17:15:05Z")

</div>

Hi, I was able to connect to a windows 7 box from a RHEL 5, ping it and also changed the authentication to kerberos. Thank you, @Trond for the wonderful script. Both the machines are on the same domain. When I use the w…

---

## [ansible mysql-server installation , password issue](https://forum.ansible.com/t/ansible-mysql-server-installation-password-issue/16070)

<div class="topic-metadata">

**Author:** [@Urgen\_Sherpa](https://forum.ansible.com/u/Urgen_Sherpa)\
**Replies:** 2\
**Last updated:** [August 29, 2014, 5:11pm UTC](https://forum.ansible.com/t/ansible-mysql-server-installation-password-issue/16070 "2014-08-29T17:11:27Z")

</div>

Greetings! I am new to ansible and im trying to install mysql-server below is my playbook \[im in a vmware10 using two centos 6.5 x64 machines one as ansible-Node and another as client\]

---

## [best way to add multiple lines to a file.](https://forum.ansible.com/t/best-way-to-add-multiple-lines-to-a-file/16062)

<div class="topic-metadata">

**Author:** [@Darup\_tek](https://forum.ansible.com/u/Darup_tek)\
**Replies:** 5\
**Last updated:** [August 29, 2014, 4:55pm UTC](https://forum.ansible.com/t/best-way-to-add-multiple-lines-to-a-file/16062 "2014-08-29T16:55:56Z")

</div>

I would like to add these lines to a file at the end sysctl.conf net.ipv6.conf.all.disable\_ipv6=1 net.ipv4.tcp\_no\_metrics\_save = 1 net.ipv4.tcp\_moderate\_rcvbuf = 1 net.ipv4.tcp\_fin\_timeout = 15 net.ipv4.tcp\_keepaliv…

---

## [Handler how-to in roles](https://forum.ansible.com/t/handler-how-to-in-roles/16055)

<div class="topic-metadata">

**Author:** [@oravirt](https://forum.ansible.com/u/oravirt)\
**Replies:** 6\
**Last updated:** [August 29, 2014, 1:25pm UTC](https://forum.ansible.com/t/handler-how-to-in-roles/16055 "2014-08-29T13:25:34Z")

</div>

Hi, I’ve got a play that consists of a number of roles, like so: \` name: Ble hosts: hosts sudo: yes roles: role1 role2 role3 \` In role2, I’ve got a handler that reboots the hosts and I need role3 to wait for the…

---

## [using ansible to deploy war to stage/qa env](https://forum.ansible.com/t/using-ansible-to-deploy-war-to-stage-qa-env/15962)

<div class="topic-metadata">

**Author:** [@Subramanian\_Olagappa](https://forum.ansible.com/u/Subramanian_Olagappa)\
**Replies:** 11\
**Last updated:** [August 29, 2014, 12:54pm UTC](https://forum.ansible.com/t/using-ansible-to-deploy-war-to-stage-qa-env/15962 "2014-08-29T12:54:47Z")

</div>

Hi ! I currently using python tools for continuous deloy to AWS ec2 nodes and want to use ansible for continuous deploy. We have stage and qa env with different properties. Could someone point to me the right approach t…

---

## [uri module fails while httplib2 is installed](https://forum.ansible.com/t/uri-module-fails-while-httplib2-is-installed/13874)

<div class="topic-metadata">

**Author:** [@Lars\_Vonk](https://forum.ansible.com/u/Lars_Vonk)\
**Replies:** 3\
**Last updated:** [August 29, 2014, 12:04pm UTC](https://forum.ansible.com/t/uri-module-fails-while-httplib2-is-installed/13874 "2014-08-29T12:04:56Z")

</div>

Hi, I am trying to download some resource from the web using the uri module as follows name: Download the resource from the web uri: url={{app\_url}} dest=/opt/app creates=/opt/app/{{app\_version}} This keeps failing …

---

## [Problem with yum module running ansible-playbook](https://forum.ansible.com/t/problem-with-yum-module-running-ansible-playbook/12351)

<div class="topic-metadata">

**Author:** [@James\_Nguyen](https://forum.ansible.com/u/James_Nguyen)\
**Replies:** 5\
**Last updated:** [August 29, 2014, 12:00pm UTC](https://forum.ansible.com/t/problem-with-yum-module-running-ansible-playbook/12351 "2014-08-29T12:00:57Z")

</div>

Has anyone come across this error below? I’m trying to run ansible-playbook on CentOS5. I’ve already setup my PATHs and everything for python2.6 and the rest of the playbook runs through until I get to yum management. T…

---

## [Ansible - win\_get\_url copy file from network share](https://forum.ansible.com/t/ansible-win-get-url-copy-file-from-network-share/16034)

<div class="topic-metadata">

**Author:** [@Damon\_Overboe](https://forum.ansible.com/u/Damon_Overboe)\
**Replies:** 1\
**Last updated:** [August 29, 2014, 11:12am UTC](https://forum.ansible.com/t/ansible-win-get-url-copy-file-from-network-share/16034 "2014-08-29T11:12:54Z")

</div>

Jon, If you can find the correct group for accessing with a domain account, please let us know. Using trond’s script, I’m able to connect using an admin account local to the box, but the domain account (which is also i…

---

## [how to debug random errors on win\_msi Windows module?](https://forum.ansible.com/t/how-to-debug-random-errors-on-win-msi-windows-module/16046)

<div class="topic-metadata">

**Author:** [@Damon\_Overboe](https://forum.ansible.com/u/Damon_Overboe)\
**Replies:** 24\
**Last updated:** [August 29, 2014, 5:35am UTC](https://forum.ansible.com/t/how-to-debug-random-errors-on-win-msi-windows-module/16046 "2014-08-29T05:35:18Z")

</div>

I know about calling with the -vvvv option, and that displays what the error is, but I’m wondering what I need to do to get to the root of the problem. I’ve had great success with the win\_get\_url. I’ve had some success …

---

## [Anyone managing snmp on Ubuntu with Ansible?](https://forum.ansible.com/t/anyone-managing-snmp-on-ubuntu-with-ansible/14414)

<div class="topic-metadata">

**Author:** [@David\_Reagan](https://forum.ansible.com/u/David_Reagan)\
**Replies:** 5\
**Last updated:** [August 28, 2014, 10:07pm UTC](https://forum.ansible.com/t/anyone-managing-snmp-on-ubuntu-with-ansible/14414 "2014-08-28T22:07:39Z")

</div>

Hey all, I’ve been looking into managing snmp via ansible. Setting the /etc/snmp/snmpd.conf file is simple enough. Just a template call. It’s setting up a snmp v3 user that has me stumped. To do so, I run “net-snmp-con…

---

## [How can I debug this playbook so that I can properly loop over the hostvars?](https://forum.ansible.com/t/how-can-i-debug-this-playbook-so-that-i-can-properly-loop-over-the-hostvars/16064)

<div class="topic-metadata">

**Author:** [@Abe\_Voelker](https://forum.ansible.com/u/Abe_Voelker)\
**Replies:** 2\
**Last updated:** [August 28, 2014, 9:07pm UTC](https://forum.ansible.com/t/how-can-i-debug-this-playbook-so-that-i-can-properly-loop-over-the-hostvars/16064 "2014-08-28T21:07:47Z")

</div>

I have an inventory file like this: \` \[redisservers\] 72.14.178.81 \[webservers\] 198.58.107.247 \` I’m trying to run this playbook against the redisservers group to allow access to port 6379 for the webservers: \`

---

## [Is there a way to use variables with ad-hoc commands](https://forum.ansible.com/t/is-there-a-way-to-use-variables-with-ad-hoc-commands/16061)

<div class="topic-metadata">

**Author:** [@Alain\_Kreienbuhl](https://forum.ansible.com/u/Alain_Kreienbuhl)\
**Replies:** 4\
**Last updated:** [August 28, 2014, 9:04pm UTC](https://forum.ansible.com/t/is-there-a-way-to-use-variables-with-ad-hoc-commands/16061 "2014-08-28T21:04:20Z")

</div>

Hello, I wanted to do that : ansible -i inventories/production all -m shell -a "echo urok | nc {{ ansible\_eth1.ipv4.address }} 2181 " But it it seams that vars are not supported within ad-hoc commands. Right ? Thanks …

---

## ["'Connection' object has no attribute 'shell'" when attempting to establish an accelerated connection](https://forum.ansible.com/t/connection-object-has-no-attribute-shell-when-attempting-to-establish-an-accelerated-connection/15679)

<div class="topic-metadata">

**Author:** [@David\_Karnowski](https://forum.ansible.com/u/David_Karnowski)\
**Replies:** 5\
**Last updated:** [August 28, 2014, 9:03pm UTC](https://forum.ansible.com/t/connection-object-has-no-attribute-shell-when-attempting-to-establish-an-accelerated-connection/15679 "2014-08-28T21:03:49Z")

</div>

I received the below error when trying to run a playbook. I’m running your latest dev Ansible pulled from github (1.7). I’m new to Ansible and am setting it up on my PC for the first time, although we have it running e…

---

## [using ansible to deploy war to stage/qa env](https://forum.ansible.com/t/using-ansible-to-deploy-war-to-stage-qa-env/16060)

<div class="topic-metadata">

**Author:** [@Jordi\_Funollet](https://forum.ansible.com/u/Jordi_Funollet)\
**Replies:** 2\
**Last updated:** [August 28, 2014, 9:03pm UTC](https://forum.ansible.com/t/using-ansible-to-deploy-war-to-stage-qa-env/16060 "2014-08-28T21:03:11Z")

</div>

Agree. So when targeting hosts we can use the inventory as environment and –limit to restrict to a specific group in this environment. $ ansible-playbook -i inventory/stage -l dbservers But what about vars? Both vars i…

---

## [remote\_user specified in play available to roles in the play](https://forum.ansible.com/t/remote-user-specified-in-play-available-to-roles-in-the-play/16043)

<div class="topic-metadata">

**Author:** [@Jeremy\_Gailor](https://forum.ansible.com/u/Jeremy_Gailor)\
**Replies:** 8\
**Last updated:** [August 28, 2014, 9:00pm UTC](https://forum.ansible.com/t/remote-user-specified-in-play-available-to-roles-in-the-play/16043 "2014-08-28T21:00:44Z")

</div>

One thing I’ve noticed, and have not been able to find a resolution to via IRC or reading the source, is how to make the remote\_user var set at the play level available to all roles in the play. It’s useful to have this …

---

## [How to sync over directories that exist locally?](https://forum.ansible.com/t/how-to-sync-over-directories-that-exist-locally/16063)

<div class="topic-metadata">

**Author:** [@tim.soderstrom](https://forum.ansible.com/u/tim.soderstrom)\
**Replies:** 1\
**Last updated:** [August 28, 2014, 5:11pm UTC](https://forum.ansible.com/t/how-to-sync-over-directories-that-exist-locally/16063 "2014-08-28T17:11:50Z")

</div>

I am trying to do something like this: name: setup user home directories synchronize: src=homes/{{item.username}} dest=/home/{{item.username}} owner={{item.username}} group={{item.username}} with\_items: ssh\_users …

---

## [Sensitive variables in Ansible Galaxy](https://forum.ansible.com/t/sensitive-variables-in-ansible-galaxy/16059)

<div class="topic-metadata">

**Author:** [@Jake\_Clarkson](https://forum.ansible.com/u/Jake_Clarkson)\
**Replies:** 2\
**Last updated:** [August 28, 2014, 11:56am UTC](https://forum.ansible.com/t/sensitive-variables-in-ansible-galaxy/16059 "2014-08-28T11:56:21Z")

</div>

Hi all, I was just wondering what the best practice is for including sensitive variables in an Ansible Galaxy role. For example, if I were to publish a role which required sensitive (i.e. vault encrypted) data, e.g. an…

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

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