# Archives

**URL:** https://forum.ansible.com/c/archives/31.md?page=561

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

**Page:** 562

---

## [win\_unzip hanging](https://forum.ansible.com/t/win-unzip-hanging/18770)

<div class="topic-metadata">

**Author:** [@Guillaume\_Querso](https://forum.ansible.com/u/Guillaume_Querso)\
**Replies:** 4\
**Last updated:** [August 22, 2016, 1:26pm UTC](https://forum.ansible.com/t/win-unzip-hanging/18770 "2016-08-22T13:26:22Z")

</div>

hi all, I am using ansible to unzip files on a windows 2008 R2 server. My playbook was working fine but for an unknown reason, the win\_unzip module is now never ending. i am running ansible 1.9.2. Thank you for your he…

---

## [Ansible hostname alias not in setup](https://forum.ansible.com/t/ansible-hostname-alias-not-in-setup/15010)

<div class="topic-metadata">

**Author:** [@profhase85](https://forum.ansible.com/u/profhase85)\
**Replies:** 5\
**Last updated:** [August 22, 2016, 10:10am UTC](https://forum.ansible.com/t/ansible-hostname-alias-not-in-setup/15010 "2016-08-22T10:10:02Z")

</div>

Hi, having the following configuration \[my\_hosts\] my\_host ansible\_ssh\_host=123.123.123.123 my\_host2 ansible\_ssh\_host=234.234.234.234 I want to gather some debug information in my templates. How do I acces the alias …

---

## [Use of fetch -- can we preserve timestamps?](https://forum.ansible.com/t/use-of-fetch-can-we-preserve-timestamps/22319)

<div class="topic-metadata">

**Author:** [@John\_Leo\_Huetter](https://forum.ansible.com/u/John_Leo_Huetter)\
**Replies:** 1\
**Last updated:** [August 22, 2016, 9:07am UTC](https://forum.ansible.com/t/use-of-fetch-can-we-preserve-timestamps/22319 "2016-08-22T09:07:37Z")

</div>

Hello, I am checking out the fetch module. We can grab files off of remote servers and it works great. Would it be possible to add an option to PRESERVE the file time stamps (mtime, ctime)? Thanks, John

---

## [Ansible 2.1.0 organizing host\_vars](https://forum.ansible.com/t/ansible-2-1-0-organizing-host-vars/22340)

<div class="topic-metadata">

**Author:** [@Marvyn\_Alcantara](https://forum.ansible.com/u/Marvyn_Alcantara)\
**Replies:** 0\
**Last updated:** [August 22, 2016, 8:38am UTC](https://forum.ansible.com/t/ansible-2-1-0-organizing-host-vars/22340 "2016-08-22T08:38:55Z")

</div>

Hello we would like to ask if this is possible, Organizing host specific configurations for web servers via host\_vars directory. our goal is to consolidate all host specific machine configurations (ie, IP addresses1, IP…

---

## [Ansible Playbook Doesn't run on RHEL 4.x](https://forum.ansible.com/t/ansible-playbook-doesnt-run-on-rhel-4-x/22339)

<div class="topic-metadata">

**Author:** [@Mona\_Gopal](https://forum.ansible.com/u/Mona_Gopal)\
**Replies:** 2\
**Last updated:** [August 22, 2016, 7:46am UTC](https://forum.ansible.com/t/ansible-playbook-doesnt-run-on-rhel-4-x/22339 "2016-08-22T07:46:43Z")

</div>

fatal: \[172.19.1.239\]: FAILED! =\> {“changed”: false, “failed”: true, “module\_stderr”: “”, “module\_stdout”: “Traceback (most recent call last):\\r\\n File "/root/.ansible/tmp/ansible-tmp-1471850606.58-237797342898160/setup"…

---

## [Error while installing ansible in OS X.](https://forum.ansible.com/t/error-while-installing-ansible-in-os-x/22333)

<div class="topic-metadata">

**Author:** [@Ramesh](https://forum.ansible.com/u/Ramesh)\
**Replies:** 2\
**Last updated:** [August 21, 2016, 8:07pm UTC](https://forum.ansible.com/t/error-while-installing-ansible-in-os-x/22333 "2016-08-21T20:07:19Z")

</div>

Hi, Im getting the below error while installing the —ansible in OS X. Help me on fixing this pls. Rameshs-MacBook-Pro:centos-6.7 Ramesh$ sudo easy\_install pip Password: Searching for pip Best match: pip 8.1.2 Processi…

---

## [Purge any iptables rules which are NOT in playbook](https://forum.ansible.com/t/purge-any-iptables-rules-which-are-not-in-playbook/22335)

<div class="topic-metadata">

**Author:** [@John\_Doe](https://forum.ansible.com/u/John_Doe)\
**Replies:** 0\
**Last updated:** [August 21, 2016, 2:17pm UTC](https://forum.ansible.com/t/purge-any-iptables-rules-which-are-not-in-playbook/22335 "2016-08-21T14:17:47Z")

</div>

Hey, I want to make sure that any existing iptables rules will be gone after I run my play book, in puppet I just need to set purge to yes or something very similar, but I can’t find anything related in ansible/iptables…

---

## [New to Ansible](https://forum.ansible.com/t/new-to-ansible/22289)

<div class="topic-metadata">

**Author:** [@Ramesh](https://forum.ansible.com/u/Ramesh)\
**Replies:** 7\
**Last updated:** [August 20, 2016, 7:43am UTC](https://forum.ansible.com/t/new-to-ansible/22289 "2016-08-20T07:43:29Z")

</div>

Hi , I am new to this Ansible. I was gone through the first step, and got the below update. sudo easy\_install pip Searching for pip Best match: pip 8.1.2 Processing pip-8.1.2-py2.7.egg pip 8.1.2 is already the active …

---

## [Variable Return Variables.](https://forum.ansible.com/t/variable-return-variables/22332)

<div class="topic-metadata">

**Author:** [@David\_Blackburn](https://forum.ansible.com/u/David_Blackburn)\
**Replies:** 0\
**Last updated:** [August 20, 2016, 2:54am UTC](https://forum.ansible.com/t/variable-return-variables/22332 "2016-08-20T02:54:05Z")

</div>

Hi I am currently using the ec2\_customer\_gateway module, and the variable names it returns are inconsistent, if a gateway exists its plural if not then singular. The problem is I call out this variable later in my code. …

---

## [Ansible ec2 to assume or not.](https://forum.ansible.com/t/ansible-ec2-to-assume-or-not/22314)

<div class="topic-metadata">

**Author:** [@David\_Blackburn](https://forum.ansible.com/u/David_Blackburn)\
**Replies:** 4\
**Last updated:** [August 20, 2016, 2:42am UTC](https://forum.ansible.com/t/ansible-ec2-to-assume-or-not/22314 "2016-08-20T02:42:30Z")

</div>

I am writing play’s using the ec2 cloud modules and would like to have the option to run the play using an assumed role or just standard IAM keys. I can use logic to let the play know if I will use IAM or a assumed role …

---

## [ec2-asg Module - AWS Autoscaling groups going over the desired instance count and then scaling back](https://forum.ansible.com/t/ec2-asg-module-aws-autoscaling-groups-going-over-the-desired-instance-count-and-then-scaling-back/22320)

<div class="topic-metadata">

**Author:** [@ecoutin\_boingo](https://forum.ansible.com/u/ecoutin_boingo)\
**Replies:** 1\
**Last updated:** [August 19, 2016, 6:44pm UTC](https://forum.ansible.com/t/ec2-asg-module-aws-autoscaling-groups-going-over-the-desired-instance-count-and-then-scaling-back/22320 "2016-08-19T18:44:51Z")

</div>

Hello, I’m wondering if anyone else has observed that when using this Ansible module the AWS API does the following: 1.-Sets the number of instances to be over the desired count, even the maximum if all values are 1. …

---

## [synchronize module and localhost](https://forum.ansible.com/t/synchronize-module-and-localhost/22285)

<div class="topic-metadata">

**Author:** [@Josh\_Smift1](https://forum.ansible.com/u/Josh_Smift1)\
**Replies:** 4\
**Last updated:** [August 19, 2016, 3:58pm UTC](https://forum.ansible.com/t/synchronize-module-and-localhost/22285 "2016-08-19T15:58:17Z")

</div>

I want to use the synchronize module to rsync a directory from one place on the control host to another place on the control host. My playbook looks like this: - hosts: all become: True gather\_facts: False …

---

## ["the directory /usr/lib/ is not empty, refusing to convert it"](https://forum.ansible.com/t/the-directory-usr-lib-is-not-empty-refusing-to-convert-it/22325)

<div class="topic-metadata">

**Author:** [@Mihai\_Rusan](https://forum.ansible.com/u/Mihai_Rusan)\
**Replies:** 1\
**Last updated:** [August 19, 2016, 3:50pm UTC](https://forum.ansible.com/t/the-directory-usr-lib-is-not-empty-refusing-to-convert-it/22325 "2016-08-19T15:50:55Z")

</div>

Hi, I’m trying to create a symlink: file: src=/usr/lib/x86\_64-linux-gnu/{{ item.src }} dest=/usr/lib/ state=link force=yes with\_items: { src: ‘libz.so’} { src: ‘libfreetype.so’} { src: ‘libjpeg.so’} and I get: “th…

---

## [Getting this error, please help.](https://forum.ansible.com/t/getting-this-error-please-help/22321)

<div class="topic-metadata">

**Author:** [@Sanjay\_Kumar](https://forum.ansible.com/u/Sanjay_Kumar)\
**Replies:** 1\
**Last updated:** [August 19, 2016, 3:45pm UTC](https://forum.ansible.com/t/getting-this-error-please-help/22321 "2016-08-19T15:45:11Z")

</div>

Getting this error, please help. \[sysadm@centos7 ~\]$ ansible -m ping centos71 centos71 | UNREACHABLE! =\> { “changed”: false, “msg”: “Failed to connect to the host via ssh.”, “unreachable”: true }

---

## [docker\_container moduel fails to keep alive consul container](https://forum.ansible.com/t/docker-container-moduel-fails-to-keep-alive-consul-container/22317)

<div class="topic-metadata">

**Author:** [@Agusti\_Tomas](https://forum.ansible.com/u/Agusti_Tomas)\
**Replies:** 2\
**Last updated:** [August 19, 2016, 3:20pm UTC](https://forum.ansible.com/t/docker-container-moduel-fails-to-keep-alive-consul-container/22317 "2016-08-19T15:20:12Z")

</div>

Hello, I have a simple role called consul: name: Pull consul image docker\_image: name: consul tag: latest state: present name: Start consul container docker\_container: name: consul image: consul state: sta…

---

## [Append to array](https://forum.ansible.com/t/append-to-array/22328)

<div class="topic-metadata">

**Author:** [@elie\_merhej](https://forum.ansible.com/u/elie_merhej)\
**Replies:** 0\
**Last updated:** [August 19, 2016, 2:50pm UTC](https://forum.ansible.com/t/append-to-array/22328 "2016-08-19T14:50:26Z")

</div>

Hi guys, This might be a duplicate topic but I wasn’t able to find the answer to my question. if I define a variable array in a role like: postgresql\_pg\_hba\_default: { type: local, database: all, user: all, address…

---

## [\-m setup -a filter="ansible\_eth0.ipv4.address" returns no results](https://forum.ansible.com/t/m-setup-a-filter-ansible-eth0-ipv4-address-returns-no-results/18129)

<div class="topic-metadata">

**Author:** [@Barry\_Morrison](https://forum.ansible.com/u/Barry_Morrison)\
**Replies:** 21\
**Last updated:** [August 19, 2016, 2:15pm UTC](https://forum.ansible.com/t/m-setup-a-filter-ansible-eth0-ipv4-address-returns-no-results/18129 "2016-08-19T14:15:43Z")

</div>

So I’m trying to get the IP address of every server via ansible and expect to use something like ansible -i inventory host\_group -m setup -a filter=“ansible\_eth0.ipv4.address” returns no results. It returns something li…

---

## [playbooks hang forever when client is swapping or has (NFS) mount problems](https://forum.ansible.com/t/playbooks-hang-forever-when-client-is-swapping-or-has-nfs-mount-problems/22327)

<div class="topic-metadata">

**Author:** [@Frank\_Thommen](https://forum.ansible.com/u/Frank_Thommen)\
**Replies:** 4\
**Last updated:** [August 19, 2016, 2:07pm UTC](https://forum.ansible.com/t/playbooks-hang-forever-when-client-is-swapping-or-has-nfs-mount-problems/22327 "2016-08-19T14:07:32Z")

</div>

Dear all, doing my first steps with ansible I noticed, that on some clients executing playbooks completely hangs. The common problem on these hosts is, that they are either swapping (even very small amounts of swap use…

---

## [Easy way to parse out.stdout\_lines to get the value?](https://forum.ansible.com/t/easy-way-to-parse-out-stdout-lines-to-get-the-value/22326)

<div class="topic-metadata">

**Author:** [@Ruben\_Ortiz](https://forum.ansible.com/u/Ruben_Ortiz)\
**Replies:** 1\
**Last updated:** [August 19, 2016, 12:44pm UTC](https://forum.ansible.com/t/easy-way-to-parse-out-stdout-lines-to-get-the-value/22326 "2016-08-19T12:44:16Z")

</div>

up vote0down votefavorite | I have a silly playbook which just runs a command to get the list of vhost in every host on webserver group. As all vhost are located in /var/www is easy to get the list of webs. Th…

---

## [MongoDB Ansible Deployment](https://forum.ansible.com/t/mongodb-ansible-deployment/22295)

<div class="topic-metadata">

**Author:** [@adam.a.chally](https://forum.ansible.com/u/adam.a.chally)\
**Replies:** 3\
**Last updated:** [August 19, 2016, 9:52am UTC](https://forum.ansible.com/t/mongodb-ansible-deployment/22295 "2016-08-19T09:52:09Z")

</div>

Hello, So I am trying to convert a bunch of Ansible Playbooks that were used to deploy MongoDB into a more generalized group of roles used to for the deployment. I have somewhat based it off of the Ansible Example Mongo…

---

## [Mount all?](https://forum.ansible.com/t/mount-all/22324)

<div class="topic-metadata">

**Author:** [@Lachlan\_Musicman](https://forum.ansible.com/u/Lachlan_Musicman)\
**Replies:** 0\
**Last updated:** [August 19, 2016, 2:44am UTC](https://forum.ansible.com/t/mount-all/22324 "2016-08-19T02:44:10Z")

</div>

Hi Is there an obvious way to mount everything in fstab that I’m missing or do I need to send “mount -a” via command? cheers L.

---

## [AWS deregister ec2 instance from ELB](https://forum.ansible.com/t/aws-deregister-ec2-instance-from-elb/22288)

<div class="topic-metadata">

**Author:** [@Cann](https://forum.ansible.com/u/Cann)\
**Replies:** 1\
**Last updated:** [August 18, 2016, 11:55pm UTC](https://forum.ansible.com/t/aws-deregister-ec2-instance-from-elb/22288 "2016-08-18T23:55:04Z")

</div>

Hello, I am new to Ansible and I couldn’t figure out what is wrong with my ansible playbook. I simply want to list all instances associated with specific elastic load balancers and then de-register them all. Can you p…

---

## [Action plugin's "self.runner.inventory" in 2.0](https://forum.ansible.com/t/action-plugins-self-runner-inventory-in-2-0/22323)

<div class="topic-metadata">

**Author:** [@jmc](https://forum.ansible.com/u/jmc)\
**Replies:** 1\
**Last updated:** [August 18, 2016, 10:18pm UTC](https://forum.ansible.com/t/action-plugins-self-runner-inventory-in-2-0/22323 "2016-08-18T22:18:39Z")

</div>

Hi, I have an action plugin that was originally written for Ansible 1, and I’m trying to port it over to 2. The plugin uses runner.inventory to programmatically create host and group variables for every host in the inve…

---

## [Question about with\_items after running a find](https://forum.ansible.com/t/question-about-with-items-after-running-a-find/22322)

<div class="topic-metadata">

**Author:** [@John\_Leo\_Huetter](https://forum.ansible.com/u/John_Leo_Huetter)\
**Replies:** 1\
**Last updated:** [August 18, 2016, 8:53pm UTC](https://forum.ansible.com/t/question-about-with-items-after-running-a-find/22322 "2016-08-18T20:53:35Z")

</div>

Hello, I am running a find and then working on each item, like: name: “Finding …” find: paths=“/app” pattern=“{{ pattern }}” recurse=yes get\_checksum=yes changed\_when: False register: find\_results name: “Display…

---

## [win\_user module and GPO settings](https://forum.ansible.com/t/win-user-module-and-gpo-settings/22310)

<div class="topic-metadata">

**Author:** [@cupcake](https://forum.ansible.com/u/cupcake)\
**Replies:** 1\
**Last updated:** [August 18, 2016, 8:36pm UTC](https://forum.ansible.com/t/win-user-module-and-gpo-settings/22310 "2016-08-18T20:36:19Z")

</div>

Tower 2.4.5 Trying to have the win\_user module set built-in admin and guest account to disabled. Guest account is not taking due to some fairly standard GPO settings. Access this PC from network has default “everyone…

---

## [Multiple passwords in group\_vars/windows.yml for multiple windows hosts](https://forum.ansible.com/t/multiple-passwords-in-group-vars-windows-yml-for-multiple-windows-hosts/22293)

<div class="topic-metadata">

**Author:** [@Raghavendra\_Tandon](https://forum.ansible.com/u/Raghavendra_Tandon)\
**Replies:** 1\
**Last updated:** [August 18, 2016, 8:32pm UTC](https://forum.ansible.com/t/multiple-passwords-in-group-vars-windows-yml-for-multiple-windows-hosts/22293 "2016-08-18T20:32:58Z")

</div>

How do I Implement multiple passwords in group\_vars/windows.yml for multiple windows hosts which i need to orchestrate using my RHEL control machine

---

## [Ansible hangs when running remote su command via  sshpass](https://forum.ansible.com/t/ansible-hangs-when-running-remote-su-command-via-sshpass/18993)

<div class="topic-metadata">

**Author:** [@firxiao\_zhang](https://forum.ansible.com/u/firxiao_zhang)\
**Replies:** 1\
**Last updated:** [August 18, 2016, 8:30pm UTC](https://forum.ansible.com/t/ansible-hangs-when-running-remote-su-command-via-sshpass/18993 "2016-08-18T20:30:04Z")

</div>

HI: Ansible Version: \` \[vagrant@master ansible\]$ ansible --version ansible 1.9.2 configured module search path = None \` Environment: client is same as master. \` \[vagrant@master ansible\]$ cat /etc/redhat-release C…

---

## [Error in Deploying Virtual Machines to vCenter with Ansible | Must call 'connect' before invoking this method](https://forum.ansible.com/t/error-in-deploying-virtual-machines-to-vcenter-with-ansible-must-call-connect-before-invoking-this-method/18274)

<div class="topic-metadata">

**Author:** [@tarun\_emany](https://forum.ansible.com/u/tarun_emany)\
**Replies:** 3\
**Last updated:** [August 18, 2016, 8:29pm UTC](https://forum.ansible.com/t/error-in-deploying-virtual-machines-to-vcenter-with-ansible-must-call-connect-before-invoking-this-method/18274 "2016-08-18T20:29:23Z")

</div>

Hi, While deploying new VM to vCenter using Ansible playbook I am getting the following error. failed: \[127.0.0.1\] =\> {“failed”: true, “parsed”: false} Traceback (most recent call last): File “/.ansible/tmp/ansible-t…

---

## [Var of var in Ansible playbook](https://forum.ansible.com/t/var-of-var-in-ansible-playbook/22307)

<div class="topic-metadata">

**Author:** [@Saad](https://forum.ansible.com/u/Saad)\
**Replies:** 1\
**Last updated:** [August 18, 2016, 6:54pm UTC](https://forum.ansible.com/t/var-of-var-in-ansible-playbook/22307 "2016-08-18T18:54:47Z")

</div>

Hello, i try to do a var of var in a playbook on Ansible but i can’t figure out how to do this proprly, or if it is even possible ? here is what i try to do : "name : {{ groups\['{{ ANOTHER\_VAR\_HERE }}'\]\[0\] }}" Ansibl…

---

## [How should brackets around braces be escaped?](https://forum.ansible.com/t/how-should-brackets-around-braces-be-escaped/22294)

<div class="topic-metadata">

**Author:** [@Stig\_Dossing](https://forum.ansible.com/u/Stig_Dossing)\
**Replies:** 1\
**Last updated:** [August 18, 2016, 6:35pm UTC](https://forum.ansible.com/t/how-should-brackets-around-braces-be-escaped/22294 "2016-08-18T18:35:32Z")

</div>

Hi. I’m having some trouble getting a fragment of a group\_vars/all file to pass syntax checking. I’m on the latest github code at the time of writing (daf6eb97d3b0d059e0856015b2eb62d32281b9ad). Here’s a minimal example…

[Previous page](https://forum.ansible.com/c/archives/31.md?page=560)

[Next page](https://forum.ansible.com/c/archives/31.md?page=562)
