# Latest

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

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

**Page:** 685

---

## [Arguments for/against using vault password files](https://forum.ansible.com/t/arguments-for-against-using-vault-password-files/23744)

<div class="topic-metadata">

**Author:** [@Andrew\_Feller](https://forum.ansible.com/u/Andrew_Feller)\
**Replies:** 1\
**Last updated:** [February 16, 2017, 2:02pm UTC](https://forum.ansible.com/t/arguments-for-against-using-vault-password-files/23744 "2017-02-16T14:02:28Z")

</div>

Hi everyone, I would appreciate hearing peoples’ various arguments for/against using vault password files versus manually entering passwords. I’ve been manually entering in vault passwords as I didn’t want to leave key…

---

## [Replace multiple lines in a file at different locations](https://forum.ansible.com/t/replace-multiple-lines-in-a-file-at-different-locations/23743)

<div class="topic-metadata">

**Author:** [@Suresh\_Grandhi](https://forum.ansible.com/u/Suresh_Grandhi)\
**Replies:** 1\
**Last updated:** [February 16, 2017, 1:58pm UTC](https://forum.ansible.com/t/replace-multiple-lines-in-a-file-at-different-locations/23743 "2017-02-16T13:58:45Z")

</div>

I am looking to replace or delete redundant lines in a file at different line numbers. For example, a file has the following content In this case, I want to remove and replace with . Is there a possibili…

---

## [Telnet module for ansible](https://forum.ansible.com/t/telnet-module-for-ansible/23742)

<div class="topic-metadata">

**Author:** [@Madhu](https://forum.ansible.com/u/Madhu)\
**Replies:** 1\
**Last updated:** [February 16, 2017, 11:32am UTC](https://forum.ansible.com/t/telnet-module-for-ansible/23742 "2017-02-16T11:32:01Z")

</div>

Is there any telnet module available for Ansible? I want to telnet to server and execute some command for a particular task. Any body please help?

---

## [Pass dynamic JSON/YAML inventory to ansible CLI](https://forum.ansible.com/t/pass-dynamic-json-yaml-inventory-to-ansible-cli/23737)

<div class="topic-metadata">

**Author:** [@W\_Dec](https://forum.ansible.com/u/W_Dec)\
**Replies:** 3\
**Last updated:** [February 16, 2017, 9:48am UTC](https://forum.ansible.com/t/pass-dynamic-json-yaml-inventory-to-ansible-cli/23737 "2017-02-16T09:48:31Z")

</div>

Hi All, while trying, and so far not very successfully, to work with the (overly verbose) Ansible 2 programmatic API, I came to think of another possible solution to my problem, but am looking for tips on how to put it …

---

## [ios\_config: match confusion](https://forum.ansible.com/t/ios-config-match-confusion/23732)

<div class="topic-metadata">

**Author:** [@Adam\_Wilkins](https://forum.ansible.com/u/Adam_Wilkins)\
**Replies:** 1\
**Last updated:** [February 16, 2017, 2:04am UTC](https://forum.ansible.com/t/ios-config-match-confusion/23732 "2017-02-16T02:04:49Z")

</div>

I’m a little confused on the various match clauses in the ‘ios\_config’ module. I understand IOS very well. I’m trying to find use cases for the different options here. Does anyone have any example of when each would be …

---

## [Can I provide .pyo files as module\_path library](https://forum.ansible.com/t/can-i-provide-pyo-files-as-module-path-library/23733)

<div class="topic-metadata">

**Author:** [@Poojitha\_A](https://forum.ansible.com/u/Poojitha_A)\
**Replies:** 4\
**Last updated:** [February 16, 2017, 1:27am UTC](https://forum.ansible.com/t/can-i-provide-pyo-files-as-module-path-library/23733 "2017-02-16T01:27:58Z")

</div>

Hi Guys. currently we are shipping our code as .pyo to ensure a minimal security to our python code base. I wanted to know if passing the module\_path=‘library\_path’ where the library path has .pyo files instead of .py …

---

## [Point Ansible at alternate ssh config file](https://forum.ansible.com/t/point-ansible-at-alternate-ssh-config-file/23741)

<div class="topic-metadata">

**Author:** [@Jeff\_Richards](https://forum.ansible.com/u/Jeff_Richards)\
**Replies:** 2\
**Last updated:** [February 15, 2017, 9:23pm UTC](https://forum.ansible.com/t/point-ansible-at-alternate-ssh-config-file/23741 "2017-02-15T21:23:18Z")

</div>

I’m trying to have Ansible use an alternate ssh config file (i.e. not ~/.ssh/config). My understanding was that you achieve this via adding a -F option in ssh\_args in /etc/ansible/ansible.cfg. So my ssh\_args now looks l…

---

## [Variable president - default and variable in playbook](https://forum.ansible.com/t/variable-president-default-and-variable-in-playbook/23721)

<div class="topic-metadata">

**Author:** [@Ben\_Wright](https://forum.ansible.com/u/Ben_Wright)\
**Replies:** 2\
**Last updated:** [February 15, 2017, 5:18pm UTC](https://forum.ansible.com/t/variable-president-default-and-variable-in-playbook/23721 "2017-02-15T17:18:12Z")

</div>

Hi Please bear with me. I have created a role and in the defaults/main.yml I have created a variable tibco\_install\_bin for which I have a value. I have created a playbook, and within that playbook I have created other…

---

## [Experimantal support for Windows Containers](https://forum.ansible.com/t/experimantal-support-for-windows-containers/23714)

<div class="topic-metadata">

**Author:** [@Trond\_Hindenes](https://forum.ansible.com/u/Trond_Hindenes)\
**Replies:** 3\
**Last updated:** [February 15, 2017, 5:12pm UTC](https://forum.ansible.com/t/experimantal-support-for-windows-containers/23714 "2017-02-15T17:12:43Z")

</div>

Hi, I’ve hacked a bit on Windows Container support for Ansible during the weekend, and have pushed a working copy here: https://github.com/trondhindenes/ansible/tree/win\_containers Essentially the win\_containers thing…

---

## [RedHat Subscription Manager enable/disable repos](https://forum.ansible.com/t/redhat-subscription-manager-enable-disable-repos/23739)

<div class="topic-metadata">

**Author:** [@Zack\_Windoloski](https://forum.ansible.com/u/Zack_Windoloski)\
**Replies:** 0\
**Last updated:** [February 15, 2017, 3:19pm UTC](https://forum.ansible.com/t/redhat-subscription-manager-enable-disable-repos/23739 "2017-02-15T15:19:28Z")

</div>

After registering to a subscription using the redhat\_subscription module, I would then like to enable and disable some repos. This task would be done manually using “subscription-manager repos --enable=myrepo” Would us…

---

## [Possible bug in iptables module](https://forum.ansible.com/t/possible-bug-in-iptables-module/23731)

<div class="topic-metadata">

**Author:** [@Juan\_Pablo\_Genovese](https://forum.ansible.com/u/Juan_Pablo_Genovese)\
**Replies:** 2\
**Last updated:** [February 15, 2017, 2:53pm UTC](https://forum.ansible.com/t/possible-bug-in-iptables-module/23731 "2017-02-15T14:53:18Z")

</div>

Hello everybody! I’m having problems with the iptables module trying to execute this task: iptables: chain: INPUT match: conntrack ctstate: ESTABLISHED,RELATED jump: ACCEPT This leads to this error: TASK \[iptabl…

---

## [How to specify a virtual network in a different resource group when creating a new Azure VM?](https://forum.ansible.com/t/how-to-specify-a-virtual-network-in-a-different-resource-group-when-creating-a-new-azure-vm/23446)

<div class="topic-metadata">

**Author:** [@Vincent\_Ngan](https://forum.ansible.com/u/Vincent_Ngan)\
**Replies:** 3\
**Last updated:** [February 15, 2017, 2:49pm UTC](https://forum.ansible.com/t/how-to-specify-a-virtual-network-in-a-different-resource-group-when-creating-a-new-azure-vm/23446 "2017-02-15T14:49:29Z")

</div>

Hi, I am trying to create a VM in Azure using Ansible. The setup of our Azure configuration is that the virtual network is created in a different resource manager from the virtual machines’. When I using azure\_rm\_virtua…

---

## [Ansible 2.2.0.0 - module win\_file & check mode](https://forum.ansible.com/t/ansible-2-2-0-0-module-win-file-check-mode/23163)

<div class="topic-metadata">

**Author:** [@fabrice.perko](https://forum.ansible.com/u/fabrice.perko)\
**Replies:** 1\
**Last updated:** [February 15, 2017, 1:32pm UTC](https://forum.ansible.com/t/ansible-2-2-0-0-module-win-file-check-mode/23163 "2017-02-15T13:32:11Z")

</div>

Hello everybody, I have just discovered that the win\_file module does not support check\_mode. Is it a regression? If not, are there any developments in progress for this module to support check mode? Regards, Fabric…

---

## [win\_firewall\_rule.ps1 to support multiple values for remoteip and icmp protocol](https://forum.ansible.com/t/win-firewall-rule-ps1-to-support-multiple-values-for-remoteip-and-icmp-protocol/23735)

<div class="topic-metadata">

**Author:** [@Mario\_S1](https://forum.ansible.com/u/Mario_S1)\
**Replies:** 1\
**Last updated:** [February 15, 2017, 12:49pm UTC](https://forum.ansible.com/t/win-firewall-rule-ps1-to-support-multiple-values-for-remoteip-and-icmp-protocol/23735 "2017-02-15T12:49:14Z")

</div>

New to Ansible here… I can’t seem to make multiple values work for the remoteip variable. For instance, I want to allow multiple IP subnets to work through a firewall rule. And also noticed the ICMPv4 protocol isn’t s…

---

## [Variable in JSON](https://forum.ansible.com/t/variable-in-json/23709)

<div class="topic-metadata">

**Author:** [@Alok\_Ranjan1](https://forum.ansible.com/u/Alok_Ranjan1)\
**Replies:** 1\
**Last updated:** [February 15, 2017, 12:11pm UTC](https://forum.ansible.com/t/variable-in-json/23709 "2017-02-15T12:11:03Z")

</div>

Dear All, Can anyone please let me know how to use a register variable in JSON. Where JSON is passed as an argument to a command using command module. Any help or assistance would be highly appreciated. Thanks, Alok …

---

## [Module fetch -- checksum error](https://forum.ansible.com/t/module-fetch-checksum-error/18138)

<div class="topic-metadata">

**Author:** [@Jacek](https://forum.ansible.com/u/Jacek)\
**Replies:** 3\
**Last updated:** [February 15, 2017, 9:59am UTC](https://forum.ansible.com/t/module-fetch-checksum-error/18138 "2017-02-15T09:59:51Z")

</div>

Hi, I’ve been using the fetch module to collect some files from the remote site and most of the time it works fine except when trying to fetch a little larger file (740MB). The error report is as follows:

---

## [Unable to use test-module to develop modules under Arch Linux](https://forum.ansible.com/t/unable-to-use-test-module-to-develop-modules-under-arch-linux/23272)

<div class="topic-metadata">

**Author:** [@Andrew\_Klaus](https://forum.ansible.com/u/Andrew_Klaus)\
**Replies:** 4\
**Last updated:** [February 15, 2017, 6:34am UTC](https://forum.ansible.com/t/unable-to-use-test-module-to-develop-modules-under-arch-linux/23272 "2017-02-15T06:34:20Z")

</div>

Hi guys, I’m trying to write some modules for Ansible, but getting stumped on this error below… OS: Arch Linux Linux laps 4.4.37-1-lts #1 SMP Thu Dec 8 22:29:57 CET 2016 x86\_64 GNU/Linux I git cloned the ansible repo …

---

## [Abort executing playbook if condition not match](https://forum.ansible.com/t/abort-executing-playbook-if-condition-not-match/23728)

<div class="topic-metadata">

**Author:** [@DHAVAL\_JAISWAL](https://forum.ansible.com/u/DHAVAL_JAISWAL)\
**Replies:** 3\
**Last updated:** [February 15, 2017, 4:24am UTC](https://forum.ansible.com/t/abort-executing-playbook-if-condition-not-match/23728 "2017-02-15T04:24:16Z")

</div>

If condition fails it should not go for the next step and exit from there only. In following situation, when: C != test\_val it should exit from here only instead of going to the next step. How can i achieve this. nam…

---

## [buidling egg for ansible modules](https://forum.ansible.com/t/buidling-egg-for-ansible-modules/23734)

<div class="topic-metadata">

**Author:** [@Poojitha\_A](https://forum.ansible.com/u/Poojitha_A)\
**Replies:** 0\
**Last updated:** [February 15, 2017, 3:11am UTC](https://forum.ansible.com/t/buidling-egg-for-ansible-modules/23734 "2017-02-15T03:11:12Z")

</div>

Hi Guys, I have a requirement, to build .pyo for our ansible modules and distribute as egg. However, while running ansible, its not able to detect the module. Module not found is thrown. Can someone please comment, if …

---

## [How can I iterate over a dictionary in a task?](https://forum.ansible.com/t/how-can-i-iterate-over-a-dictionary-in-a-task/23704)

<div class="topic-metadata">

**Author:** [@ZillaYT](https://forum.ansible.com/u/ZillaYT)\
**Replies:** 8\
**Last updated:** [February 14, 2017, 6:10pm UTC](https://forum.ansible.com/t/how-can-i-iterate-over-a-dictionary-in-a-task/23704 "2017-02-14T18:10:09Z")

</div>

Say I have the following dictionary? \` war\_files: server1: file1.war file2.war server2: file1.war file2.war file3.war \` Now I want to iterate over this, say a get\_url task: \` name: Get the files depending on s…

---

## [How to start a background task in Ansible 2.x through the API?](https://forum.ansible.com/t/how-to-start-a-background-task-in-ansible-2-x-through-the-api/23718)

<div class="topic-metadata">

**Author:** [@fhd](https://forum.ansible.com/u/fhd)\
**Replies:** 1\
**Last updated:** [February 14, 2017, 3:57pm UTC](https://forum.ansible.com/t/how-to-start-a-background-task-in-ansible-2-x-through-the-api/23718 "2017-02-14T15:57:20Z")

</div>

Before Ansible 2, one could run a background module like so: self.runner = ansible.runner.Runner( module\_name=self.module\_name, module\_args=self.module\_args, pattern=self.pattern, forks=self.forks, sudo=True, back…

---

## [user creation with sudo permissions](https://forum.ansible.com/t/user-creation-with-sudo-permissions/23720)

<div class="topic-metadata">

**Author:** [@Pedro\_Ferro](https://forum.ansible.com/u/Pedro_Ferro)\
**Replies:** 2\
**Last updated:** [February 14, 2017, 9:22am UTC](https://forum.ansible.com/t/user-creation-with-sudo-permissions/23720 "2017-02-14T09:22:22Z")

</div>

Hi, I’m not an IT guy and I’m trying to start using Ansible, so you have to excuse basic questions like this one. What is the ansible equivalent for this: sudo adduser admin sudo adduser admin sudo Thanks in advan…

---

## [vmware\_guest - unsupported parameter for module: networks](https://forum.ansible.com/t/vmware-guest-unsupported-parameter-for-module-networks/23723)

<div class="topic-metadata">

**Author:** [@Ricardo\_Esteves](https://forum.ansible.com/u/Ricardo_Esteves)\
**Replies:** 2\
**Last updated:** [February 14, 2017, 7:39am UTC](https://forum.ansible.com/t/vmware-guest-unsupported-parameter-for-module-networks/23723 "2017-02-14T07:39:56Z")

</div>

Hi, I’m trying to execute this playbook with the latest version from git: Create a VM from a template hosts: 127.0.0.1 connection: local gather\_facts: no tasks: name: create the VM vmware\_guest: hostname: XXX.XXX…

---

## [Test Problem](https://forum.ansible.com/t/test-problem/23722)

<div class="topic-metadata">

**Author:** [@Ben\_Wright](https://forum.ansible.com/u/Ben_Wright)\
**Replies:** 0\
**Last updated:** [February 13, 2017, 9:30pm UTC](https://forum.ansible.com/t/test-problem/23722 "2017-02-13T21:30:20Z")

</div>

Test - as previous did not appear

---

## [Module: ec2\_eni failing](https://forum.ansible.com/t/module-ec2-eni-failing/23719)

<div class="topic-metadata">

**Author:** [@Waldemar\_Druszcz](https://forum.ansible.com/u/Waldemar_Druszcz)\
**Replies:** 0\
**Last updated:** [February 13, 2017, 4:22pm UTC](https://forum.ansible.com/t/module-ec2-eni-failing/23719 "2017-02-13T16:22:01Z")

</div>

Hi, I try to run ec2\_eni module - but it comes back with error: FAILED! =\> { 2017-02-13T15:59:21+0000 “changed”: false, 2017-02-13T15:59:21+0000 “failed”: true, 2017-02-13T15:59:21+0000 “invocation”: { 2017-02-13T1…

---

## [Internal error in vmware\_guest (required and default are mutually exclusive for datacenter)](https://forum.ansible.com/t/internal-error-in-vmware-guest-required-and-default-are-mutually-exclusive-for-datacenter/23716)

<div class="topic-metadata">

**Author:** [@Takeshi\_Kuramochi](https://forum.ansible.com/u/Takeshi_Kuramochi)\
**Replies:** 2\
**Last updated:** [February 13, 2017, 2:50pm UTC](https://forum.ansible.com/t/internal-error-in-vmware-guest-required-and-default-are-mutually-exclusive-for-datacenter/23716 "2017-02-13T14:50:20Z")

</div>

Hi all, I use ansible v2.3. when I tried to create from vm template by using vmware\_guest module, I saw an internal error below; PLAYBOOK: vm.yml

---

## [ansible-playbook silently fails when role is missing](https://forum.ansible.com/t/ansible-playbook-silently-fails-when-role-is-missing/23708)

<div class="topic-metadata">

**Author:** [@Giovanni\_Tirloni](https://forum.ansible.com/u/Giovanni_Tirloni)\
**Replies:** 1\
**Last updated:** [February 13, 2017, 2:43pm UTC](https://forum.ansible.com/t/ansible-playbook-silently-fails-when-role-is-missing/23708 "2017-02-13T14:43:28Z")

</div>

Hello, When running a playbook that includes a role that is missing from the roles directory, Ansible runs the playbook without complaining (except the tasks from the missing role are not included, obviously). Would it…

---

## [How to iterate over hash of arrays](https://forum.ansible.com/t/how-to-iterate-over-hash-of-arrays/23711)

<div class="topic-metadata">

**Author:** [@D11](https://forum.ansible.com/u/D11)\
**Replies:** 1\
**Last updated:** [February 13, 2017, 2:24pm UTC](https://forum.ansible.com/t/how-to-iterate-over-hash-of-arrays/23711 "2017-02-13T14:24:11Z")

</div>

Hello, I have below strucure. vars: locations: parent\_location: A child\_location: a1 a2 a3 parent\_location: B child\_location: b1 b2 b3 parent\_location: C child\_location: c1 c2 c3 now i have task something like b…

---

## [Using variable in JSON](https://forum.ansible.com/t/using-variable-in-json/23712)

<div class="topic-metadata">

**Author:** [@Alok\_Ranjan1](https://forum.ansible.com/u/Alok_Ranjan1)\
**Replies:** 1\
**Last updated:** [February 13, 2017, 2:18pm UTC](https://forum.ansible.com/t/using-variable-in-json/23712 "2017-02-13T14:18:37Z")

</div>

Dear All, Can anyone please help/assist me to figure out the correct way of using variables in JSON. I have a command where I am passing JSON as an argument but their is something going wrong. Any help would be highly…

---

## [Software Management Cross Distribution](https://forum.ansible.com/t/software-management-cross-distribution/23715)

<div class="topic-metadata">

**Author:** [@mailinglists-ansible](https://forum.ansible.com/u/mailinglists-ansible)\
**Replies:** 1\
**Last updated:** [February 13, 2017, 2:17pm UTC](https://forum.ansible.com/t/software-management-cross-distribution/23715 "2017-02-13T14:17:06Z")

</div>

Hi Guys, has any one generated a "Master" module to install software ? I want to have a software installed in a mixed environment (Ubuntu Arch FreeBSD ... ) and I would prefer not having to copy paste for a role-$DIS…

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

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