# Latest

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

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

**Page:** 835

---

## [Change in vars\_prompt behavior for 2.x](https://forum.ansible.com/t/change-in-vars-prompt-behavior-for-2-x/19293)

<div class="topic-metadata">

**Author:** [@John\_Peacock](https://forum.ansible.com/u/John_Peacock)\
**Replies:** 3\
**Last updated:** [September 18, 2015, 12:49pm UTC](https://forum.ansible.com/t/change-in-vars-prompt-behavior-for-2-x/19293 "2015-09-18T12:49:24Z")

</div>

I opened a ticket https://github.com/ansible/ansible/issues/12297 which was closed as won’t fix. I think that decision was flawed, and I’d like to make the argument here. Basically, the old vars\_prompt default was to di…

---

## [Ansible 1.9.2 with\_subelements and DB2: Execute "should-I-run" SQL check before executing multiple DDL commands](https://forum.ansible.com/t/ansible-1-9-2-with-subelements-and-db2-execute-should-i-run-sql-check-before-executing-multiple-ddl-commands/19298)

<div class="topic-metadata">

**Author:** [@Rudolf\_Visagie](https://forum.ansible.com/u/Rudolf_Visagie)\
**Replies:** 0\
**Last updated:** [September 18, 2015, 11:20am UTC](https://forum.ansible.com/t/ansible-1-9-2-with-subelements-and-db2-execute-should-i-run-sql-check-before-executing-multiple-ddl-commands/19298 "2015-09-18T11:20:38Z")

</div>

I’m attempting to create an idempotent DB2 script runner using ansible. My variables:

---

## [Problem in Ansible 2.0 when using item in remote\_user](https://forum.ansible.com/t/problem-in-ansible-2-0-when-using-item-in-remote-user/19297)

<div class="topic-metadata">

**Author:** [@Bastian](https://forum.ansible.com/u/Bastian)\
**Replies:** 0\
**Last updated:** [September 18, 2015, 10:07am UTC](https://forum.ansible.com/t/problem-in-ansible-2-0-when-using-item-in-remote-user/19297 "2015-09-18T10:07:45Z")

</div>

Hey everybody, since I started using ansible 2.0 I’ve been having issues with this task: \` synchronize: src=/src/srcfile dest=/home/{{item}}/ remote\_user: ‘{{item}}’ with\_items: user1 user2 \` with\_items works fin…

---

## [Launching multiple ec2 instances in different AZs playbook issue.](https://forum.ansible.com/t/launching-multiple-ec2-instances-in-different-azs-playbook-issue/19290)

<div class="topic-metadata">

**Author:** [@kevin\_fernandes](https://forum.ansible.com/u/kevin_fernandes)\
**Replies:** 1\
**Last updated:** [September 18, 2015, 8:12am UTC](https://forum.ansible.com/t/launching-multiple-ec2-instances-in-different-azs-playbook-issue/19290 "2015-09-18T08:12:13Z")

</div>

Hi, I have the following Playbook for launching ec2 instances in different AZs

---

## [wierd substitution at regex\_replace filter](https://forum.ansible.com/t/wierd-substitution-at-regex-replace-filter/19258)

<div class="topic-metadata">

**Author:** [@Frank\_Tamas](https://forum.ansible.com/u/Frank_Tamas)\
**Replies:** 1\
**Last updated:** [September 18, 2015, 7:20am UTC](https://forum.ansible.com/t/wierd-substitution-at-regex-replace-filter/19258 "2015-09-18T07:20:42Z")

</div>

Hi, I need a list with the ip address of play\_hosts. This template worked with 1.6.5, but it does not work with 1.9.3. I would appreciate any help, what could be wrong.

---

## [Is there any way to create a nested loop over a dict and a list?](https://forum.ansible.com/t/is-there-any-way-to-create-a-nested-loop-over-a-dict-and-a-list/19281)

<div class="topic-metadata">

**Author:** [@user73](https://forum.ansible.com/u/user73)\
**Replies:** 1\
**Last updated:** [September 18, 2015, 6:19am UTC](https://forum.ansible.com/t/is-there-any-way-to-create-a-nested-loop-over-a-dict-and-a-list/19281 "2015-09-18T06:19:10Z")

</div>

Say I have two variable like these: var1: key1: val1 key2: val2 var2: - item1 - item2 Can I loop over these two variables like below? - shell: echo {{ item.0.value }} {{ item.1 }} with\_dict: "{{ var1 }}" …

---

## [using ansible vault from within a playbook](https://forum.ansible.com/t/using-ansible-vault-from-within-a-playbook/19296)

<div class="topic-metadata">

**Author:** [@Steve\_McKuhr](https://forum.ansible.com/u/Steve_McKuhr)\
**Replies:** 0\
**Last updated:** [September 18, 2015, 3:42am UTC](https://forum.ansible.com/t/using-ansible-vault-from-within-a-playbook/19296 "2015-09-18T03:42:23Z")

</div>

Scenario: generate a random password, save it into a config file, encrypt the file with ansible-vault then use it to configure db user password on remote. I'd like this to happen in an automatic manner but when calling…

---

## [Can't use local\_action in Windows playbook in devel?](https://forum.ansible.com/t/cant-use-local-action-in-windows-playbook-in-devel/19214)

<div class="topic-metadata">

**Author:** [@Frank\_Perks](https://forum.ansible.com/u/Frank_Perks)\
**Replies:** 9\
**Last updated:** [September 17, 2015, 9:54pm UTC](https://forum.ansible.com/t/cant-use-local-action-in-windows-playbook-in-devel/19214 "2015-09-17T21:54:34Z")

</div>

I am trying to reboot a windows server after installing .net + a bunch of dependencies. I have a super simple PS module to schedule a reboot. However afterwords i would like to wait for the WinRM connection to come back: …

---

## [Ansible Tower Install Failure](https://forum.ansible.com/t/ansible-tower-install-failure/19292)

<div class="topic-metadata">

**Author:** [@ayekaymail](https://forum.ansible.com/u/ayekaymail)\
**Replies:** 2\
**Last updated:** [September 17, 2015, 8:19pm UTC](https://forum.ansible.com/t/ansible-tower-install-failure/19292 "2015-09-17T20:19:43Z")

</div>

Hello Everyone I am new to Ansible and trying to get Ansible and Ansible Tower Installed for quick proof of concept assignment. Both these pieces are being installed on the same server VM Ansible installation has been …

---

## [Populating an EC2 Security Group rules (using ec2\_group modules) with IPs (Pingdom probe  servers) gathered dynamically at playbook runtime](https://forum.ansible.com/t/populating-an-ec2-security-group-rules-using-ec2-group-modules-with-ips-pingdom-probe-servers-gathered-dynamically-at-playbook-runtime/15431)

<div class="topic-metadata">

**Author:** [@Jaime\_Gago](https://forum.ansible.com/u/Jaime_Gago)\
**Replies:** 6\
**Last updated:** [September 17, 2015, 5:48pm UTC](https://forum.ansible.com/t/populating-an-ec2-security-group-rules-using-ec2-group-modules-with-ips-pingdom-probe-servers-gathered-dynamically-at-playbook-runtime/15431 "2015-09-17T17:48:04Z")

</div>

Hey there, I’m trying to write a playbook that gets the latest Pingdom probe servers IPs and add updates an EC2 Security groups rules with those IPs, but I’m failing are iterating the IPs in the rule and only the latest…

---

## [How to re-enable gather\_facts later in a playbook](https://forum.ansible.com/t/how-to-re-enable-gather-facts-later-in-a-playbook/19285)

<div class="topic-metadata">

**Author:** [@Emmanuel\_Lacour1](https://forum.ansible.com/u/Emmanuel_Lacour1)\
**Replies:** 2\
**Last updated:** [September 17, 2015, 4:09pm UTC](https://forum.ansible.com/t/how-to-re-enable-gather-facts-later-in-a-playbook/19285 "2015-09-17T16:09:12Z")

</div>

Dear ansible users, I have a playbook that install a VM, so at the beginning og the playbook I use “gather\_facts: no” because the VM is not yet ready, then I install the vm on the cluster using delegate\_to, then once th…

---

## ['sudo su', 'su' and 'sudo'  sample?](https://forum.ansible.com/t/sudo-su-su-and-sudo-sample/19287)

<div class="topic-metadata">

**Author:** [@s.lutchko](https://forum.ansible.com/u/s.lutchko)\
**Replies:** 0\
**Last updated:** [September 17, 2015, 1:43pm UTC](https://forum.ansible.com/t/sudo-su-su-and-sudo-sample/19287 "2015-09-17T13:43:17Z")

</div>

Hi All, Here http://docs.ansible.com/ansible/become.html I see a lot of ‘what’s new’ so perhaps this article is helpful for someone who uses privilege escalation already, but makes little sense for someone who never use…

---

## [Using a jump box, is it possible to sudo su - to root before connecting to targets?](https://forum.ansible.com/t/using-a-jump-box-is-it-possible-to-sudo-su-to-root-before-connecting-to-targets/19277)

<div class="topic-metadata">

**Author:** [@Agent\_Gh](https://forum.ansible.com/u/Agent_Gh)\
**Replies:** 2\
**Last updated:** [September 17, 2015, 1:12pm UTC](https://forum.ansible.com/t/using-a-jump-box-is-it-possible-to-sudo-su-to-root-before-connecting-to-targets/19277 "2015-09-17T13:12:30Z")

</div>

From our jump box, we sudo su - to root and then ssh into the other hosts as root. (I understand the security risks, but I don’t have control over this setup) I’m wondering if I can setup ansible to that it connects to …

---

## [Ansible Galaxy username syncing with Github](https://forum.ansible.com/t/ansible-galaxy-username-syncing-with-github/19266)

<div class="topic-metadata">

**Author:** [@kmf](https://forum.ansible.com/u/kmf)\
**Replies:** 3\
**Last updated:** [September 17, 2015, 1:00pm UTC](https://forum.ansible.com/t/ansible-galaxy-username-syncing-with-github/19266 "2015-09-17T13:00:14Z")

</div>

Hi Will usernames be synced from Github to Galaxy, when the switch happens in January,reason I’m asking is that my github username is 3 characters and it seems that Galaxy only supports 4 characters and up. Karl

---

## [Ansible not picking up ansible\_ssh\_args with dynamic inventory](https://forum.ansible.com/t/ansible-not-picking-up-ansible-ssh-args-with-dynamic-inventory/19274)

<div class="topic-metadata">

**Author:** [@tim.simon.contractor](https://forum.ansible.com/u/tim.simon.contractor)\
**Replies:** 1\
**Last updated:** [September 17, 2015, 12:00pm UTC](https://forum.ansible.com/t/ansible-not-picking-up-ansible-ssh-args-with-dynamic-inventory/19274 "2015-09-17T12:00:49Z")

</div>

I’m using Ansible 1.9.3 on Ubuntu 14.04 and trying to develop a custom dynamic inventory. My dynamic inventory returns some of the ansible\_ssh\_\* hostvars to help ansible connect, below is a redacted output of the dynami…

---

## [Using local\_action with shell module can't deal with the command line arugment.](https://forum.ansible.com/t/using-local-action-with-shell-module-cant-deal-with-the-command-line-arugment/19282)

<div class="topic-metadata">

**Author:** [@user73](https://forum.ansible.com/u/user73)\
**Replies:** 1\
**Last updated:** [September 17, 2015, 11:34am UTC](https://forum.ansible.com/t/using-local-action-with-shell-module-cant-deal-with-the-command-line-arugment/19282 "2015-09-17T11:34:33Z")

</div>

I want to echo something to a file using local\_action and shell module. When I use echo -e, ansible will treat -e as string to print rather than a command line argument. See below: $ cat t.yaml - hosts: localhost remo…

---

## [password prompting](https://forum.ansible.com/t/password-prompting/19276)

<div class="topic-metadata">

**Author:** [@Guy\_Przytula](https://forum.ansible.com/u/Guy_Przytula)\
**Replies:** 2\
**Last updated:** [September 17, 2015, 9:37am UTC](https://forum.ansible.com/t/password-prompting/19276 "2015-09-17T09:37:00Z")

</div>

using ansibe 1.4.3 on linux intel existing playbooks are available a new request for modification came in execute some shell command : export xx=yy;export cc=yy;cd /hhhh; ./dsmapiw this command will prompt for the pa…

---

## [ansible elasticache change : false is missing](https://forum.ansible.com/t/ansible-elasticache-change-false-is-missing/19284)

<div class="topic-metadata">

**Author:** [@Rizzy\_Savage](https://forum.ansible.com/u/Rizzy_Savage)\
**Replies:** 0\
**Last updated:** [September 17, 2015, 6:35am UTC](https://forum.ansible.com/t/ansible-elasticache-change-false-is-missing/19284 "2015-09-17T06:35:45Z")

</div>

Hi, I’m facing a issue in which if i try to re-run playbook for elaticache, the playbook tends to fail. This can be due to change status missing and thereby failing any new cache updated in the file. Error: msg: ‘tes…

---

## [questions regarding ansible raw module on windows](https://forum.ansible.com/t/questions-regarding-ansible-raw-module-on-windows/19283)

<div class="topic-metadata">

**Author:** [@Chris\_Church1](https://forum.ansible.com/u/Chris_Church1)\
**Replies:** 0\
**Last updated:** [September 17, 2015, 3:21am UTC](https://forum.ansible.com/t/questions-regarding-ansible-raw-module-on-windows/19283 "2015-09-17T03:21:19Z")

</div>

If using an Ansible checkout from the devel branch, the raw module should just work for PowerShell snippets. See examples in the integration tests ( https://github.com/ansible/ansible/blob/devel/test/integration/roles…

---

## [set fact - concatenate to the same list -iterating over with items](https://forum.ansible.com/t/set-fact-concatenate-to-the-same-list-iterating-over-with-items/19252)

<div class="topic-metadata">

**Author:** [@trupti\_mali](https://forum.ansible.com/u/trupti_mali)\
**Replies:** 5\
**Last updated:** [September 16, 2015, 8:48pm UTC](https://forum.ansible.com/t/set-fact-concatenate-to-the-same-list-iterating-over-with-items/19252 "2015-09-16T20:48:28Z")

</div>

Hi, I am facing one issue here. I want to loop over the existing list using with items and create another list using previous list values. name: collect iptables exception lines set\_fact: exceptions: "{{ exceptions …

---

## [Ansible ssh errors with script module on OpenSSH 6.6.1](https://forum.ansible.com/t/ansible-ssh-errors-with-script-module-on-openssh-6-6-1/19275)

<div class="topic-metadata">

**Author:** [@Patrick\_Glomski](https://forum.ansible.com/u/Patrick_Glomski)\
**Replies:** 0\
**Last updated:** [September 16, 2015, 11:01am UTC](https://forum.ansible.com/t/ansible-ssh-errors-with-script-module-on-openssh-6-6-1/19275 "2015-09-16T11:01:58Z")

</div>

Hello, TL;DR: recently upgraded OSes. script module no longer functions. May be due to new openssh version. Script runs correctly and ansible module doesn’t seem to throw an error, so it looks like some kind of false po…

---

## [Using variables as dictionary keys](https://forum.ansible.com/t/using-variables-as-dictionary-keys/19270)

<div class="topic-metadata">

**Author:** [@Patrick\_McMahon](https://forum.ansible.com/u/Patrick_McMahon)\
**Replies:** 2\
**Last updated:** [September 15, 2015, 8:08pm UTC](https://forum.ansible.com/t/using-variables-as-dictionary-keys/19270 "2015-09-15T20:08:35Z")

</div>

Hi, Is something like this possible when defining a dictionary in defaults/main.yml: \` agent\_instances: “{{ \[ansible\_fqdn\] }}”: port: 5912 “{{ \[ansible\_fqdn\]-2 }}”: port: 5913 \` I want to then call agent\_instanc…

---

## [Notifying tasks in related roles](https://forum.ansible.com/t/notifying-tasks-in-related-roles/19271)

<div class="topic-metadata">

**Author:** [@Guy\_Knights](https://forum.ansible.com/u/Guy_Knights)\
**Replies:** 1\
**Last updated:** [September 15, 2015, 6:16pm UTC](https://forum.ansible.com/t/notifying-tasks-in-related-roles/19271 "2015-09-15T18:16:27Z")

</div>

I have an haproxy role that can be used for a variety of purposes (load balancing, local proxying, etc), and I need to be able to notify handlers in several other roles if a task in the haproxy role changes, based on whi…

---

## [Rescue block doesn't seem to work when error is in an included file](https://forum.ansible.com/t/rescue-block-doesnt-seem-to-work-when-error-is-in-an-included-file/19268)

<div class="topic-metadata">

**Author:** [@Frank\_Perks](https://forum.ansible.com/u/Frank_Perks)\
**Replies:** 4\
**Last updated:** [September 15, 2015, 4:54pm UTC](https://forum.ansible.com/t/rescue-block-doesnt-seem-to-work-when-error-is-in-an-included-file/19268 "2015-09-15T16:54:53Z")

</div>

So i was hoping to use blocks as an easy way to notify success/failure of ansible runs. block: include: build.yml include: deploy\_site.yml name: Notify Slack it successfully deployed slack: rescue: na…

---

## [Need advice to setup autoscaling on Google Cloud Platform using Ansible](https://forum.ansible.com/t/need-advice-to-setup-autoscaling-on-google-cloud-platform-using-ansible/19269)

<div class="topic-metadata">

**Author:** [@Guillaume\_Charhon](https://forum.ansible.com/u/Guillaume_Charhon)\
**Replies:** 0\
**Last updated:** [September 15, 2015, 3:43pm UTC](https://forum.ansible.com/t/need-advice-to-setup-autoscaling-on-google-cloud-platform-using-ansible/19269 "2015-09-15T15:43:06Z")

</div>

Hi guys, I have a machine configured using Ansible as a webserver. I would like to use the autoscaling feature of Google Compute Engine. What is the correct way to do it? I don’t know how to make them both work together…

---

## [shell command not getting executed on the remote node](https://forum.ansible.com/t/shell-command-not-getting-executed-on-the-remote-node/19265)

<div class="topic-metadata">

**Author:** [@Mick\_st\_john](https://forum.ansible.com/u/Mick_st_john)\
**Replies:** 1\
**Last updated:** [September 15, 2015, 2:18pm UTC](https://forum.ansible.com/t/shell-command-not-getting-executed-on-the-remote-node/19265 "2015-09-15T14:18:17Z")

</div>

I want to add a linux bridge on a remote node having ubuntu 14.04 version. I wrote a playbook to do so, it is as following:

---

## [Nagios module usage](https://forum.ansible.com/t/nagios-module-usage/19262)

<div class="topic-metadata">

**Author:** [@dyioulos](https://forum.ansible.com/u/dyioulos)\
**Replies:** 8\
**Last updated:** [September 15, 2015, 1:39pm UTC](https://forum.ansible.com/t/nagios-module-usage/19262 "2015-09-15T13:39:53Z")

</div>

I’d like to set downtime in Nagios for several hosts at once using the Nagios module. How do I specify those several hosts? - nagios: action=downtime minutes=30 service=all host=? Many thanks.

---

## [Docker and Ansible: running specific tasks on a dynamically defined host list](https://forum.ansible.com/t/docker-and-ansible-running-specific-tasks-on-a-dynamically-defined-host-list/19267)

<div class="topic-metadata">

**Author:** [@Kamesh\_Sampath](https://forum.ansible.com/u/Kamesh_Sampath)\
**Replies:** 0\
**Last updated:** [September 15, 2015, 11:39am UTC](https://forum.ansible.com/t/docker-and-ansible-running-specific-tasks-on-a-dynamically-defined-host-list/19267 "2015-09-15T11:39:41Z")

</div>

Hello, I am running docker swarm with Ansible, my playbook deploys a docker image on specific node using swarm, post that deployment I want to execute certain Ansible tasks on the host where the image is deployed (still…

---

## [Ansible + Jenkins](https://forum.ansible.com/t/ansible-jenkins/16768)

<div class="topic-metadata">

**Author:** [@Alex\_T](https://forum.ansible.com/u/Alex_T)\
**Replies:** 7\
**Last updated:** [September 15, 2015, 5:48am UTC](https://forum.ansible.com/t/ansible-jenkins/16768 "2015-09-15T05:48:52Z")

</div>

Hi! Everybody knows, how to run ansible playbook from jenkins ci?

---

## [template module ignoring become\_user?](https://forum.ansible.com/t/template-module-ignoring-become-user/19236)

<div class="topic-metadata">

**Author:** [@Stephan\_Hradek](https://forum.ansible.com/u/Stephan_Hradek)\
**Replies:** 5\
**Last updated:** [September 15, 2015, 5:31am UTC](https://forum.ansible.com/t/template-module-ignoring-become-user/19236 "2015-09-15T05:31:20Z")

</div>

Hi! I’m trying to run a playbook locally and also trying to use the template module here. This is an excerpt from my playbook: \`

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

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