# Archives

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

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

**Page:** 593

---

## [Create a new user.](https://forum.ansible.com/t/create-a-new-user/21188)

<div class="topic-metadata">

**Author:** [@Lars\_von\_trier\_pung](https://forum.ansible.com/u/Lars_von_trier_pung)\
**Replies:** 1\
**Last updated:** [May 12, 2016, 8:44pm UTC](https://forum.ansible.com/t/create-a-new-user/21188 "2016-05-12T20:44:22Z")

</div>

Hi! Is there a way so to specify “last line” in tags from a list?. I want to create a new user by using adhocs command. So it won’t have to go through all the userlist everytime. Only the last added line. In this case -…

---

## [Ansible 2.0.1 the same playbooks for aws and openstack iaas: how to differentiate?](https://forum.ansible.com/t/ansible-2-0-1-the-same-playbooks-for-aws-and-openstack-iaas-how-to-differentiate/21204)

<div class="topic-metadata">

**Author:** [@Rafal\_Radecki](https://forum.ansible.com/u/Rafal_Radecki)\
**Replies:** 2\
**Last updated:** [May 12, 2016, 8:28pm UTC](https://forum.ansible.com/t/ansible-2-0-1-the-same-playbooks-for-aws-and-openstack-iaas-how-to-differentiate/21204 "2016-05-12T20:28:07Z")

</div>

Hi All :slight\_smile: I am using ansible 2.0.1 on both aws and openstack kilo. I would like to run the same playbook with appropriate conditions so that part of it would be run when iaas is aws and another part when iaa…

---

## [How to design an Ansible directory structure](https://forum.ansible.com/t/how-to-design-an-ansible-directory-structure/16849)

<div class="topic-metadata">

**Author:** [@Rick\_Kasten](https://forum.ansible.com/u/Rick_Kasten)\
**Replies:** 5\
**Last updated:** [May 12, 2016, 8:24pm UTC](https://forum.ansible.com/t/how-to-design-an-ansible-directory-structure/16849 "2016-05-12T20:24:18Z")

</div>

I’m just starting out with Ansible, and I’m trying to design my Ansible catalog in an efficient way for the future. My understanding is that this is how a directory structure should look: ansible/ group\_vars/ host\_var…

---

## [how do I ignore/handle the UNREACHABLE error?](https://forum.ansible.com/t/how-do-i-ignore-handle-the-unreachable-error/21418)

<div class="topic-metadata">

**Author:** [@tegr9760](https://forum.ansible.com/u/tegr9760)\
**Replies:** 2\
**Last updated:** [May 12, 2016, 7:46pm UTC](https://forum.ansible.com/t/how-do-i-ignore-handle-the-unreachable-error/21418 "2016-05-12T19:46:33Z")

</div>

I’d like to find out how to ignore/handle the UNREACHABLE error. The reason is that I want to use Ansible to loop through my hosts monitored\_systems and if any of those systems ever get reimaged, then I want to reestabli…

---

## [Deploying Ansible on CoreOS](https://forum.ansible.com/t/deploying-ansible-on-coreos/21401)

<div class="topic-metadata">

**Author:** [@hs.devaraja](https://forum.ansible.com/u/hs.devaraja)\
**Replies:** 1\
**Last updated:** [May 12, 2016, 6:52pm UTC](https://forum.ansible.com/t/deploying-ansible-on-coreos/21401 "2016-05-12T18:52:11Z")

</div>

Hi, Please provide the link incase any document available to deploy ansible on CoreOS.

---

## [issues running through setup.sh](https://forum.ansible.com/t/issues-running-through-setup-sh/21423)

<div class="topic-metadata">

**Author:** [@James\_Tenley](https://forum.ansible.com/u/James_Tenley)\
**Replies:** 0\
**Last updated:** [May 12, 2016, 6:22pm UTC](https://forum.ansible.com/t/issues-running-through-setup-sh/21423 "2016-05-12T18:22:59Z")

</div>

I am new to ansible and when trying to install it I keep getting these errors regarding the packages for perl Error: Package: munin-2.0.25-11.el6.noarch (epel) Requires: perl(File::Copy::Recursive) Error: Package: per…

---

## [Unable to install ansible 2.0.0.2 via pip](https://forum.ansible.com/t/unable-to-install-ansible-2-0-0-2-via-pip/21353)

<div class="topic-metadata">

**Author:** [@james4](https://forum.ansible.com/u/james4)\
**Replies:** 4\
**Last updated:** [May 12, 2016, 6:08pm UTC](https://forum.ansible.com/t/unable-to-install-ansible-2-0-0-2-via-pip/21353 "2016-05-12T18:08:28Z")

</div>

Has anyone seen this when trying to install ansible via pip on ubuntu? Running setup.py install for cryptography c/\_cffi\_backend.c:15:17: fatal error: ffi.h: No such file or directory #include \<ffi.h\> ^ compilation …

---

## [Confusion about nested loop in jinja2 template](https://forum.ansible.com/t/confusion-about-nested-loop-in-jinja2-template/21420)

<div class="topic-metadata">

**Author:** [@Joseph\_DJOMEDA](https://forum.ansible.com/u/Joseph_DJOMEDA)\
**Replies:** 1\
**Last updated:** [May 12, 2016, 5:34pm UTC](https://forum.ansible.com/t/confusion-about-nested-loop-in-jinja2-template/21420 "2016-05-12T17:34:24Z")

</div>

Hello Guys, I got stuck with some little problem on a nginx template and I have not succeeded in making it work. I am working on an nginx template and want to have a list of locations directives containing themselves su…

---

## [Please re-open issue #14383, it was reintroduced](https://forum.ansible.com/t/please-re-open-issue-14383-it-was-reintroduced/21422)

<div class="topic-metadata">

**Author:** [@Neil\_Hooey](https://forum.ansible.com/u/Neil_Hooey)\
**Replies:** 0\
**Last updated:** [May 12, 2016, 3:38pm UTC](https://forum.ansible.com/t/please-re-open-issue-14383-it-was-reintroduced/21422 "2016-05-12T15:38:05Z")

</div>

Someone was able to reproduce a closed GitHub issue in a recent version of Ansible: https://github.com/ansible/ansible/issues/14383#issuecomment-204991729 Could someone re-open it? Thanks. Neil

---

## ["Using bare variables is deprecated." but the docs are showing me to use that syntax.?](https://forum.ansible.com/t/using-bare-variables-is-deprecated-but-the-docs-are-showing-me-to-use-that-syntax/21405)

<div class="topic-metadata">

**Author:** [@Mark\_Maas](https://forum.ansible.com/u/Mark_Maas)\
**Replies:** 4\
**Last updated:** [May 12, 2016, 2:14pm UTC](https://forum.ansible.com/t/using-bare-variables-is-deprecated-but-the-docs-are-showing-me-to-use-that-syntax/21405 "2016-05-12T14:14:36Z")

</div>

Hi List, I’ve always been following along with the examples here: http://docs.ansible.com/ansible/playbooks\_conditionals.html#the-when-statement for instance: - name: Disable requiretty lineinfile: dest: /etc/sudoer…

---

## [Use "with\_sublelements" with 3,4,5,... elements ?](https://forum.ansible.com/t/use-with-sublelements-with-3-4-5-elements/21402)

<div class="topic-metadata">

**Author:** [@Clement\_VALENTIN](https://forum.ansible.com/u/Clement_VALENTIN)\
**Replies:** 6\
**Last updated:** [May 12, 2016, 7:38am UTC](https://forum.ansible.com/t/use-with-sublelements-with-3-4-5-elements/21402 "2016-05-12T07:38:45Z")

</div>

Hi, I try to use function “with\_subelements” to create a folder tree for MySQL installation with multiple element in vars, but I can’t do this … Exemple : vars.yml : mysqld\_instance: name: “HOSTNAME” port: ‘3307’ …

---

## [variable scope and roles](https://forum.ansible.com/t/variable-scope-and-roles/12757)

<div class="topic-metadata">

**Author:** [@Yves\_Dorfsman](https://forum.ansible.com/u/Yves_Dorfsman)\
**Replies:** 32\
**Last updated:** [May 12, 2016, 7:33am UTC](https://forum.ansible.com/t/variable-scope-and-roles/12757 "2016-05-12T07:33:36Z")

</div>

How is variable scope supposed to work with roles? I have the same variable defined in different roles (say install\_dir), when running a playbook which includes several roles, the value assumed during the execution of t…

---

## [Getting WinRM connection refused error randomly](https://forum.ansible.com/t/getting-winrm-connection-refused-error-randomly/21221)

<div class="topic-metadata">

**Author:** [@Deepa\_Yr](https://forum.ansible.com/u/Deepa_Yr)\
**Replies:** 5\
**Last updated:** [May 12, 2016, 6:20am UTC](https://forum.ansible.com/t/getting-winrm-connection-refused-error-randomly/21221 "2016-05-12T06:20:47Z")

</div>

Hi I have a playbook which does few actions on windows machine. Few actions will get completed and then playbook exits with An exception occurred during task execution. To see the full traceback, use -vvv. The error wa…

---

## [EC2 dynamic inventory + windows hosts, any way to do a group\_vars for that?](https://forum.ansible.com/t/ec2-dynamic-inventory-windows-hosts-any-way-to-do-a-group-vars-for-that/21416)

<div class="topic-metadata">

**Author:** [@Ricard\_Clau](https://forum.ansible.com/u/Ricard_Clau)\
**Replies:** 1\
**Last updated:** [May 11, 2016, 8:00pm UTC](https://forum.ansible.com/t/ec2-dynamic-inventory-windows-hosts-any-way-to-do-a-group-vars-for-that/21416 "2016-05-11T20:00:31Z")

</div>

Hi I was trying to use the EC2 dynamic inventory to manage a number of Windows and Linux instances and I am struggling trying to find a clean way to do something like a group\_vars file in order to use winrm if the host …

---

## [Using ansible to manage "devices" (specifically san controllers)](https://forum.ansible.com/t/using-ansible-to-manage-devices-specifically-san-controllers/21415)

<div class="topic-metadata">

**Author:** [@Cheyenne\_Wills](https://forum.ansible.com/u/Cheyenne_Wills)\
**Replies:** 0\
**Last updated:** [May 11, 2016, 7:41pm UTC](https://forum.ansible.com/t/using-ansible-to-manage-devices-specifically-san-controllers/21415 "2016-05-11T19:41:01Z")

</div>

I’ve just started to play around with ansible to see if it can be used to manage a san controller. Within the san controller that I’m dealing with, the command “shell” environment is limited (no python). Therefore I can…

---

## [Private Key path for ec2\_lc module under userdata field](https://forum.ansible.com/t/private-key-path-for-ec2-lc-module-under-userdata-field/21414)

<div class="topic-metadata">

**Author:** [@Bhotu](https://forum.ansible.com/u/Bhotu)\
**Replies:** 0\
**Last updated:** [May 11, 2016, 7:35pm UTC](https://forum.ansible.com/t/private-key-path-for-ec2-lc-module-under-userdata-field/21414 "2016-05-11T19:35:08Z")

</div>

I am trying to create new instance with ec2\_lc module in ansible. At the time of bootstraping, I want to install some configurations. Those configurations come from the public github file, its basically the ansible playb…

---

## [Query on Async and Poll](https://forum.ansible.com/t/query-on-async-and-poll/21413)

<div class="topic-metadata">

**Author:** [@Aprameya\_NDS](https://forum.ansible.com/u/Aprameya_NDS)\
**Replies:** 0\
**Last updated:** [May 11, 2016, 7:22pm UTC](https://forum.ansible.com/t/query-on-async-and-poll/21413 "2016-05-11T19:22:29Z")

</div>

Hi, I am currently using Ansible for a small traffic tool deployment. The task that i am running is an infinite one which is implemented in a playbook. I have another playbook which would stop based on some conditions. …

---

## [Windows put\_file performance (please test!)](https://forum.ansible.com/t/windows-put-file-performance-please-test/19598)

<div class="topic-metadata">

**Author:** [@Matt\_Davis](https://forum.ansible.com/u/Matt_Davis)\
**Replies:** 27\
**Last updated:** [May 11, 2016, 5:25pm UTC](https://forum.ansible.com/t/windows-put-file-performance-please-test/19598 "2016-05-11T17:25:17Z")

</div>

Chris Church and I have been kicking around a major Windows performance fix for awhile now- I finally got around to merging our efforts together and working some of the bugs out. The result is available here: https://git…

---

## [Jinja2 - snmp\_facts - dynamic template genration](https://forum.ansible.com/t/jinja2-snmp-facts-dynamic-template-genration/21412)

<div class="topic-metadata">

**Author:** [@michal\_trembacz](https://forum.ansible.com/u/michal_trembacz)\
**Replies:** 0\
**Last updated:** [May 11, 2016, 3:50pm UTC](https://forum.ansible.com/t/jinja2-snmp-facts-dynamic-template-genration/21412 "2016-05-11T15:50:47Z")

</div>

Hi, I’m trying to use snmp\_facts module to retrieve information from Cisco IOS device. I want to use this information to generate config. Module works ok, but it returns strange list format that from which i can’t acc…

---

## [Resolved bug about block/rescue does not seem solved to me](https://forum.ansible.com/t/resolved-bug-about-block-rescue-does-not-seem-solved-to-me/21301)

<div class="topic-metadata">

**Author:** [@dcodix](https://forum.ansible.com/u/dcodix)\
**Replies:** 2\
**Last updated:** [May 11, 2016, 3:32pm UTC](https://forum.ansible.com/t/resolved-bug-about-block-rescue-does-not-seem-solved-to-me/21301 "2016-05-11T15:32:07Z")

</div>

Hi, I opened an issue on github: https://github.com/ansible/ansible/issues/14324 Now it has been closed and it did not seem solved to me. I am testing with: ansible 2.2.0 (devel 48d01f63ca) last updated 2016/04/28 14…

---

## [EC2  volume\_size not working](https://forum.ansible.com/t/ec2-volume-size-not-working/21408)

<div class="topic-metadata">

**Author:** [@akhform](https://forum.ansible.com/u/akhform)\
**Replies:** 0\
**Last updated:** [May 11, 2016, 1:11pm UTC](https://forum.ansible.com/t/ec2-volume-size-not-working/21408 "2016-05-11T13:11:48Z")

</div>

Hello all, I’m trying to create an EC2 on my AWS account using Ansible (ansible-playbook 2.0.2.0), and i have an issue modifying the root volume of the EC2, when i add the following parameters: volumes: device\_name: …

---

## [tree/hierarchic structure for inventory?](https://forum.ansible.com/t/tree-hierarchic-structure-for-inventory/18772)

<div class="topic-metadata">

**Author:** [@esco\_real](https://forum.ansible.com/u/esco_real)\
**Replies:** 10\
**Last updated:** [May 11, 2016, 12:53pm UTC](https://forum.ansible.com/t/tree-hierarchic-structure-for-inventory/18772 "2016-05-11T12:53:02Z")

</div>

Hello, I would like to discuss the idea for a hierarchic structure for the inventory. Would it possible to support something like that? For example with this structure: server – atlanta -- web –hosts:web1 – raleig…

---

## [Execution of core-modules failes in action-plugins](https://forum.ansible.com/t/execution-of-core-modules-failes-in-action-plugins/21407)

<div class="topic-metadata">

**Author:** [@Sirk\_Johannsen](https://forum.ansible.com/u/Sirk_Johannsen)\
**Replies:** 0\
**Last updated:** [May 11, 2016, 12:09pm UTC](https://forum.ansible.com/t/execution-of-core-modules-failes-in-action-plugins/21407 "2016-05-11T12:09:17Z")

</div>

Hi, I am trying to write an action plugin that executes 2 core modules. I always get the error message that the plugin I’m trying to execute is missing the interpreter line (#/usr/bin/python) Certainly someone has don…

---

## [How to configuration my network switch with Ansible?](https://forum.ansible.com/t/how-to-configuration-my-network-switch-with-ansible/21403)

<div class="topic-metadata">

**Author:** [@aries](https://forum.ansible.com/u/aries)\
**Replies:** 0\
**Last updated:** [May 11, 2016, 9:32am UTC](https://forum.ansible.com/t/how-to-configuration-my-network-switch-with-ansible/21403 "2016-05-11T09:32:27Z")

</div>

Hi~ My network switch has ssh protocol but no Python installed. Can I use the Ansible via SSH CLI command to configuration? Thanks

---

## [Inventory level files and templates](https://forum.ansible.com/t/inventory-level-files-and-templates/21383)

<div class="topic-metadata">

**Author:** [@Krzysztof\_Zarzycki](https://forum.ansible.com/u/Krzysztof_Zarzycki)\
**Replies:** 5\
**Last updated:** [May 11, 2016, 7:22am UTC](https://forum.ansible.com/t/inventory-level-files-and-templates/21383 "2016-05-11T07:22:07Z")

</div>

Hi! Is it possible to store files or templates per inventory? Similar to how we can store group\_vars per inventory. I often hit the issue with Ansible, that I would like to store a file or a template per inventory (TES…

---

## [ERROR! Unexpected Exception: \[Errno 24\] Too many open files Ansible](https://forum.ansible.com/t/error-unexpected-exception-errno-24-too-many-open-files-ansible/21390)

<div class="topic-metadata">

**Author:** [@Lawrence1](https://forum.ansible.com/u/Lawrence1)\
**Replies:** 1\
**Last updated:** [May 11, 2016, 5:32am UTC](https://forum.ansible.com/t/error-unexpected-exception-errno-24-too-many-open-files-ansible/21390 "2016-05-11T05:32:58Z")

</div>

Hello, Hope you all well ! I can’t execute my Ansible playbook role because there are too many open files. Have you already got this problem ? If you have faced this problem, could you please share your solution ? Ab…

---

## [yum update ansible to latest version fail to install the yum\_repository module](https://forum.ansible.com/t/yum-update-ansible-to-latest-version-fail-to-install-the-yum-repository-module/21392)

<div class="topic-metadata">

**Author:** [@sabarinath\_g](https://forum.ansible.com/u/sabarinath_g)\
**Replies:** 2\
**Last updated:** [May 10, 2016, 6:45pm UTC](https://forum.ansible.com/t/yum-update-ansible-to-latest-version-fail-to-install-the-yum-repository-module/21392 "2016-05-10T18:45:25Z")

</div>

Hi, I have been practicing infrastructure automation using ansible ,at one point i have recognized installation or update of ansible through yum does not have the module yum\_repository in my installation. i have ran an…

---

## [get private ip of instances behind ec2 elastic load balancer](https://forum.ansible.com/t/get-private-ip-of-instances-behind-ec2-elastic-load-balancer/21393)

<div class="topic-metadata">

**Author:** [@saurabh.jha](https://forum.ansible.com/u/saurabh.jha)\
**Replies:** 1\
**Last updated:** [May 10, 2016, 6:00pm UTC](https://forum.ansible.com/t/get-private-ip-of-instances-behind-ec2-elastic-load-balancer/21393 "2016-05-10T18:00:16Z")

</div>

Dear all, I am new to ansible, I want to populate my host file by finding the private ip of instances which are behind the ec2 elb. So that my inventory file is consistent with actual running instances. I don’t seem to…

---

## [\[RFC\] a new module: lxd\_container](https://forum.ansible.com/t/rfc-a-new-module-lxd-container/21396)

<div class="topic-metadata">

**Author:** [@Hiroaki\_Nakamura](https://forum.ansible.com/u/Hiroaki_Nakamura)\
**Replies:** 0\
**Last updated:** [May 10, 2016, 4:29pm UTC](https://forum.ansible.com/t/rfc-a-new-module-lxd-container/21396 "2016-05-10T16:29:08Z")

</div>

Hi all, I created the lxd\_container Ansible module and sent a pull request to the ansible-modules-extra project. "Add lxd\_container module by hnakamur · Pull Request #2208 · ansible/ansible-modules-extras" https://g…

---

## [How to use dictionnary with multiple elements ?](https://forum.ansible.com/t/how-to-use-dictionnary-with-multiple-elements/21394)

<div class="topic-metadata">

**Author:** [@Clement\_VALENTIN](https://forum.ansible.com/u/Clement_VALENTIN)\
**Replies:** 5\
**Last updated:** [May 10, 2016, 3:30pm UTC](https://forum.ansible.com/t/how-to-use-dictionnary-with-multiple-elements/21394 "2016-05-10T15:30:28Z")

</div>

Hi, I need help for use an dictionnary with multiple element, but i don’t find how to :confused: Exemple : vars/mains.yml : users: alice: name: Alice Appleworth telephone: “123-456-7890” “123-456-7891” task/m…

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

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