# Latest

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

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

**Page:** 903

---

## [apt: upgrade=dist play hangs](https://forum.ansible.com/t/apt-upgrade-dist-play-hangs/17252)

<div class="topic-metadata">

**Author:** [@Bob\_Tanner](https://forum.ansible.com/u/Bob_Tanner)\
**Replies:** 10\
**Last updated:** [January 15, 2015, 3:01pm UTC](https://forum.ansible.com/t/apt-upgrade-dist-play-hangs/17252 "2015-01-15T15:01:15Z")

</div>

git pulled the latest code $ git rev-parse HEAD f1fdddb640e1dfcd8fdc930031db267947d8cb70 and now the following play hangs name: package upgrade (apt) apt: upgrade=dist sudo: yes All computers have minimal load. L…

---

## [Collecting a list of internal IPs from EC2](https://forum.ansible.com/t/collecting-a-list-of-internal-ips-from-ec2/17262)

<div class="topic-metadata">

**Author:** [@Tzach\_Livyatan](https://forum.ansible.com/u/Tzach_Livyatan)\
**Replies:** 4\
**Last updated:** [January 15, 2015, 3:00pm UTC](https://forum.ansible.com/t/collecting-a-list-of-internal-ips-from-ec2/17262 "2015-01-15T15:00:05Z")

</div>

Another newbie questions (second and last for today, I promise) I have two groups for EC2 instances: Test servers Loader servers each with a different tag. I would like to get the list of the internal\_ip of the Test…

---

## [When to separate Ansible control machines within an enterprise?](https://forum.ansible.com/t/when-to-separate-ansible-control-machines-within-an-enterprise/17264)

<div class="topic-metadata">

**Author:** [@Michael\_Dunn](https://forum.ansible.com/u/Michael_Dunn)\
**Replies:** 1\
**Last updated:** [January 15, 2015, 2:32pm UTC](https://forum.ansible.com/t/when-to-separate-ansible-control-machines-within-an-enterprise/17264 "2015-01-15T14:32:43Z")

</div>

Hi All, Thanks for taking the time to read this. I’m a developer within a pretty large research university. My unit has been using Ansible for about a year now and were the first team to do so on campus so we’ve alread…

---

## [Feature: User-defined modules as yaml task lists?](https://forum.ansible.com/t/feature-user-defined-modules-as-yaml-task-lists/17248)

<div class="topic-metadata">

**Author:** [@jang](https://forum.ansible.com/u/jang)\
**Replies:** 10\
**Last updated:** [January 15, 2015, 12:55pm UTC](https://forum.ansible.com/t/feature-user-defined-modules-as-yaml-task-lists/17248 "2015-01-15T12:55:29Z")

</div>

Writing my own modules in, say, Python feels like overkill. I can't find a feature at the moment that would let me give a name to a yaml file (containing task definitions) and then invoke that name as though it were a…

---

## [Fetch error: "unable to calculate the md5 sum of the remote file"](https://forum.ansible.com/t/fetch-error-unable-to-calculate-the-md5-sum-of-the-remote-file/17273)

<div class="topic-metadata">

**Author:** [@Kevin\_Lasenby](https://forum.ansible.com/u/Kevin_Lasenby)\
**Replies:** 2\
**Last updated:** [January 15, 2015, 2:59am UTC](https://forum.ansible.com/t/fetch-error-unable-to-calculate-the-md5-sum-of-the-remote-file/17273 "2015-01-15T02:59:10Z")

</div>

When trying to fetch a file from a Synology NAS to my Ansible server (Ubuntu, using SSH keys) I get the error “unable to calculate the md5 sum of the remote file”. I don’t get this error fetching from any other server a…

---

## [IndexError: list index out of range for GCE dynamic inventory](https://forum.ansible.com/t/indexerror-list-index-out-of-range-for-gce-dynamic-inventory/17276)

<div class="topic-metadata">

**Author:** [@harsh001](https://forum.ansible.com/u/harsh001)\
**Replies:** 0\
**Last updated:** [January 15, 2015, 2:15am UTC](https://forum.ansible.com/t/indexerror-list-index-out-of-range-for-gce-dynamic-inventory/17276 "2015-01-15T02:15:53Z")

</div>

When running the dynamic inventory script against a gce deployment , some nodes with external ips some without (running connecting through NAT ) i encounter this error when running list: sh-3.2# ./inventory/gce/gce.py -…

---

## [Can Role Dependencies be overridden?](https://forum.ansible.com/t/can-role-dependencies-be-overridden/17274)

<div class="topic-metadata">

**Author:** [@junkmailtrapenator](https://forum.ansible.com/u/junkmailtrapenator)\
**Replies:** 0\
**Last updated:** [January 14, 2015, 8:36pm UTC](https://forum.ansible.com/t/can-role-dependencies-be-overridden/17274 "2015-01-14T20:36:59Z")

</div>

Let’s say I install a role from Ansible Galaxy: $ ansible-galaxy install SomeUser.role1 Now this role is great and does exactly what I want except it has a role dependency on 'SomeUser.role2 which I don’t need or want …

---

## [Passing variable to hosts as extra value doesn't work in Tower](https://forum.ansible.com/t/passing-variable-to-hosts-as-extra-value-doesnt-work-in-tower/17268)

<div class="topic-metadata">

**Author:** [@David\_Goodall](https://forum.ansible.com/u/David_Goodall)\
**Replies:** 1\
**Last updated:** [January 14, 2015, 7:41pm UTC](https://forum.ansible.com/t/passing-variable-to-hosts-as-extra-value-doesnt-work-in-tower/17268 "2015-01-14T19:41:52Z")

</div>

Hi, I am trying to select hosts for a play based on a variable passed at job launch time in Tower: hosts: “{{ project\_name }}-masters:{{ project\_name }}-slaves” This will allow me to create and administer different st…

---

## [rax\_cdb\_user not idempotent?](https://forum.ansible.com/t/rax-cdb-user-not-idempotent/17263)

<div class="topic-metadata">

**Author:** [@David\_Goodall](https://forum.ansible.com/u/David_Goodall)\
**Replies:** 3\
**Last updated:** [January 14, 2015, 7:34pm UTC](https://forum.ansible.com/t/rax-cdb-user-not-idempotent/17263 "2015-01-14T19:34:00Z")

</div>

Hi, Using Tower 2.1 I have a playbook which creates a stack including a Cloud DB instance, user and DB. This works fine, but on running the playbook again, it fails with: msg: A user with the name “xxxxxxxxxx” already…

---

## [facter module: specific alternate facter location?](https://forum.ansible.com/t/facter-module-specific-alternate-facter-location/17269)

<div class="topic-metadata">

**Author:** [@Thomas\_Willert](https://forum.ansible.com/u/Thomas_Willert)\
**Replies:** 1\
**Last updated:** [January 14, 2015, 7:30pm UTC](https://forum.ansible.com/t/facter-module-specific-alternate-facter-location/17269 "2015-01-14T19:30:01Z")

</div>

Hi, is it possible to specify another location for the facter binary when using the “facter” module? From this error message I gather that the module is relying on “/usr/bin/env” to find the facter binary: ansible xxx…

---

## [Nice alternative to 'tags' for restricting change scope in a playbook](https://forum.ansible.com/t/nice-alternative-to-tags-for-restricting-change-scope-in-a-playbook/17272)

<div class="topic-metadata">

**Author:** [@Russell\_Briggs](https://forum.ansible.com/u/Russell_Briggs)\
**Replies:** 0\
**Last updated:** [January 14, 2015, 7:13pm UTC](https://forum.ansible.com/t/nice-alternative-to-tags-for-restricting-change-scope-in-a-playbook/17272 "2015-01-14T19:13:15Z")

</div>

Hi All First off, I LOVE ansible, its awesome! Really didn’t like puppet when I tried it. Just wanted to share a nice pattern I found for making it easy to run only part of a playbook, without having to remember which …

---

## [Attach static ip address to gce instance on launch](https://forum.ansible.com/t/attach-static-ip-address-to-gce-instance-on-launch/17145)

<div class="topic-metadata">

**Author:** [@harsh001](https://forum.ansible.com/u/harsh001)\
**Replies:** 2\
**Last updated:** [January 14, 2015, 6:50pm UTC](https://forum.ansible.com/t/attach-static-ip-address-to-gce-instance-on-launch/17145 "2015-01-14T18:50:09Z")

</div>

Hi , Im trying to come up with a play that will attach a previously reserved static ip address to a instance on creation by ansible.from https://cloud.google.com/compute/docs/instances-and-network#staticnetworkaddress re…

---

## [Run a role once and only once](https://forum.ansible.com/t/run-a-role-once-and-only-once/17270)

<div class="topic-metadata">

**Author:** [@matt](https://forum.ansible.com/u/matt)\
**Replies:** 0\
**Last updated:** [January 14, 2015, 6:45pm UTC](https://forum.ansible.com/t/run-a-role-once-and-only-once/17270 "2015-01-14T18:45:30Z")

</div>

Hi, I have a role that’s called from other roles via dependencies. I’m seeing the role run twice, as discussed at https://groups.google.com/forum/#!searchin/ansible-project/role$20dependencies$20run$20twice/ansible-proj…

---

## [problems with from\_json filter](https://forum.ansible.com/t/problems-with-from-json-filter/17267)

<div class="topic-metadata">

**Author:** [@vaida.dan](https://forum.ansible.com/u/vaida.dan)\
**Replies:** 1\
**Last updated:** [January 14, 2015, 5:56pm UTC](https://forum.ansible.com/t/problems-with-from-json-filter/17267 "2015-01-14T17:56:30Z")

</div>

The Ansible task is the following: \` name: listing the distributions command: aws cloudfront list-distributions register: distributions\_list \` The following JSON is given (as a result of the debug module): \` ok:…

---

## [Iterate over inventory group](https://forum.ansible.com/t/iterate-over-inventory-group/17246)

<div class="topic-metadata">

**Author:** [@Laurent\_Goussard](https://forum.ansible.com/u/Laurent_Goussard)\
**Replies:** 6\
**Last updated:** [January 14, 2015, 5:23pm UTC](https://forum.ansible.com/t/iterate-over-inventory-group/17246 "2015-01-14T17:23:22Z")

</div>

Hello, I try to setup a cron task using ansible (indeed) on my db slave pool. This cron task is supposed to stop the replication process, dump the database and restart replication. Because the backup takes a little ti…

---

## [role dependencies and variables](https://forum.ansible.com/t/role-dependencies-and-variables/17251)

<div class="topic-metadata">

**Author:** [@vadimv\_Vatlin](https://forum.ansible.com/u/vadimv_Vatlin)\
**Replies:** 2\
**Last updated:** [January 14, 2015, 4:09pm UTC](https://forum.ansible.com/t/role-dependencies-and-variables/17251 "2015-01-14T16:09:44Z")

</div>

Hello I want to create meta role to setup web site configuration nginx + php-fpm playbook client.yml: roles: { role: web-site, sites: 'domain.com, domain1.com’, fpm\_pool: ‘domain’ } { role: web-site, sites: ‘s…

---

## [Variables in "when" statement](https://forum.ansible.com/t/variables-in-when-statement/17245)

<div class="topic-metadata">

**Author:** [@Wojciech\_Korzenny](https://forum.ansible.com/u/Wojciech_Korzenny)\
**Replies:** 5\
**Last updated:** [January 14, 2015, 4:03pm UTC](https://forum.ansible.com/t/variables-in-when-statement/17245 "2015-01-14T16:03:24Z")

</div>

Hi, I want to use variable in when statement, for example: include: some\_playbook.yml when: “{{ SOME\_VARIABLE }}” == “true” where: SOME\_VARIABLE - is given as false/true via --extra-vars Unfortunately I get error: …

---

## [is there a runner\_on\_start() in CallbackModule](https://forum.ansible.com/t/is-there-a-runner-on-start-in-callbackmodule/17255)

<div class="topic-metadata">

**Author:** [@Ritesh\_Shetty](https://forum.ansible.com/u/Ritesh_Shetty)\
**Replies:** 2\
**Last updated:** [January 14, 2015, 3:33pm UTC](https://forum.ansible.com/t/is-there-a-runner-on-start-in-callbackmodule/17255 "2015-01-14T15:33:27Z")

</div>

Hi, I want to track the progress of a Task execution. I get the runner\_on\_ok() and runner\_on\_failed() but i want to callback for runner\_on\_start(). Is there such a callback available ? Ritesh

---

## [should ec2\_group module have the description as required?](https://forum.ansible.com/t/should-ec2-group-module-have-the-description-as-required/16939)

<div class="topic-metadata">

**Author:** [@vaida.dan](https://forum.ansible.com/u/vaida.dan)\
**Replies:** 3\
**Last updated:** [January 14, 2015, 1:04pm UTC](https://forum.ansible.com/t/should-ec2-group-module-have-the-description-as-required/16939 "2015-01-14T13:04:56Z")

</div>

Hello everyone, I’m just trying to do some cleaning up as part of my playbooks and one task should go around and remove dummy security group(s). Because of this case, I don’t see the utility of the ‘description’ parame…

---

## [Having issues using a variable in a playbook](https://forum.ansible.com/t/having-issues-using-a-variable-in-a-playbook/17254)

<div class="topic-metadata">

**Author:** [@Benjamin\_Arntzen](https://forum.ansible.com/u/Benjamin_Arntzen)\
**Replies:** 2\
**Last updated:** [January 14, 2015, 12:57pm UTC](https://forum.ansible.com/t/having-issues-using-a-variable-in-a-playbook/17254 "2015-01-14T12:57:41Z")

</div>

Hi there, I’m trying to build python 3.4.2 in a semi-idempotent way. I see mpdehaan’s comments on it and didn’t have any issues following those. The issue I’m having is that the variables defined in common.yml aren’t b…

---

## [How does Ansible determine that a file has changed ?](https://forum.ansible.com/t/how-does-ansible-determine-that-a-file-has-changed/17256)

<div class="topic-metadata">

**Author:** [@Micky](https://forum.ansible.com/u/Micky)\
**Replies:** 1\
**Last updated:** [January 14, 2015, 12:37pm UTC](https://forum.ansible.com/t/how-does-ansible-determine-that-a-file-has-changed/17256 "2015-01-14T12:37:31Z")

</div>

Hi, A rather basic query. How does Ansible determine that a file has changed on the target ? The copy module’s ‘force’ option documentations reads as follows :- “default is yes, which will replace the remote file when …

---

## [Intersection of group variables inside a Jinja template.](https://forum.ansible.com/t/intersection-of-group-variables-inside-a-jinja-template/15637)

<div class="topic-metadata">

**Author:** [@Ehtesh\_Choudhury](https://forum.ansible.com/u/Ehtesh_Choudhury)\
**Replies:** 3\
**Last updated:** [January 14, 2015, 12:35pm UTC](https://forum.ansible.com/t/intersection-of-group-variables-inside-a-jinja-template/15637 "2015-01-14T12:35:36Z")

</div>

I’m using ec2.py as my hostfile and I’m writing the following templating in Jinja2. {% for host in groups\[“tag\_provides\_logstash-server”\] %} {{ hostvars\[host\]\[“ec2\_ip\_address”\] }} {{ hostvars\[host\]\[“ec2\_tag\_Name”\] }} {…

---

## [Service Module Timeout?](https://forum.ansible.com/t/service-module-timeout/17253)

<div class="topic-metadata">

**Author:** [@Nick\_Fraker](https://forum.ansible.com/u/Nick_Fraker)\
**Replies:** 1\
**Last updated:** [January 14, 2015, 12:34pm UTC](https://forum.ansible.com/t/service-module-timeout/17253 "2015-01-14T12:34:59Z")

</div>

Hi all, I’m trying to automate standing up a JBoss instance and keep running into periodic timeouts from the ansible service module. I’ve seen a lot of information around what to do if you’re running into this as part o…

---

## [Creating and distributing ssh keys](https://forum.ansible.com/t/creating-and-distributing-ssh-keys/17219)

<div class="topic-metadata">

**Author:** [@Mark\_Maas](https://forum.ansible.com/u/Mark_Maas)\
**Replies:** 7\
**Last updated:** [January 14, 2015, 12:20pm UTC](https://forum.ansible.com/t/creating-and-distributing-ssh-keys/17219 "2015-01-14T12:20:18Z")

</div>

Hi List, I got this little play to create ssh-keys on one set of machine, register that output and then distribute those keys to each other: - name: Generate root sshkey user: \> name=root generate\_ssh\_key=yes…

---

## [Simple ansible command told invalid output was](https://forum.ansible.com/t/simple-ansible-command-told-invalid-output-was/17259)

<div class="topic-metadata">

**Author:** [@linbo\_liao](https://forum.ansible.com/u/linbo_liao)\
**Replies:** 0\
**Last updated:** [January 14, 2015, 6:51am UTC](https://forum.ansible.com/t/simple-ansible-command-told-invalid-output-was/17259 "2015-01-14T06:51:57Z")

</div>

Hi, My server configure no pass ssh login, today when execute ansible command it failed stranged. But I manually execute ssh comand it works, how can I check this issue? Server: Ubuntu 12.04.4 LTS x86 Python: 2.7.3 A…

---

## [Conditionals in sudo](https://forum.ansible.com/t/conditionals-in-sudo/17236)

<div class="topic-metadata">

**Author:** [@Raja1](https://forum.ansible.com/u/Raja1)\
**Replies:** 2\
**Last updated:** [January 14, 2015, 4:29am UTC](https://forum.ansible.com/t/conditionals-in-sudo/17236 "2015-01-14T04:29:53Z")

</div>

Hi, (Originally posted to Ansible Dev by mistake) Im a newbie trying to automate a few commands across boxes using Ansible. I would like the sudo command on certain tasks to be conditional, so depending on the node, I…

---

## [Immutable servers using rax module](https://forum.ansible.com/t/immutable-servers-using-rax-module/16246)

<div class="topic-metadata">

**Author:** [@Graham\_Hay](https://forum.ansible.com/u/Graham_Hay)\
**Replies:** 4\
**Last updated:** [January 14, 2015, 12:42am UTC](https://forum.ansible.com/t/immutable-servers-using-rax-module/16246 "2015-01-14T00:42:06Z")

</div>

Hi, We were considering taking an “immutable server” approach to deployments (we may not be able to due to 3rd party restrictions whitelisting IPs), is that something that would be possible using the rax module? So, a d…

---

## [Conditionally upgrade container (specific version)](https://forum.ansible.com/t/conditionally-upgrade-container-specific-version/17243)

<div class="topic-metadata">

**Author:** [@Gary\_Malouf](https://forum.ansible.com/u/Gary_Malouf)\
**Replies:** 1\
**Last updated:** [January 13, 2015, 5:27pm UTC](https://forum.ansible.com/t/conditionally-upgrade-container-specific-version/17243 "2015-01-13T17:27:22Z")

</div>

I’m trying to achieve the following behavior via the Ansible-Docker module Check if currently deployed container image is of desired version; if so, exit else proceed Pull updated image Stop/remove currently deployed c…

---

## [Ansible Hardening Guide](https://forum.ansible.com/t/ansible-hardening-guide/17249)

<div class="topic-metadata">

**Author:** [@Brian\_Dunbar](https://forum.ansible.com/u/Brian_Dunbar)\
**Replies:** 1\
**Last updated:** [January 13, 2015, 5:04pm UTC](https://forum.ansible.com/t/ansible-hardening-guide/17249 "2015-01-13T17:04:43Z")

</div>

My boss’s boss emailed us this link and suggested we could adapt the puppet / chef scripts to our own needs, for Ansible. https://telekomlabs.github.io/ Before we embark on that project … is there anything similar that…

---

## [Nested variables and "with\_items: groups"](https://forum.ansible.com/t/nested-variables-and-with-items-groups/17250)

<div class="topic-metadata">

**Author:** [@David\_Goodall](https://forum.ansible.com/u/David_Goodall)\
**Replies:** 1\
**Last updated:** [January 13, 2015, 4:43pm UTC](https://forum.ansible.com/t/nested-variables-and-with-items-groups/17250 "2015-01-13T16:43:34Z")

</div>

Hi, I used to have this: with\_items: groups\[‘masters’\] I have now changed the group name to reflect the project name, which is entered into the “project\_name” variable when the playbook is run. e.g. if the project is…

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

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