# Ansible Project

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

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

**Page:** 264

---

## [lineinfile module gives error: "chown failed: \[Errno 1\] Operation not permitted:](https://forum.ansible.com/t/lineinfile-module-gives-error-chown-failed-errno-1-operation-not-permitted/27417)

<div class="topic-metadata">

**Author:** [@arnab\_sen](https://forum.ansible.com/u/arnab_sen)\
**Replies:** 1\
**Last updated:** [May 1, 2018, 6:30pm UTC](https://forum.ansible.com/t/lineinfile-module-gives-error-chown-failed-errno-1-operation-not-permitted/27417 "2018-05-01T18:30:43Z")

</div>

Playbook I am trying to chnage some test in a property file using “lineinfile” module. I am getting the below exception. On my host, there is a sudo user (testuser). sudo method is “sudo su - testuser”

---

## [Can't Access to Jenkins from anywhere](https://forum.ansible.com/t/cant-access-to-jenkins-from-anywhere/27418)

<div class="topic-metadata">

**Author:** [@yfa](https://forum.ansible.com/u/yfa)\
**Replies:** 1\
**Last updated:** [May 1, 2018, 6:28pm UTC](https://forum.ansible.com/t/cant-access-to-jenkins-from-anywhere/27418 "2018-05-01T18:28:38Z")

</div>

I have installed the jenkins roles ans it works fine locally. I want to access to my jenkins server with IP:8080 /hostname:8080 but it doesn’t works. System config: Ubuntum 16.04 Linux VM (Azure) Jenkins roles : geer…

---

## [Unable to run playbook (Syntax Error)](https://forum.ansible.com/t/unable-to-run-playbook-syntax-error/27416)

<div class="topic-metadata">

**Author:** [@Joshua\_Hill](https://forum.ansible.com/u/Joshua_Hill)\
**Replies:** 7\
**Last updated:** [May 1, 2018, 1:43pm UTC](https://forum.ansible.com/t/unable-to-run-playbook-syntax-error/27416 "2018-05-01T13:43:53Z")

</div>

Can someone show me where my mistakes are with the below playbook? When i try to run this playbook it tells me it fails at name: run multiple commands on remote nodes ^ here \`

---

## [Using 2 ansible versions](https://forum.ansible.com/t/using-2-ansible-versions/27419)

<div class="topic-metadata">

**Author:** [@Varun\_Chopra](https://forum.ansible.com/u/Varun_Chopra)\
**Replies:** 2\
**Last updated:** [May 1, 2018, 11:42am UTC](https://forum.ansible.com/t/using-2-ansible-versions/27419 "2018-05-01T11:42:38Z")

</div>

Hi, I’m trying to install Ansible 2.3 on a server with 2.5 already present. I built and installed virtualenv and download ansible 2.3 and initiated a virtualenv using source ./hacking/env-setup Will this new installat…

---

## [winrm not installed on CentOS - winrm added from epel](https://forum.ansible.com/t/winrm-not-installed-on-centos-winrm-added-from-epel/23353)

<div class="topic-metadata">

**Author:** [@Tom\_Albrecht](https://forum.ansible.com/u/Tom_Albrecht)\
**Replies:** 5\
**Last updated:** [May 1, 2018, 10:22am UTC](https://forum.ansible.com/t/winrm-not-installed-on-centos-winrm-added-from-epel/23353 "2018-05-01T10:22:20Z")

</div>

Hi, I’m working through trying ansible to manage windows hosts for the first time using CentOS7 as my control machine and Windows 2012r2 as my target. The system I’m building is disconnected from the internet, so my on…

---

## [Query ::- Ansible VPN connect](https://forum.ansible.com/t/query-ansible-vpn-connect/27396)

<div class="topic-metadata">

**Author:** [@Bishwajit\_Samanta](https://forum.ansible.com/u/Bishwajit_Samanta)\
**Replies:** 2\
**Last updated:** [May 1, 2018, 2:15am UTC](https://forum.ansible.com/t/query-ansible-vpn-connect/27396 "2018-05-01T02:15:57Z")

</div>

Hi all, I have a query about Connecting Ansible with VPN. In our Environment we have Cisco VPN connected. Would it be possible to connect ansible to those systems connected via CISCO VPN and then perform the tasks i g…

---

## [Copy file from S3 to Remote Host](https://forum.ansible.com/t/copy-file-from-s3-to-remote-host/27409)

<div class="topic-metadata">

**Author:** [@ali.khawaja](https://forum.ansible.com/u/ali.khawaja)\
**Replies:** 1\
**Last updated:** [April 30, 2018, 8:01pm UTC](https://forum.ansible.com/t/copy-file-from-s3-to-remote-host/27409 "2018-04-30T20:01:09Z")

</div>

Hi Everyone, I want to copy a file from S3 to an EC2 host. How can I achieve that? Aws\_s3 module has destination but I am not sure how can I use that to provide a remote server location?

---

## [win\_mapped\_drive is/was failing](https://forum.ansible.com/t/win-mapped-drive-is-was-failing/27413)

<div class="topic-metadata">

**Author:** [@william.dossett](https://forum.ansible.com/u/william.dossett)\
**Replies:** 0\
**Last updated:** [April 30, 2018, 7:33pm UTC](https://forum.ansible.com/t/win-mapped-drive-is-was-failing/27413 "2018-04-30T19:33:27Z")

</div>

Thought I would just mention this as it’s been driving me crazy all morning… and I still haven’t really got it working I was using win\_mapped drive to map a network drive for a user so that it would be available for tha…

---

## [Replacing WITH\_SUBELEMENTS loop with 2.5 new syntax](https://forum.ansible.com/t/replacing-with-subelements-loop-with-2-5-new-syntax/27411)

<div class="topic-metadata">

**Author:** [@aetbnpp](https://forum.ansible.com/u/aetbnpp)\
**Replies:** 0\
**Last updated:** [April 30, 2018, 1:25pm UTC](https://forum.ansible.com/t/replacing-with-subelements-loop-with-2-5-new-syntax/27411 "2018-04-30T13:25:09Z")

</div>

Hello all, I’m trying to update my playbooks with the simplified LOOP new syntax, every went well until I tried to remove WITH\_SUBELEMENTS loops. My dictionary looks like this soft: version: X.X.X.X options: command…

---

## [Error while trying to ping a WIN 2016](https://forum.ansible.com/t/error-while-trying-to-ping-a-win-2016/27343)

<div class="topic-metadata">

**Author:** [@Selva\_Kumar](https://forum.ansible.com/u/Selva_Kumar)\
**Replies:** 2\
**Last updated:** [April 30, 2018, 9:32am UTC](https://forum.ansible.com/t/error-while-trying-to-ping-a-win-2016/27343 "2018-04-30T09:32:32Z")

</div>

Hi Team, I’m running Ansible 2.4.3.0 on a Ubuntu server. While trying to access a Windows 2016 server, getting below error. The DNS is working fine. Can someone help me in fixing this? ansible\_host=XXX.XXX.XX | UNREACH…

---

## [Syntax error after ansible update (latest)](https://forum.ansible.com/t/syntax-error-after-ansible-update-latest/27384)

<div class="topic-metadata">

**Author:** [@nbmprivat](https://forum.ansible.com/u/nbmprivat)\
**Replies:** 3\
**Last updated:** [April 30, 2018, 7:23am UTC](https://forum.ansible.com/t/syntax-error-after-ansible-update-latest/27384 "2018-04-30T07:23:14Z")

</div>

Hi, My playbook is not working anymore after updating ansible to latest version. For example: Vault file containing variable with value vault\_win\_password: foo20" Variable with value location: C:\\Program file…

---

## [Connecting windows from ansible control server](https://forum.ansible.com/t/connecting-windows-from-ansible-control-server/27407)

<div class="topic-metadata">

**Author:** [@Subani\_Prasad](https://forum.ansible.com/u/Subani_Prasad)\
**Replies:** 1\
**Last updated:** [April 30, 2018, 6:10am UTC](https://forum.ansible.com/t/connecting-windows-from-ansible-control-server/27407 "2018-04-30T06:10:51Z")

</div>

hello folks, is there any way to connect to aws windows machines using ansible by using aws private key file ? i have launched one windows machine in aws with some keypair, is there any possible way to connect from ans…

---

## [ansible for openstack hardening](https://forum.ansible.com/t/ansible-for-openstack-hardening/27406)

<div class="topic-metadata">

**Author:** [@fatim.boudguig](https://forum.ansible.com/u/fatim.boudguig)\
**Replies:** 0\
**Last updated:** [April 29, 2018, 11:32pm UTC](https://forum.ansible.com/t/ansible-for-openstack-hardening/27406 "2018-04-29T23:32:13Z")

</div>

can you help me i have to write playbook for openstack hardening and i don’t know wich modules i can use

---

## [Filtering a nested structure in Jinja2, regexp matches?](https://forum.ansible.com/t/filtering-a-nested-structure-in-jinja2-regexp-matches/27403)

<div class="topic-metadata">

**Author:** [@Andy\_Smith](https://forum.ansible.com/u/Andy_Smith)\
**Replies:** 2\
**Last updated:** [April 29, 2018, 10:37am UTC](https://forum.ansible.com/t/filtering-a-nested-structure-in-jinja2-regexp-matches/27403 "2018-04-29T10:37:30Z")

</div>

Hi, I'd like to produce a template which lists disk device links. These are the things you might find in /dev/disk/by-id/\*, e.g.: $ ls /dev/disk/by-id ata-SomeVendor\_AAAAAAAAAAAA-00005\_BBBBBBBBBBBBBB ata-ST4000LM016…

---

## [S3 - File download to EC2 Windows Instance](https://forum.ansible.com/t/s3-file-download-to-ec2-windows-instance/27405)

<div class="topic-metadata">

**Author:** [@ali.khawaja](https://forum.ansible.com/u/ali.khawaja)\
**Replies:** 0\
**Last updated:** [April 29, 2018, 8:59am UTC](https://forum.ansible.com/t/s3-file-download-to-ec2-windows-instance/27405 "2018-04-29T08:59:35Z")

</div>

I am trying to achieve the following: Create ec2 instance (play 1) Configure some services (play 2) Download some iso from my s3 bucket to the ec2 instance (sql, etc) Install I have a play with hosts set to localhost …

---

## [How to avoid multiple login to the same device for multiple tasks?](https://forum.ansible.com/t/how-to-avoid-multiple-login-to-the-same-device-for-multiple-tasks/27402)

<div class="topic-metadata">

**Author:** [@Krishna\_N](https://forum.ansible.com/u/Krishna_N)\
**Replies:** 0\
**Last updated:** [April 29, 2018, 12:15am UTC](https://forum.ansible.com/t/how-to-avoid-multiple-login-to-the-same-device-for-multiple-tasks/27402 "2018-04-29T00:15:54Z")

</div>

Question: I have two tasks created, each requires a login credential for the device. When I run the playbook, it seems like the ansible has to login twice to the device (logs in, completes first task and logs out, login …

---

## [how are variable files found?](https://forum.ansible.com/t/how-are-variable-files-found/27401)

<div class="topic-metadata">

**Author:** [@Karl\_Auer](https://forum.ansible.com/u/Karl_Auer)\
**Replies:** 1\
**Last updated:** [April 28, 2018, 10:59am UTC](https://forum.ansible.com/t/how-are-variable-files-found/27401 "2018-04-28T10:59:40Z")

</div>

I can’t figure out how to organise my variables. For roles, they are in a vars directory relative to the role, alongside tasks, meta etc. For playbooks, directories like group\_vars are found if placed in the same direc…

---

## [Limit debug results](https://forum.ansible.com/t/limit-debug-results/27398)

<div class="topic-metadata">

**Author:** [@Chris7](https://forum.ansible.com/u/Chris7)\
**Replies:** 0\
**Last updated:** [April 27, 2018, 6:55pm UTC](https://forum.ansible.com/t/limit-debug-results/27398 "2018-04-27T18:55:09Z")

</div>

Playbook to check for new updates in repo. I only want to return the package name instead of all the additional information. Playbook: name: “Checking for updates” yum: list: updates enablerepo: ‘epel’ register: …

---

## [Seeking clarification on Ansible for VMWare module](https://forum.ansible.com/t/seeking-clarification-on-ansible-for-vmware-module/27377)

<div class="topic-metadata">

**Author:** [@Dave](https://forum.ansible.com/u/Dave)\
**Replies:** 2\
**Last updated:** [April 27, 2018, 6:45pm UTC](https://forum.ansible.com/t/seeking-clarification-on-ansible-for-vmware-module/27377 "2018-04-27T18:45:08Z")

</div>

I’m not sure if anyone here has tried the Ansible for VMWare module, but does this module require a VMWare OVF template in order to run? Thanks,

---

## [Ansible deploy VMware a Windows VM Template](https://forum.ansible.com/t/ansible-deploy-vmware-a-windows-vm-template/27352)

<div class="topic-metadata">

**Author:** [@Xavier\_Sanchez](https://forum.ansible.com/u/Xavier_Sanchez)\
**Replies:** 1\
**Last updated:** [April 27, 2018, 4:49pm UTC](https://forum.ansible.com/t/ansible-deploy-vmware-a-windows-vm-template/27352 "2018-04-27T16:49:41Z")

</div>

Hi experts, One question please, Actually I working and testing Ansible for deploy a specified VM in a VMware infrastructure (Windows Server 2016) and I heve a problem when this VM is deployed and started, I not have …

---

## [Molecule/testinfra](https://forum.ansible.com/t/molecule-testinfra/27389)

<div class="topic-metadata">

**Author:** [@Chris\_Short](https://forum.ansible.com/u/Chris_Short)\
**Replies:** 2\
**Last updated:** [April 27, 2018, 1:28pm UTC](https://forum.ansible.com/t/molecule-testinfra/27389 "2018-04-27T13:28:30Z")

</div>

Is anyone using molecule/testinfra to test real infrastructure (verifying things ansible has managed)? The unit testing of playbooks is awesome but how would I use the framework to test real things on real systems?

---

## [vault-id and multiple password files in ansible.cfg](https://forum.ansible.com/t/vault-id-and-multiple-password-files-in-ansible-cfg/26613)

<div class="topic-metadata">

**Author:** [@kompastver](https://forum.ansible.com/u/kompastver)\
**Replies:** 1\
**Last updated:** [April 27, 2018, 11:45am UTC](https://forum.ansible.com/t/vault-id-and-multiple-password-files-in-ansible-cfg/26613 "2018-04-27T11:45:22Z")

</div>

Hi, We’re using vault files encrypted with multiple vault-id in our projects. Everything works fine when we do something like: ansible vault --vault-id generic@~/.ansible/generic-password --vault-id prod@~/.ansible/pr…

---

## [Ansible 2.5.2 is available](https://forum.ansible.com/t/ansible-2-5-2-is-available/27392)

<div class="topic-metadata">

**Author:** [@system](https://forum.ansible.com/u/system)\
**Replies:** 0\
**Last updated:** [April 26, 2018, 7:37pm UTC](https://forum.ansible.com/t/ansible-2-5-2-is-available/27392 "2018-04-26T19:37:42Z")

</div>

Ansible 2.5.2 is available Hi all- we’re happy to announce that the general release of Ansible 2.5.2 is now available! This release was fast-tracked to fix a regression around setting facts inside loops that was hittin…

---

## [How can I disable these warnings? \[WARNING\]: Removed restricted key from module data](https://forum.ansible.com/t/how-can-i-disable-these-warnings-warning-removed-restricted-key-from-module-data/27390)

<div class="topic-metadata">

**Author:** [@Julio\_Henrique\_Morim](https://forum.ansible.com/u/Julio_Henrique_Morim)\
**Replies:** 0\
**Last updated:** [April 26, 2018, 6:52pm UTC](https://forum.ansible.com/t/how-can-i-disable-these-warnings-warning-removed-restricted-key-from-module-data/27390 "2018-04-26T18:52:06Z")

</div>

Recently updated to Ansible 2.5 and most of our scripts are spitting out these warnings: TASK \[basic-config : include\_vars\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [Ansible win\_iis\_website module](https://forum.ansible.com/t/ansible-win-iis-website-module/27372)

<div class="topic-metadata">

**Author:** [@phil.spares12](https://forum.ansible.com/u/phil.spares12)\
**Replies:** 4\
**Last updated:** [April 26, 2018, 3:39pm UTC](https://forum.ansible.com/t/ansible-win-iis-website-module/27372 "2018-04-26T15:39:55Z")

</div>

Hello, I am having issues getting the Ansible win\_iis\_module to work. I’ve used it in the past on server 2012 but since trying on server 2016 i keep getting the following error: fatal: \[192.168.1.64\]: FAILED! =\> { "cha…

---

## [Ansible error during server reboot](https://forum.ansible.com/t/ansible-error-during-server-reboot/27388)

<div class="topic-metadata">

**Author:** [@mmr](https://forum.ansible.com/u/mmr)\
**Replies:** 0\
**Last updated:** [April 26, 2018, 1:36pm UTC](https://forum.ansible.com/t/ansible-error-during-server-reboot/27388 "2018-04-26T13:36:24Z")

</div>

Hi I’m getting below error during sw upgrade of a server using Ansible. Remote machine is BSD unix server. Note that the reboot is not initiated by Ansible. At the end of the sw upgrade the server reboot automatically (a…

---

## [Find the list of all the AWS ALB target groups in which instance is registered](https://forum.ansible.com/t/find-the-list-of-all-the-aws-alb-target-groups-in-which-instance-is-registered/27387)

<div class="topic-metadata">

**Author:** [@Arbab\_Nazar1](https://forum.ansible.com/u/Arbab_Nazar1)\
**Replies:** 0\
**Last updated:** [April 26, 2018, 12:59pm UTC](https://forum.ansible.com/t/find-the-list-of-all-the-aws-alb-target-groups-in-which-instance-is-registered/27387 "2018-04-26T12:59:23Z")

</div>

For ELB, if we want to remove the instance from all the elbs, we just need to pass the instance id to the elb\_instance module and again if we want to add the instance back in the same playbook, it give us a magic variabl…

---

## [Using win\_copy to copy 1 file to multiple directories.](https://forum.ansible.com/t/using-win-copy-to-copy-1-file-to-multiple-directories/27383)

<div class="topic-metadata">

**Author:** [@phil.spares12](https://forum.ansible.com/u/phil.spares12)\
**Replies:** 1\
**Last updated:** [April 26, 2018, 9:29am UTC](https://forum.ansible.com/t/using-win-copy-to-copy-1-file-to-multiple-directories/27383 "2018-04-26T09:29:29Z")

</div>

Hello, I’ve been working on a script to provision IIS and a basic website (literally just a html page at the moment) When th escript runs it creates two sites, and the directory for the sites in inetpub/wwwroot/folderna…

---

## [I want to run a specific task in a playbook to a single host. Is there any better way to do that?](https://forum.ansible.com/t/i-want-to-run-a-specific-task-in-a-playbook-to-a-single-host-is-there-any-better-way-to-do-that/27382)

<div class="topic-metadata">

**Author:** [@Rajesh\_Rajendran](https://forum.ansible.com/u/Rajesh_Rajendran)\
**Replies:** 0\
**Last updated:** [April 26, 2018, 8:46am UTC](https://forum.ansible.com/t/i-want-to-run-a-specific-task-in-a-playbook-to-a-single-host-is-there-any-better-way-to-do-that/27382 "2018-04-26T08:46:50Z")

</div>

custom playbook

---

## [How to pass 'become' to 'include\_\*' in ansible2.5](https://forum.ansible.com/t/how-to-pass-become-to-include-in-ansible2-5/27353)

<div class="topic-metadata">

**Author:** [@profhase85](https://forum.ansible.com/u/profhase85)\
**Replies:** 5\
**Last updated:** [April 26, 2018, 8:16am UTC](https://forum.ansible.com/t/how-to-pass-become-to-include-in-ansible2-5/27353 "2018-04-26T08:16:32Z")

</div>

Hi all, apparently attributes on include tasks are not propagated to the tasks anymore in 2.5 For some reasons i need dynamic includes. How would I pass become\` to \`include\_role The usecase: When I develop a role, …

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

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