# Ansible Project

**URL:** https://forum.ansible.com/c/archives/ansible-project/30.md?page=324

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

**Page:** 325

---

## [Ansible  ios\_command module - Failure execution basic commands on a Cisco IOS device](https://forum.ansible.com/t/ansible-ios-command-module-failure-execution-basic-commands-on-a-cisco-ios-device/24542)

<div class="topic-metadata">

**Author:** [@Reza\_Toghraee](https://forum.ansible.com/u/Reza_Toghraee)\
**Replies:** 1\
**Last updated:** [July 27, 2017, 6:59am UTC](https://forum.ansible.com/t/ansible-ios-command-module-failure-execution-basic-commands-on-a-cisco-ios-device/24542 "2017-07-27T06:59:52Z")

</div>

Hello Ansible version: 2.3.0.0 Python version = 2.7.13 (default, May 11 2017, 16:44:39) \[GCC 4.4.7 20120313 (Red Hat 4.4.7-18)\] Host : CentOS release 6.9 (Final) Paramiko version : 2.1.2 I’m trying to use ansible an…

---

## [ansible with forks \> 1 doesn't work using ansible\_ssh\_host/ansible\_ssh\_port](https://forum.ansible.com/t/ansible-with-forks-1-doesnt-work-using-ansible-ssh-host-ansible-ssh-port/25103)

<div class="topic-metadata">

**Author:** [@Sureshkumar\_Kalianna](https://forum.ansible.com/u/Sureshkumar_Kalianna)\
**Replies:** 0\
**Last updated:** [July 27, 2017, 1:29am UTC](https://forum.ansible.com/t/ansible-with-forks-1-doesnt-work-using-ansible-ssh-host-ansible-ssh-port/25103 "2017-07-27T01:29:45Z")

</div>

Hi, We are tunneling ssh through websocket…so the inventory looks something like this… \[nodes\] host1 ansible\_ssh\_host=localhost ansible\_ssh\_port=26532 host2 ansible\_ssh\_host=localhost ansible\_ssh\_port= \[admin@nsm-de…

---

## [Storing IP address of First node (Control Node) in variable](https://forum.ansible.com/t/storing-ip-address-of-first-node-control-node-in-variable/25098)

<div class="topic-metadata">

**Author:** [@Homayoun\_Najafizadeh](https://forum.ansible.com/u/Homayoun_Najafizadeh)\
**Replies:** 1\
**Last updated:** [July 26, 2017, 11:04pm UTC](https://forum.ansible.com/t/storing-ip-address-of-first-node-control-node-in-variable/25098 "2017-07-26T23:04:51Z")

</div>

It might be a dumb question but I can’t get this to work. I want to print IP address of my control node in all nodes. Lets say I have this in hosts: \[webservers\] 10.10.10.1 10.10.10.2 10.10.10.3 When I run my “ansi…

---

## [how to debug ansible seg vault ?](https://forum.ansible.com/t/how-to-debug-ansible-seg-vault/25090)

<div class="topic-metadata">

**Author:** [@Mike\_C1](https://forum.ansible.com/u/Mike_C1)\
**Replies:** 2\
**Last updated:** [July 26, 2017, 10:19pm UTC](https://forum.ansible.com/t/how-to-debug-ansible-seg-vault/25090 "2017-07-26T22:19:55Z")

</div>

im getting a seg fault when im running my ansible. Is there a way to turn on more debugging or anything that can help me find out the source ? My /var/log/syslog has entries like this Jul 26 10:47:26 ubuntu-xenial kern…

---

## [Using Pathword Authentication to run a Playbook](https://forum.ansible.com/t/using-pathword-authentication-to-run-a-playbook/25047)

<div class="topic-metadata">

**Author:** [@JS11](https://forum.ansible.com/u/JS11)\
**Replies:** 7\
**Last updated:** [July 26, 2017, 9:57pm UTC](https://forum.ansible.com/t/using-pathword-authentication-to-run-a-playbook/25047 "2017-07-26T21:57:48Z")

</div>

Hello! I have a single playbook that with various plays in it. It goes out to different environments, either dev, uat, or prod (based on the --extra-vars input by the user deploying the playbook). i.e. ansible-playbo…

---

## [Role included multiple times only seems to run once](https://forum.ansible.com/t/role-included-multiple-times-only-seems-to-run-once/25099)

<div class="topic-metadata">

**Author:** [@Matthew\_Rathbone](https://forum.ansible.com/u/Matthew_Rathbone)\
**Replies:** 2\
**Last updated:** [July 26, 2017, 9:39pm UTC](https://forum.ansible.com/t/role-included-multiple-times-only-seems-to-run-once/25099 "2017-07-26T21:39:37Z")

</div>

Hey guys, So I have a project setup in the following way: requiring an external redis-server role my own role called redis-cluster-shard that uses redis-server as a dependency a playbook that applies this role twice t…

---

## [parsing output from json](https://forum.ansible.com/t/parsing-output-from-json/25085)

<div class="topic-metadata">

**Author:** [@akku1](https://forum.ansible.com/u/akku1)\
**Replies:** 4\
**Last updated:** [July 26, 2017, 8:55pm UTC](https://forum.ansible.com/t/parsing-output-from-json/25085 "2017-07-26T20:55:19Z")

</div>

ansible --version ansible 2.2.1.0 config file = /etc/ansible/ansible.cfg Am using find modules to get largest files and its size the file, I am getting a big jason format output, How can i parse one particular string …

---

## [Best practice/way for variables to be used in template?](https://forum.ansible.com/t/best-practice-way-for-variables-to-be-used-in-template/25043)

<div class="topic-metadata">

**Author:** [@Mike\_Eriksson](https://forum.ansible.com/u/Mike_Eriksson)\
**Replies:** 2\
**Last updated:** [July 26, 2017, 8:03pm UTC](https://forum.ansible.com/t/best-practice-way-for-variables-to-be-used-in-template/25043 "2017-07-26T20:03:02Z")

</div>

All, I’m after some advice here on the best way of getting a template file populated with one or more network ranges based on the host the file is copied onto. So, basically I’ll have 15+ hosts that will be running a p…

---

## [gathering facts on network devices](https://forum.ansible.com/t/gathering-facts-on-network-devices/25093)

<div class="topic-metadata">

**Author:** [@Andrew\_Meyer1](https://forum.ansible.com/u/Andrew_Meyer1)\
**Replies:** 5\
**Last updated:** [July 26, 2017, 7:03pm UTC](https://forum.ansible.com/t/gathering-facts-on-network-devices/25093 "2017-07-26T19:03:48Z")

</div>

I seem to be having some issues making this playbook work. I want to just do a show run on all my cisco devices, but it keeps throwing errors about the ‘- vars:’ or something else. I am on the latest version. rpm -qa|gr…

---

## [Small Example for Reading from CSV-File for the creation of new user](https://forum.ansible.com/t/small-example-for-reading-from-csv-file-for-the-creation-of-new-user/25097)

<div class="topic-metadata">

**Author:** [@Dan\_Steffen](https://forum.ansible.com/u/Dan_Steffen)\
**Replies:** 2\
**Last updated:** [July 26, 2017, 6:49pm UTC](https://forum.ansible.com/t/small-example-for-reading-from-csv-file-for-the-creation-of-new-user/25097 "2017-07-26T18:49:45Z")

</div>

Hello, maybe I am just blind but I spend today 2 hours to found out how to read from a CSV to create User at the moment I have something like \` \` hosts: all user: name=“{{ lookup(‘csvfile’, ‘item file=user.csv del…

---

## [Getting a Column value from row](https://forum.ansible.com/t/getting-a-column-value-from-row/25088)

<div class="topic-metadata">

**Author:** [@Victor1](https://forum.ansible.com/u/Victor1)\
**Replies:** 6\
**Last updated:** [July 26, 2017, 6:37pm UTC](https://forum.ansible.com/t/getting-a-column-value-from-row/25088 "2017-07-26T18:37:32Z")

</div>

I need to get the VMID field from the column data as below. \[\[root@prmh-mag-31:~\] vim-cmd vmsvc/getallvms Vmid Name File Guest OS Version Annotation 51 myvgpu\_clone2 \[EVC\_Store1\] myvgpu\_clone2/myvgpu\_clone2.vmx window…

---

## [docker\_container network issue](https://forum.ansible.com/t/docker-container-network-issue/25096)

<div class="topic-metadata">

**Author:** [@sn.lazamanthony](https://forum.ansible.com/u/sn.lazamanthony)\
**Replies:** 0\
**Last updated:** [July 26, 2017, 3:53pm UTC](https://forum.ansible.com/t/docker-container-network-issue/25096 "2017-07-26T15:53:04Z")

</div>

Hi, I’ve been using the docker\_container module. So far it’s working when creating the image and other options, but when the “networks” option is used then the issue arise. Here’s the details: ansible version: ansible …

---

## [Does command module honor wildcards?](https://forum.ansible.com/t/does-command-module-honor-wildcards/25083)

<div class="topic-metadata">

**Author:** [@Josef\_Fortier](https://forum.ansible.com/u/Josef_Fortier)\
**Replies:** 2\
**Last updated:** [July 26, 2017, 3:51pm UTC](https://forum.ansible.com/t/does-command-module-honor-wildcards/25083 "2017-07-26T15:51:56Z")

</div>

I attempted a command to rm host\_keys to regenerate name: delete host keys command: rm /etc/ssh/\_key This issues a warning, and does not actually delete the files I added a -f flag to rm, thinking that maybe some sh…

---

## [Ansible 2.3.2 RC4 is available for testing](https://forum.ansible.com/t/ansible-2-3-2-rc4-is-available-for-testing/25095)

<div class="topic-metadata">

**Author:** [@jimi](https://forum.ansible.com/u/jimi)\
**Replies:** 0\
**Last updated:** [July 26, 2017, 3:31pm UTC](https://forum.ansible.com/t/ansible-2-3-2-rc4-is-available-for-testing/25095 "2017-07-26T15:31:01Z")

</div>

Hi all, we’re happy to announce that Ansible 2.3.2 RC4 is available for testing. A list of fixes can be found in the CHANGELOG here: https://github.com/ansible/ansible/blob/v2.3.2.0-0.4.rc4/CHANGELOG.md#bugfixes How d…

---

## [Building Module - Unable to set correct type for DEFAULT\_LOCAL\_TMP](https://forum.ansible.com/t/building-module-unable-to-set-correct-type-for-default-local-tmp/25091)

<div class="topic-metadata">

**Author:** [@Luvpreet\_Singh](https://forum.ansible.com/u/Luvpreet_Singh)\
**Replies:** 1\
**Last updated:** [July 26, 2017, 2:19pm UTC](https://forum.ansible.com/t/building-module-unable-to-set-correct-type-for-default-local-tmp/25091 "2017-07-26T14:19:37Z")

</div>

I have just started to learn on how to build modules in Ansible. I have followed this page, http://docs.ansible.com/ansible/latest/dev\_guide/developing\_modules\_general.html I created the python file, cloned the ansible…

---

## [2.4 support for multiple vault passwords, looking for feedback](https://forum.ansible.com/t/2-4-support-for-multiple-vault-passwords-looking-for-feedback/25092)

<div class="topic-metadata">

**Author:** [@alikins](https://forum.ansible.com/u/alikins)\
**Replies:** 0\
**Last updated:** [July 26, 2017, 2:09pm UTC](https://forum.ansible.com/t/2-4-support-for-multiple-vault-passwords-looking-for-feedback/25092 "2017-07-26T14:09:26Z")

</div>

I’ve been working on some vault related 2.4 roadmap\[1\] features, namely "Support for multiple vault passwords. ". The current pr is at https://github.com/ansible/ansible/pull/22756 The roadmap feature is based on RF…

---

## [How to read the JSON output of a module from another module I am creating](https://forum.ansible.com/t/how-to-read-the-json-output-of-a-module-from-another-module-i-am-creating/25089)

<div class="topic-metadata">

**Author:** [@russell\_choudhury](https://forum.ansible.com/u/russell_choudhury)\
**Replies:** 1\
**Last updated:** [July 26, 2017, 11:00am UTC](https://forum.ansible.com/t/how-to-read-the-json-output-of-a-module-from-another-module-i-am-creating/25089 "2017-07-26T11:00:32Z")

</div>

I want to be able to read the output from a specific task in the module I am creating. To do this I am registering the output into a variable in my playbook and then sending this as a argument in my module. The format …

---

## [" Unable to look up a name or access an attribute in template string" when use conditional check](https://forum.ansible.com/t/unable-to-look-up-a-name-or-access-an-attribute-in-template-string-when-use-conditional-check/25086)

<div class="topic-metadata">

**Author:** [@G\_Muirdok](https://forum.ansible.com/u/G_Muirdok)\
**Replies:** 1\
**Last updated:** [July 26, 2017, 6:20am UTC](https://forum.ansible.com/t/unable-to-look-up-a-name-or-access-an-attribute-in-template-string-when-use-conditional-check/25086 "2017-07-26T06:20:21Z")

</div>

Got error for every run after upgrade to 2.3.1.0\*\*:\*\* root@aaaaaaaaaansible:~/nexkek# ansible --version ansible 2.3.1.0 config file = /root/nexkek/ansible.cfg configured module search path = Default w/o overrides py…

---

## [Can Cloudformation YAML template be used in Ansible to automate infrastructure deployment](https://forum.ansible.com/t/can-cloudformation-yaml-template-be-used-in-ansible-to-automate-infrastructure-deployment/25082)

<div class="topic-metadata">

**Author:** [@Sreekanth\_Kannan](https://forum.ansible.com/u/Sreekanth_Kannan)\
**Replies:** 0\
**Last updated:** [July 25, 2017, 2:48pm UTC](https://forum.ansible.com/t/can-cloudformation-yaml-template-be-used-in-ansible-to-automate-infrastructure-deployment/25082 "2017-07-25T14:48:52Z")

</div>

Hi Is it possible to import / use a YAML template generated by AWS Cloudformation, into Ansible, to deploy infrastructure / applications in AWS. thanks Sreek

---

## [How to debug/test ansible module. Python interactive mode (pdb)](https://forum.ansible.com/t/how-to-debug-test-ansible-module-python-interactive-mode-pdb/25081)

<div class="topic-metadata">

**Author:** [@russell\_choudhury](https://forum.ansible.com/u/russell_choudhury)\
**Replies:** 2\
**Last updated:** [July 25, 2017, 2:39pm UTC](https://forum.ansible.com/t/how-to-debug-test-ansible-module-python-interactive-mode-pdb/25081 "2017-07-25T14:39:07Z")

</div>

Hi, I want to be able to go into interactive mode while creating a module. To do this I am adding the following line to my python code: import pdb; pdb.set\_trace() when I run my ansible playbook with the following line…

---

## [SKipping no hosts matched](https://forum.ansible.com/t/skipping-no-hosts-matched/25066)

<div class="topic-metadata">

**Author:** [@groupfiles14](https://forum.ansible.com/u/groupfiles14)\
**Replies:** 11\
**Last updated:** [July 25, 2017, 2:02pm UTC](https://forum.ansible.com/t/skipping-no-hosts-matched/25066 "2017-07-25T14:02:31Z")

</div>

Hello, i ran this ansible-playbook setup.yml -i ‘10.22.212.184,’ and i got the error message as no hosts matched, the ip i gave should be entered somewhere else as inventory file as well?

---

## [Automation - Infrastructure as code - Can Ansible replicate Dev resources in QA with parameter changes](https://forum.ansible.com/t/automation-infrastructure-as-code-can-ansible-replicate-dev-resources-in-qa-with-parameter-changes/25080)

<div class="topic-metadata">

**Author:** [@Sreekanth\_Kannan](https://forum.ansible.com/u/Sreekanth_Kannan)\
**Replies:** 0\
**Last updated:** [July 25, 2017, 1:57pm UTC](https://forum.ansible.com/t/automation-infrastructure-as-code-can-ansible-replicate-dev-resources-in-qa-with-parameter-changes/25080 "2017-07-25T13:57:00Z")

</div>

Hi We have a Dev environment in AWS (with VPC, subnets, EC2, S3, Applications, etc) Now we need to deploy QA environment similar to Dev, but we do not want to rebuild all the infrastructure (with VPC, subnets, EC2, S3…

---

## [Archlinux OS Family issue](https://forum.ansible.com/t/archlinux-os-family-issue/25048)

<div class="topic-metadata">

**Author:** [@mdl](https://forum.ansible.com/u/mdl)\
**Replies:** 8\
**Last updated:** [July 25, 2017, 1:53pm UTC](https://forum.ansible.com/t/archlinux-os-family-issue/25048 "2017-07-25T13:53:27Z")

</div>

I’m testing Ansible roles with Archlinux and one of them uses ansible\_os\_family to include variables or tasks. So I have: \` name: include OS vars include\_vars: “{{ ansible\_os\_family }}.yml” when: ansible\_os\_family =…

---

## [Using local\_action and set\_fact to gather local machine facts](https://forum.ansible.com/t/using-local-action-and-set-fact-to-gather-local-machine-facts/25065)

<div class="topic-metadata">

**Author:** [@JS11](https://forum.ansible.com/u/JS11)\
**Replies:** 6\
**Last updated:** [July 25, 2017, 12:56pm UTC](https://forum.ansible.com/t/using-local-action-and-set-fact-to-gather-local-machine-facts/25065 "2017-07-25T12:56:42Z")

</div>

Hello I am trying to gather facts (date and time) on the local machine (Ansible Host) using (local\_action) before the rest of the playbook continues: name: Gathering and setting Facts for this deploy local\_actio…

---

## [vmware\_guest\_snapshot module is not able to find VM](https://forum.ansible.com/t/vmware-guest-snapshot-module-is-not-able-to-find-vm/25075)

<div class="topic-metadata">

**Author:** [@Victor1](https://forum.ansible.com/u/Victor1)\
**Replies:** 1\
**Last updated:** [July 25, 2017, 11:20am UTC](https://forum.ansible.com/t/vmware-guest-snapshot-module-is-not-able-to-find-vm/25075 "2017-07-25T11:20:32Z")

</div>

I have used vmware\_guest\_snapshot module but it’s not able to find the VM. even though if i include “folder:” with full path of the VM folder it is still not able to discover the VM. If somebody has observed the same an…

---

## [vyos\_config and VTI](https://forum.ansible.com/t/vyos-config-and-vti/25076)

<div class="topic-metadata">

**Author:** [@Karl\_Latiss](https://forum.ansible.com/u/Karl_Latiss)\
**Replies:** 0\
**Last updated:** [July 25, 2017, 6:54am UTC](https://forum.ansible.com/t/vyos-config-and-vti/25076 "2017-07-25T06:54:25Z")

</div>

Ansible version “ansible-2.3.1.0-1.el7.noarch” VyOS 1.1.7 When using vyos\_config to add VTI configuration it hangs indefinitely when the VTI has not yet been associated with any VPN. When adding the VTI interface dire…

---

## [playbook fails testing connection from loadbalancer (nginix) to 2 backend webhosts (apache2)](https://forum.ansible.com/t/playbook-fails-testing-connection-from-loadbalancer-nginix-to-2-backend-webhosts-apache2/22334)

<div class="topic-metadata">

**Author:** [@James\_Lovato](https://forum.ansible.com/u/James_Lovato)\
**Replies:** 2\
**Last updated:** [July 25, 2017, 3:16am UTC](https://forum.ansible.com/t/playbook-fails-testing-connection-from-loadbalancer-nginix-to-2-backend-webhosts-apache2/22334 "2017-07-25T03:16:06Z")

</div>

The test to the loadbalancer itself never fails, and serves the same content as the websites (although host and metadata are a bit different), and I can’t for the life of me figure out the disconnect. If someone can poi…

---

## [Compare CloudFormer tasks in Ansible](https://forum.ansible.com/t/compare-cloudformer-tasks-in-ansible/25071)

<div class="topic-metadata">

**Author:** [@Sreekanth\_Kannan](https://forum.ansible.com/u/Sreekanth_Kannan)\
**Replies:** 4\
**Last updated:** [July 25, 2017, 2:57am UTC](https://forum.ansible.com/t/compare-cloudformer-tasks-in-ansible/25071 "2017-07-25T02:57:56Z")

</div>

Hello I have a need and I am trying to find if there is a module in Ansible that could help me with it. The scenario and the need is: We have AWS Infrastructure setup and Applications built and running in AWS. We …

---

## [Best way to differentiate configurations](https://forum.ansible.com/t/best-way-to-differentiate-configurations/25061)

<div class="topic-metadata">

**Author:** [@Peter\_Ankerstal](https://forum.ansible.com/u/Peter_Ankerstal)\
**Replies:** 1\
**Last updated:** [July 24, 2017, 10:46pm UTC](https://forum.ansible.com/t/best-way-to-differentiate-configurations/25061 "2017-07-24T22:46:06Z")

</div>

Hi! I pretty new to ansible and I have tried to read the docs on how to best differentiate configurations. Everything seems very clean if every server have a very specific purpose like “dbserver” or something. But Im h…

---

## [Building a list from complex YAML](https://forum.ansible.com/t/building-a-list-from-complex-yaml/25072)

<div class="topic-metadata">

**Author:** [@Francois\_Herbet](https://forum.ansible.com/u/Francois_Herbet)\
**Replies:** 1\
**Last updated:** [July 24, 2017, 9:09pm UTC](https://forum.ansible.com/t/building-a-list-from-complex-yaml/25072 "2017-07-24T21:09:41Z")

</div>

Hi Guys need some advice on this case here’s my hostvars

[Previous page](https://forum.ansible.com/c/archives/ansible-project/30.md?page=323)

[Next page](https://forum.ansible.com/c/archives/ansible-project/30.md?page=325)
