# Latest

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

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

**Page:** 832

---

## [Problem with module dependency with ansible 2.0](https://forum.ansible.com/t/problem-with-module-dependency-with-ansible-2-0/19389)

<div class="topic-metadata">

**Author:** [@Daniele\_Depetrini](https://forum.ansible.com/u/Daniele_Depetrini)\
**Replies:** 0\
**Last updated:** [September 30, 2015, 2:00pm UTC](https://forum.ansible.com/t/problem-with-module-dependency-with-ansible-2-0/19389 "2015-09-30T14:00:10Z")

</div>

With today 2.0 (built from sources, latest commit af1f462ba03327e75b386edf655037a417b31ba5), I have a weird behavior with rules dependency. This is the situation: Playbook does: role1 role2 … both role1 and role2 ha…

---

## [Var file limitation](https://forum.ansible.com/t/var-file-limitation/19386)

<div class="topic-metadata">

**Author:** [@Jugal\_Porwal](https://forum.ansible.com/u/Jugal_Porwal)\
**Replies:** 1\
**Last updated:** [September 30, 2015, 11:21am UTC](https://forum.ansible.com/t/var-file-limitation/19386 "2015-09-30T11:21:15Z")

</div>

Hi, I’m trying to create an external var file(for eg. temp.yml). It contains the variables and their values in the following way : \`

---

## [Should deployment scripts have no roles.](https://forum.ansible.com/t/should-deployment-scripts-have-no-roles/19368)

<div class="topic-metadata">

**Author:** [@David\_Gonzalez](https://forum.ansible.com/u/David_Gonzalez)\
**Replies:** 2\
**Last updated:** [September 30, 2015, 7:17am UTC](https://forum.ansible.com/t/should-deployment-scripts-have-no-roles/19368 "2015-09-30T07:17:51Z")

</div>

Hi, Given that in my case provisioning doesn’t rely on Ansible yet. Does it make sense that deployment playbooks have no roles at all? I’m getting to a point where my playbooks are just a list of tasks which I gather …

---

## [can't open file 'setup'](https://forum.ansible.com/t/cant-open-file-setup/19384)

<div class="topic-metadata">

**Author:** [@user58](https://forum.ansible.com/u/user58)\
**Replies:** 0\
**Last updated:** [September 30, 2015, 6:42am UTC](https://forum.ansible.com/t/cant-open-file-setup/19384 "2015-09-30T06:42:36Z")

</div>

After installing sudo\_flags = -Hi in ansible.cfg, playbooks periodically fall in error: failed: \[host.example.com\] =\> {“failed”: true, “parsed”: false} BECOME-SUCCESS-crllipfjilsndpnrqbnftwvajxozmned /usr/bin/python: …

---

## [Connecting to a remote database](https://forum.ansible.com/t/connecting-to-a-remote-database/19382)

<div class="topic-metadata">

**Author:** [@RaviCharan\_Reddy](https://forum.ansible.com/u/RaviCharan_Reddy)\
**Replies:** 0\
**Last updated:** [September 29, 2015, 11:16pm UTC](https://forum.ansible.com/t/connecting-to-a-remote-database/19382 "2015-09-29T23:16:03Z")

</div>

Hi, Is it possible to query a remote data base and export results into a file using ansible. How can we access a remote data base using ansible ? Thanks & Regards, RaviCharan

---

## [Connecting to a remote Database](https://forum.ansible.com/t/connecting-to-a-remote-database/19381)

<div class="topic-metadata">

**Author:** [@RaviCharan\_Reddy](https://forum.ansible.com/u/RaviCharan_Reddy)\
**Replies:** 0\
**Last updated:** [September 29, 2015, 11:07pm UTC](https://forum.ansible.com/t/connecting-to-a-remote-database/19381 "2015-09-29T23:07:09Z")

</div>

Hi, I have a remote database and I need to fetch results from the database. Is it possible to achieve this using ansible playbooks ? Thanks & Regards, RaviCharan

---

## [casting to bool not working](https://forum.ansible.com/t/casting-to-bool-not-working/19380)

<div class="topic-metadata">

**Author:** [@Javeria\_Khan](https://forum.ansible.com/u/Javeria_Khan)\
**Replies:** 0\
**Last updated:** [September 29, 2015, 10:02pm UTC](https://forum.ansible.com/t/casting-to-bool-not-working/19380 "2015-09-29T22:02:49Z")

</div>

Hi, I’ve got a dict value that is supposed to evaluate a boolean parameter like so: var1: False var2: True my\_dict: {a1: “{{ var1|bool }}”} {a2: “{{ var2|bool }}”} However the original True/False values always get…

---

## [multiple changes using lineinfile](https://forum.ansible.com/t/multiple-changes-using-lineinfile/19376)

<div class="topic-metadata">

**Author:** [@Santosh\_Jambhlikar](https://forum.ansible.com/u/Santosh_Jambhlikar)\
**Replies:** 1\
**Last updated:** [September 29, 2015, 5:48pm UTC](https://forum.ansible.com/t/multiple-changes-using-lineinfile/19376 "2015-09-29T17:48:54Z")

</div>

I am trying to make 2 different changes in one file but only last change is getting updated … Looks like ansible holds the file in memory (after first change) and never dump it back to disk as it knows there is/are more …

---

## [A sample VM for "Your first commands"](https://forum.ansible.com/t/a-sample-vm-for-your-first-commands/19316)

<div class="topic-metadata">

**Author:** [@Nathan\_Sowatskey](https://forum.ansible.com/u/Nathan_Sowatskey)\
**Replies:** 2\
**Last updated:** [September 29, 2015, 1:18pm UTC](https://forum.ansible.com/t/a-sample-vm-for-your-first-commands/19316 "2015-09-29T13:18:22Z")

</div>

Hi As I am working through the “Your first commands” section, it strikes me that a sample VM, based on VirtualBox and built by Vagrant, say, could make it easier to create a sample environment to practice that section, …

---

## [On SLES 11.4 the setup module reports always "0" as ansible\_distribution\_release](https://forum.ansible.com/t/on-sles-11-4-the-setup-module-reports-always-0-as-ansible-distribution-release/19374)

<div class="topic-metadata">

**Author:** [@Bernhard\_L](https://forum.ansible.com/u/Bernhard_L)\
**Replies:** 0\
**Last updated:** [September 29, 2015, 8:36am UTC](https://forum.ansible.com/t/on-sles-11-4-the-setup-module-reports-always-0-as-ansible-distribution-release/19374 "2015-09-29T08:36:51Z")

</div>

Hello, SuSE added a /etc/os-release file with SP4 for SLES11 and there is a little bug in lib/ansible/module\_utils/facts.py, which leads to always having “0” in ansible\_distribution\_release instead of “4”. I checked wi…

---

## [jinja2 loop and fact array](https://forum.ansible.com/t/jinja2-loop-and-fact-array/19373)

<div class="topic-metadata">

**Author:** [@Trond\_Hindenes](https://forum.ansible.com/u/Trond_Hindenes)\
**Replies:** 1\
**Last updated:** [September 28, 2015, 11:39pm UTC](https://forum.ansible.com/t/jinja2-loop-and-fact-array/19373 "2015-09-28T23:39:13Z")

</div>

I’m sorry if this has come up before - I couldn’t find any answers directly related to my question. I’m trying to use set\_fact to set an array and use that in a for loop inside a template file. In my playbook I have: …

---

## [include when not work](https://forum.ansible.com/t/include-when-not-work/19366)

<div class="topic-metadata">

**Author:** [@Steve\_Kieu1](https://forum.ansible.com/u/Steve_Kieu1)\
**Replies:** 3\
**Last updated:** [September 28, 2015, 11:33pm UTC](https://forum.ansible.com/t/include-when-not-work/19366 "2015-09-28T23:33:55Z")

</div>

Hi team, I have something like this in my tasks file. name: run post sync files include: “{{inventory\_dir}}/…/tasks/post-sync-files.yml” when: POST\_SYNC\_FILE == ‘yes’ Even the value of POST\_SYNC\_FILE is ‘no’ it sti…

---

## [dynamic inventory with host files](https://forum.ansible.com/t/dynamic-inventory-with-host-files/19372)

<div class="topic-metadata">

**Author:** [@Roy](https://forum.ansible.com/u/Roy)\
**Replies:** 0\
**Last updated:** [September 28, 2015, 10:00pm UTC](https://forum.ansible.com/t/dynamic-inventory-with-host-files/19372 "2015-09-28T22:00:47Z")

</div>

Hi, We have a use case in which I want to run playbook on specific set of machines and same task on spot instances which belongs to same set of machines but we dont have entry into host file. We have cluster of machine…

---

## [how to install pip2.7 packages with ansible.](https://forum.ansible.com/t/how-to-install-pip2-7-packages-with-ansible/19345)

<div class="topic-metadata">

**Author:** [@Roy](https://forum.ansible.com/u/Roy)\
**Replies:** 2\
**Last updated:** [September 28, 2015, 9:37pm UTC](https://forum.ansible.com/t/how-to-install-pip2-7-packages-with-ansible/19345 "2015-09-28T21:37:29Z")

</div>

Hi, We have Centos 6.5 with python2.6 as default and python2.7 also on it. So how do we install python packages for pip2.7 ? There is no module name pip2.7 in ansible. any help here ?

---

## [mod\_proxy\_balancer](https://forum.ansible.com/t/mod-proxy-balancer/19371)

<div class="topic-metadata">

**Author:** [@Tiziano\_Di\_Gennaro](https://forum.ansible.com/u/Tiziano_Di_Gennaro)\
**Replies:** 0\
**Last updated:** [September 28, 2015, 7:00pm UTC](https://forum.ansible.com/t/mod-proxy-balancer/19371 "2015-09-28T19:00:25Z")

</div>

Hi, Does anybody knows how to manage Apache mod\_proxy\_balancer balancer-manager ? Is there a module?

---

## [Openstack os\_image does not make image public in Glance](https://forum.ansible.com/t/openstack-os-image-does-not-make-image-public-in-glance/19369)

<div class="topic-metadata">

**Author:** [@Vilian\_Atmadzhov](https://forum.ansible.com/u/Vilian_Atmadzhov)\
**Replies:** 1\
**Last updated:** [September 28, 2015, 5:18pm UTC](https://forum.ansible.com/t/openstack-os-image-does-not-make-image-public-in-glance/19369 "2015-09-28T17:18:21Z")

</div>

I have the following task in an Ansible playbook, using Ansible 2.0: name: Push base image to glance os\_image: auth: auth\_url: \* username: admin password: \* project\_name: admin name: centos-6 container\_format: …

---

## [os\_volume 404 error](https://forum.ansible.com/t/os-volume-404-error/19301)

<div class="topic-metadata">

**Author:** [@V\_Benincosa](https://forum.ansible.com/u/V_Benincosa)\
**Replies:** 7\
**Last updated:** [September 28, 2015, 5:07pm UTC](https://forum.ansible.com/t/os-volume-404-error/19301 "2015-09-28T17:07:55Z")

</div>

Having the same problem with os\_volume that I had with glance images where I get a 404 error. Ansible 2.0 playbook: name: ensure there is a volume for storing data. os\_volume: size: 40 display\_name: lab\_volume …

---

## [Where to put vars\_prompt in a role?](https://forum.ansible.com/t/where-to-put-vars-prompt-in-a-role/19370)

<div class="topic-metadata">

**Author:** [@jdelaporte](https://forum.ansible.com/u/jdelaporte)\
**Replies:** 2\
**Last updated:** [September 28, 2015, 2:44pm UTC](https://forum.ansible.com/t/where-to-put-vars-prompt-in-a-role/19370 "2015-09-28T14:44:19Z")

</div>

I want a role to have a vars\_prompt. Can I put it in the tasks/main.yml, or does it have to be in the playbook that runs the role?

---

## [PPK failed to authenticate after encrypting](https://forum.ansible.com/t/ppk-failed-to-authenticate-after-encrypting/19365)

<div class="topic-metadata">

**Author:** [@Neil\_Alwin\_Hermosill](https://forum.ansible.com/u/Neil_Alwin_Hermosill)\
**Replies:** 1\
**Last updated:** [September 28, 2015, 12:56pm UTC](https://forum.ansible.com/t/ppk-failed-to-authenticate-after-encrypting/19365 "2015-09-28T12:56:37Z")

</div>

Hello Team, I am just wondering if someone had encounter the same error using ansible-vault. Issue started after I encrypted the ppk using ansible-vault. For everyone to have an idea what I did, I will post the steps I…

---

## [wait\_for through bastion stalls](https://forum.ansible.com/t/wait-for-through-bastion-stalls/18521)

<div class="topic-metadata">

**Author:** [@David\_Pires](https://forum.ansible.com/u/David_Pires)\
**Replies:** 5\
**Last updated:** [September 28, 2015, 10:27am UTC](https://forum.ansible.com/t/wait-for-through-bastion-stalls/18521 "2015-09-28T10:27:17Z")

</div>

I am having a weird issue when launching ec2 instances. I have a playbook where I launch an instance into a private VPC, using item.private\_ip etc. My ssh config is setup to proxy requests to any host in this subnet. I …

---

## [issue with aws cli command to associate elastic ip to new instance](https://forum.ansible.com/t/issue-with-aws-cli-command-to-associate-elastic-ip-to-new-instance/19357)

<div class="topic-metadata">

**Author:** [@Adrian\_Black1](https://forum.ansible.com/u/Adrian_Black1)\
**Replies:** 2\
**Last updated:** [September 28, 2015, 10:11am UTC](https://forum.ansible.com/t/issue-with-aws-cli-command-to-associate-elastic-ip-to-new-instance/19357 "2015-09-28T10:11:10Z")

</div>

Hi. We are not using v2 of ansible yet so the elastic ip association isnt available yet. I was hoping i could do this via aws cli in the short term I came across this post http://engineering.ticketbis.com/how-to-use-…

---

## [Windows installer automatically reboots the server](https://forum.ansible.com/t/windows-installer-automatically-reboots-the-server/19364)

<div class="topic-metadata">

**Author:** [@Matt\_Gagliardi](https://forum.ansible.com/u/Matt_Gagliardi)\
**Replies:** 2\
**Last updated:** [September 27, 2015, 5:16pm UTC](https://forum.ansible.com/t/windows-installer-automatically-reboots-the-server/19364 "2015-09-27T17:16:24Z")

</div>

Does anyone know of a “good” way to handle a Windows server that’s being automatically rebooted when a program is successfully installed? My playbook is “failing” and ending because the WinRM connection is getting cut of…

---

## [Setting fact name dynamically in set\_fact?](https://forum.ansible.com/t/setting-fact-name-dynamically-in-set-fact/19321)

<div class="topic-metadata">

**Author:** [@Frank\_Perks](https://forum.ansible.com/u/Frank_Perks)\
**Replies:** 7\
**Last updated:** [September 27, 2015, 4:21pm UTC](https://forum.ansible.com/t/setting-fact-name-dynamically-in-set-fact/19321 "2015-09-27T16:21:18Z")

</div>

I am trying to shrink ~30+ roles into a single role to drastically reduce the amount of duplicate and copy and pasted code into a single nice and neat role. One of the problems is each role sets a specifically named fact…

---

## [does anyone succeeded to use the git module on windows ?](https://forum.ansible.com/t/does-anyone-succeeded-to-use-the-git-module-on-windows/19350)

<div class="topic-metadata">

**Author:** [@john\_zenou](https://forum.ansible.com/u/john_zenou)\
**Replies:** 2\
**Last updated:** [September 27, 2015, 1:28pm UTC](https://forum.ansible.com/t/does-anyone-succeeded-to-use-the-git-module-on-windows/19350 "2015-09-27T13:28:30Z")

</div>

Hi guys, I’ve been struggling with this one for a while now. I am able to use all the windows extra module, but each time that I am running a task using the git module on a windows host this is the output i am receiving…

---

## [Hostvars and --limit](https://forum.ansible.com/t/hostvars-and-limit/19360)

<div class="topic-metadata">

**Author:** [@Anubhav\_Gupta](https://forum.ansible.com/u/Anubhav_Gupta)\
**Replies:** 2\
**Last updated:** [September 26, 2015, 11:12pm UTC](https://forum.ansible.com/t/hostvars-and-limit/19360 "2015-09-26T23:12:13Z")

</div>

Hi, When I run the ansible playbook with a --limit option (in order to restrict the nodes on which the install would happen), the hostvars object does not contain the variables for the hosts not specified in the --limit…

---

## [managing jenkins jobs?](https://forum.ansible.com/t/managing-jenkins-jobs/19335)

<div class="topic-metadata">

**Author:** [@Dick\_Davies](https://forum.ansible.com/u/Dick_Davies)\
**Replies:** 2\
**Last updated:** [September 26, 2015, 10:59pm UTC](https://forum.ansible.com/t/managing-jenkins-jobs/19335 "2015-09-26T22:59:54Z")

</div>

Hi all been googling to no avail - I want to manage Jenkins with Ansible, and have the basics for the master here: https://github.com/rasputnik/ansible-jenkins Next step is to configure some plugins and global c…

---

## [no\_log option with ad-hoc commands](https://forum.ansible.com/t/no-log-option-with-ad-hoc-commands/19363)

<div class="topic-metadata">

**Author:** [@nadzorov](https://forum.ansible.com/u/nadzorov)\
**Replies:** 2\
**Last updated:** [September 26, 2015, 7:53pm UTC](https://forum.ansible.com/t/no-log-option-with-ad-hoc-commands/19363 "2015-09-26T19:53:24Z")

</div>

Hi, would you so kind to to tell me is it possible to use no\_log option with ad-hoc commands? I want to prevent logging in /var/log/messages or /var/log/syslog on remote server when I run “ansible test-server -m command…

---

## [Is there an Ansible task timeout?](https://forum.ansible.com/t/is-there-an-ansible-task-timeout/19361)

<div class="topic-metadata">

**Author:** [@Neil\_Hooey](https://forum.ansible.com/u/Neil_Hooey)\
**Replies:** 1\
**Last updated:** [September 26, 2015, 5:16pm UTC](https://forum.ansible.com/t/is-there-an-ansible-task-timeout/19361 "2015-09-26T17:16:30Z")

</div>

Is there any way to set a timeout for how long a task can take? When I run an Ansible playbook on hundreds of nodes with concurrency enabled, tasks get stuck on the slowest node. It’s hard to find out which node is goin…

---

## [User Module - can I use expired as a condition?](https://forum.ansible.com/t/user-module-can-i-use-expired-as-a-condition/19333)

<div class="topic-metadata">

**Author:** [@jdelaporte](https://forum.ansible.com/u/jdelaporte)\
**Replies:** 3\
**Last updated:** [September 25, 2015, 9:35pm UTC](https://forum.ansible.com/t/user-module-can-i-use-expired-as-a-condition/19333 "2015-09-25T21:35:25Z")

</div>

I am setting up user administration through Ansible for the first time. I handle large batches of users a few times a year, since I work for a college. Can I use Ansible’s user module to remove expired accounts? What con…

---

## [Looping over a hash Subelement](https://forum.ansible.com/t/looping-over-a-hash-subelement/19359)

<div class="topic-metadata">

**Author:** [@Luis\_Oscar\_Ramos\_Car](https://forum.ansible.com/u/Luis_Oscar_Ramos_Car)\
**Replies:** 2\
**Last updated:** [September 25, 2015, 6:48pm UTC](https://forum.ansible.com/t/looping-over-a-hash-subelement/19359 "2015-09-25T18:48:17Z")

</div>

Hi, I would like to do something like the example in Looping over Subelements but using a hash instead of a list. \`

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

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