# Latest

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

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

**Page:** 849

---

## [How to install the packages using EC2 user data at the launch time](https://forum.ansible.com/t/how-to-install-the-packages-using-ec2-user-data-at-the-launch-time/18860)

<div class="topic-metadata">

**Author:** [@system](https://forum.ansible.com/u/system)\
**Replies:** 2\
**Last updated:** [July 27, 2015, 6:00pm UTC](https://forum.ansible.com/t/how-to-install-the-packages-using-ec2-user-data-at-the-launch-time/18860 "2015-07-27T18:00:49Z")

</div>

I want to install the nginx by passing it as the user data to the ec2 instance at the launch time. I am passing it like this name: WebServer | Create the WebServer Instance(s) local\_action: module: ec2 region: “{{ v…

---

## [Using Ansible with Kerberos/AD accounts](https://forum.ansible.com/t/using-ansible-with-kerberos-ad-accounts/18862)

<div class="topic-metadata">

**Author:** [@Trond\_Hindenes](https://forum.ansible.com/u/Trond_Hindenes)\
**Replies:** 2\
**Last updated:** [July 27, 2015, 2:42pm UTC](https://forum.ansible.com/t/using-ansible-with-kerberos-ad-accounts/18862 "2015-07-27T14:42:15Z")

</div>

Group, I did a writeup of getting Ansible and Kerberos working. This is mostly based on my own research as the documentation only mentions kerberos support in a line or two: http://hindenes.com/trondsworking/2015/07/27…

---

## [mysql\_user problems](https://forum.ansible.com/t/mysql-user-problems/18278)

<div class="topic-metadata">

**Author:** [@James\_Morgan](https://forum.ansible.com/u/James_Morgan)\
**Replies:** 1\
**Last updated:** [July 27, 2015, 1:21pm UTC](https://forum.ansible.com/t/mysql-user-problems/18278 "2015-07-27T13:21:58Z")

</div>

Hi, Having problems with mysql\_user. ConfigParser.NoSectionError: No section: ‘client’ I have googled it and similar issues have come up but I can’t see a fix. This only happens in certain environments. All envs are …

---

## [Couldn't read packet: Connection reset by peer](https://forum.ansible.com/t/couldnt-read-packet-connection-reset-by-peer/18861)

<div class="topic-metadata">

**Author:** [@Barry\_Kaplan](https://forum.ansible.com/u/Barry_Kaplan)\
**Replies:** 0\
**Last updated:** [July 27, 2015, 11:08am UTC](https://forum.ansible.com/t/couldnt-read-packet-connection-reset-by-peer/18861 "2015-07-27T11:08:10Z")

</div>

I am now getting these errors with a playbook that has been working for ages. I just recreated the ec2 instances – so that is what is different – but they were created using an existing ansible playbook. I can ssh into …

---

## [Run the playbooks on the same host](https://forum.ansible.com/t/run-the-playbooks-on-the-same-host/18859)

<div class="topic-metadata">

**Author:** [@Valeriy\_Solovyov](https://forum.ansible.com/u/Valeriy_Solovyov)\
**Replies:** 1\
**Last updated:** [July 27, 2015, 7:22am UTC](https://forum.ansible.com/t/run-the-playbooks-on-the-same-host/18859 "2015-07-27T07:22:31Z")

</div>

Hi, I try to run playbook in parallel but there were errors because some modules are blocked by system: I tried run ansible instances: ansible -c local 127.0.0.1 -i 127.0.0.1, -m apt -a “update\_cache=yes” and one ret…

---

## [Getting an undefined variable error in galaxy-role geerlingguy.repo-epel](https://forum.ansible.com/t/getting-an-undefined-variable-error-in-galaxy-role-geerlingguy-repo-epel/18808)

<div class="topic-metadata">

**Author:** [@Bob\_Brown1](https://forum.ansible.com/u/Bob_Brown1)\
**Replies:** 5\
**Last updated:** [July 27, 2015, 5:21am UTC](https://forum.ansible.com/t/getting-an-undefined-variable-error-in-galaxy-role-geerlingguy-repo-epel/18808 "2015-07-27T05:21:49Z")

</div>

I’m trying to use galaxy roles for the first time and started with installing the geerlingguy.logstash role on an Amazon Linux Instance. It mostly seems to work, at least up until it gets to the repo-epel role I"m gett…

---

## [Group within another group issues](https://forum.ansible.com/t/group-within-another-group-issues/18857)

<div class="topic-metadata">

**Author:** [@William\_Muriithi](https://forum.ansible.com/u/William_Muriithi)\
**Replies:** 0\
**Last updated:** [July 26, 2015, 2:31pm UTC](https://forum.ansible.com/t/group-within-another-group-issues/18857 "2015-07-26T14:31:35Z")

</div>

Hello I have an inventory set as follows: \[develop\] 192.168.0.1 \<- tomcat 192.168.0.2 \<- tomcat 192.168.0.10 \<- mysql Galera cluster 192.168.0.11 \<- mysql Galera cluster 192.168.0.12 \<- mysql Galera cluster \[qa…

---

## [ssl issues with hipchat module?](https://forum.ansible.com/t/ssl-issues-with-hipchat-module/18854)

<div class="topic-metadata">

**Author:** [@Toshio\_Kuratomi](https://forum.ansible.com/u/Toshio_Kuratomi)\
**Replies:** 0\
**Last updated:** [July 26, 2015, 3:25am UTC](https://forum.ansible.com/t/ssl-issues-with-hipchat-module/18854 "2015-07-26T03:25:32Z")

</div>

So here’s what I did. If I run it from source (source ansible/hacking/env-setup) it seems to work. However, I created an RPM for my RH5 boxes (don’t ask) and installed it across our web servers. So this is an rpm of a…

---

## [Ansible Tower Job running Error](https://forum.ansible.com/t/ansible-tower-job-running-error/18851)

<div class="topic-metadata">

**Author:** [@Raw\_A](https://forum.ansible.com/u/Raw_A)\
**Replies:** 1\
**Last updated:** [July 25, 2015, 1:40pm UTC](https://forum.ansible.com/t/ansible-tower-job-running-error/18851 "2015-07-25T13:40:25Z")

</div>

Hello, I have done all things properly from our but i regularly get error on running Jobs. Please help me asap. Please Look Error.

---

## [lookup plugin and conditionals](https://forum.ansible.com/t/lookup-plugin-and-conditionals/18845)

<div class="topic-metadata">

**Author:** [@Hank\_Beatty](https://forum.ansible.com/u/Hank_Beatty)\
**Replies:** 6\
**Last updated:** [July 25, 2015, 12:12pm UTC](https://forum.ansible.com/t/lookup-plugin-and-conditionals/18845 "2015-07-25T12:12:19Z")

</div>

Would it be appropriate for a lookup plugin to use ansible.playbook.conditional? I'm wanting to modify the recursive lookup plugin that has been discussed on this list to allow conditionals per iteration. the code for …

---

## [Deleting EC2 instance and termination\_list mystery](https://forum.ansible.com/t/deleting-ec2-instance-and-termination-list-mystery/18849)

<div class="topic-metadata">

**Author:** [@Erik\_Steffl](https://forum.ansible.com/u/Erik_Steffl)\
**Replies:** 1\
**Last updated:** [July 25, 2015, 3:23am UTC](https://forum.ansible.com/t/deleting-ec2-instance-and-termination-list-mystery/18849 "2015-07-25T03:23:25Z")

</div>

When not including termination\_list parameter: TASK: \[Delete template API instance\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* failed: \[localhost → 127.0.0.1\] =\> {“failed”: true} msg: termination\_list needs to be a li…

---

## [Properly delete Amazon EC@ elastic load balancer](https://forum.ansible.com/t/properly-delete-amazon-ec-elastic-load-balancer/18850)

<div class="topic-metadata">

**Author:** [@Erik\_Steffl](https://forum.ansible.com/u/Erik_Steffl)\
**Replies:** 1\
**Last updated:** [July 25, 2015, 3:19am UTC](https://forum.ansible.com/t/properly-delete-amazon-ec-elastic-load-balancer/18850 "2015-07-25T03:19:59Z")

</div>

Deleting the elastic load balancer (ELB) sort of works (using http://docs.ansible.com/ansible/ec2\_elb\_lb\_module.html) but it does not delete ELB elastic network interfaces (ENI), these are deleted later by Amazon backgro…

---

## [Update inventory file](https://forum.ansible.com/t/update-inventory-file/18843)

<div class="topic-metadata">

**Author:** [@Edgardo\_Vega](https://forum.ansible.com/u/Edgardo_Vega)\
**Replies:** 1\
**Last updated:** [July 24, 2015, 10:21pm UTC](https://forum.ansible.com/t/update-inventory-file/18843 "2015-07-24T22:21:19Z")

</div>

I have a playbook with is creating vms and then i want to add the ip address to the inventory file to when it comes time to provision i can just call the updated inventory file. lineinfile will only add to the found line…

---

## [Running Ansible from RPM](https://forum.ansible.com/t/running-ansible-from-rpm/18848)

<div class="topic-metadata">

**Author:** [@Sam\_S](https://forum.ansible.com/u/Sam_S)\
**Replies:** 0\
**Last updated:** [July 24, 2015, 7:42pm UTC](https://forum.ansible.com/t/running-ansible-from-rpm/18848 "2015-07-24T19:42:55Z")

</div>

When I run Ansible from source by sourcing the env-setup file under the hacking folder, I’m able to run Ansible just fine. So now I want to run it via an RPM that i built for my RH5 hosts. When I run “ansible --version” …

---

## [group\_names to dictionary](https://forum.ansible.com/t/group-names-to-dictionary/18846)

<div class="topic-metadata">

**Author:** [@Edgardo\_Vega](https://forum.ansible.com/u/Edgardo_Vega)\
**Replies:** 0\
**Last updated:** [July 24, 2015, 5:57pm UTC](https://forum.ansible.com/t/group-names-to-dictionary/18846 "2015-07-24T17:57:45Z")

</div>

Is there a way to convert an array to a dictionary. I want to use the group names as metadata for os\_server or ec2 so I can reference them later using dynamic inventories.

---

## [Fedora 22: ansible\_pkg\_mgr: yum vs. dnf](https://forum.ansible.com/t/fedora-22-ansible-pkg-mgr-yum-vs-dnf/18844)

<div class="topic-metadata">

**Author:** [@Nusenu1](https://forum.ansible.com/u/Nusenu1)\
**Replies:** 1\
**Last updated:** [July 24, 2015, 5:34pm UTC](https://forum.ansible.com/t/fedora-22-ansible-pkg-mgr-yum-vs-dnf/18844 "2015-07-24T17:34:31Z")

</div>

Hi, I'd like to get 'dnf' as an answer when asking a F22 system for ansible\_pkg\_mgr. What do you think about it? thanks, nusenu

---

## [Error creating RDS instance](https://forum.ansible.com/t/error-creating-rds-instance/18786)

<div class="topic-metadata">

**Author:** [@Guy\_Knights](https://forum.ansible.com/u/Guy_Knights)\
**Replies:** 1\
**Last updated:** [July 24, 2015, 5:22pm UTC](https://forum.ansible.com/t/error-creating-rds-instance/18786 "2015-07-24T17:22:53Z")

</div>

I’m getting the following in a playbook a task to create an RDS instance runs: msg: failed to create instance: null This task worked fine yesterday, today I made a minor change to the VPC task (below) by adding another…

---

## [extra checking](https://forum.ansible.com/t/extra-checking/18839)

<div class="topic-metadata">

**Author:** [@Michael\_Leer](https://forum.ansible.com/u/Michael_Leer)\
**Replies:** 1\
**Last updated:** [July 24, 2015, 2:28pm UTC](https://forum.ansible.com/t/extra-checking/18839 "2015-07-24T14:28:04Z")

</div>

Hello, I recently came across an issue that a user was having where the /var/log/ansible.log file was not writable, would it be benefical to check the log files permissions (if specified within the config) when starting…

---

## [iterating over data](https://forum.ansible.com/t/iterating-over-data/18592)

<div class="topic-metadata">

**Author:** [@Hank\_Beatty](https://forum.ansible.com/u/Hank_Beatty)\
**Replies:** 4\
**Last updated:** [July 24, 2015, 2:14pm UTC](https://forum.ansible.com/t/iterating-over-data/18592 "2015-07-24T14:14:18Z")

</div>

Hello, Given the data below I would like to create a single task that will print the url or the filename without having to specify the hardware (PowerEdge\_xxxxx) or the firmware (bios, idrac, etc.). Any ideas would be …

---

## [Ansible copy module hangs on CentOS 7](https://forum.ansible.com/t/ansible-copy-module-hangs-on-centos-7/18782)

<div class="topic-metadata">

**Author:** [@Martin\_Ilchev](https://forum.ansible.com/u/Martin_Ilchev)\
**Replies:** 1\
**Last updated:** [July 24, 2015, 2:12pm UTC](https://forum.ansible.com/t/ansible-copy-module-hangs-on-centos-7/18782 "2015-07-24T14:12:45Z")

</div>

Hi Guys, I have a playbook to copy DNS zone files from local directory to a remote one and restart the named service. The playbook is as follows:

---

## [inventory\_file is undefined](https://forum.ansible.com/t/inventory-file-is-undefined/18842)

<div class="topic-metadata">

**Author:** [@Edgardo\_Vega](https://forum.ansible.com/u/Edgardo_Vega)\
**Replies:** 0\
**Last updated:** [July 24, 2015, 1:42pm UTC](https://forum.ansible.com/t/inventory-file-is-undefined/18842 "2015-07-24T13:42:04Z")

</div>

I am currently running on head of the development tree and am getting the following error: “msg”: “ERROR! the field ‘args’ has an invalid value, which appears to include a variable that is undefined. The error was: ‘inv…

---

## [delegate\_to does not work for array of hosts passed in to role](https://forum.ansible.com/t/delegate-to-does-not-work-for-array-of-hosts-passed-in-to-role/18376)

<div class="topic-metadata">

**Author:** [@Barry\_Kaplan](https://forum.ansible.com/u/Barry_Kaplan)\
**Replies:** 20\
**Last updated:** [July 24, 2015, 1:24pm UTC](https://forum.ansible.com/t/delegate-to-does-not-work-for-array-of-hosts-passed-in-to-role/18376 "2015-07-24T13:24:26Z")

</div>

I posted this as a bug (https://github.com/ansible/ansible/issues/11102). But it was closed saying it was a discussion. Not sure why, seems like a clear bug to me. But I’m open to be dissuaded.

---

## [Placement of new iDRAC module in ansible-modules-extras directory structure](https://forum.ansible.com/t/placement-of-new-idrac-module-in-ansible-modules-extras-directory-structure/18841)

<div class="topic-metadata">

**Author:** [@Hank\_Beatty](https://forum.ansible.com/u/Hank_Beatty)\
**Replies:** 0\
**Last updated:** [July 24, 2015, 12:55pm UTC](https://forum.ansible.com/t/placement-of-new-idrac-module-in-ansible-modules-extras-directory-structure/18841 "2015-07-24T12:55:59Z")

</div>

Hello, I've been working on an iDRAC module that I would like to propose for inclusion in the ansible-modules-extras. There doesn't seem to be a clear place for something like this already. Where would you like me to p…

---

## [Run powershell command as administrator](https://forum.ansible.com/t/run-powershell-command-as-administrator/16320)

<div class="topic-metadata">

**Author:** [@Michael\_Perzel](https://forum.ansible.com/u/Michael_Perzel)\
**Replies:** 12\
**Last updated:** [July 24, 2015, 8:34am UTC](https://forum.ansible.com/t/run-powershell-command-as-administrator/16320 "2015-07-24T08:34:59Z")

</div>

I am working to automate our deployment process with ansible but am running into a permissions issue. I have a playbook that uses the raw module to call a deploy.ps1 file that is on a remote windows server. This deploy.p…

---

## [allow\_duplicates: yes doesn't work as expected](https://forum.ansible.com/t/allow-duplicates-yes-doesnt-work-as-expected/18821)

<div class="topic-metadata">

**Author:** [@Daniel\_Wendler](https://forum.ansible.com/u/Daniel_Wendler)\
**Replies:** 2\
**Last updated:** [July 24, 2015, 6:55am UTC](https://forum.ansible.com/t/allow-duplicates-yes-doesnt-work-as-expected/18821 "2015-07-24T06:55:52Z")

</div>

Hello @all today i took another try on the role dependency feature and realize that this doesn’t work as i expect this. First at all: ansible --version ansible 1.9.2 configured module search path = /usr/share/ansible …

---

## [roles/files - remote copy configuration](https://forum.ansible.com/t/roles-files-remote-copy-configuration/18838)

<div class="topic-metadata">

**Author:** [@Abhishek\_R](https://forum.ansible.com/u/Abhishek_R)\
**Replies:** 1\
**Last updated:** [July 24, 2015, 4:05am UTC](https://forum.ansible.com/t/roles-files-remote-copy-configuration/18838 "2015-07-24T04:05:07Z")

</div>

Hi, My ansible project has a role with a shell script (say, transferTempScript.sh) in the \<role\_name\>/files subdirectory. The playbook has become:yes and a become sudo user specified. When running the playbook, I get an…

---

## [Modules Fix Missing in 1.9.2](https://forum.ansible.com/t/modules-fix-missing-in-1-9-2/18837)

<div class="topic-metadata">

**Author:** [@Ethan\_Merrill](https://forum.ansible.com/u/Ethan_Merrill)\
**Replies:** 2\
**Last updated:** [July 24, 2015, 2:41am UTC](https://forum.ansible.com/t/modules-fix-missing-in-1-9-2/18837 "2015-07-24T02:41:23Z")

</div>

Hi…I need this fix in 1.9.2: https://github.com/zecrazytux/ansible-modules-core/commit/6b20c3890f92093373c0ed50ff8489786abc1982 However when I install ansible 1.9.2 via pip in ubuntu, the fix is not there. Is there som…

---

## [How to check if previous shell task returns an empty string](https://forum.ansible.com/t/how-to-check-if-previous-shell-task-returns-an-empty-string/18836)

<div class="topic-metadata">

**Author:** [@Dump\_Hole](https://forum.ansible.com/u/Dump_Hole)\
**Replies:** 1\
**Last updated:** [July 23, 2015, 7:42pm UTC](https://forum.ansible.com/t/how-to-check-if-previous-shell-task-returns-an-empty-string/18836 "2015-07-23T19:42:02Z")

</div>

I have two shell tasks. The first one runs a check and returns a list of ids to be removed. The second one will remove these ids. The stdout of the first task looks like this: 1 2 3 4 which then gets fed into the s…

---

## [AWS provisioning with empty inventory](https://forum.ansible.com/t/aws-provisioning-with-empty-inventory/18834)

<div class="topic-metadata">

**Author:** [@Rodolfo\_Pilas](https://forum.ansible.com/u/Rodolfo_Pilas)\
**Replies:** 2\
**Last updated:** [July 23, 2015, 5:59pm UTC](https://forum.ansible.com/t/aws-provisioning-with-empty-inventory/18834 "2015-07-23T17:59:41Z")

</div>

I have problems to provision AWS when I have not at last one instance online like this: # ./playbooks/inventory/ec2.py --list { "\_meta": { "hostvars": {} } } and when I try to run ansible-playbook I recei…

---

## [Check Multiple Directory Exists in File Module with state as directory](https://forum.ansible.com/t/check-multiple-directory-exists-in-file-module-with-state-as-directory/18833)

<div class="topic-metadata">

**Author:** [@dinesh\_kumar](https://forum.ansible.com/u/dinesh_kumar)\
**Replies:** 1\
**Last updated:** [July 23, 2015, 5:06pm UTC](https://forum.ansible.com/t/check-multiple-directory-exists-in-file-module-with-state-as-directory/18833 "2015-07-23T17:06:51Z")

</div>

Hi i am trying to verify/create multiple folder exists in remote. What i’ve now is file: path=“{{download\_location}}” state=directory file: path=“{{applications\_location}}” state=directory Is there any way to check mu…

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

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