# Latest

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

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

**Page:** 638

---

## [Azure create vm module - cant specify vm size compatible with premium storage (or other valid vm\_size values)](https://forum.ansible.com/t/azure-create-vm-module-cant-specify-vm-size-compatible-with-premium-storage-or-other-valid-vm-size-values/25106)

<div class="topic-metadata">

**Author:** [@Andy\_Redhead](https://forum.ansible.com/u/Andy_Redhead)\
**Replies:** 0\
**Last updated:** [July 27, 2017, 8:38am UTC](https://forum.ansible.com/t/azure-create-vm-module-cant-specify-vm-size-compatible-with-premium-storage-or-other-valid-vm-size-values/25106 "2017-07-27T08:38:42Z")

</div>

Hi, I’m pretty new to Ansible and so far have spent only an afternoon with the Ansible Azure module - so it’s likely I’m being dim… After a bit of trial and error I got a playbook together that can create a basic VM (a…

---

## [Ansible static inventory with dynamic tags for Amazon EC2 Windows instances](https://forum.ansible.com/t/ansible-static-inventory-with-dynamic-tags-for-amazon-ec2-windows-instances/25105)

<div class="topic-metadata">

**Author:** [@Poornima\_Sandireddy](https://forum.ansible.com/u/Poornima_Sandireddy)\
**Replies:** 0\
**Last updated:** [July 27, 2017, 7:08am UTC](https://forum.ansible.com/t/ansible-static-inventory-with-dynamic-tags-for-amazon-ec2-windows-instances/25105 "2017-07-27T07:08:35Z")

</div>

Hi All, I am working on a project where in agents needs to be installed on running windows instances on AWS account. I need to discover the instances based on tags (ex - tag\_owner\_poornima) but I am facing issues. Below…

---

## [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…

---

## [HOWTO active Write-DebugLog](https://forum.ansible.com/t/howto-active-write-debuglog/25100)

<div class="topic-metadata">

**Author:** [@Bob\_Tanner](https://forum.ansible.com/u/Bob_Tanner)\
**Replies:** 0\
**Last updated:** [July 26, 2017, 9:04pm UTC](https://forum.ansible.com/t/howto-active-write-debuglog/25100 "2017-07-26T21:04:23Z")

</div>

Trying to debug a problem with Ansible module win\_updates and I see some very useful info being output via Write-DebugLog. How do I activate this output? \` set this as a global for the Write-DebugLog function $log\_pat…

---

## [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…

---

## [Getting a Shippable error importing importing an existing module into a new module.](https://forum.ansible.com/t/getting-a-shippable-error-importing-importing-an-existing-module-into-a-new-module/25087)

<div class="topic-metadata">

**Author:** [@Willem\_van\_Ketwich](https://forum.ansible.com/u/Willem_van_Ketwich)\
**Replies:** 1\
**Last updated:** [July 26, 2017, 2:05pm UTC](https://forum.ansible.com/t/getting-a-shippable-error-importing-importing-an-existing-module-into-a-new-module/25087 "2017-07-26T14:05:08Z")

</div>

Hi there, I’m working on a new module (cloudfront\_distribution) and have started getting an error in the past week with Shippable failing. The error is shown below: The test ansible-test sanity --test import --python …

---

## [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…

---

## [Announcing Ansible Container WG and weekly meeting](https://forum.ansible.com/t/announcing-ansible-container-wg-and-weekly-meeting/25084)

<div class="topic-metadata">

**Author:** [@Joshua\_jag\_Ginsberg](https://forum.ansible.com/u/Joshua_jag_Ginsberg)\
**Replies:** 0\
**Last updated:** [July 25, 2017, 5:47pm UTC](https://forum.ansible.com/t/announcing-ansible-container-wg-and-weekly-meeting/25084 "2017-07-25T17:47:19Z")

</div>

Howdy! As Ansible continues to make investments in the container-space, we resolved at AnsibleFest London to create a Working Group focused specifically on containers. This working group’s charter will cover modules/plu…

---

## [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…

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

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