# Latest

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

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

**Page:** 742

---

## [Using ec2\_vol with dynamic inventory](https://forum.ansible.com/t/using-ec2-vol-with-dynamic-inventory/22078)

<div class="topic-metadata">

**Author:** [@Max\_Leon1](https://forum.ansible.com/u/Max_Leon1)\
**Replies:** 2\
**Last updated:** [July 21, 2016, 10:53pm UTC](https://forum.ansible.com/t/using-ec2-vol-with-dynamic-inventory/22078 "2016-07-21T22:53:34Z")

</div>

Hi, I’m trying to create a playbook that will attach a volume to the specified instances and install casssandra as a cluster. I have almost everything worked out but the ec2\_vol part. tasks file for cassandra name: …

---

## [\[Regression\] Implicit localhost with --limit not working in 2.x](https://forum.ansible.com/t/regression-implicit-localhost-with-limit-not-working-in-2-x/22082)

<div class="topic-metadata">

**Author:** [@Strahinja\_Kustudic1](https://forum.ansible.com/u/Strahinja_Kustudic1)\
**Replies:** 0\
**Last updated:** [July 21, 2016, 9:52pm UTC](https://forum.ansible.com/t/regression-implicit-localhost-with-limit-not-working-in-2-x/22082 "2016-07-21T21:52:34Z")

</div>

It is a very common thing in rolling updates playbooks to run a few tasks on localhost (on the control machine) e.g. to set maintenance in monitoring, to prepare something, etc. So a playbook like this is very common: \` …

---

## [launching VM in openstack throws shade error](https://forum.ansible.com/t/launching-vm-in-openstack-throws-shade-error/22080)

<div class="topic-metadata">

**Author:** [@Shabari\_Nath](https://forum.ansible.com/u/Shabari_Nath)\
**Replies:** 0\
**Last updated:** [July 21, 2016, 8:20pm UTC](https://forum.ansible.com/t/launching-vm-in-openstack-throws-shade-error/22080 "2016-07-21T20:20:57Z")

</div>

i have tried launching a VM in openstack env with os\_server module. When i execute the playbook it throws following error: fatal: \[vsilmasv24-vzbi-com\]: FAILED! =\> {“changed”: false, “failed”: true, “msg”: “shade is req…

---

## [lineinfile tasks adds line when exists](https://forum.ansible.com/t/lineinfile-tasks-adds-line-when-exists/22079)

<div class="topic-metadata">

**Author:** [@Robert\_Margeson](https://forum.ansible.com/u/Robert_Margeson)\
**Replies:** 2\
**Last updated:** [July 21, 2016, 7:12pm UTC](https://forum.ansible.com/t/lineinfile-tasks-adds-line-when-exists/22079 "2016-07-21T19:12:14Z")

</div>

I wrote a playbook to make a config edit in /etc/postgreql/95/main/pg\_hba.conf. Basically, it’s to search for an existing string and replace it. Trouble is, when the playbook is ran for a second time, it adds the line …

---

## [Using win\_regedit to harden Windows server ciphers](https://forum.ansible.com/t/using-win-regedit-to-harden-windows-server-ciphers/21988)

<div class="topic-metadata">

**Author:** [@Matt\_Betts](https://forum.ansible.com/u/Matt_Betts)\
**Replies:** 3\
**Last updated:** [July 21, 2016, 6:49pm UTC](https://forum.ansible.com/t/using-win-regedit-to-harden-windows-server-ciphers/21988 "2016-07-21T18:49:09Z")

</div>

Hi, I’m trying to create a playbook that I can use to bring a windows server up to the latest secure hardening standards and I’m stuck with configuring Ciphers. An example is as follows: ansible {HOST} -m win\_regedit -a…

---

## [NTLM Delegation](https://forum.ansible.com/t/ntlm-delegation/22039)

<div class="topic-metadata">

**Author:** [@Karol\_Olczak](https://forum.ansible.com/u/Karol_Olczak)\
**Replies:** 5\
**Last updated:** [July 21, 2016, 6:48pm UTC](https://forum.ansible.com/t/ntlm-delegation/22039 "2016-07-21T18:48:00Z")

</div>

Does Ansible 2.1 and pywinrm 0.2.p support NTLM delegation or only kerberos delegation ? If not, when can we expect to implement NTLM delegation functionality ? Regards Karol

---

## [Creating ansible modules for windows](https://forum.ansible.com/t/creating-ansible-modules-for-windows/22054)

<div class="topic-metadata">

**Author:** [@Deepak\_Kumar](https://forum.ansible.com/u/Deepak_Kumar)\
**Replies:** 2\
**Last updated:** [July 21, 2016, 6:44pm UTC](https://forum.ansible.com/t/creating-ansible-modules-for-windows/22054 "2016-07-21T18:44:42Z")

</div>

Hi, I am trying to develop ansible modules for windows target machines. I don’t know how to import them in my playbooks. Should I need to edit the config file? Can anybody help me?

---

## [host\_vars/all does not work anymore?](https://forum.ansible.com/t/host-vars-all-does-not-work-anymore/22077)

<div class="topic-metadata">

**Author:** [@Do\_Hoang\_Khiem](https://forum.ansible.com/u/Do_Hoang_Khiem)\
**Replies:** 1\
**Last updated:** [July 21, 2016, 4:58pm UTC](https://forum.ansible.com/t/host-vars-all-does-not-work-anymore/22077 "2016-07-21T16:58:36Z")

</div>

My simple test case: ubuntu@ansible-tower-server:~/temp/ansible$ ansible --version ansible 1.9.4 configured module search path = None ubuntu@ansible-tower-server:~/temp/ansible$ tree . . ├── env │ └── staging │ └…

---

## [What I supposed to do with a long time no response Ansible playbook process?](https://forum.ansible.com/t/what-i-supposed-to-do-with-a-long-time-no-response-ansible-playbook-process/22024)

<div class="topic-metadata">

**Author:** [@tivon\_zhang](https://forum.ansible.com/u/tivon_zhang)\
**Replies:** 2\
**Last updated:** [July 21, 2016, 4:28pm UTC](https://forum.ansible.com/t/what-i-supposed-to-do-with-a-long-time-no-response-ansible-playbook-process/22024 "2016-07-21T16:28:33Z")

</div>

Hi guys, I just start to use Ansible to provision my environment, the playbook yml is from my partner and it’s undoubtedly workable. Unfortunately, I have been trapped here for 14 hours with no more response: TASK \[co…

---

## [Running ansible playbooks in Bamboo?](https://forum.ansible.com/t/running-ansible-playbooks-in-bamboo/22043)

<div class="topic-metadata">

**Author:** [@ZillaYT](https://forum.ansible.com/u/ZillaYT)\
**Replies:** 2\
**Last updated:** [July 21, 2016, 4:03pm UTC](https://forum.ansible.com/t/running-ansible-playbooks-in-bamboo/22043 "2016-07-21T16:03:04Z")

</div>

I saw this post, but my problem is different. https://groups.google.com/forum/#!searchin/ansible-project/ansible$20in$20bamboo/ansible-project/BvITeLL0hiA/orjip4bMAgAJ I have Bamboo agents that runs scripts under a “ba…

---

## [Dynamic inventory with OpenStack](https://forum.ansible.com/t/dynamic-inventory-with-openstack/22076)

<div class="topic-metadata">

**Author:** [@sergio\_gonzalez](https://forum.ansible.com/u/sergio_gonzalez)\
**Replies:** 0\
**Last updated:** [July 21, 2016, 10:28am UTC](https://forum.ansible.com/t/dynamic-inventory-with-openstack/22076 "2016-07-21T10:28:22Z")

</div>

Hello I am trying to use the dynamic inventory script: $ ./openstack.py --host 10.2.1.111 Traceback (most recent call last): File “./openstack.py”, line 246, in main() File “./openstack.py”, line 232, in main inv…

---

## [azure\_rm\_virtualmachine and ssh\_public\_key dict](https://forum.ansible.com/t/azure-rm-virtualmachine-and-ssh-public-key-dict/21971)

<div class="topic-metadata">

**Author:** [@Steven\_Carter](https://forum.ansible.com/u/Steven_Carter)\
**Replies:** 4\
**Last updated:** [July 21, 2016, 7:51am UTC](https://forum.ansible.com/t/azure-rm-virtualmachine-and-ssh-public-key-dict/21971 "2016-07-21T07:51:34Z")

</div>

When I do: name: Create the Host VM azure\_rm\_virtualmachine: state: present resource\_group: ‘{{ cloud\_tag }}’ name: ‘{{ cloud\_tag }}-host’ vm\_size: ‘Standard\_DS1\_v2’ storage\_account: ‘{{ storage\_group }}’ admin\_…

---

## [become method - pbrun and su](https://forum.ansible.com/t/become-method-pbrun-and-su/22066)

<div class="topic-metadata">

**Author:** [@Veda\_K](https://forum.ansible.com/u/Veda_K)\
**Replies:** 1\
**Last updated:** [July 21, 2016, 7:09am UTC](https://forum.ansible.com/t/become-method-pbrun-and-su/22066 "2016-07-21T07:09:53Z")

</div>

Hi, On our servers we usually do pbrun su - to switch to a privileged application user. These application users have no password set. But Ansible’s become\_method only supports any one method either pbrun or su or sudo…

---

## [iptables module with port forwarding](https://forum.ansible.com/t/iptables-module-with-port-forwarding/22075)

<div class="topic-metadata">

**Author:** [@Chun-Hung\_Huang](https://forum.ansible.com/u/Chun-Hung_Huang)\
**Replies:** 0\
**Last updated:** [July 21, 2016, 6:41am UTC](https://forum.ansible.com/t/iptables-module-with-port-forwarding/22075 "2016-07-21T06:41:53Z")

</div>

Hi ALL I want to use iptables module to manage port forwarding ----\> EXT\_IP:EXT\_PORT ----\> INT\_IP:INT:PORT If user request EXT\_IP with port 8001, it will forward to INT\_IP ( 192.168.100.131 ) and port 22. I use iptab…

---

## [Convert Json into YAML language](https://forum.ansible.com/t/convert-json-into-yaml-language/22072)

<div class="topic-metadata">

**Author:** [@GBANE\_FETIGUE](https://forum.ansible.com/u/GBANE_FETIGUE)\
**Replies:** 0\
**Last updated:** [July 21, 2016, 2:01am UTC](https://forum.ansible.com/t/convert-json-into-yaml-language/22072 "2016-07-21T02:01:50Z")

</div>

I have trying to run the following Json; It seems to run fine but It supposed to run a result but I am not seeing nothing. Is anybody could tell me what’s going on ? Her is the Json : curl --basic -u admin:admin -F fil…

---

## [using Module apt: only\_upgrade is wrong](https://forum.ansible.com/t/using-module-apt-only-upgrade-is-wrong/22070)

<div class="topic-metadata">

**Author:** [@richard934935](https://forum.ansible.com/u/richard934935)\
**Replies:** 0\
**Last updated:** [July 21, 2016, 1:30am UTC](https://forum.ansible.com/t/using-module-apt-only-upgrade-is-wrong/22070 "2016-07-21T01:30:34Z")

</div>

Hello, Having either apt: only\_upgrade=docker-engine in my playbook or running it on the command line as ansible all --sudo -m apt -a ‘only\_upgrade=docker-engine’ fails with xx.xxx.xx.xxx | FAILED! =\> { "changed": fals…

---

## [OpenSwitch Ansible user with non-bash access](https://forum.ansible.com/t/openswitch-ansible-user-with-non-bash-access/22063)

<div class="topic-metadata">

**Author:** [@Ganesh\_Ragavan](https://forum.ansible.com/u/Ganesh_Ragavan)\
**Replies:** 1\
**Last updated:** [July 21, 2016, 12:10am UTC](https://forum.ansible.com/t/openswitch-ansible-user-with-non-bash-access/22063 "2016-07-21T00:10:11Z")

</div>

Hi, We have been using Ansible playbooks to configure OpenSwitch using the ops\_template module. For this we have been using admin account that has access to the bash prompt in the OpenSwitch and it has been working fine…

---

## [is this thing working?](https://forum.ansible.com/t/is-this-thing-working/22069)

<div class="topic-metadata">

**Author:** [@Ian\_Dennison](https://forum.ansible.com/u/Ian_Dennison)\
**Replies:** 0\
**Last updated:** [July 20, 2016, 11:37pm UTC](https://forum.ansible.com/t/is-this-thing-working/22069 "2016-07-20T23:37:09Z")

</div>

No updates on several browsers for 3 hours now. Did someone fall asleep?

---

## [when Host Unreachable, execute a command or a script only for the failed host](https://forum.ansible.com/t/when-host-unreachable-execute-a-command-or-a-script-only-for-the-failed-host/22067)

<div class="topic-metadata">

**Author:** [@Sudarsan\_Mukundhan](https://forum.ansible.com/u/Sudarsan_Mukundhan)\
**Replies:** 0\
**Last updated:** [July 20, 2016, 9:07pm UTC](https://forum.ansible.com/t/when-host-unreachable-execute-a-command-or-a-script-only-for-the-failed-host/22067 "2016-07-20T21:07:42Z")

</div>

Hi, I have a group of hosts (say 3 hosts) of which one becomes unresponsive (due to heavy load or sshd is not running etc reasons). So eventually Ansible Playbook would fail with unreachable host message for that host. …

---

## [need to pull value from mysql (or elsewhere) as a variable](https://forum.ansible.com/t/need-to-pull-value-from-mysql-or-elsewhere-as-a-variable/22056)

<div class="topic-metadata">

**Author:** [@gforster](https://forum.ansible.com/u/gforster)\
**Replies:** 1\
**Last updated:** [July 20, 2016, 8:47pm UTC](https://forum.ansible.com/t/need-to-pull-value-from-mysql-or-elsewhere-as-a-variable/22056 "2016-07-20T20:47:28Z")

</div>

The servers here have nfs-mounted volumes. I need to get that volume name (stored in mysql) and make a symlink to it. Any idea how to accomplish this without manual intervention? Thanks!

---

## [Syntax question, please](https://forum.ansible.com/t/syntax-question-please/22059)

<div class="topic-metadata">

**Author:** [@Tiglath](https://forum.ansible.com/u/Tiglath)\
**Replies:** 2\
**Last updated:** [July 20, 2016, 8:10pm UTC](https://forum.ansible.com/t/syntax-question-please/22059 "2016-07-20T20:10:50Z")

</div>

I have this:

---

## [lvg/jinja issue](https://forum.ansible.com/t/lvg-jinja-issue/22055)

<div class="topic-metadata">

**Author:** [@oravirt](https://forum.ansible.com/u/oravirt)\
**Replies:** 2\
**Last updated:** [July 20, 2016, 7:12pm UTC](https://forum.ansible.com/t/lvg-jinja-issue/22055 "2016-07-20T19:12:48Z")

</div>

Hi, ansible --version ansible 2.1.0.0 config file = /Users/miksan/.ansible.cfg configured module search path = Default w/o overrides I’ve got this gist where I’m attempting to create a volumegroup with multiple devi…

---

## [\[feat req\] Improving set\_fact scoping and lifetime](https://forum.ansible.com/t/feat-req-improving-set-fact-scoping-and-lifetime/22065)

<div class="topic-metadata">

**Author:** [@Danny\_Kimsey](https://forum.ansible.com/u/Danny_Kimsey)\
**Replies:** 0\
**Last updated:** [July 20, 2016, 7:01pm UTC](https://forum.ansible.com/t/feat-req-improving-set-fact-scoping-and-lifetime/22065 "2016-07-20T19:01:04Z")

</div>

tl;dr Add a scope parameter to set\_fact module, improving usability. The current behavior of set\_fact is to create a run-time only variable, in 2.x with private\_role\_vars this variable is scoped(\*) to the role it is def…

---

## [Recommendation on how best to implement Jenkins with Ansible](https://forum.ansible.com/t/recommendation-on-how-best-to-implement-jenkins-with-ansible/22064)

<div class="topic-metadata">

**Author:** [@Eric\_Marquez](https://forum.ansible.com/u/Eric_Marquez)\
**Replies:** 0\
**Last updated:** [July 20, 2016, 6:56pm UTC](https://forum.ansible.com/t/recommendation-on-how-best-to-implement-jenkins-with-ansible/22064 "2016-07-20T18:56:01Z")

</div>

I’m looking at adding some additional automation using a Jenkins server. I don’t need Ansible to build a Jenkins server I want Jenkins to kickoff my Ansible Plays. My Jenkins server is running on a windows platform and i…

---

## [Use a yaml/json/xml file to drive ansible?](https://forum.ansible.com/t/use-a-yaml-json-xml-file-to-drive-ansible/22044)

<div class="topic-metadata">

**Author:** [@K\_Dawg](https://forum.ansible.com/u/K_Dawg)\
**Replies:** 1\
**Last updated:** [July 20, 2016, 6:11pm UTC](https://forum.ansible.com/t/use-a-yaml-json-xml-file-to-drive-ansible/22044 "2016-07-20T18:11:44Z")

</div>

Is there a way to use a yaml/json/xml or other similar config file to drive ansible playbooks?

---

## [ansible-playbook fails with error regarding module:setup](https://forum.ansible.com/t/ansible-playbook-fails-with-error-regarding-module-setup/22061)

<div class="topic-metadata">

**Author:** [@gforster](https://forum.ansible.com/u/gforster)\
**Replies:** 1\
**Last updated:** [July 20, 2016, 5:23pm UTC](https://forum.ansible.com/t/ansible-playbook-fails-with-error-regarding-module-setup/22061 "2016-07-20T17:23:07Z")

</div>

When I run the playbook on the local computer against the target server, I get a very long error telling me the setup module failed. \` $ ansible-playbook -i “server.fqdn,” playbooks/server\_build.yml -K --ask-pass --che…

---

## [lineinfile with backrefs and create: yes is failing with path does not exist](https://forum.ansible.com/t/lineinfile-with-backrefs-and-create-yes-is-failing-with-path-does-not-exist/22062)

<div class="topic-metadata">

**Author:** [@jdelaporte](https://forum.ansible.com/u/jdelaporte)\
**Replies:** 1\
**Last updated:** [July 20, 2016, 5:00pm UTC](https://forum.ansible.com/t/lineinfile-with-backrefs-and-create-yes-is-failing-with-path-does-not-exist/22062 "2016-07-20T17:00:19Z")

</div>

Is this expected behaviour? I am trying to change a line in a file if it is already present, or create the file if it isn’t: \` name: set ypserver to localhost lineinfile: dest: /etc/yp.conf create: yes state: pres…

---

## [What does the \[0\] mean in   when: inventory\_hostname ==  groups\['mongo\_servers'\]\[0\]  ?](https://forum.ansible.com/t/what-does-the-0-mean-in-when-inventory-hostname-groups-mongo-servers-0/14039)

<div class="topic-metadata">

**Author:** [@David\_Coronel](https://forum.ansible.com/u/David_Coronel)\
**Replies:** 3\
**Last updated:** [July 20, 2016, 4:18pm UTC](https://forum.ansible.com/t/what-does-the-0-mean-in-when-inventory-hostname-groups-mongo-servers-0/14039 "2016-07-20T16:18:24Z")

</div>

I saw this in the ansible-examples / openshift / openshift\_ec2 / roles / mongodb / tasks / main.yml name: Initialize the replication set shell: /usr/bin/mongo --port “{{ mongod\_port }}” /tmp/repset\_init.js;touch /opt/…

---

## [Execute Python file in remore machines](https://forum.ansible.com/t/execute-python-file-in-remore-machines/22051)

<div class="topic-metadata">

**Author:** [@Amrit\_Bhandari](https://forum.ansible.com/u/Amrit_Bhandari)\
**Replies:** 1\
**Last updated:** [July 20, 2016, 3:56pm UTC](https://forum.ansible.com/t/execute-python-file-in-remore-machines/22051 "2016-07-20T15:56:15Z")

</div>

Hello everyone, I am new to Ansible.I have been trying to execute a Python script in remote nodes however am confused how to do it.I wrote a playbook and tried to execute it however I get some errors.I am using Fedora L…

---

## [error: shade is required for this module](https://forum.ansible.com/t/error-shade-is-required-for-this-module/22034)

<div class="topic-metadata">

**Author:** [@Maurizio\_Santovito](https://forum.ansible.com/u/Maurizio_Santovito)\
**Replies:** 2\
**Last updated:** [July 20, 2016, 3:20pm UTC](https://forum.ansible.com/t/error-shade-is-required-for-this-module/22034 "2016-07-20T15:20:58Z")

</div>

Hello, we have an openstack setup with one controller, a neutron machine and a couple of compute nodes. I have first installed ansible on the controller but somehow the installation failed. The command ansible localh…

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

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