# Archives

**URL:** https://forum.ansible.com/c/archives/31.md?page=562

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

**Page:** 563

---

## [Setting a variable with similar values for each host](https://forum.ansible.com/t/setting-a-variable-with-similar-values-for-each-host/22316)

<div class="topic-metadata">

**Author:** [@Edson\_Noboru\_Yamada](https://forum.ansible.com/u/Edson_Noboru_Yamada)\
**Replies:** 1\
**Last updated:** [August 18, 2016, 5:15pm UTC](https://forum.ansible.com/t/setting-a-variable-with-similar-values-for-each-host/22316 "2016-08-18T17:15:57Z")

</div>

Hello I have a group of hosts with names like this: app01.spr.xxx.com app02.spr.xxx.com … app10.spr.xxx.com For each host, there’s a setting (s) that should be set like this: s=a01 s=a02 … s=a10 Since the valu…

---

## [Ansible -Tower rerun from failed task](https://forum.ansible.com/t/ansible-tower-rerun-from-failed-task/22313)

<div class="topic-metadata">

**Author:** [@Srivathsa](https://forum.ansible.com/u/Srivathsa)\
**Replies:** 1\
**Last updated:** [August 18, 2016, 4:48pm UTC](https://forum.ansible.com/t/ansible-tower-rerun-from-failed-task/22313 "2016-08-18T16:48:01Z")

</div>

Hi, I wrote a playbook calling couple of shell scripts and in order to rerun from the failed task in ansible, I used the command ansible-playbook test.yml --start-at-task=task\_name and it worked well as I expected. I w…

---

## [Testing Working Group](https://forum.ansible.com/t/testing-working-group/22290)

<div class="topic-metadata">

**Author:** [@gundalow](https://forum.ansible.com/u/gundalow)\
**Replies:** 1\
**Last updated:** [August 18, 2016, 11:27am UTC](https://forum.ansible.com/t/testing-working-group/22290 "2016-08-18T11:27:21Z")

</div>

Hi, Following on from the success of “New Modules Group”, “Network Working Group” and “Community Working Group” \[1\] we will be running our first: Testing Working Group The group will be the central point for all thing…

---

## [2.1 upgrade gather\_subset error](https://forum.ansible.com/t/2-1-upgrade-gather-subset-error/21595)

<div class="topic-metadata">

**Author:** [@Barry\_Kaplan](https://forum.ansible.com/u/Barry_Kaplan)\
**Replies:** 10\
**Last updated:** [August 18, 2016, 11:17am UTC](https://forum.ansible.com/t/2-1-upgrade-gather-subset-error/21595 "2016-08-18T11:17:19Z")

</div>

We are trying to upgrade from 1.9 to 2.1. With no changes to so far we get: FAILED! =\> {"changed": false, "failed": true, "msg": "unsupported parameter for module: gather\_subset"} I cannot find any use of gather\_subset…

---

## [Jinja map 'extract'](https://forum.ansible.com/t/jinja-map-extract/22315)

<div class="topic-metadata">

**Author:** [@Mike\_Fennemore](https://forum.ansible.com/u/Mike_Fennemore)\
**Replies:** 0\
**Last updated:** [August 18, 2016, 9:33am UTC](https://forum.ansible.com/t/jinja-map-extract/22315 "2016-08-18T09:33:12Z")

</div>

I have a playbook running Windows update and want to use set\_fact to get a list of updates installed and the kb numbers. At the end of the win\_updates I register a variable which has the following: “update\_result.updat…

---

## [win\_dsc5 now supports check mode](https://forum.ansible.com/t/win-dsc5-now-supports-check-mode/22286)

<div class="topic-metadata">

**Author:** [@Trond\_Hindenes](https://forum.ansible.com/u/Trond_Hindenes)\
**Replies:** 1\
**Last updated:** [August 18, 2016, 7:37am UTC](https://forum.ansible.com/t/win-dsc5-now-supports-check-mode/22286 "2016-08-18T07:37:08Z")

</div>

In case anyone in here is using my win\_dsc5 module to invoke DSC resources, I’ve now implemented support for check mode. https://github.com/trondhindenes/Ansible-win\_dsc

---

## [re-run failed tasks](https://forum.ansible.com/t/re-run-failed-tasks/16125)

<div class="topic-metadata">

**Author:** [@Kien\_Pham](https://forum.ansible.com/u/Kien_Pham)\
**Replies:** 2\
**Last updated:** [August 18, 2016, 5:31am UTC](https://forum.ansible.com/t/re-run-failed-tasks/16125 "2016-08-18T05:31:40Z")

</div>

Hi, Is it possible to re-run failed tasks? Ex: I have 10 tasks, task #9 failed. The next time I run, I only want to run task #9 only. This is very helpful for development of the playbook. Do you know if we can do this…

---

## [How to loop over multiple subkeys?](https://forum.ansible.com/t/how-to-loop-over-multiple-subkeys/22312)

<div class="topic-metadata">

**Author:** [@Ash](https://forum.ansible.com/u/Ash)\
**Replies:** 0\
**Last updated:** [August 18, 2016, 3:13am UTC](https://forum.ansible.com/t/how-to-loop-over-multiple-subkeys/22312 "2016-08-18T03:13:21Z")

</div>

Consider the following: \` users: name: a phone\_parents: 123123123 234234234 phone\_roommate: 456456456 567567567 name: b phone\_parents: 789789789 phone\_roommate: 890890890 678678678 \` With subelement, I can only…

---

## [integration test tips](https://forum.ansible.com/t/integration-test-tips/22302)

<div class="topic-metadata">

**Author:** [@Casey\_Lucas](https://forum.ansible.com/u/Casey_Lucas)\
**Replies:** 1\
**Last updated:** [August 17, 2016, 6:07pm UTC](https://forum.ansible.com/t/integration-test-tips/22302 "2016-08-17T18:07:49Z")

</div>

I’m working on a PR that removes some time.sleep calls from async\_wrapper.py. The PR is failing the Shippable tests but the output is pretty cryptic to me. Can anyone give pointers/tips on running the same tests that shi…

---

## [Question about unarchive files](https://forum.ansible.com/t/question-about-unarchive-files/22309)

<div class="topic-metadata">

**Author:** [@Dusty\_Mabe](https://forum.ansible.com/u/Dusty_Mabe)\
**Replies:** 5\
**Last updated:** [August 17, 2016, 4:20pm UTC](https://forum.ansible.com/t/question-about-unarchive-files/22309 "2016-08-17T16:20:55Z")

</div>

What is the relationship between the following two files: lib/ansible/plugins/action/unarchive.py - from ansible/ansible lib/ansible/modules/core/files/unarchive.py - from ansible/ansible-modules-core It seems like ac…

---

## [Ansible 2.0 variable precedence using an inventory file](https://forum.ansible.com/t/ansible-2-0-variable-precedence-using-an-inventory-file/22287)

<div class="topic-metadata">

**Author:** [@Joe\_Jasinski](https://forum.ansible.com/u/Joe_Jasinski)\
**Replies:** 1\
**Last updated:** [August 17, 2016, 3:11pm UTC](https://forum.ansible.com/t/ansible-2-0-variable-precedence-using-an-inventory-file/22287 "2016-08-17T15:11:57Z")

</div>

Hi all, I have a set of Ansible configuration that I intend to use as a Generic template for setting up a Django webserver and related services. This project contains a multitude of roles for configuring various aspects…

---

## [How much would you charge to fix regression #14829?](https://forum.ansible.com/t/how-much-would-you-charge-to-fix-regression-14829/22306)

<div class="topic-metadata">

**Author:** [@Nusenu1](https://forum.ansible.com/u/Nusenu1)\
**Replies:** 0\
**Last updated:** [August 17, 2016, 12:04pm UTC](https://forum.ansible.com/t/how-much-would-you-charge-to-fix-regression-14829/22306 "2016-08-17T12:04:00Z")

</div>

Hi, on 2016-03-06 I reported a regression in ansible 2.x \[1\] that prevents me from migrating my role \[2\] to ansible 2.x. On 2016-03-17 James Cammarata labeled the issue 'in progress', but since then nothing happened …

---

## [Query about Ansible CLA signing.](https://forum.ansible.com/t/query-about-ansible-cla-signing/22297)

<div class="topic-metadata">

**Author:** [@sowani](https://forum.ansible.com/u/sowani)\
**Replies:** 2\
**Last updated:** [August 17, 2016, 5:55am UTC](https://forum.ansible.com/t/query-about-ansible-cla-signing/22297 "2016-08-17T05:55:13Z")

</div>

Hi, With reference to the CLA mentioned at http://docs.ansible.com/ansible/community.html#contributors-license-agreement, is there any explicit document/form which needs to be filled, signed and get approved before I st…

---

## [vsphere able to add a new drive but can not add an existing drive](https://forum.ansible.com/t/vsphere-able-to-add-a-new-drive-but-can-not-add-an-existing-drive/22301)

<div class="topic-metadata">

**Author:** [@Gallo](https://forum.ansible.com/u/Gallo)\
**Replies:** 0\
**Last updated:** [August 16, 2016, 8:38pm UTC](https://forum.ansible.com/t/vsphere-able-to-add-a-new-drive-but-can-not-add-an-existing-drive/22301 "2016-08-16T20:38:13Z")

</div>

Hi guys I am looking to add an existing hard drive to a vm in vsphere however it seems to be expecting the size to be populated. \[code\]

---

## [oracle db modules](https://forum.ansible.com/t/oracle-db-modules/15104)

<div class="topic-metadata">

**Author:** [@Jeremy\_Schneider](https://forum.ansible.com/u/Jeremy_Schneider)\
**Replies:** 18\
**Last updated:** [August 16, 2016, 7:22pm UTC](https://forum.ansible.com/t/oracle-db-modules/15104 "2016-08-16T19:22:21Z")

</div>

I’ve been using ansible to manage a large number of oracle databases spread across many servers and found it to be very useful. Seems most people are using ansible for much cooler, web-scale things like applications that…

---

## [JInja2 loops in YAML folded syntax](https://forum.ansible.com/t/jinja2-loops-in-yaml-folded-syntax/22299)

<div class="topic-metadata">

**Author:** [@Cristiano\_Paris](https://forum.ansible.com/u/Cristiano_Paris)\
**Replies:** 0\
**Last updated:** [August 16, 2016, 4:23pm UTC](https://forum.ansible.com/t/jinja2-loops-in-yaml-folded-syntax/22299 "2016-08-16T16:23:35Z")

</div>

Hi, I’m using a pip-installed Ansible 2.1.1.0 on a CentOS 7. I’m trying to run the following task in a playbook: name: guest\_installed shell: \> virt-install –name {{ guest.name }} –ram {{ guest.memsize }} –hvm …

---

## [JSON user data when launching cloud instances?](https://forum.ansible.com/t/json-user-data-when-launching-cloud-instances/22298)

<div class="topic-metadata">

**Author:** [@rsmitty](https://forum.ansible.com/u/rsmitty)\
**Replies:** 0\
**Last updated:** [August 16, 2016, 2:24pm UTC](https://forum.ansible.com/t/json-user-data-when-launching-cloud-instances/22298 "2016-08-16T14:24:13Z")

</div>

Hi all, Wondering if anyone else has seen this behavior and figured out a way around. I’m trying to pass in a json object at user\_data when launching some VMs in both AWS and OpenStack. The role is very simple and looks…

---

## [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…

[Previous page](https://forum.ansible.com/c/archives/31.md?page=561)

[Next page](https://forum.ansible.com/c/archives/31.md?page=563)
