# Latest

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

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

**Page:** 977

---

## [Getting bug fix (pull request) into develop branch](https://forum.ansible.com/t/getting-bug-fix-pull-request-into-develop-branch/14991)

<div class="topic-metadata">

**Author:** [@Patrick\_Galbraith](https://forum.ansible.com/u/Patrick_Galbraith)\
**Replies:** 2\
**Last updated:** [April 15, 2014, 2:04am UTC](https://forum.ansible.com/t/getting-bug-fix-pull-request-into-develop-branch/14991 "2014-04-15T02:04:32Z")

</div>

Hi all, I have a very simple pull request at https://github.com/CaptTofu/ansible/compare/nova\_compute. This fix makes it so the ansible module, nova\_compute, works with HP Cloud and any cloud provider that has more than…

---

## [request help with configuration issue: 'sudo: True' has no effect.](https://forum.ansible.com/t/request-help-with-configuration-issue-sudo-true-has-no-effect/15006)

<div class="topic-metadata">

**Author:** [@Joel\_Hughes](https://forum.ansible.com/u/Joel_Hughes)\
**Replies:** 2\
**Last updated:** [April 14, 2014, 9:04pm UTC](https://forum.ansible.com/t/request-help-with-configuration-issue-sudo-true-has-no-effect/15006 "2014-04-14T21:04:27Z")

</div>

sudo: True has no effect This is a configuration issue; hoping someone can spot my mistake. Tested against Ansible versions: 1.4.5, 1.5.0 through 1.5.4, and devel branch; so I’m quite certain it is not an ansible issue…

---

## [Debugging a large template file](https://forum.ansible.com/t/debugging-a-large-template-file/15014)

<div class="topic-metadata">

**Author:** [@Alex\_King](https://forum.ansible.com/u/Alex_King)\
**Replies:** 0\
**Last updated:** [April 14, 2014, 7:28pm UTC](https://forum.ansible.com/t/debugging-a-large-template-file/15014 "2014-04-14T19:28:27Z")

</div>

Your problem looks like it is using minus (-) in variable names. The only non-alphanumeric allowed on variable names is underscore (\_). Cheers, Alex

---

## [Get the id of the root EBS volume of an EC2 instance](https://forum.ansible.com/t/get-the-id-of-the-root-ebs-volume-of-an-ec2-instance/14997)

<div class="topic-metadata">

**Author:** [@Christian\_Kaps](https://forum.ansible.com/u/Christian_Kaps)\
**Replies:** 5\
**Last updated:** [April 14, 2014, 3:39pm UTC](https://forum.ansible.com/t/get-the-id-of-the-root-ebs-volume-of-an-ec2-instance/14997 "2014-04-14T15:39:16Z")

</div>

Hi, is there any possibility to get the id of the root EBS volume of a newly created EC2 instance? I cannot find any documentation about it? Thanks, Christian

---

## [Issue while applying a VLANed nic variable into a playbook](https://forum.ansible.com/t/issue-while-applying-a-vlaned-nic-variable-into-a-playbook/14952)

<div class="topic-metadata">

**Author:** [@Sebastien\_Han](https://forum.ansible.com/u/Sebastien_Han)\
**Replies:** 2\
**Last updated:** [April 14, 2014, 3:38pm UTC](https://forum.ansible.com/t/issue-while-applying-a-vlaned-nic-variable-into-a-playbook/14952 "2014-04-14T15:38:21Z")

</div>

Hi all, This seems to only happen with a vlan on top of a bond device. The fact gathers the nic properly: pouet1 | success \>\> { “ansible\_facts”: { “ansible\_bond1.2108”: { “active”: true, “device”: “bond1.2108”, “…

---

## [Debugging a large template file](https://forum.ansible.com/t/debugging-a-large-template-file/15011)

<div class="topic-metadata">

**Author:** [@Bruce\_Pennypacker](https://forum.ansible.com/u/Bruce_Pennypacker)\
**Replies:** 0\
**Last updated:** [April 14, 2014, 2:22pm UTC](https://forum.ansible.com/t/debugging-a-large-template-file/15011 "2014-04-14T14:22:05Z")

</div>

I’m in the process of trying to migrate a rather large (200+ line) configuration file from a homebrew templating system to an ansible template. I have a very simple playbook that just tries to install the template into /…

---

## [inconsistent behaviour with user module](https://forum.ansible.com/t/inconsistent-behaviour-with-user-module/14999)

<div class="topic-metadata">

**Author:** [@bretgiddings](https://forum.ansible.com/u/bretgiddings)\
**Replies:** 1\
**Last updated:** [April 14, 2014, 2:20pm UTC](https://forum.ansible.com/t/inconsistent-behaviour-with-user-module/14999 "2014-04-14T14:20:12Z")

</div>

I am trying to use a simple ansible playbook to automate changing the root password. However, on 4 of my hosts, the password is changed each time I run the playbook. So, with the simple playbook password.yml consisting o…

---

## [How to iterate over register variables?](https://forum.ansible.com/t/how-to-iterate-over-register-variables/15003)

<div class="topic-metadata">

**Author:** [@J\_Dav](https://forum.ansible.com/u/J_Dav)\
**Replies:** 1\
**Last updated:** [April 14, 2014, 1:42pm UTC](https://forum.ansible.com/t/how-to-iterate-over-register-variables/15003 "2014-04-14T13:42:18Z")

</div>

I am trying to create an ansible play that Establishes if a user exists on a host and records the stdout as a register variable. Referencing a dict file which contains what users should be on the host. Creates a group …

---

## [Creating a GCE instance from a snapshot](https://forum.ansible.com/t/creating-a-gce-instance-from-a-snapshot/14871)

<div class="topic-metadata">

**Author:** [@Chris\_Conway](https://forum.ansible.com/u/Chris_Conway)\
**Replies:** 4\
**Last updated:** [April 14, 2014, 1:44am UTC](https://forum.ansible.com/t/creating-a-gce-instance-from-a-snapshot/14871 "2014-04-14T01:44:49Z")

</div>

I’m trying to figure out how to create a GCE image with a persistent boot disk from a snapshot. At the API level, this is just: a POST to /disks with snapshotSource set, and a POST to /instances with a reference to the n…

---

## [Potential bug/solution with Inventory.groups\_list()](https://forum.ansible.com/t/potential-bug-solution-with-inventory-groups-list/14994)

<div class="topic-metadata">

**Author:** [@Taylor\_Barstow](https://forum.ansible.com/u/Taylor_Barstow)\
**Replies:** 4\
**Last updated:** [April 13, 2014, 11:48pm UTC](https://forum.ansible.com/t/potential-bug-solution-with-inventory-groups-list/14994 "2014-04-13T23:48:48Z")

</div>

Hello list! I think I have found a bug which causes the magic “groups” variable to contain duplicate host names (same name multiple times in a single group), when using an inventory directory (-i dirname). I read the c…

---

## [Appending to list](https://forum.ansible.com/t/appending-to-list/15007)

<div class="topic-metadata">

**Author:** [@Ilin](https://forum.ansible.com/u/Ilin)\
**Replies:** 0\
**Last updated:** [April 13, 2014, 9:49am UTC](https://forum.ansible.com/t/appending-to-list/15007 "2014-04-13T09:49:44Z")

</div>

Hi, I am wondering if there is a way to append values to existing list. For example: In the role/defaults the declaration can be something like x: And afterwards values are applied from all var files group\_vars/all …

---

## [Appending/extending variables](https://forum.ansible.com/t/appending-extending-variables/15004)

<div class="topic-metadata">

**Author:** [@Ilin](https://forum.ansible.com/u/Ilin)\
**Replies:** 0\
**Last updated:** [April 12, 2014, 11:05pm UTC](https://forum.ansible.com/t/appending-extending-variables/15004 "2014-04-12T23:05:49Z")

</div>

Hi, I would like to manage cron via a template in /etc/cron.d/ansible\_crontab for example I would like to have a default variable in the role crontab: That will get appended in group\_vars/all group\_vars/group1 … …

---

## [YAML syntax error (beginner)](https://forum.ansible.com/t/yaml-syntax-error-beginner/14995)

<div class="topic-metadata">

**Author:** [@WS1](https://forum.ansible.com/u/WS1)\
**Replies:** 3\
**Last updated:** [April 12, 2014, 2:17pm UTC](https://forum.ansible.com/t/yaml-syntax-error-beginner/14995 "2014-04-12T14:17:17Z")

</div>

Hello I just started to use ansible so please bear with me. I managed to run a few basic playbooks but I am stuck with the following one (basic as well): \`

---

## [apt returns: No package matching... but apt-get install on managed host works](https://forum.ansible.com/t/apt-returns-no-package-matching-but-apt-get-install-on-managed-host-works/15001)

<div class="topic-metadata">

**Author:** [@sampsont](https://forum.ansible.com/u/sampsont)\
**Replies:** 3\
**Last updated:** [April 11, 2014, 9:45pm UTC](https://forum.ansible.com/t/apt-returns-no-package-matching-but-apt-get-install-on-managed-host-works/15001 "2014-04-11T21:45:55Z")

</div>

I’m fairly new to Ansible. I really like it but can’t get past this show stopper. If anyone can offer any hints, I sure would appreciate it. The package I’m trying to install is my own. Something may be wrong with it but…

---

## [Run command on 1 server from group A, then run another command on 1 from group B, in loop](https://forum.ansible.com/t/run-command-on-1-server-from-group-a-then-run-another-command-on-1-from-group-b-in-loop/14990)

<div class="topic-metadata">

**Author:** [@Vladimir\_Mihailenco](https://forum.ansible.com/u/Vladimir_Mihailenco)\
**Replies:** 2\
**Last updated:** [April 11, 2014, 1:17pm UTC](https://forum.ansible.com/t/run-command-on-1-server-from-group-a-then-run-another-command-on-1-from-group-b-in-loop/14990 "2014-04-11T13:17:39Z")

</div>

Hello, I have 2 Ansible groups: nginx\_servers. api\_servers. I am trying to automate following: Select 1 API server. Mark selected API server as down in the all nginx configs. Reload nginx. Restart selected API serv…

---

## [Ansible 1.5.3 not running ruby scripts](https://forum.ansible.com/t/ansible-1-5-3-not-running-ruby-scripts/14976)

<div class="topic-metadata">

**Author:** [@Ramesh\_Raithatha](https://forum.ansible.com/u/Ramesh_Raithatha)\
**Replies:** 1\
**Last updated:** [April 11, 2014, 2:36am UTC](https://forum.ansible.com/t/ansible-1-5-3-not-running-ruby-scripts/14976 "2014-04-11T02:36:05Z")

</div>

Hello, I updated to ansible 1.5.3 and now i am not able to run my ruby scripts using “local\_action” and “command” module. It was running perfectly fine with ansible 1.4.3. TASK: \[Checking elb stat\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [lib/ansible/module\_utils/known\_hosts.py and sha1 import on 1.5.3, 1.5.4...](https://forum.ansible.com/t/lib-ansible-module-utils-known-hosts-py-and-sha1-import-on-1-5-3-1-5-4/14988)

<div class="topic-metadata">

**Author:** [@seanosh](https://forum.ansible.com/u/seanosh)\
**Replies:** 1\
**Last updated:** [April 10, 2014, 7:32pm UTC](https://forum.ansible.com/t/lib-ansible-module-utils-known-hosts-py-and-sha1-import-on-1-5-3-1-5-4/14988 "2014-04-10T19:32:15Z")

</div>

Not sure if this is a bug or not so I didn’t want to file in GitHub just yet. A rough timeline: Support added between 1.5.2 and 1.5.3 for checking hashed entries in SSH known\_hosts files 1.5.3 released https://github.c…

---

## [Ensuring a command only runs once](https://forum.ansible.com/t/ensuring-a-command-only-runs-once/13258)

<div class="topic-metadata">

**Author:** [@Jonathan\_Rowlands](https://forum.ansible.com/u/Jonathan_Rowlands)\
**Replies:** 4\
**Last updated:** [April 10, 2014, 5:54pm UTC](https://forum.ansible.com/t/ensuring-a-command-only-runs-once/13258 "2014-04-10T17:54:26Z")

</div>

Sorry if this has been asked before… Is there a pattern to ensure a command gets run once and only once on a machine? For instance if I want to seed a database on the initial deploy but I would never want to run this com…

---

## [cannot open \`/etc/sudoers' for reading](https://forum.ansible.com/t/cannot-open-etc-sudoers-for-reading/14969)

<div class="topic-metadata">

**Author:** [@Makimoto\_Marakatti](https://forum.ansible.com/u/Makimoto_Marakatti)\
**Replies:** 8\
**Last updated:** [April 10, 2014, 8:16am UTC](https://forum.ansible.com/t/cannot-open-etc-sudoers-for-reading/14969 "2014-04-10T08:16:56Z")

</div>

Hi all I’m having a weird issue that I can’t figure out: I’m making a backup of /etc/sudoers from client boxes, before templating. ansible complains it has no rights to read /etc/sudoers. (with sudo) And yet it can r…

---

## [How to move fresh Debian to systemd with Ansible?](https://forum.ansible.com/t/how-to-move-fresh-debian-to-systemd-with-ansible/14971)

<div class="topic-metadata">

**Author:** [@anatoly\_techtonik](https://forum.ansible.com/u/anatoly_techtonik)\
**Replies:** 9\
**Last updated:** [April 10, 2014, 6:14am UTC](https://forum.ansible.com/t/how-to-move-fresh-debian-to-systemd-with-ansible/14971 "2014-04-10T06:14:59Z")

</div>

Hi, apt-get once again too demanding. Trying to move to systemd is presented with a warning that you can not escape from command line: $ apt-get install -y -qq --force-yes systemd-sysv You are about to do something …

---

## [FATAL execution without any failures?](https://forum.ansible.com/t/fatal-execution-without-any-failures/14964)

<div class="topic-metadata">

**Author:** [@Michael\_Altfield](https://forum.ansible.com/u/Michael_Altfield)\
**Replies:** 2\
**Last updated:** [April 9, 2014, 5:44pm UTC](https://forum.ansible.com/t/fatal-execution-without-any-failures/14964 "2014-04-09T17:44:21Z")

</div>

Hi ansible gurus! I’m writing a python script that uses ansible.playbook to do a rolling update, but I’m very confused by the following output at the end of my execution: FATAL: all hosts have already failed – aborting …

---

## [VPC subnets ec2\_elb\_lb](https://forum.ansible.com/t/vpc-subnets-ec2-elb-lb/14981)

<div class="topic-metadata">

**Author:** [@Michael\_Buzzetti](https://forum.ansible.com/u/Michael_Buzzetti)\
**Replies:** 0\
**Last updated:** [April 9, 2014, 3:56pm UTC](https://forum.ansible.com/t/vpc-subnets-ec2-elb-lb/14981 "2014-04-09T15:56:01Z")

</div>

I noticed that there was no support for VPC subnets in ec2\_elb\_lb. It has been talked about before when security groups where added. I added this support in the following pull request. https://github.com/ansible/ansib…

---

## [Passing variables for "with\_subelements" in a play](https://forum.ansible.com/t/passing-variables-for-with-subelements-in-a-play/14956)

<div class="topic-metadata">

**Author:** [@Marko\_Lisica](https://forum.ansible.com/u/Marko_Lisica)\
**Replies:** 2\
**Last updated:** [April 9, 2014, 3:13pm UTC](https://forum.ansible.com/t/passing-variables-for-with-subelements-in-a-play/14956 "2014-04-09T15:13:40Z")

</div>

Hi, Seems like I am running in circles trying to setup “universal” plays. I have nginx role that is setting up server blocks according to defined users. name: add default site template template: src=default.conf.j2…

---

## [Cannot iterate over hosts in group of groups inside of a template](https://forum.ansible.com/t/cannot-iterate-over-hosts-in-group-of-groups-inside-of-a-template/14973)

<div class="topic-metadata">

**Author:** [@Juergen\_Brendel1](https://forum.ansible.com/u/Juergen_Brendel1)\
**Replies:** 1\
**Last updated:** [April 9, 2014, 2:10pm UTC](https://forum.ansible.com/t/cannot-iterate-over-hosts-in-group-of-groups-inside-of-a-template/14973 "2014-04-09T14:10:24Z")

</div>

Hello! I don't seem to be able to iterate over the hosts of a group of groups within a template. My inventory file looks similar to this: \[group1\] \[group2\] \[group3:children\] group1 group2 The groups "g…

---

## [Simple private key setup?](https://forum.ansible.com/t/simple-private-key-setup/14970)

<div class="topic-metadata">

**Author:** [@Martin\_Streicher](https://forum.ansible.com/u/Martin_Streicher)\
**Replies:** 1\
**Last updated:** [April 9, 2014, 2:04pm UTC](https://forum.ansible.com/t/simple-private-key-setup/14970 "2014-04-09T14:04:43Z")

</div>

I have an EC2 instance established. My public key is in authorized\_keys and I can ssh in from the command-line. I cannot however get Ansible to do anything. \` \[defaults\] hostfile = inventory host\_key\_checking = Fals…

---

## [How do you ensure a string is present in a directory of files?](https://forum.ansible.com/t/how-do-you-ensure-a-string-is-present-in-a-directory-of-files/14972)

<div class="topic-metadata">

**Author:** [@Tracy\_Phillips](https://forum.ansible.com/u/Tracy_Phillips)\
**Replies:** 3\
**Last updated:** [April 9, 2014, 2:04pm UTC](https://forum.ansible.com/t/how-do-you-ensure-a-string-is-present-in-a-directory-of-files/14972 "2014-04-09T14:04:24Z")

</div>

Hi, What is the best way to ensure gpgcheck=1 in all places of all .repo files in /etc/yum.repos.d/? Thanks, Tracy

---

## [Notifying handler only once](https://forum.ansible.com/t/notifying-handler-only-once/14949)

<div class="topic-metadata">

**Author:** [@Jacob\_Weber1](https://forum.ansible.com/u/Jacob_Weber1)\
**Replies:** 3\
**Last updated:** [April 9, 2014, 1:57pm UTC](https://forum.ansible.com/t/notifying-handler-only-once/14949 "2014-04-09T13:57:28Z")

</div>

Is there a way to have multiple plays call a “notify” handler, but have the handler run only once, at the end of all plays? For example, say I have site.yml: include webservers.yml include database.yml And in both we…

---

## [Implementing custom modules](https://forum.ansible.com/t/implementing-custom-modules/14957)

<div class="topic-metadata">

**Author:** [@Marc\_Tardif](https://forum.ansible.com/u/Marc_Tardif)\
**Replies:** 2\
**Last updated:** [April 9, 2014, 1:55pm UTC](https://forum.ansible.com/t/implementing-custom-modules/14957 "2014-04-09T13:55:09Z")

</div>

Hi folks, I need a module like wait\_for that also checks for something useful returned by a URL. The reason is that a port might be open but the service might not be returning anything useful yet. So, I'd like to kno…

---

## [Trying to run a command when a file matching a regex does not exist.](https://forum.ansible.com/t/trying-to-run-a-command-when-a-file-matching-a-regex-does-not-exist/14968)

<div class="topic-metadata">

**Author:** [@Michael\_Kelly](https://forum.ansible.com/u/Michael_Kelly)\
**Replies:** 1\
**Last updated:** [April 9, 2014, 1:54pm UTC](https://forum.ansible.com/t/trying-to-run-a-command-when-a-file-matching-a-regex-does-not-exist/14968 "2014-04-09T13:54:04Z")

</div>

Hi, I’m trying to run a command when a file matching a regex does not exist. My use case is I am unzipping an artifact - ec2-api-tools.zip This will unzip to a directory that includes the version number - e.g. ec2-ap…

---

## [Ansible sometime could not get the output from the runner.\_low\_level\_exec\_command,this would cause the task to fail.](https://forum.ansible.com/t/ansible-sometime-could-not-get-the-output-from-the-runner-low-level-exec-command-this-would-cause-the-task-to-fail/14931)

<div class="topic-metadata">

**Author:** [@qiu\_jiawei](https://forum.ansible.com/u/qiu_jiawei)\
**Replies:** 3\
**Last updated:** [April 9, 2014, 1:51pm UTC](https://forum.ansible.com/t/ansible-sometime-could-not-get-the-output-from-the-runner-low-level-exec-command-this-would-cause-the-task-to-fail/14931 "2014-04-09T13:51:38Z")

</div>

Ansible version 1.5.3 Out playbook look like below: debug.ym: hosts: cnode463 tasks: include: roles/conf/tasks/hadoop.yml hadoop.yml name: copy hadoop conf sudo: yes template: src={{ TEMPLATE\_DIR }}/hadoop/{…

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

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