# Latest

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

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

**Page:** 909

---

## [How to create a complex variable from an existing variable (not a clone)](https://forum.ansible.com/t/how-to-create-a-complex-variable-from-an-existing-variable-not-a-clone/17122)

<div class="topic-metadata">

**Author:** [@Cyril\_Scetbon](https://forum.ansible.com/u/Cyril_Scetbon)\
**Replies:** 0\
**Last updated:** [December 20, 2014, 10:59pm UTC](https://forum.ansible.com/t/how-to-create-a-complex-variable-from-an-existing-variable-not-a-clone/17122 "2014-12-20T22:59:49Z")

</div>

Hi, I’m using a lot of parameters when I instantiate an ec2 instance. I’d like to reuse the same configuration for all my instances and extend them depending on instances. For example, my global variable is ec2\_parame…

---

## [Collection of roles and configuration developed for an organization](https://forum.ansible.com/t/collection-of-roles-and-configuration-developed-for-an-organization/14616)

<div class="topic-metadata">

**Author:** [@Elliot\_Dahl](https://forum.ansible.com/u/Elliot_Dahl)\
**Replies:** 4\
**Last updated:** [December 20, 2014, 10:54pm UTC](https://forum.ansible.com/t/collection-of-roles-and-configuration-developed-for-an-organization/14616 "2014-12-20T22:54:06Z")

</div>

Hi, is there a list of Ansible repositories containing roles that were meant to be used together? A repository such as this one for Puppet https://github.com/example42/puppet-modules These are the only two that I have f…

---

## [skipping, while when-statement is ok.](https://forum.ansible.com/t/skipping-while-when-statement-is-ok/17121)

<div class="topic-metadata">

**Author:** [@ahaitoute](https://forum.ansible.com/u/ahaitoute)\
**Replies:** 0\
**Last updated:** [December 20, 2014, 9:32pm UTC](https://forum.ansible.com/t/skipping-while-when-statement-is-ok/17121 "2014-12-20T21:32:14Z")

</div>

Hello, I’ve got the following ansible code: \` name: check distro exists with\_items: distro stat: path=/var/www/cobbler/ks\_mirror/{{ item.name }}-{{ item.arch }}/images/pxeboot/initrd.img register: distro\_file wh…

---

## [Creation of dict on the fly](https://forum.ansible.com/t/creation-of-dict-on-the-fly/17116)

<div class="topic-metadata">

**Author:** [@Rick\_Kasten](https://forum.ansible.com/u/Rick_Kasten)\
**Replies:** 2\
**Last updated:** [December 20, 2014, 8:29pm UTC](https://forum.ansible.com/t/creation-of-dict-on-the-fly/17116 "2014-12-20T20:29:28Z")

</div>

I have to create a haproxy config file with data from an unknown number of backend servers. The number is unknown, because based on the environment I need to run the playbook in, the number of backend servers could be 1 …

---

## [Using binary data in Ansible Vaults.](https://forum.ansible.com/t/using-binary-data-in-ansible-vaults/17114)

<div class="topic-metadata">

**Author:** [@Stephen\_Gargan](https://forum.ansible.com/u/Stephen_Gargan)\
**Replies:** 2\
**Last updated:** [December 20, 2014, 1:34am UTC](https://forum.ansible.com/t/using-binary-data-in-ansible-vaults/17114 "2014-12-20T01:34:28Z")

</div>

I’ve been using a pattern of base64 encoded values and jinja templates deal with storing binary data in vaults and have put together scripts to simplify the process; I’ve found them pretty useful and figured others might…

---

## [Lookup if a value is in a dictionary then perform a task (using when/conditional)](https://forum.ansible.com/t/lookup-if-a-value-is-in-a-dictionary-then-perform-a-task-using-when-conditional/17115)

<div class="topic-metadata">

**Author:** [@Cody\_Robertson](https://forum.ansible.com/u/Cody_Robertson)\
**Replies:** 2\
**Last updated:** [December 20, 2014, 12:46am UTC](https://forum.ansible.com/t/lookup-if-a-value-is-in-a-dictionary-then-perform-a-task-using-when-conditional/17115 "2014-12-20T00:46:36Z")

</div>

Hello, Hopefully I’m not overlooking this but is there a way to lookup if a value is in a dictionary - if it is perform a task using the “when” keyword? For example I want to have a certain task only run if the {{ ansib…

---

## [Ansible Runner API and v2 Refactor](https://forum.ansible.com/t/ansible-runner-api-and-v2-refactor/17110)

<div class="topic-metadata">

**Author:** [@Adam\_Miller](https://forum.ansible.com/u/Adam_Miller)\
**Replies:** 4\
**Last updated:** [December 19, 2014, 7:12pm UTC](https://forum.ansible.com/t/ansible-runner-api-and-v2-refactor/17110 "2014-12-19T19:12:25Z")

</div>

Hello all, I was poking around the v2/ directory just to see how the refactor is looking (mostly out of personal curiosity) and I noticed there's no longer a Runner API as it exists in "current gen" Ansible\[0\]. I …

---

## [Passing an IP address of a host as an a command line argument to a bash script](https://forum.ansible.com/t/passing-an-ip-address-of-a-host-as-an-a-command-line-argument-to-a-bash-script/17105)

<div class="topic-metadata">

**Author:** [@Fazal-e-Rehman\_Khan](https://forum.ansible.com/u/Fazal-e-Rehman_Khan)\
**Replies:** 4\
**Last updated:** [December 19, 2014, 5:12pm UTC](https://forum.ansible.com/t/passing-an-ip-address-of-a-host-as-an-a-command-line-argument-to-a-bash-script/17105 "2014-12-19T17:12:15Z")

</div>

Dear All, My hosts file looks like this. \[client\] 192.168.1.23 \[server\] 192.168.1.24 \[exchange\] 192.168.1.25 In my playbook, I want to run a script on a remote machine (“client” in my case) which requires the IP …

---

## [problems with the 'git' module](https://forum.ansible.com/t/problems-with-the-git-module/17109)

<div class="topic-metadata">

**Author:** [@Toni\_Mueller](https://forum.ansible.com/u/Toni_Mueller)\
**Replies:** 0\
**Last updated:** [December 19, 2014, 3:51pm UTC](https://forum.ansible.com/t/problems-with-the-git-module/17109 "2014-12-19T15:51:58Z")

</div>

Hi, I am trying to deploy software from git to a machine which I am managing with Ansible. I am using SSH agent forwarding for authentication. If I log in as the user and connect to the repository host, everything wo…

---

## [Force gathering facts on all hosts when using --tags or --limit](https://forum.ansible.com/t/force-gathering-facts-on-all-hosts-when-using-tags-or-limit/13446)

<div class="topic-metadata">

**Author:** [@Nick\_Groenen](https://forum.ansible.com/u/Nick_Groenen)\
**Replies:** 33\
**Last updated:** [December 19, 2014, 2:44pm UTC](https://forum.ansible.com/t/force-gathering-facts-on-all-hosts-when-using-tags-or-limit/13446 "2014-12-19T14:44:07Z")

</div>

I have a very large playbook which configures our entire infrastructure. Because of this, various steps are tagged so that only specific parts of the playbook can be run, cutting down on runtime when required. Parts …

---

## [dpkg options](https://forum.ansible.com/t/dpkg-options/17107)

<div class="topic-metadata">

**Author:** [@sebastian\_halfar](https://forum.ansible.com/u/sebastian_halfar)\
**Replies:** 0\
**Last updated:** [December 19, 2014, 2:29pm UTC](https://forum.ansible.com/t/dpkg-options/17107 "2014-12-19T14:29:39Z")

</div>

Hallo ansible-team, first of all nice work i like this tool alot. We use it for Updates on Debian Server. I got one request for your dpkg options, we need the possibility to give apt module some dpkg options like only u…

---

## [one task wants to use another.. I think.](https://forum.ansible.com/t/one-task-wants-to-use-another-i-think/17084)

<div class="topic-metadata">

**Author:** [@Dan\_Langille](https://forum.ansible.com/u/Dan_Langille)\
**Replies:** 1\
**Last updated:** [December 19, 2014, 2:43am UTC](https://forum.ansible.com/t/one-task-wants-to-use-another-i-think/17084 "2014-12-19T02:43:48Z")

</div>

I have a role for installing ssl certificates. I also have a playbook for installing an instance of mailman with various vhosts. One such host like this: host\_vars/mailman.unixathome.org:

---

## [Hybrid Inventory: including ec2.py groups in static hosts.aws](https://forum.ansible.com/t/hybrid-inventory-including-ec2-py-groups-in-static-hosts-aws/17102)

<div class="topic-metadata">

**Author:** [@Zaur\_Salamov](https://forum.ansible.com/u/Zaur_Salamov)\
**Replies:** 0\
**Last updated:** [December 19, 2014, 1:15am UTC](https://forum.ansible.com/t/hybrid-inventory-including-ec2-py-groups-in-static-hosts-aws/17102 "2014-12-19T01:15:45Z")

</div>

Hi all. I know if put static and dynamic inventory files in the same directory ansible uses both. But I couldnt include group name from ec2.py in hosts.aws as children. It ignores it. Ie as: \[mytest:children\] type\_m1\_l…

---

## [unarchive module: creates does not work](https://forum.ansible.com/t/unarchive-module-creates-does-not-work/16215)

<div class="topic-metadata">

**Author:** [@Olivier\_Javaux](https://forum.ansible.com/u/Olivier_Javaux)\
**Replies:** 9\
**Last updated:** [December 18, 2014, 10:59pm UTC](https://forum.ansible.com/t/unarchive-module-creates-does-not-work/16215 "2014-12-18T22:59:54Z")

</div>

I am using ansible 1.8 devel I have a task like this one: name: something unarchive: creates=some\_file src=src\_file.tar.gz dest=dest\_dir Archive is always copied, even if some\_file exists Browsing through source co…

---

## [Using an outer list to access an inner list with with\_nested](https://forum.ansible.com/t/using-an-outer-list-to-access-an-inner-list-with-with-nested/17101)

<div class="topic-metadata">

**Author:** [@Ross\_Becker](https://forum.ansible.com/u/Ross_Becker)\
**Replies:** 0\
**Last updated:** [December 18, 2014, 10:07pm UTC](https://forum.ansible.com/t/using-an-outer-list-to-access-an-inner-list-with-with-nested/17101 "2014-12-18T22:07:22Z")

</div>

So, I tried to do this, and found it didn’t work. I wasn’t terribly surprised, but it seems like a reasonable use-case. The play is to be run on one host- a central server, and I have a list of groups that I want to per…

---

## [Getting '500 WinRMTransport. \[Errno 61\] Connection refused' with Ubuntu server](https://forum.ansible.com/t/getting-500-winrmtransport-errno-61-connection-refused-with-ubuntu-server/17098)

<div class="topic-metadata">

**Author:** [@Peter\_Daly-Dickson1](https://forum.ansible.com/u/Peter_Daly-Dickson1)\
**Replies:** 4\
**Last updated:** [December 18, 2014, 7:27pm UTC](https://forum.ansible.com/t/getting-500-winrmtransport-errno-61-connection-refused-with-ubuntu-server/17098 "2014-12-18T19:27:59Z")

</div>

I have a playbook that has been working well for developing locally in a vagrant box and deploying to remote staging environment. Both are Ubuntu environments. Today, I fired up a new Ubuntu EC2 instance for the produc…

---

## [Gather facts with delegate\_to](https://forum.ansible.com/t/gather-facts-with-delegate-to/17096)

<div class="topic-metadata">

**Author:** [@Antoine\_Rouaze](https://forum.ansible.com/u/Antoine_Rouaze)\
**Replies:** 7\
**Last updated:** [December 18, 2014, 5:05pm UTC](https://forum.ansible.com/t/gather-facts-with-delegate-to/17096 "2014-12-18T17:05:07Z")

</div>

Hello, I’m trying to use the setup module with delegation, but I don’t understand one thing. Here is my test playbook : \` hosts: webservers tasks: debug: var=ansible\_hostname name: Get sql master facts setup…

---

## [Ansible Galaxy role version ordering](https://forum.ansible.com/t/ansible-galaxy-role-version-ordering/17099)

<div class="topic-metadata">

**Author:** [@ramon](https://forum.ansible.com/u/ramon)\
**Replies:** 1\
**Last updated:** [December 18, 2014, 4:33pm UTC](https://forum.ansible.com/t/ansible-galaxy-role-version-ordering/17099 "2014-12-18T16:33:42Z")

</div>

Hey All, It seems the galaxy role version ordering is a bit off: https://galaxy.ansible.com/list#/roles/648 The list includes v0.9.10 between v0.9.1 and v0.9.2 In the “admin” side the top 5 versions are listed as v.0…

---

## [expanding lists](https://forum.ansible.com/t/expanding-lists/17097)

<div class="topic-metadata">

**Author:** [@James\_Morgan1](https://forum.ansible.com/u/James_Morgan1)\
**Replies:** 3\
**Last updated:** [December 18, 2014, 2:58pm UTC](https://forum.ansible.com/t/expanding-lists/17097 "2014-12-18T14:58:52Z")

</div>

Hi, I have a list of groups admin: groups: \[‘group-boapp-layout-A’, ‘group-boapp-layout-B’\] Each of these groups has a number of hosts as defined in the inventory (note that this info needs to be global as opposed t…

---

## [Ansible copy respective file with {{ item }}](https://forum.ansible.com/t/ansible-copy-respective-file-with-item/17087)

<div class="topic-metadata">

**Author:** [@Fazal-e-Rehman\_Khan](https://forum.ansible.com/u/Fazal-e-Rehman_Khan)\
**Replies:** 2\
**Last updated:** [December 18, 2014, 2:40pm UTC](https://forum.ansible.com/t/ansible-copy-respective-file-with-item/17087 "2014-12-18T14:40:11Z")

</div>

I have a yml file for variables which goes like this. - newHosts - hostIP: 192.168.1.22 filename: file1 - hostIP: 192.168.1.23 filename: file2 I am using add\_host: {{ item.hostIP }} with\_it…

---

## [Raw module + no JSON needed for copy/file/template](https://forum.ansible.com/t/raw-module-no-json-needed-for-copy-file-template/11504)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 4\
**Last updated:** [December 18, 2014, 5:11am UTC](https://forum.ansible.com/t/raw-module-no-json-needed-for-copy-file-template/11504 "2014-12-18T05:11:24Z")

</div>

Two new things on the devel branch of interest to people with EL 5 hosts, or anywhere else where Python isn't 2.5 yet. (1) The raw module, added by Adrià Casajús, has been merged in. This allows direct SSH communic…

---

## [Crash with 'ansible-doc --list'](https://forum.ansible.com/t/crash-with-ansible-doc-list/17083)

<div class="topic-metadata">

**Author:** [@Hugo\_Posca](https://forum.ansible.com/u/Hugo_Posca)\
**Replies:** 2\
**Last updated:** [December 18, 2014, 12:08am UTC](https://forum.ansible.com/t/crash-with-ansible-doc-list/17083 "2014-12-18T00:08:04Z")

</div>

Hello there. I could not believe I missed this wonderful command, ansible-doc, for so long! Excited by this new discovery I used it well for reading know modules like yum, apt, user and so on. Then, doing a 'ansible-…

---

## [limit/subset as variable](https://forum.ansible.com/t/limit-subset-as-variable/17094)

<div class="topic-metadata">

**Author:** [@Adham\_H](https://forum.ansible.com/u/Adham_H)\
**Replies:** 1\
**Last updated:** [December 17, 2014, 10:57pm UTC](https://forum.ansible.com/t/limit-subset-as-variable/17094 "2014-12-17T22:57:33Z")

</div>

Hi, I have play that includes another play apps.yml \` name: apps.yml | provision hosts: apps include: provision.yml name: apps.yml | common stuff hosts: apps roles: do\_common\_stuff \` provision.yml \` …

---

## [URI and Until](https://forum.ansible.com/t/uri-and-until/17093)

<div class="topic-metadata">

**Author:** [@Matt\_Hughes](https://forum.ansible.com/u/Matt_Hughes)\
**Replies:** 1\
**Last updated:** [December 17, 2014, 9:31pm UTC](https://forum.ansible.com/t/uri-and-until/17093 "2014-12-17T21:31:00Z")

</div>

I have a cluster of N nodes. Cluster status is reported by http://cluster\_fqdn/health/. I want to do a rolling upgrade of every node in my cluster with serial: 1. I don’t want to proceed to the next node until http://clu…

---

## [Should tags work on includes?](https://forum.ansible.com/t/should-tags-work-on-includes/17091)

<div class="topic-metadata">

**Author:** [@Quentin\_Stafford-Fra](https://forum.ansible.com/u/Quentin_Stafford-Fra)\
**Replies:** 4\
**Last updated:** [December 17, 2014, 6:52pm UTC](https://forum.ansible.com/t/should-tags-work-on-includes/17091 "2014-12-17T18:52:10Z")

</div>

Hello all… In the docs here it suggests that I should be able to add tags to an include statement like this: include: site.yml tags=foo This simple playbook works fine unless I try actually doing anything with tag…

---

## [variable access in a template being looped using with\_items](https://forum.ansible.com/t/variable-access-in-a-template-being-looped-using-with-items/17090)

<div class="topic-metadata">

**Author:** [@Torsten\_Reinhard](https://forum.ansible.com/u/Torsten_Reinhard)\
**Replies:** 1\
**Last updated:** [December 17, 2014, 4:07pm UTC](https://forum.ansible.com/t/variable-access-in-a-template-being-looped-using-with-items/17090 "2014-12-17T16:07:13Z")

</div>

Hi, I have a playbook like: \`

---

## [During "gathering facts", ssh encounters a situation; ansible suggests using -vvvv; where does one set this?](https://forum.ansible.com/t/during-gathering-facts-ssh-encounters-a-situation-ansible-suggests-using-vvvv-where-does-one-set-this/17070)

<div class="topic-metadata">

**Author:** [@Kenneth\_Wolcott](https://forum.ansible.com/u/Kenneth_Wolcott)\
**Replies:** 2\
**Last updated:** [December 17, 2014, 4:00pm UTC](https://forum.ansible.com/t/during-gathering-facts-ssh-encounters-a-situation-ansible-suggests-using-vvvv-where-does-one-set-this/17070 "2014-12-17T16:00:44Z")

</div>

Hi; During "gathering facts", ssh encounters a situation; ansible suggests using -vvvv; where does one set this? I'm using bash shell to call Ansible playbooks on a Mac running as a VirtualBox server and on a Ubunt…

---

## [We should merge OpenStack neutron\_\* modules from openstack-ansible-modules to core](https://forum.ansible.com/t/we-should-merge-openstack-neutron-modules-from-openstack-ansible-modules-to-core/16969)

<div class="topic-metadata">

**Author:** [@Toni\_Ylenius](https://forum.ansible.com/u/Toni_Ylenius)\
**Replies:** 10\
**Last updated:** [December 17, 2014, 3:40pm UTC](https://forum.ansible.com/t/we-should-merge-openstack-neutron-modules-from-openstack-ansible-modules-to-core/16969 "2014-12-17T15:40:38Z")

</div>

Hi all, We would like to contribute on OpenStack modules but the current situation is messy as there are unofficial modules under openstack-ansible project and official modules under core. To get things moving I propos…

---

## [Docker connection plugin POC](https://forum.ansible.com/t/docker-connection-plugin-poc/16858)

<div class="topic-metadata">

**Author:** [@Lorin\_Hochstein](https://forum.ansible.com/u/Lorin_Hochstein)\
**Replies:** 6\
**Last updated:** [December 17, 2014, 3:36pm UTC](https://forum.ansible.com/t/docker-connection-plugin-poc/16858 "2014-12-17T15:36:59Z")

</div>

Hi folks: I’ve implemented a proof-of-concept docker connection plugin, so Docker containers can be configured without needing to install ssh or ansible inside of the container itself . You can find it here: https://git…

---

## [Cannot use add\_host when using ec2.py?](https://forum.ansible.com/t/cannot-use-add-host-when-using-ec2-py/14435)

<div class="topic-metadata">

**Author:** [@Mark\_Casey](https://forum.ansible.com/u/Mark_Casey)\
**Replies:** 7\
**Last updated:** [December 17, 2014, 2:17pm UTC](https://forum.ansible.com/t/cannot-use-add-host-when-using-ec2-py/14435 "2014-12-17T14:17:16Z")

</div>

Is it normal for add\_host to not work when using ec2.py? I’m in a playbook that is using ec2.py as the inventory source and I’m trying to create a few groups dynamically using ec2 tag values. When I run debug on the hos…

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

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