# Latest

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

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

**Page:** 735

---

## [Modules and configuration files](https://forum.ansible.com/t/modules-and-configuration-files/22296)

<div class="topic-metadata">

**Author:** [@Michael\_Heap](https://forum.ansible.com/u/Michael_Heap)\
**Replies:** 0\
**Last updated:** [August 15, 2016, 9:19pm UTC](https://forum.ansible.com/t/modules-and-configuration-files/22296 "2016-08-15T21:19:32Z")

</div>

Evening all! I’ve been working on a module recently that I’d like to contribute back, but I’ve hit a bit of a stumbling block. The underlying tool that the module calls accepts a numeric ID and installs the correspondin…

---

## [template module setting variables to unicode](https://forum.ansible.com/t/template-module-setting-variables-to-unicode/21774)

<div class="topic-metadata">

**Author:** [@Henry\_Mendez](https://forum.ansible.com/u/Henry_Mendez)\
**Replies:** 2\
**Last updated:** [August 15, 2016, 6:38pm UTC](https://forum.ansible.com/t/template-module-setting-variables-to-unicode/21774 "2016-08-15T18:38:23Z")

</div>

Hi, I’ve recently updated from 1.9.1 to 2.0.2.0. I use the template module a lot to build configs for my app. After updating, when I generate my templates, the data structure variables are being rendered as unicode stri…

---

## [location header from uri response](https://forum.ansible.com/t/location-header-from-uri-response/22292)

<div class="topic-metadata">

**Author:** [@Adam\_Gardner1](https://forum.ansible.com/u/Adam_Gardner1)\
**Replies:** 0\
**Last updated:** [August 15, 2016, 2:13pm UTC](https://forum.ansible.com/t/location-header-from-uri-response/22292 "2016-08-15T14:13:53Z")

</div>

I’m using the uri module to call a REST API. The result of this is shown below. I now want to save the location portion into a variable to use later in my script. How do I do that? I’ve tried: register: msg // registe…

---

## [Expect module throwing up unknown error](https://forum.ansible.com/t/expect-module-throwing-up-unknown-error/22291)

<div class="topic-metadata">

**Author:** [@challa.tek](https://forum.ansible.com/u/challa.tek)\
**Replies:** 0\
**Last updated:** [August 15, 2016, 2:01pm UTC](https://forum.ansible.com/t/expect-module-throwing-up-unknown-error/22291 "2016-08-15T14:01:51Z")

</div>

My playbook is - name: configuring stamp pdf batch expect: command: ./install.sh responses: 'This will install stamppdf on your system. Do you want to continue\[y/N\]?': y '--More--': \\r '(?i)Do you ag…

---

## [Bug in gem module?](https://forum.ansible.com/t/bug-in-gem-module/22284)

<div class="topic-metadata">

**Author:** [@michaeleaton](https://forum.ansible.com/u/michaeleaton)\
**Replies:** 3\
**Last updated:** [August 15, 2016, 12:30pm UTC](https://forum.ansible.com/t/bug-in-gem-module/22284 "2016-08-15T12:30:30Z")

</div>

Hi everyone, I’m trying to install some sensu gems using the below - i don’t get any errors but I don’t get any success/failure messages either and the gems are not installed, what am I missing? Node is running CentOS 6…

---

## [Using "when" with dependent roles](https://forum.ansible.com/t/using-when-with-dependent-roles/20414)

<div class="topic-metadata">

**Author:** [@Andrew\_Martin](https://forum.ansible.com/u/Andrew_Martin)\
**Replies:** 1\
**Last updated:** [August 14, 2016, 11:30pm UTC](https://forum.ansible.com/t/using-when-with-dependent-roles/20414 "2016-08-14T23:30:56Z")

</div>

Hello, I recently upgraded to Ansible 2.0 and have noticed a change in behavior with how dependent roles in meta/main.yml are executed. For example: dependencies: { role: role1, when: trigger } { role: role2, when: n…

---

## [Developing playbooks on Windows](https://forum.ansible.com/t/developing-playbooks-on-windows/22195)

<div class="topic-metadata">

**Author:** [@Brian\_Jackson](https://forum.ansible.com/u/Brian_Jackson)\
**Replies:** 3\
**Last updated:** [August 14, 2016, 10:24pm UTC](https://forum.ansible.com/t/developing-playbooks-on-windows/22195 "2016-08-14T22:24:10Z")

</div>

I’m new to Ansible and I spend my days on a Windows workstation. Our company is adopting Ansible because one large section of the company uses Linux for servers and workstations. I’m in a smaller section that has a mix o…

---

## [win\_package installation of git](https://forum.ansible.com/t/win-package-installation-of-git/22279)

<div class="topic-metadata">

**Author:** [@Tomas\_Pekarovic](https://forum.ansible.com/u/Tomas_Pekarovic)\
**Replies:** 1\
**Last updated:** [August 14, 2016, 7:31pm UTC](https://forum.ansible.com/t/win-package-installation-of-git/22279 "2016-08-14T19:31:39Z")

</div>

Hi, i’m using ansible 2.1.1.0 on ubuntu 16.04. Problem that I found is that I can’t install any package using win\_package . I’m trying to install git on windows 7 host. playbook part: name: Installation of git x64 …

---

## [azure\_rm\_deployment error ansible 2.1.1.0 \_\_init\_\_() takes exactly 1 argument (2 given)](https://forum.ansible.com/t/azure-rm-deployment-error-ansible-2-1-1-0-init-takes-exactly-1-argument-2-given/22244)

<div class="topic-metadata">

**Author:** [@M\_Ghaleb](https://forum.ansible.com/u/M_Ghaleb)\
**Replies:** 3\
**Last updated:** [August 13, 2016, 10:09pm UTC](https://forum.ansible.com/t/azure-rm-deployment-error-ansible-2-1-1-0-init-takes-exactly-1-argument-2-given/22244 "2016-08-13T22:09:45Z")

</div>

Hi All, I’m trying to deploy an Azure template using the azure\_rm\_deployment module. ubuntu 14.04 TLS ansible 2.1.1.0 azure 2.0.0rc5 I get the below error: \` TASK \[ansible-azure-provisioner : Deploying your Azure …

---

## [Best method of storing shell output to variable to use on other hosts?](https://forum.ansible.com/t/best-method-of-storing-shell-output-to-variable-to-use-on-other-hosts/22227)

<div class="topic-metadata">

**Author:** [@Tony\_Owens](https://forum.ansible.com/u/Tony_Owens)\
**Replies:** 9\
**Last updated:** [August 13, 2016, 4:53pm UTC](https://forum.ansible.com/t/best-method-of-storing-shell-output-to-variable-to-use-on-other-hosts/22227 "2016-08-13T16:53:10Z")

</div>

I’m looking for some tips on the best way to store a variable persistently across all hosts or multiple plays. I am attempting to create a docker swarm manager using something similar to this: hosts: swarm-init ga…

---

## [use of enumerate() in Jinja templates](https://forum.ansible.com/t/use-of-enumerate-in-jinja-templates/22283)

<div class="topic-metadata">

**Author:** [@Dimon](https://forum.ansible.com/u/Dimon)\
**Replies:** 1\
**Last updated:** [August 13, 2016, 6:57am UTC](https://forum.ansible.com/t/use-of-enumerate-in-jinja-templates/22283 "2016-08-13T06:57:34Z")

</div>

Hi, is there a pattern for implementing loop similar to python: \` for (i,name) in enumerate(list\_of\_items): print i, name \` when I try to implement it in Jinja I get error (no enumerate is not available): \` {% fo…

---

## [ec2\_vpc\_nacl module not recognized](https://forum.ansible.com/t/ec2-vpc-nacl-module-not-recognized/22281)

<div class="topic-metadata">

**Author:** [@Noah\_Huppert](https://forum.ansible.com/u/Noah_Huppert)\
**Replies:** 1\
**Last updated:** [August 12, 2016, 7:32pm UTC](https://forum.ansible.com/t/ec2-vpc-nacl-module-not-recognized/22281 "2016-08-12T19:32:58Z")

</div>

OS: Ubuntu 14.04 Kernel: 4.4.0-31-generic Ansible: 2.1.1.0 Ansible installation methods: Via APT PPA PIP (Python 2.7) Python: 2.7.6 Install Python packages: boto boto3 Playbook: network\_test.yml name: setup AWS…

---

## [Starting a Background Java Process on Windows](https://forum.ansible.com/t/starting-a-background-java-process-on-windows/22268)

<div class="topic-metadata">

**Author:** [@Allen\_Fisher](https://forum.ansible.com/u/Allen_Fisher)\
**Replies:** 2\
**Last updated:** [August 12, 2016, 3:19pm UTC](https://forum.ansible.com/t/starting-a-background-java-process-on-windows/22268 "2016-08-12T15:19:58Z")

</div>

Hello All– I’m trying to get a couple of jars up and running in the background on some Windows machines. My expected result is at the end of the play I have both jars running with logs for both, and they’re listening on…

---

## [Configure isolated servers without Internet access](https://forum.ansible.com/t/configure-isolated-servers-without-internet-access/22277)

<div class="topic-metadata">

**Author:** [@David\_Li](https://forum.ansible.com/u/David_Li)\
**Replies:** 2\
**Last updated:** [August 12, 2016, 1:49pm UTC](https://forum.ansible.com/t/configure-isolated-servers-without-internet-access/22277 "2016-08-12T13:49:40Z")

</div>

Hi, I am relatively new to Ansible. I need to use Ansible from a dev laptop to set up some servers (both Ubuntu and Centos) that are isolated without any Internet access. The laptop has Internet access for development a…

---

## [Playbook randomly dies after async/poll](https://forum.ansible.com/t/playbook-randomly-dies-after-async-poll/20632)

<div class="topic-metadata">

**Author:** [@Greg\_Gilbert](https://forum.ansible.com/u/Greg_Gilbert)\
**Replies:** 2\
**Last updated:** [August 12, 2016, 1:43pm UTC](https://forum.ansible.com/t/playbook-randomly-dies-after-async-poll/20632 "2016-08-12T13:43:05Z")

</div>

Hey. I’m having an issue in Ansible 1.9.4 where a playbook just stops running. No errors or anything, the process just dies. It seems to happen at random places when running the playbook, but it all seems to happen after…

---

## [looping within loops](https://forum.ansible.com/t/looping-within-loops/22242)

<div class="topic-metadata">

**Author:** [@Dick\_Davies](https://forum.ansible.com/u/Dick_Davies)\
**Replies:** 1\
**Last updated:** [August 12, 2016, 9:08am UTC](https://forum.ansible.com/t/looping-within-loops/22242 "2016-08-12T09:08:30Z")

</div>

I've got a bunch of user groups to create, each users information is a dict. Since each group maps to a team, I want to control access on a per-team level. so the natural 'shape' for this data is eg. users: dbas: …

---

## [Source Profile (.bashrc or profile.d)](https://forum.ansible.com/t/source-profile-bashrc-or-profile-d/22278)

<div class="topic-metadata">

**Author:** [@Aakash\_Singhal](https://forum.ansible.com/u/Aakash_Singhal)\
**Replies:** 0\
**Last updated:** [August 12, 2016, 5:26am UTC](https://forum.ansible.com/t/source-profile-bashrc-or-profile-d/22278 "2016-08-12T05:26:36Z")

</div>

I’m installing ruby from source and then using template to export path. but am unable to run: shell: rbenv install jruby-9.0.5.0 getting error rbenv command not found. the solution I’m using to run command is: shell…

---

## [Can't find boto for ansible EC2 module](https://forum.ansible.com/t/cant-find-boto-for-ansible-ec2-module/13247)

<div class="topic-metadata">

**Author:** [@Dan\_McKean](https://forum.ansible.com/u/Dan_McKean)\
**Replies:** 18\
**Last updated:** [August 11, 2016, 9:57pm UTC](https://forum.ansible.com/t/cant-find-boto-for-ansible-ec2-module/13247 "2016-08-11T21:57:15Z")

</div>

I’ve been considering Ansible for creating our EC2 instances, and have run into a problem with ansible not finding boto from either the command line or a playbook. Here’s the command line and response; the playbook is s…

---

## [Exit Playbook When Any Play Fails](https://forum.ansible.com/t/exit-playbook-when-any-play-fails/22275)

<div class="topic-metadata">

**Author:** [@Gordon\_Towne](https://forum.ansible.com/u/Gordon_Towne)\
**Replies:** 2\
**Last updated:** [August 11, 2016, 8:46pm UTC](https://forum.ansible.com/t/exit-playbook-when-any-play-fails/22275 "2016-08-11T20:46:51Z")

</div>

I have a playbook with multiple plays, where each play is executed on a different group of hosts. The behavior that I’m looking for is that if any host in any group is unreachable, the whole playbook fails immediately. B…

---

## [Running Python script, running into /usr/bin/env: No such file or directory](https://forum.ansible.com/t/running-python-script-running-into-usr-bin-env-no-such-file-or-directory/22256)

<div class="topic-metadata">

**Author:** [@SC1](https://forum.ansible.com/u/SC1)\
**Replies:** 5\
**Last updated:** [August 11, 2016, 6:25pm UTC](https://forum.ansible.com/t/running-python-script-running-into-usr-bin-env-no-such-file-or-directory/22256 "2016-08-11T18:25:17Z")

</div>

Hi All, Basically, I’m trying to run a python script on a host. I have a playbook that’s using the script module and it works when I target Oracle Enterprise Linux 6.7. However, trying it against a Solaris host fails. T…

---

## [Windows Playbook Fails Using win\_user](https://forum.ansible.com/t/windows-playbook-fails-using-win-user/22273)

<div class="topic-metadata">

**Author:** [@Anfield](https://forum.ansible.com/u/Anfield)\
**Replies:** 2\
**Last updated:** [August 11, 2016, 5:36pm UTC](https://forum.ansible.com/t/windows-playbook-fails-using-win-user/22273 "2016-08-11T17:36:24Z")

</div>

Trying to run a playbook to add a user on a windows server and getting errors, see below \[root@localhost group\_vars\]# ansible-playbook createuser.yml ERROR! Syntax Error while loading YAML. The error appears to have …

---

## [assign custom host name to ec2 instances](https://forum.ansible.com/t/assign-custom-host-name-to-ec2-instances/22276)

<div class="topic-metadata">

**Author:** [@eric\_skaggs1](https://forum.ansible.com/u/eric_skaggs1)\
**Replies:** 0\
**Last updated:** [August 11, 2016, 4:18pm UTC](https://forum.ansible.com/t/assign-custom-host-name-to-ec2-instances/22276 "2016-08-11T16:18:23Z")

</div>

When deploying an autoscaling group I want to be able to add custom hostnames to the instances for both initial deploy and scaling up and down. hostnames would be something like app-server01 app-server02. Then when we s…

---

## [Unable to assign instance ID to a variable](https://forum.ansible.com/t/unable-to-assign-instance-id-to-a-variable/22274)

<div class="topic-metadata">

**Author:** [@AC11](https://forum.ansible.com/u/AC11)\
**Replies:** 0\
**Last updated:** [August 11, 2016, 3:31pm UTC](https://forum.ansible.com/t/unable-to-assign-instance-id-to-a-variable/22274 "2016-08-11T15:31:21Z")

</div>

Hi, I am using ansible to get the instance ID of a EC2 instance on AWS through the use of ec2\_remote\_facts. How do I assign the instance ID to a variable using set\_fact? I was trying to use the following script but it…

---

## [simple true/false statements in playbooks](https://forum.ansible.com/t/simple-true-false-statements-in-playbooks/22269)

<div class="topic-metadata">

**Author:** [@Jonathan\_Anderson](https://forum.ansible.com/u/Jonathan_Anderson)\
**Replies:** 4\
**Last updated:** [August 11, 2016, 2:16pm UTC](https://forum.ansible.com/t/simple-true-false-statements-in-playbooks/22269 "2016-08-11T14:16:46Z")

</div>

Management Node: CentOs 7.1 Ansible 2.1 Remote Node: Windows 7 Powershell 3.0 I’m trying to display an error message if the file ADS800Dice.s3db has not been modified for more than an hour. The problem …

---

## [Boolean variable being capitalized in templates? Best practice to work around?](https://forum.ansible.com/t/boolean-variable-being-capitalized-in-templates-best-practice-to-work-around/17496)

<div class="topic-metadata">

**Author:** [@Philip\_Lombardi](https://forum.ansible.com/u/Philip_Lombardi)\
**Replies:** 3\
**Last updated:** [August 11, 2016, 1:15pm UTC](https://forum.ansible.com/t/boolean-variable-being-capitalized-in-templates-best-practice-to-work-around/17496 "2016-08-11T13:15:22Z")

</div>

I have some variables defined in a role such as: \`

---

## [Importing Python Custom Modules for Ansible to run?](https://forum.ansible.com/t/importing-python-custom-modules-for-ansible-to-run/22271)

<div class="topic-metadata">

**Author:** [@SC1](https://forum.ansible.com/u/SC1)\
**Replies:** 1\
**Last updated:** [August 11, 2016, 8:03am UTC](https://forum.ansible.com/t/importing-python-custom-modules-for-ansible-to-run/22271 "2016-08-11T08:03:01Z")

</div>

Probably a silly question, but is it possible to refer to another Python file with the script module? For example, if I have abc.py and 123.py, if I import 123.py into the abc.py python script (if I need some functions …

---

## [Feature Request for the package module yum](https://forum.ansible.com/t/feature-request-for-the-package-module-yum/22270)

<div class="topic-metadata">

**Author:** [@Jorg\_Kastning](https://forum.ansible.com/u/Jorg_Kastning)\
**Replies:** 0\
**Last updated:** [August 11, 2016, 6:15am UTC](https://forum.ansible.com/t/feature-request-for-the-package-module-yum/22270 "2016-08-11T06:15:20Z")

</div>

Good morning, I’d like to request a feature for the core module yum. I would like to specify advisory which should be installed. This would be the functionallity of --advisory=RHSA-XXXX:YYYY from the local tool. Kind r…

---

## [Does get\_url prevent caching?](https://forum.ansible.com/t/does-get-url-prevent-caching/20430)

<div class="topic-metadata">

**Author:** [@Joshua\_J\_Kugler](https://forum.ansible.com/u/Joshua_J_Kugler)\
**Replies:** 2\
**Last updated:** [August 11, 2016, 3:48am UTC](https://forum.ansible.com/t/does-get-url-prevent-caching/20430 "2016-08-11T03:48:43Z")

</div>

I am trying to download some ISOs to multiple machines (via a proxy to conserve bandwidth). The ISO is being stored by the proxy, and the machine is using the proxy, but it is downloading from the upstream source ever…

---

## [Wacky SSH timeout bug with Ansible](https://forum.ansible.com/t/wacky-ssh-timeout-bug-with-ansible/22239)

<div class="topic-metadata">

**Author:** [@Brandon\_Heller](https://forum.ansible.com/u/Brandon_Heller)\
**Replies:** 1\
**Last updated:** [August 10, 2016, 8:39pm UTC](https://forum.ansible.com/t/wacky-ssh-timeout-bug-with-ansible/22239 "2016-08-10T20:39:38Z")

</div>

tl;dr; Seeing an Ansible bug where commands take lots of time to start, and then complete quickly; seems to affect Ubuntu VMs. Full description: I’m using Ansible to orchestrate code deployments. These deployments frequ…

---

## [Windows and Groups](https://forum.ansible.com/t/windows-and-groups/22251)

<div class="topic-metadata">

**Author:** [@Allen\_Fisher](https://forum.ansible.com/u/Allen_Fisher)\
**Replies:** 2\
**Last updated:** [August 10, 2016, 6:59pm UTC](https://forum.ansible.com/t/windows-and-groups/22251 "2016-08-10T18:59:35Z")

</div>

Hello– Fairly new to Ansible and am starting to really dig into what I can do with it. I got my first server up and going using http://docs.ansible.com/ansible/intro\_windows.html, but am concerned that I only seem to be…

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

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