# Ansible Project

**URL:** https://forum.ansible.com/c/archives/ansible-project/30.md?page=321

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

**Page:** 322

---

## [Variable precedence change/fix coming in 2.3](https://forum.ansible.com/t/variable-precedence-change-fix-coming-in-2-3/23850)

<div class="topic-metadata">

**Author:** [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Replies:** 13\
**Last updated:** [August 9, 2017, 9:33am UTC](https://forum.ansible.com/t/variable-precedence-change-fix-coming-in-2-3/23850 "2017-08-09T09:33:41Z")

</div>

Hi all, just wanted to write about a fix/change I’ll be merging into the devel branch soon (ie. as soon as the AWS outage quits impacting our testing infrastructure), which means it will be included in the 2.3.0 release. …

---

## [synchronize module and delegate\_to: seems to not respect become\_user ansible 2.3.1.0](https://forum.ansible.com/t/synchronize-module-and-delegate-to-seems-to-not-respect-become-user-ansible-2-3-1-0/25201)

<div class="topic-metadata">

**Author:** [@Gary\_Hawker](https://forum.ansible.com/u/Gary_Hawker)\
**Replies:** 2\
**Last updated:** [August 9, 2017, 7:52am UTC](https://forum.ansible.com/t/synchronize-module-and-delegate-to-seems-to-not-respect-become-user-ansible-2-3-1-0/25201 "2017-08-09T07:52:28Z")

</div>

Hi All ansible 2.3.1.0 seems to not respect the become\_user in the following play. #note that this below jams up because it expects accounts and ssh keys as it uses rsync underwater. Figure that out then remove this c…

---

## [Is it possible to set the vault password once already in the playbook?](https://forum.ansible.com/t/is-it-possible-to-set-the-vault-password-once-already-in-the-playbook/25200)

<div class="topic-metadata">

**Author:** [@neil1](https://forum.ansible.com/u/neil1)\
**Replies:** 1\
**Last updated:** [August 8, 2017, 6:45pm UTC](https://forum.ansible.com/t/is-it-possible-to-set-the-vault-password-once-already-in-the-playbook/25200 "2017-08-08T18:45:24Z")

</div>

Can I specify the vault password once i’m already in the playbook (but obviously before I’ve tried to read from the vault file)? Right now i have a few different text files containing different passwords for the vaults …

---

## [ansible-vault on WLS](https://forum.ansible.com/t/ansible-vault-on-wls/25187)

<div class="topic-metadata">

**Author:** [@William\_McKenzie](https://forum.ansible.com/u/William_McKenzie)\
**Replies:** 1\
**Last updated:** [August 8, 2017, 5:56pm UTC](https://forum.ansible.com/t/ansible-vault-on-wls/25187 "2017-08-08T17:56:08Z")

</div>

Anybody using vault with windows linux subsystem? I get this if I try to do anything requiring the vault:. I’ve down apt-get update and upgrade. openssl is 1.0.2g. \` c1rpc@LOUIS:~/cartewright$ ansible-playbook -i inve…

---

## [Custom Module Output parsing](https://forum.ansible.com/t/custom-module-output-parsing/25196)

<div class="topic-metadata">

**Author:** [@Adam](https://forum.ansible.com/u/Adam)\
**Replies:** 4\
**Last updated:** [August 8, 2017, 5:26pm UTC](https://forum.ansible.com/t/custom-module-output-parsing/25196 "2017-08-08T17:26:28Z")

</div>

Hi all - I’m working on a custom module in python that takes a subset of an XML config, and turns it into JSON so I can use it with an Ansible playbook & Jinja2 template. I want to make sure my output will be compatible…

---

## [Has ansible 2.3.2 been released?](https://forum.ansible.com/t/has-ansible-2-3-2-been-released/25203)

<div class="topic-metadata">

**Author:** [@Anand\_Buddhdev](https://forum.ansible.com/u/Anand_Buddhdev)\
**Replies:** 3\
**Last updated:** [August 8, 2017, 3:15pm UTC](https://forum.ansible.com/t/has-ansible-2-3-2-been-released/25203 "2017-08-08T15:15:12Z")

</div>

Hi folks, I can see a tarball of ansible 2.3.2 on Github, as well as in PyPi. Is this meant to be the final release of 2.3.2? Have I missed an announcement here? Anand

---

## [lock in linenifile please!!](https://forum.ansible.com/t/lock-in-linenifile-please/25155)

<div class="topic-metadata">

**Author:** [@jerry1](https://forum.ansible.com/u/jerry1)\
**Replies:** 5\
**Last updated:** [August 8, 2017, 1:21pm UTC](https://forum.ansible.com/t/lock-in-linenifile-please/25155 "2017-08-08T13:21:32Z")

</div>

Hi, I desperately need https://github.com/ansible/ansible-modules-core/issues/2769. It has been languishing for a year and not been pulled. I was hoping it could get pulled to devel. It’s a combination of connection: l…

---

## [Print output in human readable format](https://forum.ansible.com/t/print-output-in-human-readable-format/25154)

<div class="topic-metadata">

**Author:** [@Ted\_Meller](https://forum.ansible.com/u/Ted_Meller)\
**Replies:** 7\
**Last updated:** [August 8, 2017, 1:10pm UTC](https://forum.ansible.com/t/print-output-in-human-readable-format/25154 "2017-08-08T13:10:34Z")

</div>

Im having troube in Ansible 2.3.0 to print out my output in a human format. Currently everything comes out as one line. below is a sample of my yaml output. \` register: output name: show output debug: var: output.s…

---

## [Checking for \`--check\` or \`--dry-run\` inside callback module](https://forum.ansible.com/t/checking-for-check-or-dry-run-inside-callback-module/25197)

<div class="topic-metadata">

**Author:** [@anand.patel](https://forum.ansible.com/u/anand.patel)\
**Replies:** 1\
**Last updated:** [August 8, 2017, 12:59pm UTC](https://forum.ansible.com/t/checking-for-check-or-dry-run-inside-callback-module/25197 "2017-08-08T12:59:34Z")

</div>

Hi I am creating a custom callback module and I want it to have different behavior when in check or dry-run mode. However I have not found a way to detect this, is there a way for me to tell as a callback plugin if we ar…

---

## [Ten Steps To Get Ansible Working With Windows Machines](https://forum.ansible.com/t/ten-steps-to-get-ansible-working-with-windows-machines/25202)

<div class="topic-metadata">

**Author:** [@Jonathan\_Anderson](https://forum.ansible.com/u/Jonathan_Anderson)\
**Replies:** 0\
**Last updated:** [August 8, 2017, 11:23am UTC](https://forum.ansible.com/t/ten-steps-to-get-ansible-working-with-windows-machines/25202 "2017-08-08T11:23:15Z")

</div>

Hey, Looking back, these are the kind of instructions I wish I had when I set out to use Ansible with SSL encryption to manage my windows machines. I’m glad to see these instructions improve so go ahead and comment or c…

---

## [jfrog artifactory module search  for ansible](https://forum.ansible.com/t/jfrog-artifactory-module-search-for-ansible/25191)

<div class="topic-metadata">

**Author:** [@bhaskarreddy\_A](https://forum.ansible.com/u/bhaskarreddy_A)\
**Replies:** 1\
**Last updated:** [August 8, 2017, 11:13am UTC](https://forum.ansible.com/t/jfrog-artifactory-module-search-for-ansible/25191 "2017-08-08T11:13:53Z")

</div>

can any one suggest me, is their any module in ansible to pull latest war file from Jfrog artifactory

---

## [Setting Variables Conditionally](https://forum.ansible.com/t/setting-variables-conditionally/25199)

<div class="topic-metadata">

**Author:** [@Ryan1](https://forum.ansible.com/u/Ryan1)\
**Replies:** 2\
**Last updated:** [August 8, 2017, 7:50am UTC](https://forum.ansible.com/t/setting-variables-conditionally/25199 "2017-08-08T07:50:49Z")

</div>

I need to set some variables that are the same no matter the client, and other variables need to be set conditionally based on values from Ansible facts. Basically I need an if/else case statement. What is the correct wa…

---

## [Test for set membership from a set?](https://forum.ansible.com/t/test-for-set-membership-from-a-set/25185)

<div class="topic-metadata">

**Author:** [@Tim\_Gaastra](https://forum.ansible.com/u/Tim_Gaastra)\
**Replies:** 2\
**Last updated:** [August 7, 2017, 6:01pm UTC](https://forum.ansible.com/t/test-for-set-membership-from-a-set/25185 "2017-08-07T18:01:36Z")

</div>

Is there any way in Ansible to succinctly test for set membership in a list, from a list? An example in psuedo-Ansible code: users: name: Jim employee\_roles: Admin name: Bob employee\_roles: DBA name: Suz employee\_…

---

## [vars\_files and non-existing files](https://forum.ansible.com/t/vars-files-and-non-existing-files/25193)

<div class="topic-metadata">

**Author:** [@w.pietruszewski](https://forum.ansible.com/u/w.pietruszewski)\
**Replies:** 0\
**Last updated:** [August 7, 2017, 12:36pm UTC](https://forum.ansible.com/t/vars-files-and-non-existing-files/25193 "2017-08-07T12:36:22Z")

</div>

Hi, I’d like to propose a change/feature to vars\_files and how it loads the files. Right now when the vars file does not exists an error is risen: raise AnsibleFileNotFound(“vars file %s was not found” % vars\_file\_item…

---

## [Windows service status not changing from stoppending to stopped](https://forum.ansible.com/t/windows-service-status-not-changing-from-stoppending-to-stopped/25192)

<div class="topic-metadata">

**Author:** [@amitbitcse](https://forum.ansible.com/u/amitbitcse)\
**Replies:** 0\
**Last updated:** [August 7, 2017, 11:30am UTC](https://forum.ansible.com/t/windows-service-status-not-changing-from-stoppending-to-stopped/25192 "2017-08-07T11:30:45Z")

</div>

While executing my playbook, I cancelled the playbook execution when win\_service task for stopping a service was in play. When I re-ran the playbook, it failed to stop the windows service. The windows service status was …

---

## [RE: Starting with Ansible Containers](https://forum.ansible.com/t/re-starting-with-ansible-containers/25190)

<div class="topic-metadata">

**Author:** [@ManiGandan\_T](https://forum.ansible.com/u/ManiGandan_T)\
**Replies:** 0\
**Last updated:** [August 7, 2017, 6:56am UTC](https://forum.ansible.com/t/re-starting-with-ansible-containers/25190 "2017-08-07T06:56:34Z")

</div>

Hi Team, I am a beginner to Ansible tool. I have been asked to work on Ansible Containers in my project. Is it easy to work with Ansible Containers without having experience in Ansible. Please advise me on this. BR Ma…

---

## [Adding dynamic keys and values as module attributes](https://forum.ansible.com/t/adding-dynamic-keys-and-values-as-module-attributes/25189)

<div class="topic-metadata">

**Author:** [@Thomas](https://forum.ansible.com/u/Thomas)\
**Replies:** 0\
**Last updated:** [August 6, 2017, 6:36pm UTC](https://forum.ansible.com/t/adding-dynamic-keys-and-values-as-module-attributes/25189 "2017-08-06T18:36:19Z")

</div>

Hi Does anyone knows how it is possible to include all sub elements of a value to modules as attributes? vars extra\_vars: function: “server” anotherkey: “anothervalue” ansible\_ssh\_private\_key\_file: “/home/someuser/…

---

## [Using docker\_\* modules on Windows](https://forum.ansible.com/t/using-docker-modules-on-windows/25145)

<div class="topic-metadata">

**Author:** [@Yuriy\_Ostapenko](https://forum.ansible.com/u/Yuriy_Ostapenko)\
**Replies:** 4\
**Last updated:** [August 4, 2017, 5:21pm UTC](https://forum.ansible.com/t/using-docker-modules-on-windows/25145 "2017-08-04T17:21:54Z")

</div>

Hi everyone, Are docker\_\* modules to be expected to work on Windows? I try to pull image like this: \` name: Pull hello world image docker\_image: name: hello-world:nanoserver docker\_host: npipe:// \` and get this…

---

## [local\_action when unreachable.](https://forum.ansible.com/t/local-action-when-unreachable/25173)

<div class="topic-metadata">

**Author:** [@William\_McKenzie](https://forum.ansible.com/u/William_McKenzie)\
**Replies:** 5\
**Last updated:** [August 4, 2017, 5:18pm UTC](https://forum.ansible.com/t/local-action-when-unreachable/25173 "2017-08-04T17:18:03Z")

</div>

Seems like this should be pretty simple, but I can’t seem to find a way to do it. Is there some way to perform a local\_action whenever a target is unreachable? I just want to post to a slack channel if ping fails. ~Bill …

---

## [How to distribute public keys to every server except myself?](https://forum.ansible.com/t/how-to-distribute-public-keys-to-every-server-except-myself/25182)

<div class="topic-metadata">

**Author:** [@chbndrhnns](https://forum.ansible.com/u/chbndrhnns)\
**Replies:** 3\
**Last updated:** [August 4, 2017, 11:04am UTC](https://forum.ansible.com/t/how-to-distribute-public-keys-to-every-server-except-myself/25182 "2017-08-04T11:04:09Z")

</div>

Hey there, I have a setup with host1, host2, host3. I need to read a file into a variable per server, pass it to a Jinja2 template and fill in values. Each host should only get the values from the other two ones. I have…

---

## [How to select hosts based on facts?](https://forum.ansible.com/t/how-to-select-hosts-based-on-facts/25174)

<div class="topic-metadata">

**Author:** [@Cev\_Ing](https://forum.ansible.com/u/Cev_Ing)\
**Replies:** 5\
**Last updated:** [August 4, 2017, 8:25am UTC](https://forum.ansible.com/t/how-to-select-hosts-based-on-facts/25174 "2017-08-04T08:25:42Z")

</div>

I wrote a role for Solaris systems. And now I would like to apply the role to all systems, which have been identified by Ansible to be a Solaris host. I know that I can write an inventory group containing all Solaris se…

---

## [Unable to attach an EIP to a VPC Instance](https://forum.ansible.com/t/unable-to-attach-an-eip-to-a-vpc-instance/25177)

<div class="topic-metadata">

**Author:** [@Stephen\_Nelson-Smith](https://forum.ansible.com/u/Stephen_Nelson-Smith)\
**Replies:** 3\
**Last updated:** [August 4, 2017, 6:44am UTC](https://forum.ansible.com/t/unable-to-attach-an-eip-to-a-vpc-instance/25177 "2017-08-04T06:44:32Z")

</div>

I’m trying to attach an elastic IP to an instance in a VPC, but despite following what seem to be working examples in online documentation, I’m getting an error. To keep it as simple as possible, I have: Launched an …

---

## [Best practice to change root pass](https://forum.ansible.com/t/best-practice-to-change-root-pass/25141)

<div class="topic-metadata">

**Author:** [@Daniel\_Cure](https://forum.ansible.com/u/Daniel_Cure)\
**Replies:** 2\
**Last updated:** [August 4, 2017, 3:38am UTC](https://forum.ansible.com/t/best-practice-to-change-root-pass/25141 "2017-08-04T03:38:58Z")

</div>

hi peole thanks so much for your kindly help. Im mew here and i hope to help so much. Im just learning ansible and im new to this but im going to learn fast. My question is, do you what is the best method for changing ro…

---

## [Ansible tag with include](https://forum.ansible.com/t/ansible-tag-with-include/25176)

<div class="topic-metadata">

**Author:** [@tailorpreet](https://forum.ansible.com/u/tailorpreet)\
**Replies:** 1\
**Last updated:** [August 3, 2017, 9:10pm UTC](https://forum.ansible.com/t/ansible-tag-with-include/25176 "2017-08-03T21:10:28Z")

</div>

With latest Ansible 2.3.1, I was not able to use tags with include statemenet my code looks like this ansible-playbook -i inventories/app.inventory -v -e “host=resource” test.yml and heres test.yml. include: pipe.ym…

---

## [registered variables being dumped to local files](https://forum.ansible.com/t/registered-variables-being-dumped-to-local-files/25179)

<div class="topic-metadata">

**Author:** [@Dewey\_Hylton](https://forum.ansible.com/u/Dewey_Hylton)\
**Replies:** 3\
**Last updated:** [August 3, 2017, 8:26pm UTC](https://forum.ansible.com/t/registered-variables-being-dumped-to-local-files/25179 "2017-08-03T20:26:42Z")

</div>

hi all. i run a python script on a linux server that produces a report relating to patch levels and such. it's a fairly simple thing that was requested for audit purposes. it's a home-grown script. it works fine, and d…

---

## [Install Openstack-Nova ocata using ansible but with RPMs](https://forum.ansible.com/t/install-openstack-nova-ocata-using-ansible-but-with-rpms/25158)

<div class="topic-metadata">

**Author:** [@Sruthi\_Ramesh\_Vani](https://forum.ansible.com/u/Sruthi_Ramesh_Vani)\
**Replies:** 2\
**Last updated:** [August 3, 2017, 8:09pm UTC](https://forum.ansible.com/t/install-openstack-nova-ocata-using-ansible-but-with-rpms/25158 "2017-08-03T20:09:24Z")

</div>

Hi, I am new to OpenStack .I want to install Openstack-Nova ocata using Ansible but not using containers, but with rpms. Where should I start? I couldn’t find the support for rpms.

---

## [In playbook, reference hosts variable in tags](https://forum.ansible.com/t/in-playbook-reference-hosts-variable-in-tags/25178)

<div class="topic-metadata">

**Author:** [@Nick\_Kakouros](https://forum.ansible.com/u/Nick_Kakouros)\
**Replies:** 0\
**Last updated:** [August 3, 2017, 7:03pm UTC](https://forum.ansible.com/t/in-playbook-reference-hosts-variable-in-tags/25178 "2017-08-03T19:03:21Z")

</div>

Can I do sth like this? hosts: myhost tags: “{{ hosts }}”

---

## [run ios\_command in enable mode](https://forum.ansible.com/t/run-ios-command-in-enable-mode/25175)

<div class="topic-metadata">

**Author:** [@Akku](https://forum.ansible.com/u/Akku)\
**Replies:** 0\
**Last updated:** [August 3, 2017, 5:05pm UTC](https://forum.ansible.com/t/run-ios-command-in-enable-mode/25175 "2017-08-03T17:05:19Z")

</div>

---

## [Deleting a windows file](https://forum.ansible.com/t/deleting-a-windows-file/25167)

<div class="topic-metadata">

**Author:** [@Chris13](https://forum.ansible.com/u/Chris13)\
**Replies:** 2\
**Last updated:** [August 3, 2017, 4:20pm UTC](https://forum.ansible.com/t/deleting-a-windows-file/25167 "2017-08-03T16:20:20Z")

</div>

I would like to see if there is a similar command in windows to the wait\_for module. I’m deleting a file and would like the playbook to not copy over the new file until it’s complete. Perhaps there’s a different Windows …

---

## [How to use a variable as index to an array](https://forum.ansible.com/t/how-to-use-a-variable-as-index-to-an-array/25153)

<div class="topic-metadata">

**Author:** [@Joseph\_Murdock](https://forum.ansible.com/u/Joseph_Murdock)\
**Replies:** 4\
**Last updated:** [August 3, 2017, 2:27pm UTC](https://forum.ansible.com/t/how-to-use-a-variable-as-index-to-an-array/25153 "2017-08-03T14:27:04Z")

</div>

Hello, I am trying to figure out the correct syntax for using a variable as an index to an array: set\_fact: cnt: “{{ response.stdout\_lines | count - 1 }}” filename: “{{ response.stdout\_lines\[3\] }}” filename: “{{ res…

[Previous page](https://forum.ansible.com/c/archives/ansible-project/30.md?page=320)

[Next page](https://forum.ansible.com/c/archives/ansible-project/30.md?page=322)
