# Latest

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

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

**Page:** 860

---

## [diff mode in replace?](https://forum.ansible.com/t/diff-mode-in-replace/18549)

<div class="topic-metadata">

**Author:** [@Jeff\_Reter](https://forum.ansible.com/u/Jeff_Reter)\
**Replies:** 0\
**Last updated:** [June 19, 2015, 1:44pm UTC](https://forum.ansible.com/t/diff-mode-in-replace/18549 "2015-06-19T13:44:56Z")

</div>

please add diff mode to http://docs.ansible.com/replace\_module.html

---

## [Ansible working?](https://forum.ansible.com/t/ansible-working/18547)

<div class="topic-metadata">

**Author:** [@Shwethashree\_Venkate](https://forum.ansible.com/u/Shwethashree_Venkate)\
**Replies:** 1\
**Last updated:** [June 19, 2015, 1:22pm UTC](https://forum.ansible.com/t/ansible-working/18547 "2015-06-19T13:22:50Z")

</div>

Hi All, How does Ansible decide whether the command issued through it is successfully executed? Is rc value is the ansible response related to this?

---

## [synchronize / delegate\_to / transferring files between hosts](https://forum.ansible.com/t/synchronize-delegate-to-transferring-files-between-hosts/18532)

<div class="topic-metadata">

**Author:** [@Dan\_Swartz](https://forum.ansible.com/u/Dan_Swartz)\
**Replies:** 3\
**Last updated:** [June 19, 2015, 12:59pm UTC](https://forum.ansible.com/t/synchronize-delegate-to-transferring-files-between-hosts/18532 "2015-06-19T12:59:43Z")

</div>

I have a server that contains some fairly large release artifacts, which I would like to distribute to my target machines. The only method that I’ve tried that worked was using the shell module to pull the artifacts down…

---

## [with\_inventory\_hostnames and Ansible Vault](https://forum.ansible.com/t/with-inventory-hostnames-and-ansible-vault/18116)

<div class="topic-metadata">

**Author:** [@klynch](https://forum.ansible.com/u/klynch)\
**Replies:** 1\
**Last updated:** [June 19, 2015, 10:17am UTC](https://forum.ansible.com/t/with-inventory-hostnames-and-ansible-vault/18116 "2015-06-19T10:17:31Z")

</div>

I am trying to use the with\_inventory\_hostnames lookup plugin, but it keeps failing with the folllowing error: “A vault password must be specified to decrypt /opt/ansible/group\_vars/secure\_vault” A workaround was to mod…

---

## [How to execute pre tasks on all hosts before running tasks serial:1](https://forum.ansible.com/t/how-to-execute-pre-tasks-on-all-hosts-before-running-tasks-serial-1/18548)

<div class="topic-metadata">

**Author:** [@Mark\_van\_der\_Hout](https://forum.ansible.com/u/Mark_van_der_Hout)\
**Replies:** 2\
**Last updated:** [June 19, 2015, 9:20am UTC](https://forum.ansible.com/t/how-to-execute-pre-tasks-on-all-hosts-before-running-tasks-serial-1/18548 "2015-06-19T09:20:50Z")

</div>

Hi, I have a playbook which deploys a new .war file for a tomcat instance. Since there are 6 hosts in a loadbalanced setup I have configured to run the playbook on 1 host at a time. However, I want to do a ‘pre flight …

---

## [Set fact for another group in playbook](https://forum.ansible.com/t/set-fact-for-another-group-in-playbook/18089)

<div class="topic-metadata">

**Author:** [@Sergei\_Antipov](https://forum.ansible.com/u/Sergei_Antipov)\
**Replies:** 1\
**Last updated:** [June 19, 2015, 8:24am UTC](https://forum.ansible.com/t/set-fact-for-another-group-in-playbook/18089 "2015-06-19T08:24:19Z")

</div>

Hello all. I can’t find a solution for my problem. I need to create Amazon RDS instance and EC2 instance. And inside EC2 instance I need RDS public ip address. What I do: hosts: localhost code to create rds and r…

---

## [Docker modules in Ansible Extras and authentication](https://forum.ansible.com/t/docker-modules-in-ansible-extras-and-authentication/18545)

<div class="topic-metadata">

**Author:** [@Greg\_DeKoenigsberg1](https://forum.ansible.com/u/Greg_DeKoenigsberg1)\
**Replies:** 2\
**Last updated:** [June 19, 2015, 6:54am UTC](https://forum.ansible.com/t/docker-modules-in-ansible-extras-and-authentication/18545 "2015-06-19T06:54:24Z")

</div>

Wanted to bring a conversation from a PR in Extras: Earlier I had wondered if this was the way we wanted authentication to work (as separate modules) or if we wanted it to be integrated. @bcoca mentioned that there wa…

---

## [Ansible authentication failure, despite successfull keybased ssh-login, mac](https://forum.ansible.com/t/ansible-authentication-failure-despite-successfull-keybased-ssh-login-mac/18506)

<div class="topic-metadata">

**Author:** [@n\_olding](https://forum.ansible.com/u/n_olding)\
**Replies:** 1\
**Last updated:** [June 19, 2015, 4:07am UTC](https://forum.ansible.com/t/ansible-authentication-failure-despite-successfull-keybased-ssh-login-mac/18506 "2015-06-19T04:07:47Z")

</div>

I have been using ansible 1.7 for more than six months under os-x (10.10.3), and today I see this problem when executing a playbook. The password I supply works when I ssh to the system and su to that user, and the fail…

---

## [Error handling in do..until loops](https://forum.ansible.com/t/error-handling-in-do-until-loops/18544)

<div class="topic-metadata">

**Author:** [@Trond\_Hindenes](https://forum.ansible.com/u/Trond_Hindenes)\
**Replies:** 0\
**Last updated:** [June 19, 2015, 12:07am UTC](https://forum.ansible.com/t/error-handling-in-do-until-loops/18544 "2015-06-19T00:07:03Z")

</div>

Hi all, I’m trying to write a play I’m going to use as part of a windows system reboot “role”. I plan to ping the Windows node’s WinRM port using curl until it’s responding. If the system is down, the curl command will…

---

## [ansible on Solaris instance](https://forum.ansible.com/t/ansible-on-solaris-instance/17469)

<div class="topic-metadata">

**Author:** [@vishakha\_soni](https://forum.ansible.com/u/vishakha_soni)\
**Replies:** 3\
**Last updated:** [June 18, 2015, 9:46pm UTC](https://forum.ansible.com/t/ansible-on-solaris-instance/17469 "2015-06-18T21:46:00Z")

</div>

Hi, I am new to ansible. while going through the document is it written that Ansible Tower is not supported in SunOs. Could anyone please let me know if is there any other way to install it in Solaris Instance and if An…

---

## [Centos 7, Ansible 1.9.1 : module win\_copy not found in configured module paths](https://forum.ansible.com/t/centos-7-ansible-1-9-1-module-win-copy-not-found-in-configured-module-paths/18523)

<div class="topic-metadata">

**Author:** [@rcncrrr](https://forum.ansible.com/u/rcncrrr)\
**Replies:** 7\
**Last updated:** [June 18, 2015, 9:44pm UTC](https://forum.ansible.com/t/centos-7-ansible-1-9-1-module-win-copy-not-found-in-configured-module-paths/18523 "2015-06-18T21:44:49Z")

</div>

Hi, I’m new to Ansible. We’re evaluating configuration management tools that can work in our mixed Linux / windows environment. I’ve been through these tutorials so far: http://docs.ansible.com/intro\_getting\_started.ht…

---

## [Complex iteration problems](https://forum.ansible.com/t/complex-iteration-problems/18540)

<div class="topic-metadata">

**Author:** [@Ashley\_Penney](https://forum.ansible.com/u/Ashley_Penney)\
**Replies:** 6\
**Last updated:** [June 18, 2015, 7:35pm UTC](https://forum.ansible.com/t/complex-iteration-problems/18540 "2015-06-18T19:35:50Z")

</div>

Hi, We’ve run into an issue (and a pattern really) using ansible that we’ve been unable to solve and I’m hoping the list can teach us the “ansible way”. The background is that we want to create a number of monitors aut…

---

## [How to choose between ansible\_eth0 and ansible\_eth1 depending on a parameter?](https://forum.ansible.com/t/how-to-choose-between-ansible-eth0-and-ansible-eth1-depending-on-a-parameter/18537)

<div class="topic-metadata">

**Author:** [@Yassen\_Damyanov](https://forum.ansible.com/u/Yassen_Damyanov)\
**Replies:** 2\
**Last updated:** [June 18, 2015, 6:36pm UTC](https://forum.ansible.com/t/how-to-choose-between-ansible-eth0-and-ansible-eth1-depending-on-a-parameter/18537 "2015-06-18T18:36:03Z")

</div>

My firewall-oriented roles need to use different network info when executed on different machines, depending on which interface is the external one and which is the internal one. Thus I need to be able to set e.g.: \` e…

---

## [Using with\_sequence with register](https://forum.ansible.com/t/using-with-sequence-with-register/15991)

<div class="topic-metadata">

**Author:** [@Imran\_Khan1](https://forum.ansible.com/u/Imran_Khan1)\
**Replies:** 9\
**Last updated:** [June 18, 2015, 5:18pm UTC](https://forum.ansible.com/t/using-with-sequence-with-register/15991 "2015-06-18T17:18:15Z")

</div>

I would like to know that If I run a task in a loop and save the value in a register, how can I save the values so that I have them accessible when I need them P.S: I am running my playbook using serial: 1 . So, when I …

---

## [Bug in top-level playbook: tags broken](https://forum.ansible.com/t/bug-in-top-level-playbook-tags-broken/18539)

<div class="topic-metadata">

**Author:** [@jang](https://forum.ansible.com/u/jang)\
**Replies:** 1\
**Last updated:** [June 18, 2015, 5:14pm UTC](https://forum.ansible.com/t/bug-in-top-level-playbook-tags-broken/18539 "2015-06-18T17:14:31Z")

</div>

See the attachment. With ansible 1.7.2 this works as expected: % ansible-playbook --version ansible-playbook 1.7.2 % ansible-playbook -i hosts/localhost a.yml --tags b PLAY \[localhost\] (attachments)x.tar.gz (308 Byt…

---

## [Having troubles accessing hostvars for new host](https://forum.ansible.com/t/having-troubles-accessing-hostvars-for-new-host/18529)

<div class="topic-metadata">

**Author:** [@Barry\_Kaplan](https://forum.ansible.com/u/Barry_Kaplan)\
**Replies:** 6\
**Last updated:** [June 18, 2015, 4:49pm UTC](https://forum.ansible.com/t/having-troubles-accessing-hostvars-for-new-host/18529 "2015-06-18T16:49:25Z")

</div>

I have some tasks like: \` debug: var=hostvars\[item\] with\_items: groups.rabbitmq\_server name: Update /etc/hosts with rabbitmq-server hostnames lineinfile: dest: /etc/hosts regexp: “^{{hostvars\[item\]\[‘ansible\_de…

---

## [setting linux user password error with user command](https://forum.ansible.com/t/setting-linux-user-password-error-with-user-command/18538)

<div class="topic-metadata">

**Author:** [@Jan\_Duprez](https://forum.ansible.com/u/Jan_Duprez)\
**Replies:** 1\
**Last updated:** [June 18, 2015, 2:10pm UTC](https://forum.ansible.com/t/setting-linux-user-password-error-with-user-command/18538 "2015-06-18T14:10:43Z")

</div>

I have a strange issue when setting passwords for a user with the user module, it seems to be mangling the password somehow. When i use a plain shell command to set the password it does work … Code causing the error: n…

---

## [validate if handler exists in --check mode](https://forum.ansible.com/t/validate-if-handler-exists-in-check-mode/18541)

<div class="topic-metadata">

**Author:** [@Jeff\_Reter](https://forum.ansible.com/u/Jeff_Reter)\
**Replies:** 0\
**Last updated:** [June 18, 2015, 1:56pm UTC](https://forum.ansible.com/t/validate-if-handler-exists-in-check-mode/18541 "2015-06-18T13:56:54Z")

</div>

Hi, i don’t know if this is fixed in v2 but please validate if all handlers exists even when not using them (no change). thanks

---

## [Writing a DSC resource for Windows](https://forum.ansible.com/t/writing-a-dsc-resource-for-windows/15715)

<div class="topic-metadata">

**Author:** [@Trond\_Hindenes](https://forum.ansible.com/u/Trond_Hindenes)\
**Replies:** 17\
**Last updated:** [June 18, 2015, 1:49pm UTC](https://forum.ansible.com/t/writing-a-dsc-resource-for-windows/15715 "2015-06-18T13:49:59Z")

</div>

Just some thoughts I’d like to share with the community regarding writing a DSC resource for Windows: DSC is all the rage regarding config management on Windows. It’s not a product but a technology part of the Windows M…

---

## ['dict' object has no attribute](https://forum.ansible.com/t/dict-object-has-no-attribute/18519)

<div class="topic-metadata">

**Author:** [@Brad\_V](https://forum.ansible.com/u/Brad_V)\
**Replies:** 3\
**Last updated:** [June 18, 2015, 1:06pm UTC](https://forum.ansible.com/t/dict-object-has-no-attribute/18519 "2015-06-18T13:06:07Z")

</div>

I’m a bit stumped here. I have a playbook setup that uses hostvars to fill in expressions in other places including jinja2 templates. Whenever one of those variables is an IP address, I get the error ‘dict’ object has n…

---

## [How to set a variable using dynamic inventory using Ansible](https://forum.ansible.com/t/how-to-set-a-variable-using-dynamic-inventory-using-ansible/18533)

<div class="topic-metadata">

**Author:** [@Rahul\_Mehrotra](https://forum.ansible.com/u/Rahul_Mehrotra)\
**Replies:** 1\
**Last updated:** [June 18, 2015, 4:11am UTC](https://forum.ansible.com/t/how-to-set-a-variable-using-dynamic-inventory-using-ansible/18533 "2015-06-18T04:11:53Z")

</div>

I am looking for method to set a variable in ansible playbook using inventory information received from dynamic inventory. For example if we have a sample playbook like

---

## [how to loop an arrays with inner arrays in the playbook](https://forum.ansible.com/t/how-to-loop-an-arrays-with-inner-arrays-in-the-playbook/18535)

<div class="topic-metadata">

**Author:** [@user123](https://forum.ansible.com/u/user123)\
**Replies:** 1\
**Last updated:** [June 18, 2015, 4:01am UTC](https://forum.ansible.com/t/how-to-loop-an-arrays-with-inner-arrays-in-the-playbook/18535 "2015-06-18T04:01:07Z")

</div>

here is the play book

---

## [Shell or Command module hangs and won't finish](https://forum.ansible.com/t/shell-or-command-module-hangs-and-wont-finish/18437)

<div class="topic-metadata">

**Author:** [@Emil\_Kacperski](https://forum.ansible.com/u/Emil_Kacperski)\
**Replies:** 5\
**Last updated:** [June 17, 2015, 9:58pm UTC](https://forum.ansible.com/t/shell-or-command-module-hangs-and-wont-finish/18437 "2015-06-17T21:58:37Z")

</div>

Hello, I am trying to run a simple bash script and it works fine on the command line. When I run it using the shell or command module it simply hangs and never finishes. Tried to run using the shell or command module, …

---

## [group\_vars subdirectories](https://forum.ansible.com/t/group-vars-subdirectories/18534)

<div class="topic-metadata">

**Author:** [@Guy\_Matz1](https://forum.ansible.com/u/Guy_Matz1)\
**Replies:** 0\
**Last updated:** [June 17, 2015, 8:08pm UTC](https://forum.ansible.com/t/group-vars-subdirectories/18534 "2015-06-17T20:08:02Z")

</div>

Folks! Sorry to bring this up again. … . I’d like to group my group vars by environment,e.g.: dev/ web db all stage/ web db all prod/ web db all Can someone please explain or point me to a doc for the rules…

---

## [Indirect lookup of facts](https://forum.ansible.com/t/indirect-lookup-of-facts/18509)

<div class="topic-metadata">

**Author:** [@rektide](https://forum.ansible.com/u/rektide)\
**Replies:** 3\
**Last updated:** [June 17, 2015, 2:30pm UTC](https://forum.ansible.com/t/indirect-lookup-of-facts/18509 "2015-06-17T14:30:39Z")

</div>

Hello, In 1.8, the ability to reference a fact indirectly (as opposed to having to statically type it out) was broken. This used to give you the fact myFact: {{ vars\[‘myFact’\] }} This capability is very important to m…

---

## [find module : bad install or obsole doc ?](https://forum.ansible.com/t/find-module-bad-install-or-obsole-doc/18343)

<div class="topic-metadata">

**Author:** [@Gildas\_Cotomale](https://forum.ansible.com/u/Gildas_Cotomale)\
**Replies:** 2\
**Last updated:** [June 17, 2015, 2:20pm UTC](https://forum.ansible.com/t/find-module-bad-install-or-obsole-doc/18343 "2015-06-17T14:20:13Z")

</div>

Hello, Reading the online documentation page, there’s a module “ping” that is not marked as (D)epreciated… But I’m not able to found it. Following is my session : =====session=transcript===== user@LOCALHOST:~$ find 2u…

---

## [Use hosts from groups within variable files](https://forum.ansible.com/t/use-hosts-from-groups-within-variable-files/18530)

<div class="topic-metadata">

**Author:** [@Amir\_Luzon](https://forum.ansible.com/u/Amir_Luzon)\
**Replies:** 3\
**Last updated:** [June 17, 2015, 2:13pm UTC](https://forum.ansible.com/t/use-hosts-from-groups-within-variable-files/18530 "2015-06-17T14:13:49Z")

</div>

is it possible to access a host of a group from within a variable file (like Ansible does in Templates?) here is the what i am trying to do:

---

## [vsphere\_guest add Guest customization](https://forum.ansible.com/t/vsphere-guest-add-guest-customization/18527)

<div class="topic-metadata">

**Author:** [@Vyron\_Tsingaras](https://forum.ansible.com/u/Vyron_Tsingaras)\
**Replies:** 1\
**Last updated:** [June 17, 2015, 1:26pm UTC](https://forum.ansible.com/t/vsphere-guest-add-guest-customization/18527 "2015-06-17T13:26:41Z")

</div>

Hi folks, I have implemented Guest customization using pysphere in vsphere\_guest. Should I bake it in state:reconfigured on create a new state, eg customized? Kind Regards, Vyronas Tsingaras

---

## [rax\_clb](https://forum.ansible.com/t/rax-clb/18528)

<div class="topic-metadata">

**Author:** [@Graham\_Hay](https://forum.ansible.com/u/Graham_Hay)\
**Replies:** 2\
**Last updated:** [June 17, 2015, 10:26am UTC](https://forum.ansible.com/t/rax-clb/18528 "2015-06-17T10:26:21Z")

</div>

Is there any interest in adding support for ssl termination to the rax\_clb module? It seems to be supported by pyrax. The only alternative I’ve found is this, which is somewhat fugly. If not, I’ll just roll my own modul…

---

## [Role dependency and search path](https://forum.ansible.com/t/role-dependency-and-search-path/18516)

<div class="topic-metadata">

**Author:** [@Strahinja\_Kustudic2](https://forum.ansible.com/u/Strahinja_Kustudic2)\
**Replies:** 1\
**Last updated:** [June 17, 2015, 8:58am UTC](https://forum.ansible.com/t/role-dependency-and-search-path/18516 "2015-06-17T08:58:59Z")

</div>

If I have a directory structure like this: \` ├── app1\_playbooks │ └── deploy.yml ├── hosts └── roles ├── app1 └── app\_common \` app1\_playbooks/deploy.yml looks like this: \` hosts: all roles: { role: ‘…/roles/…

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

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