# Latest

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

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

**Page:** 654

---

## [lineinfile anywhere match](https://forum.ansible.com/t/lineinfile-anywhere-match/24637)

<div class="topic-metadata">

**Author:** [@Anfield](https://forum.ansible.com/u/Anfield)\
**Replies:** 5\
**Last updated:** [June 2, 2017, 5:13pm UTC](https://forum.ansible.com/t/lineinfile-anywhere-match/24637 "2017-06-02T17:13:14Z")

</div>

How do I do an anywhere match for a string and replace with some text? The below playbook doesnt work. But just looking for example to search for part of green - reen and replace this with jabba. How do I do that? Than…

---

## [How to keep templated files around following a run in check mode?](https://forum.ansible.com/t/how-to-keep-templated-files-around-following-a-run-in-check-mode/22129)

<div class="topic-metadata">

**Author:** [@Adam\_DeConinck](https://forum.ansible.com/u/Adam_DeConinck)\
**Replies:** 1\
**Last updated:** [June 2, 2017, 3:46pm UTC](https://forum.ansible.com/t/how-to-keep-templated-files-around-following-a-run-in-check-mode/22129 "2017-06-02T15:46:04Z")

</div>

Hi all, The template module supports the --check and --diff options so you can see what changes would be made to a file without actually making the live change. For example, if I use a simple template to insert “hello w…

---

## [How to use extra ansible modules?](https://forum.ansible.com/t/how-to-use-extra-ansible-modules/23904)

<div class="topic-metadata">

**Author:** [@Chang\_Zhi](https://forum.ansible.com/u/Chang_Zhi)\
**Replies:** 1\
**Last updated:** [June 2, 2017, 3:43pm UTC](https://forum.ansible.com/t/how-to-use-extra-ansible-modules/23904 "2017-06-02T15:43:55Z")

</div>

hi, I’m a new man to using ansible. I have some simple questions about how to use ansible modules. I want to use the openvswitch module1. What commands should I execute ? Should I use " ansible " or “ansible-playbook” ? …

---

## [role parameter in combination with with\_items](https://forum.ansible.com/t/role-parameter-in-combination-with-with-items/24633)

<div class="topic-metadata">

**Author:** [@sebastien.barthelemy](https://forum.ansible.com/u/sebastien.barthelemy)\
**Replies:** 3\
**Last updated:** [June 2, 2017, 3:20pm UTC](https://forum.ansible.com/t/role-parameter-in-combination-with-with-items/24633 "2017-06-02T15:20:19Z")

</div>

Hello, I would like to apply the same role several times to a host, with different parameters. Sadly, as can be seen in the small example below, using with\_items does not work: the role is applied several times, but t…

---

## [Need help for ansible ping](https://forum.ansible.com/t/need-help-for-ansible-ping/24636)

<div class="topic-metadata">

**Author:** [@xiao\_yu](https://forum.ansible.com/u/xiao_yu)\
**Replies:** 0\
**Last updated:** [June 2, 2017, 3:01pm UTC](https://forum.ansible.com/t/need-help-for-ansible-ping/24636 "2017-06-02T15:01:11Z")

</div>

Please tell the steps to solve the issues. When I perform sudo ansible -m ping all , I have the following issues: 192.168.1.2 | FAILED! =\> { "failed": true, "msg": "winrm send\_input failed" } 192.168.1.1…

---

## [username and password](https://forum.ansible.com/t/username-and-password/24634)

<div class="topic-metadata">

**Author:** [@DOkuwa](https://forum.ansible.com/u/DOkuwa)\
**Replies:** 0\
**Last updated:** [June 2, 2017, 2:28pm UTC](https://forum.ansible.com/t/username-and-password/24634 "2017-06-02T14:28:45Z")

</div>

Hello , I am trying to define my username and password as variable in my playbook rather than run my playbook by adding the argument for username and password at the command line e.g ansible-playbook -u dokuwa1 -askpa…

---

## [Copy AWS image to multiple AWS regions using ec2\_ami\_copy](https://forum.ansible.com/t/copy-aws-image-to-multiple-aws-regions-using-ec2-ami-copy/24632)

<div class="topic-metadata">

**Author:** [@Shmulik\_Alfandari](https://forum.ansible.com/u/Shmulik_Alfandari)\
**Replies:** 0\
**Last updated:** [June 2, 2017, 12:41pm UTC](https://forum.ansible.com/t/copy-aws-image-to-multiple-aws-regions-using-ec2-ami-copy/24632 "2017-06-02T12:41:40Z")

</div>

Hello, I would like to copy aws AMI to all AWS regions using ec2\_ami\_copy. Is it possible to do that? I was able to copy to one region but I need to copy to all regions. Please let me know how to do that. Thanks, Sh…

---

## [initialising playbook var with other variable's value: variable undefined](https://forum.ansible.com/t/initialising-playbook-var-with-other-variables-value-variable-undefined/24631)

<div class="topic-metadata">

**Author:** [@Gin](https://forum.ansible.com/u/Gin)\
**Replies:** 0\
**Last updated:** [June 2, 2017, 12:04pm UTC](https://forum.ansible.com/t/initialising-playbook-var-with-other-variables-value-variable-undefined/24631 "2017-06-02T12:04:16Z")

</div>

Hi, I want to test a playbook that creates a local CoreOS cluster running on KVM: https://github.com/misho-kr/coreos-cluster-kvm Invoking create.yaml playbook ansible-playbook create.yml -i hosts The playbook defines…

---

## [Lineinfile + insertafter](https://forum.ansible.com/t/lineinfile-insertafter/24629)

<div class="topic-metadata">

**Author:** [@Mona\_Gopal](https://forum.ansible.com/u/Mona_Gopal)\
**Replies:** 1\
**Last updated:** [June 2, 2017, 11:10am UTC](https://forum.ansible.com/t/lineinfile-insertafter/24629 "2017-06-02T11:10:14Z")

</div>

Hello, The task is as below: name: replace lineinfile: dest: /tmp/sample/test\_file.txt regexp: “#}” insertafter: ’ "compute": 2,’ line: “}” state: present And below is my file content: #OPENSTACK\_API\_VERSIONS …

---

## [HOWTO: Window module development?](https://forum.ansible.com/t/howto-window-module-development/24594)

<div class="topic-metadata">

**Author:** [@bob](https://forum.ansible.com/u/bob)\
**Replies:** 1\
**Last updated:** [June 2, 2017, 10:37am UTC](https://forum.ansible.com/t/howto-window-module-development/24594 "2017-06-02T10:37:18Z")

</div>

Is there documentation on Windows module development workflow? My edit-debug cycle is extremely long. I think there should be a shorter path? I edit the windows module (win\_chocolatey in this case) on my testing linux …

---

## [EC2 and IPv4/IPv6 auto assignment](https://forum.ansible.com/t/ec2-and-ipv4-ipv6-auto-assignment/24630)

<div class="topic-metadata">

**Author:** [@rene](https://forum.ansible.com/u/rene)\
**Replies:** 0\
**Last updated:** [June 2, 2017, 9:01am UTC](https://forum.ansible.com/t/ec2-and-ipv4-ipv6-auto-assignment/24630 "2017-06-02T09:01:13Z")

</div>

Hello community, I ran into an issue that I can’t figure out by myself. We create EC2 instances using a fairly simple and straightforward ansible playbook. We also configured (manually) a custom AWS VPC (as well as co…

---

## [Ansible stat - check file exists not working](https://forum.ansible.com/t/ansible-stat-check-file-exists-not-working/24628)

<div class="topic-metadata">

**Author:** [@Anfield](https://forum.ansible.com/u/Anfield)\
**Replies:** 1\
**Last updated:** [June 2, 2017, 4:55am UTC](https://forum.ansible.com/t/ansible-stat-check-file-exists-not-working/24628 "2017-06-02T04:55:19Z")

</div>

---

## [Ansible not showing latest version after yum upgrade on Redhat 6.x](https://forum.ansible.com/t/ansible-not-showing-latest-version-after-yum-upgrade-on-redhat-6-x/24622)

<div class="topic-metadata">

**Author:** [@asilver](https://forum.ansible.com/u/asilver)\
**Replies:** 2\
**Last updated:** [June 2, 2017, 4:46am UTC](https://forum.ansible.com/t/ansible-not-showing-latest-version-after-yum-upgrade-on-redhat-6-x/24622 "2017-06-02T04:46:34Z")

</div>

Hello All, Before upgrading the Ansible version is 2.1.2. After using yum to update the Ansible package, the version still states 2.1.2?? What am missing? Did I do something wrong here? Thx Al \[allan@SDNAUTOS02 ~\]$ a…

---

## [Schedule periodic backup task](https://forum.ansible.com/t/schedule-periodic-backup-task/24616)

<div class="topic-metadata">

**Author:** [@Mitiryl](https://forum.ansible.com/u/Mitiryl)\
**Replies:** 2\
**Last updated:** [June 2, 2017, 12:35am UTC](https://forum.ansible.com/t/schedule-periodic-backup-task/24616 "2017-06-02T00:35:23Z")

</div>

Hi everyone, I need to perform every night a backup of our databases. At the moment, we use Ansible cron module to set up a python script that runs on the remote machine every night. The same operation could be done usi…

---

## [EC2 multiple ssd volumes](https://forum.ansible.com/t/ec2-multiple-ssd-volumes/24627)

<div class="topic-metadata">

**Author:** [@eric\_skaggs1](https://forum.ansible.com/u/eric_skaggs1)\
**Replies:** 1\
**Last updated:** [June 1, 2017, 9:45pm UTC](https://forum.ansible.com/t/ec2-multiple-ssd-volumes/24627 "2017-06-01T21:45:14Z")

</div>

ansible 2.3.0.0 I’m trying to create multiple ec2 volumes on a single instances. I’ve tried the following variations:volumes: device\_name: /dev/xvda volume\_type: gp2 volume\_size: 40 delete\_on\_termination: true devi…

---

## [Inventory pattern matching from lookup plugin](https://forum.ansible.com/t/inventory-pattern-matching-from-lookup-plugin/24624)

<div class="topic-metadata">

**Author:** [@randy.syring](https://forum.ansible.com/u/randy.syring)\
**Replies:** 3\
**Last updated:** [June 1, 2017, 8:24pm UTC](https://forum.ansible.com/t/inventory-pattern-matching-from-lookup-plugin/24624 "2017-06-01T20:24:46Z")

</div>

I want to develop a lookup plugin that would take a string like “mygroup:!badhost” and return the list of host objects that match that pattern. Based on my inspection of the Ansible source code, it seems like I could pr…

---

## [Ansible 2.3.1 and 2.1.6 FINAL have been released!](https://forum.ansible.com/t/ansible-2-3-1-and-2-1-6-final-have-been-released/24626)

<div class="topic-metadata">

**Author:** [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Replies:** 0\
**Last updated:** [June 1, 2017, 7:37pm UTC](https://forum.ansible.com/t/ansible-2-3-1-and-2-1-6-final-have-been-released/24626 "2017-06-01T19:37:34Z")

</div>

Hi all, we are happy to announce that Ansible 2.3.1 and 2.1.6 final have been released. The 2.3.1 release fixes several bugs, and both releases include a fix for CVE-2017-7481 (SEVERITY: Moderate). As always, these upd…

---

## [Free version of Ansible](https://forum.ansible.com/t/free-version-of-ansible/24617)

<div class="topic-metadata">

**Author:** [@Carlos\_Valencia](https://forum.ansible.com/u/Carlos_Valencia)\
**Replies:** 2\
**Last updated:** [June 1, 2017, 7:07pm UTC](https://forum.ansible.com/t/free-version-of-ansible/24617 "2017-06-01T19:07:02Z")

</div>

Hello I am new to Ansible and have found it quite powerful and useful. I would like to continue looking at it but apparently I need a license ? Is there a freeware version I could have for personal use?

---

## [Where is ansible when installing via pip?](https://forum.ansible.com/t/where-is-ansible-when-installing-via-pip/24623)

<div class="topic-metadata">

**Author:** [@Tadas\_Talaikis](https://forum.ansible.com/u/Tadas_Talaikis)\
**Replies:** 1\
**Last updated:** [June 1, 2017, 6:05pm UTC](https://forum.ansible.com/t/where-is-ansible-when-installing-via-pip/24623 "2017-06-01T18:05:24Z")

</div>

Documentation states I can install ansible via pip, but after installing, doesn’t seem it’s available via command line: bash: /usr/bin/ansible: No such file or directory which ansible … Ansible v. 2.4.0, Ubuntu 16.10…

---

## [Concurrent playbooks and synchronization](https://forum.ansible.com/t/concurrent-playbooks-and-synchronization/24530)

<div class="topic-metadata">

**Author:** [@cevich](https://forum.ansible.com/u/cevich)\
**Replies:** 6\
**Last updated:** [June 1, 2017, 4:34pm UTC](https://forum.ansible.com/t/concurrent-playbooks-and-synchronization/24530 "2017-06-01T16:34:49Z")

</div>

Hi, I have a use case where playbooks are sometimes (unpredictably) run concurrently by a simple job-scheduling system. Most of them touch a common set of cloud systems, on their way to affecting other cloud systems. Th…

---

## [win\_template or win\_copy Ansible 2.3 Windows 2008R2 - possible bug.](https://forum.ansible.com/t/win-template-or-win-copy-ansible-2-3-windows-2008r2-possible-bug/24608)

<div class="topic-metadata">

**Author:** [@Kent\_Collins](https://forum.ansible.com/u/Kent_Collins)\
**Replies:** 5\
**Last updated:** [June 1, 2017, 1:58pm UTC](https://forum.ansible.com/t/win-template-or-win-copy-ansible-2-3-windows-2008r2-possible-bug/24608 "2017-06-01T13:58:10Z")

</div>

Ansible version - 2.3 Python version - 2.7.12 My playbook runs through until it stumbles on copying some SSL certs across to a remote Windows 2008R2 box. The same error using both win\_template and win\_copy when trying …

---

## [windows 2012 server SSL authentication](https://forum.ansible.com/t/windows-2012-server-ssl-authentication/24487)

<div class="topic-metadata">

**Author:** [@Hamdi\_Ben\_Zekri](https://forum.ansible.com/u/Hamdi_Ben_Zekri)\
**Replies:** 4\
**Last updated:** [June 1, 2017, 1:50pm UTC](https://forum.ansible.com/t/windows-2012-server-ssl-authentication/24487 "2017-06-01T13:50:47Z")

</div>

Hello, I have followed all the steps in this tutorial: http://www.hurryupandwait.io/blog/certificate-password-less-based-authentication-in-winrm to setup a passwordless ssl based authentication between a centos 7 local…

---

## [Windows SecPol](https://forum.ansible.com/t/windows-secpol/24602)

<div class="topic-metadata">

**Author:** [@David\_Rose](https://forum.ansible.com/u/David_Rose)\
**Replies:** 1\
**Last updated:** [June 1, 2017, 12:16pm UTC](https://forum.ansible.com/t/windows-secpol/24602 "2017-06-01T12:16:42Z")

</div>

Hello all! Brand new to Ansible. I just successfully got the ad-hoc Windows ping/pong to work! I wanted to ask a question related to Windows secpol (Security Policy). Is there a module to allow Ansible to set SecPol va…

---

## [Anyone using ansible to manage nexus and ios-xr devices?](https://forum.ansible.com/t/anyone-using-ansible-to-manage-nexus-and-ios-xr-devices/22563)

<div class="topic-metadata">

**Author:** [@Ryan\_Jones](https://forum.ansible.com/u/Ryan_Jones)\
**Replies:** 5\
**Last updated:** [June 1, 2017, 11:49am UTC](https://forum.ansible.com/t/anyone-using-ansible-to-manage-nexus-and-ios-xr-devices/22563 "2017-06-01T11:49:52Z")

</div>

I'm trying to put together a poc. The issue is i have no idea where to start. I'm somewhat familiar with ansible for servers but I'd like to start managing my network infra with ansible. O e of the questions i have is ho…

---

## [Set vmware vm tag with vsphere\_guest module](https://forum.ansible.com/t/set-vmware-vm-tag-with-vsphere-guest-module/24620)

<div class="topic-metadata">

**Author:** [@reboot62](https://forum.ansible.com/u/reboot62)\
**Replies:** 0\
**Last updated:** [June 1, 2017, 10:54am UTC](https://forum.ansible.com/t/set-vmware-vm-tag-with-vsphere-guest-module/24620 "2017-06-01T10:54:56Z")

</div>

Hello :wink: I’d like to know if there is a way to set a vmware vm tag with vsphere\_guest module ? Thanks Regards

---

## [Global environment variables](https://forum.ansible.com/t/global-environment-variables/24601)

<div class="topic-metadata">

**Author:** [@goreilly](https://forum.ansible.com/u/goreilly)\
**Replies:** 1\
**Last updated:** [June 1, 2017, 10:53am UTC](https://forum.ansible.com/t/global-environment-variables/24601 "2017-06-01T10:53:05Z")

</div>

I have installed some software into /usr/local/bin on a server. I want to reference use them without passing environment to every task or playbook. \` - command: foo environment: PATH: ‘/usr/local/bin:{{ ansible\_env…

---

## [subnet id does not exist - launching ec2 instance using ansible](https://forum.ansible.com/t/subnet-id-does-not-exist-launching-ec2-instance-using-ansible/24619)

<div class="topic-metadata">

**Author:** [@Mohit\_Garg](https://forum.ansible.com/u/Mohit_Garg)\
**Replies:** 0\
**Last updated:** [June 1, 2017, 10:52am UTC](https://forum.ansible.com/t/subnet-id-does-not-exist-launching-ec2-instance-using-ansible/24619 "2017-06-01T10:52:04Z")

</div>

Hi, I am trying a launch a new ec2 instance using ansible version 2.2.1.0. My task file looks like:

---

## [Set a vmware vm tag with module vsphere\_guest](https://forum.ansible.com/t/set-a-vmware-vm-tag-with-module-vsphere-guest/24618)

<div class="topic-metadata">

**Author:** [@reboot62](https://forum.ansible.com/u/reboot62)\
**Replies:** 0\
**Last updated:** [June 1, 2017, 10:45am UTC](https://forum.ansible.com/t/set-a-vmware-vm-tag-with-module-vsphere-guest/24618 "2017-06-01T10:45:50Z")

</div>

Hello I’d like to know if there is a way to set a vmware vm tag with the vsphere\_guest module ? Thanks Regards

---

## [Request for enhancement of the documentation for ansible module vmware\_guest\_snapshot](https://forum.ansible.com/t/request-for-enhancement-of-the-documentation-for-ansible-module-vmware-guest-snapshot/24611)

<div class="topic-metadata">

**Author:** [@Jorg\_Kastning](https://forum.ansible.com/u/Jorg_Kastning)\
**Replies:** 2\
**Last updated:** [June 1, 2017, 8:46am UTC](https://forum.ansible.com/t/request-for-enhancement-of-the-documentation-for-ansible-module-vmware-guest-snapshot/24611 "2017-06-01T08:46:24Z")

</div>

Hi Folks, I would like to request an enhancement of the module documentation for the vmware\_guest\_snapshot module. From the GitHub issue 22644 and this thread I know that using the parameter ‘folder’ is mandatory. But …

---

## [Ansible On Read-Only Systems](https://forum.ansible.com/t/ansible-on-read-only-systems/24614)

<div class="topic-metadata">

**Author:** [@Ryan1](https://forum.ansible.com/u/Ryan1)\
**Replies:** 3\
**Last updated:** [June 1, 2017, 2:53am UTC](https://forum.ansible.com/t/ansible-on-read-only-systems/24614 "2017-06-01T02:53:54Z")

</div>

The host that I am executing the Ansible commands from is a standard RHEL 7.2 install. The remote nodes however are booting a read-only root file system (RHEL 7.3), with a layer of writable directories that I can specify…

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

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