# Latest

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

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

**Page:** 809

---

## [\-e 'versions.myapp="0.1.2"'  vs -e  '{ "versions": { "myapp": "0.1.2"} }'  =\> Rundeck job import, ":"  -\> yaml: mapping values are not allowed here](https://forum.ansible.com/t/e-versions-myapp-0-1-2-vs-e-versions-myapp-0-1-2-rundeck-job-import-yaml-mapping-values-are-not-allowed-here/20046)

<div class="topic-metadata">

**Author:** [@Jakub\_Muszynski](https://forum.ansible.com/u/Jakub_Muszynski)\
**Replies:** 2\
**Last updated:** [December 18, 2015, 4:04pm UTC](https://forum.ansible.com/t/e-versions-myapp-0-1-2-vs-e-versions-myapp-0-1-2-rundeck-job-import-yaml-mapping-values-are-not-allowed-here/20046 "2015-12-18T16:04:31Z")

</div>

Is there any way to pass an extra\_vars in a form of dict, not json? Like this: -e ‘versions.myapp=“0.1.2”’ not like that: -e ‘{ “versions”: { “myapp”: “0.1.2”} }’ Reason - while importing jobs into rundeck it does c…

---

## [Evaluate double-templated variable:  "{{ versions\_{{ choosen\_app }} }}"](https://forum.ansible.com/t/evaluate-double-templated-variable-versions-choosen-app/20041)

<div class="topic-metadata">

**Author:** [@Jakub\_Muszynski](https://forum.ansible.com/u/Jakub_Muszynski)\
**Replies:** 6\
**Last updated:** [December 18, 2015, 4:00pm UTC](https://forum.ansible.com/t/evaluate-double-templated-variable-versions-choosen-app/20041 "2015-12-18T16:00:15Z")

</div>

Is it possible to double template the vars? vars: versions\_appA: ‘1.2.3.4’ versions\_appB: ‘4.3.2.1’ in tasks (for jinja template): the ideal would be (this is fake): set\_fact: choosen\_app: ‘appA’ choosen\_app\_ver…

---

## [Deploy Subnets into Different availability zones using Ansible.](https://forum.ansible.com/t/deploy-subnets-into-different-availability-zones-using-ansible/20024)

<div class="topic-metadata">

**Author:** [@Bhotu](https://forum.ansible.com/u/Bhotu)\
**Replies:** 4\
**Last updated:** [December 18, 2015, 8:05am UTC](https://forum.ansible.com/t/deploy-subnets-into-different-availability-zones-using-ansible/20024 "2015-12-18T08:05:41Z")

</div>

I am Working on putting subnets into different availability zones with the help of ansible. I want to put subnet1 into us-east-1a, then subnet2 into us-east-1b and so on. Currently I can only be able to put servers onto …

---

## [SG access different per environment](https://forum.ansible.com/t/sg-access-different-per-environment/20044)

<div class="topic-metadata">

**Author:** [@Nicolas\_G](https://forum.ansible.com/u/Nicolas_G)\
**Replies:** 0\
**Last updated:** [December 17, 2015, 8:50pm UTC](https://forum.ansible.com/t/sg-access-different-per-environment/20044 "2015-12-17T20:50:52Z")

</div>

Hi, I have the bellow security groups that is working : \` name: modify sg\_default rules local\_action: module: ec2\_group region: “us-east-1” vpc\_id: “{{ vpcid }}” name: “test” rules: proto: all cidr\_ip: “{{ off…

---

## [ansible-galaxy github-token calling non-existant API endpoint](https://forum.ansible.com/t/ansible-galaxy-github-token-calling-non-existant-api-endpoint/20042)

<div class="topic-metadata">

**Author:** [@Bryan\_Hunt](https://forum.ansible.com/u/Bryan_Hunt)\
**Replies:** 2\
**Last updated:** [December 17, 2015, 8:27pm UTC](https://forum.ansible.com/t/ansible-galaxy-github-token-calling-non-existant-api-endpoint/20042 "2015-12-17T20:27:47Z")

</div>

Hi there, it seems an API endpoint may have vanished.### From - http://docs.ansible.com/ansible/galaxy.html

---

## [How to restart docker containers with ansible?](https://forum.ansible.com/t/how-to-restart-docker-containers-with-ansible/20043)

<div class="topic-metadata">

**Author:** [@Dump\_Hole](https://forum.ansible.com/u/Dump_Hole)\
**Replies:** 0\
**Last updated:** [December 17, 2015, 8:15pm UTC](https://forum.ansible.com/t/how-to-restart-docker-containers-with-ansible/20043 "2015-12-17T20:15:42Z")

</div>

It seems the docker module for ansible is geared toward spinning up new containers, but not restarting an existing running container. In command line, all you need is the container name. It is as simple as sudo docker …

---

## [Temporarily setting umask](https://forum.ansible.com/t/temporarily-setting-umask/16168)

<div class="topic-metadata">

**Author:** [@Steven\_Ringo](https://forum.ansible.com/u/Steven_Ringo)\
**Replies:** 1\
**Last updated:** [December 17, 2015, 2:23pm UTC](https://forum.ansible.com/t/temporarily-setting-umask/16168 "2015-12-17T14:23:16Z")

</div>

Hi, We are running a system where the default umask is 0077. When installing a system-wide rubygem (as root), for example, the installed files and executables are installed with rights for the root user only. I would …

---

## [Ansible gce module just hangs](https://forum.ansible.com/t/ansible-gce-module-just-hangs/20039)

<div class="topic-metadata">

**Author:** [@shubhendu\_singh](https://forum.ansible.com/u/shubhendu_singh)\
**Replies:** 0\
**Last updated:** [December 17, 2015, 2:19pm UTC](https://forum.ansible.com/t/ansible-gce-module-just-hangs/20039 "2015-12-17T14:19:24Z")

</div>

ansible-playbook -vvvv --private-key=~/.ssh/google\_compute\_engine -i ansible\_hosts site.yml PLAY \[Create Compute Engine instances\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* TASK: \[Bring up the instances in the first zon…

---

## [Passing variables into files for syncing](https://forum.ansible.com/t/passing-variables-into-files-for-syncing/20038)

<div class="topic-metadata">

**Author:** [@Colin\_Byrne](https://forum.ansible.com/u/Colin_Byrne)\
**Replies:** 1\
**Last updated:** [December 17, 2015, 10:30am UTC](https://forum.ansible.com/t/passing-variables-into-files-for-syncing/20038 "2015-12-17T10:30:42Z")

</div>

Hey, so I have a number of essentially identical development servers which have a set of mostly-identical config files. In the config files are small configuration differences for each server, usually a differing API key…

---

## [Extends template with ansible](https://forum.ansible.com/t/extends-template-with-ansible/20018)

<div class="topic-metadata">

**Author:** [@Christophe\_Biguereau](https://forum.ansible.com/u/Christophe_Biguereau)\
**Replies:** 1\
**Last updated:** [December 17, 2015, 8:32am UTC](https://forum.ansible.com/t/extends-template-with-ansible/20018 "2015-12-17T08:32:57Z")

</div>

Hi all, I try to simplify my Nginx template by using extends template. To do that, I follow the Jinja2 doc I create a child template: {% extends “nginx\_servers.j2” %} {% block listen %} listen {{ item.server.listen …

---

## [Concatenated Commands Not Executing](https://forum.ansible.com/t/concatenated-commands-not-executing/20037)

<div class="topic-metadata">

**Author:** [@Colin\_Byrne](https://forum.ansible.com/u/Colin_Byrne)\
**Replies:** 2\
**Last updated:** [December 17, 2015, 3:19am UTC](https://forum.ansible.com/t/concatenated-commands-not-executing/20037 "2015-12-17T03:19:18Z")

</div>

Hey so I am still getting familiar with Ansible so apologies if this is amateur stuff: I have an array of servers which I need to execute a series of commands on. I enter: ansible all -m command -a "sudo apt-get -y upd…

---

## [New 'bigip\_user' module -- testers needed](https://forum.ansible.com/t/new-bigip-user-module-testers-needed/20010)

<div class="topic-metadata">

**Author:** [@Matt\_Hite](https://forum.ansible.com/u/Matt_Hite)\
**Replies:** 5\
**Last updated:** [December 16, 2015, 11:11pm UTC](https://forum.ansible.com/t/new-bigip-user-module-testers-needed/20010 "2015-12-16T23:11:22Z")

</div>

Would love to get a few more eyes from F5 BIG-IP on a new module I just submitted for managing users. Here’s the pull request: https://github.com/ansible/ansible-modules-extras/pull/1370 Thanks, -M

---

## [merge 2 arrays into array of dictionaries](https://forum.ansible.com/t/merge-2-arrays-into-array-of-dictionaries/20036)

<div class="topic-metadata">

**Author:** [@abel.makkonen.tesfay](https://forum.ansible.com/u/abel.makkonen.tesfay)\
**Replies:** 3\
**Last updated:** [December 16, 2015, 9:58pm UTC](https://forum.ansible.com/t/merge-2-arrays-into-array-of-dictionaries/20036 "2015-12-16T21:58:45Z")

</div>

I have 2 arrays "containers": \[ "ContainerA", "ContainerA", "ContainerB", "ContainerB" \] "apps": \[ "app2", "app1", "app…

---

## [Extracting IP of specific EC2 instance from dynamic inventory outside of current hostvars](https://forum.ansible.com/t/extracting-ip-of-specific-ec2-instance-from-dynamic-inventory-outside-of-current-hostvars/20005)

<div class="topic-metadata">

**Author:** [@Alexandr\_Kurilin](https://forum.ansible.com/u/Alexandr_Kurilin)\
**Replies:** 3\
**Last updated:** [December 16, 2015, 8:32pm UTC](https://forum.ansible.com/t/extracting-ip-of-specific-ec2-instance-from-dynamic-inventory-outside-of-current-hostvars/20005 "2015-12-16T20:32:21Z")

</div>

Hey folks, Ansible 1.9.3 user here. I’m trying to figure out if there’s a way to obtain the IP of a specific instance from an ec2 dynamic inventory when that instance is NOT part of the current group of hosts being conf…

---

## [ansible bastion host with passwords only](https://forum.ansible.com/t/ansible-bastion-host-with-passwords-only/20035)

<div class="topic-metadata">

**Author:** [@Kelly\_Goedert](https://forum.ansible.com/u/Kelly_Goedert)\
**Replies:** 0\
**Last updated:** [December 16, 2015, 6:12pm UTC](https://forum.ansible.com/t/ansible-bastion-host-with-passwords-only/20035 "2015-12-16T18:12:38Z")

</div>

Hi, I just started using ansible and so far it works nice. I was able to create playbooks and execute them without any problems when I have a direct access to the server where I need the commands to be run. Now I have …

---

## [Interrupting a playbook - interrupt failed to prevent a reboot for ~ 1/2 of hosts in a group](https://forum.ansible.com/t/interrupting-a-playbook-interrupt-failed-to-prevent-a-reboot-for-1-2-of-hosts-in-a-group/20034)

<div class="topic-metadata">

**Author:** [@jdelaporte](https://forum.ansible.com/u/jdelaporte)\
**Replies:** 0\
**Last updated:** [December 16, 2015, 6:09pm UTC](https://forum.ansible.com/t/interrupting-a-playbook-interrupt-failed-to-prevent-a-reboot-for-1-2-of-hosts-in-a-group/20034 "2015-12-16T18:09:02Z")

</div>

I have a playbook that has a reboot directive at the end, with a pause and prompt at the end to allow me to interrupt and abort the playbook without rebooting. Or at least, it used to. I pointed the playbook at ~28 mach…

---

## [Ansible 2.1.0, I used --limit to run a playbook and host file hostvars for the host didn't load](https://forum.ansible.com/t/ansible-2-1-0-i-used-limit-to-run-a-playbook-and-host-file-hostvars-for-the-host-didnt-load/20033)

<div class="topic-metadata">

**Author:** [@jdelaporte](https://forum.ansible.com/u/jdelaporte)\
**Replies:** 0\
**Last updated:** [December 16, 2015, 5:37pm UTC](https://forum.ansible.com/t/ansible-2-1-0-i-used-limit-to-run-a-playbook-and-host-file-hostvars-for-the-host-didnt-load/20033 "2015-12-16T17:37:45Z")

</div>

Last night, I ran a playbook that had a group specified for hosts. That group has a custom variable defined in my inventory. On the command line I used --limit=jupiter to test on a single host. The defined hostvar was no…

---

## [Ansible or Salt?](https://forum.ansible.com/t/ansible-or-salt/20002)

<div class="topic-metadata">

**Author:** [@Fff\_Fff](https://forum.ansible.com/u/Fff_Fff)\
**Replies:** 2\
**Last updated:** [December 16, 2015, 4:44pm UTC](https://forum.ansible.com/t/ansible-or-salt/20002 "2015-12-16T16:44:46Z")

</div>

I am leaning Ansible but it’s close. Looking for peoples opinions. So far I prefer Ansible’s serverless design doing everything over ssh with keys. I tries salt-ssh but it’s quite rudimentary in comparison. If salt-ssh…

---

## [help: install/upgrade a list of RPMs](https://forum.ansible.com/t/help-install-upgrade-a-list-of-rpms/20015)

<div class="topic-metadata">

**Author:** [@user46](https://forum.ansible.com/u/user46)\
**Replies:** 7\
**Last updated:** [December 16, 2015, 3:54pm UTC](https://forum.ansible.com/t/help-install-upgrade-a-list-of-rpms/20015 "2015-12-16T15:54:56Z")

</div>

hi, i’m new to ansible. i want to install a list of RPMs, and upgrade if already installed, otherwise just install it. How to do this with ansible? Thanks

---

## [mongodb\_document proposal](https://forum.ansible.com/t/mongodb-document-proposal/20031)

<div class="topic-metadata">

**Author:** [@Kesten\_Broughton2](https://forum.ansible.com/u/Kesten_Broughton2)\
**Replies:** 0\
**Last updated:** [December 16, 2015, 2:04pm UTC](https://forum.ansible.com/t/mongodb-document-proposal/20031 "2015-12-16T14:04:45Z")

</div>

Curious if anyone is working on other modules for mongodb. Currently there is mongodb\_user I'd like to propose mongodb\_document to implement the following EXAMPLES = ''' # Create 'burger' document in 'menu' collectio…

---

## [when defined not working with hash](https://forum.ansible.com/t/when-defined-not-working-with-hash/20028)

<div class="topic-metadata">

**Author:** [@jepper](https://forum.ansible.com/u/jepper)\
**Replies:** 1\
**Last updated:** [December 16, 2015, 2:01pm UTC](https://forum.ansible.com/t/when-defined-not-working-with-hash/20028 "2015-12-16T14:01:04Z")

</div>

I need to do something like this in a role, and I use an endpoint for some of the items in the hash I feed it shell: dosomething.sh {{ item.endpoint }} when: “{{ item.endpoint }} is defined” with\_items: {{ myhash }} m…

---

## [ssh v1 protocol: Protocol major versions differ: 2 vs. 1](https://forum.ansible.com/t/ssh-v1-protocol-protocol-major-versions-differ-2-vs-1/20027)

<div class="topic-metadata">

**Author:** [@Gavin](https://forum.ansible.com/u/Gavin)\
**Replies:** 1\
**Last updated:** [December 16, 2015, 1:33pm UTC](https://forum.ansible.com/t/ssh-v1-protocol-protocol-major-versions-differ-2-vs-1/20027 "2015-12-16T13:33:12Z")

</div>

When I tried to connect a machine, it appeared the following error: test | FAILED =\> failed to transfer file to /root/.ansible/tmp/ansible-tmp-1450244649.99-88355087476052/command: Connecting to ...… Protocol major ve…

---

## [Ignore Errors and Write Log Message?](https://forum.ansible.com/t/ignore-errors-and-write-log-message/20030)

<div class="topic-metadata">

**Author:** [@dennis.benzinger](https://forum.ansible.com/u/dennis.benzinger)\
**Replies:** 1\
**Last updated:** [December 16, 2015, 1:32pm UTC](https://forum.ansible.com/t/ignore-errors-and-write-log-message/20030 "2015-12-16T13:32:10Z")

</div>

Hello Group, how can I ignore errors for one task (ignore\_errors: yes) and if there was an error write a log message (e.g. debug task) ? Thanks, Dennis Benzinger | SAP Hybris

---

## [Assign IAM role to an ec2 instance from a playbook](https://forum.ansible.com/t/assign-iam-role-to-an-ec2-instance-from-a-playbook/20029)

<div class="topic-metadata">

**Author:** [@Martyn\_F](https://forum.ansible.com/u/Martyn_F)\
**Replies:** 0\
**Last updated:** [December 16, 2015, 11:59am UTC](https://forum.ansible.com/t/assign-iam-role-to-an-ec2-instance-from-a-playbook/20029 "2015-12-16T11:59:51Z")

</div>

Hi, I’m fairly new to ansible and ec2 so apologies if this is not the best way to approach what I’m trying to do. I have an ansible script that creates two basic ec2 instances, adds them to an ELB and then installs a t…

---

## [Issue creating instances on GCE](https://forum.ansible.com/t/issue-creating-instances-on-gce/20026)

<div class="topic-metadata">

**Author:** [@dean](https://forum.ansible.com/u/dean)\
**Replies:** 0\
**Last updated:** [December 15, 2015, 10:00pm UTC](https://forum.ansible.com/t/issue-creating-instances-on-gce/20026 "2015-12-15T22:00:02Z")

</div>

I am testing the creation of instances on GCE but cannot get anything to work. This is a brand new install of Ansible. Details of the playbook and error are below. Thanks in advance for the help. $ ansible-playbook tes…

---

## [Create GCE instances msg: Unexpected response: {}](https://forum.ansible.com/t/create-gce-instances-msg-unexpected-response/17367)

<div class="topic-metadata">

**Author:** [@Faisal\_Rabbani](https://forum.ansible.com/u/Faisal_Rabbani)\
**Replies:** 3\
**Last updated:** [December 15, 2015, 9:54pm UTC](https://forum.ansible.com/t/create-gce-instances-msg-unexpected-response/17367 "2015-12-15T21:54:12Z")

</div>

Hi, I am trying to create new instance via ansible gce module but getting this message: PLAY \[localhost\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* TASK: \[Launch instances\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [Using Ansible in Python Licensing Question](https://forum.ansible.com/t/using-ansible-in-python-licensing-question/20006)

<div class="topic-metadata">

**Author:** [@Usman\_Ehtesham](https://forum.ansible.com/u/Usman_Ehtesham)\
**Replies:** 5\
**Last updated:** [December 15, 2015, 6:27pm UTC](https://forum.ansible.com/t/using-ansible-in-python-licensing-question/20006 "2015-12-15T18:27:14Z")

</div>

Hello, I wanted to import ansible in my Python code; this is for work. But i was told the following: “Any python code that you import from ansible automatically requires the code your writing to be licensed under the G…

---

## [ssh connection closed waiting for a privilege escalation password prompt](https://forum.ansible.com/t/ssh-connection-closed-waiting-for-a-privilege-escalation-password-prompt/18439)

<div class="topic-metadata">

**Author:** [@Mark\_Woon](https://forum.ansible.com/u/Mark_Woon)\
**Replies:** 1\
**Last updated:** [December 15, 2015, 6:26pm UTC](https://forum.ansible.com/t/ssh-connection-closed-waiting-for-a-privilege-escalation-password-prompt/18439 "2015-12-15T18:26:51Z")

</div>

After going from 1.7.1 to 1.9.1 I’m getting “ssh connection closed waiting for a privilege escalation password prompt” errors. I tried switching to using the new become directives, but I’m still having problems. Here’s …

---

## [Setting Log Path From Within Playbook](https://forum.ansible.com/t/setting-log-path-from-within-playbook/20025)

<div class="topic-metadata">

**Author:** [@Kincaid\_Savoie](https://forum.ansible.com/u/Kincaid_Savoie)\
**Replies:** 0\
**Last updated:** [December 15, 2015, 6:23pm UTC](https://forum.ansible.com/t/setting-log-path-from-within-playbook/20025 "2015-12-15T18:23:23Z")

</div>

Is there any way to configure logging from inside an Ansible playbook, or on a per-playbook basis? For example, could I set backup.yml to log its results to backup.log, while update.yml outputs its results to update.log?…

---

## [Abridged summary of ansible-project@googlegroups.com - 42 updates in 23 topics](https://forum.ansible.com/t/abridged-summary-of-ansible-project-googlegroups-com-42-updates-in-23-topics/20023)

<div class="topic-metadata">

**Author:** [@Vadim](https://forum.ansible.com/u/Vadim)\
**Replies:** 0\
**Last updated:** [December 15, 2015, 5:48pm UTC](https://forum.ansible.com/t/abridged-summary-of-ansible-project-googlegroups-com-42-updates-in-23-topics/20023 "2015-12-15T17:48:07Z")

</div>

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

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