# Ansible Project

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

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

**Page:** 212

---

## [PS Script Not Installing RDS](https://forum.ansible.com/t/ps-script-not-installing-rds/29468)

<div class="topic-metadata">

**Author:** [@DC1](https://forum.ansible.com/u/DC1)\
**Replies:** 3\
**Last updated:** [January 22, 2019, 4:57pm UTC](https://forum.ansible.com/t/ps-script-not-installing-rds/29468 "2019-01-22T16:57:00Z")

</div>

Hello, I am trying to automate building an MS RDS Server 2016. The automation of the server build works great up until the last part when it tries to install RDS. Two scripts run separately to install RDS, the first one…

---

## [How to convert the cloudformation template\_url parameter to be the Jinja template substitution](https://forum.ansible.com/t/how-to-convert-the-cloudformation-template-url-parameter-to-be-the-jinja-template-substitution/29490)

<div class="topic-metadata">

**Author:** [@Kishore\_Ponniah](https://forum.ansible.com/u/Kishore_Ponniah)\
**Replies:** 1\
**Last updated:** [January 22, 2019, 4:50pm UTC](https://forum.ansible.com/t/how-to-convert-the-cloudformation-template-url-parameter-to-be-the-jinja-template-substitution/29490 "2019-01-22T16:50:02Z")

</div>

Hi All, The cloudformation template\_url parameter requires Amazon S3 URL which is currently working by providing the complete URL of the file. But I wanted to convert that to be the Jinja template substitution. My play…

---

## [ec2\_vpc\_route\_table playbook error was: 'dict object' has no attribute subnet](https://forum.ansible.com/t/ec2-vpc-route-table-playbook-error-was-dict-object-has-no-attribute-subnet/29489)

<div class="topic-metadata">

**Author:** [@Steve\_Button](https://forum.ansible.com/u/Steve_Button)\
**Replies:** 3\
**Last updated:** [January 22, 2019, 4:17pm UTC](https://forum.ansible.com/t/ec2-vpc-route-table-playbook-error-was-dict-object-has-no-attribute-subnet/29489 "2019-01-22T16:17:26Z")

</div>

I have a previously working piece of Ansible that I’ve inherited for a previous contractor, and I’m getting an error message that doesn’t lead me in the right direction. I have tried searching for a few days now, with no…

---

## [Task history (per host)](https://forum.ansible.com/t/task-history-per-host/29323)

<div class="topic-metadata">

**Author:** [@Jimmy\_Htor](https://forum.ansible.com/u/Jimmy_Htor)\
**Replies:** 2\
**Last updated:** [January 22, 2019, 3:59pm UTC](https://forum.ansible.com/t/task-history-per-host/29323 "2019-01-22T15:59:35Z")

</div>

Hey, Anyone know a tool which shows you an overview of your inventory with all actions that have been performed per host by Ansible in the past. Like ARA, but drill-down from the hosts instead of the events. Like ansi…

---

## [How to copy latest git files to a remote host using playbook , do I need to give the git creds upfront?](https://forum.ansible.com/t/how-to-copy-latest-git-files-to-a-remote-host-using-playbook-do-i-need-to-give-the-git-creds-upfront/29495)

<div class="topic-metadata">

**Author:** [@arunkumar.singamsett](https://forum.ansible.com/u/arunkumar.singamsett)\
**Replies:** 0\
**Last updated:** [January 22, 2019, 3:14pm UTC](https://forum.ansible.com/t/how-to-copy-latest-git-files-to-a-remote-host-using-playbook-do-i-need-to-give-the-git-creds-upfront/29495 "2019-01-22T15:14:08Z")

</div>

Hi All, How to copy latest git files to a remote host using playbook , do I need to give the git creds upfront? Thanks in advance

---

## [How to assing ipv6 address(es) using ec2\_instance module?](https://forum.ansible.com/t/how-to-assing-ipv6-address-es-using-ec2-instance-module/29493)

<div class="topic-metadata">

**Author:** [@jp12](https://forum.ansible.com/u/jp12)\
**Replies:** 0\
**Last updated:** [January 22, 2019, 2:47pm UTC](https://forum.ansible.com/t/how-to-assing-ipv6-address-es-using-ec2-instance-module/29493 "2019-01-22T14:47:27Z")

</div>

I am trying to define new ipv6 address for ENI using ec2\_instance module in ansible 2.7.6- I just don’t get it how to define the task? output is just “changed: false” and nothing happens. Would anyone be able to point ou…

---

## [alternate shadow file?](https://forum.ansible.com/t/alternate-shadow-file/29449)

<div class="topic-metadata">

**Author:** [@erichymowitz](https://forum.ansible.com/u/erichymowitz)\
**Replies:** 4\
**Last updated:** [January 22, 2019, 1:48pm UTC](https://forum.ansible.com/t/alternate-shadow-file/29449 "2019-01-22T13:48:40Z")

</div>

Greetings. I would like to use the “user” module to change my password, but the shadow file is not located in /etc/shadow . It’s in an alternate location, specifically, /mnt/pxe/etc/shadow . Is there a way to accomplish…

---

## [I am trying to install Java and set path by using Java tar file, I am getting error can anyone please suggest ASAP (Urgent)](https://forum.ansible.com/t/i-am-trying-to-install-java-and-set-path-by-using-java-tar-file-i-am-getting-error-can-anyone-please-suggest-asap-urgent/29479)

<div class="topic-metadata">

**Author:** [@ashok\_kumar\_penumudi](https://forum.ansible.com/u/ashok_kumar_penumudi)\
**Replies:** 3\
**Last updated:** [January 22, 2019, 12:21pm UTC](https://forum.ansible.com/t/i-am-trying-to-install-java-and-set-path-by-using-java-tar-file-i-am-getting-error-can-anyone-please-suggest-asap-urgent/29479 "2019-01-22T12:21:12Z")

</div>

When i run below playbook getting error i am trying to set Java path. Please suggest ASAP \[cdhadmin@vboacisbs13 ansible\]$ ansible-playbook java.yml --syntax -check ERROR! Syntax Error while loading YAML…

---

## [Ansible s3\_sync to upload multiple files](https://forum.ansible.com/t/ansible-s3-sync-to-upload-multiple-files/29436)

<div class="topic-metadata">

**Author:** [@Kishore\_Ponniah](https://forum.ansible.com/u/Kishore_Ponniah)\
**Replies:** 2\
**Last updated:** [January 22, 2019, 12:05pm UTC](https://forum.ansible.com/t/ansible-s3-sync-to-upload-multiple-files/29436 "2019-01-22T12:05:04Z")

</div>

Hi All, I am trying to upload multiple yaml cloudformation templates to a s3 bucket using s3\_sync. I have created a task in the playbook, looks like the tasks completed successfully but the file is not uploaded. Can som…

---

## [lineinfile .  module not running](https://forum.ansible.com/t/lineinfile-module-not-running/29471)

<div class="topic-metadata">

**Author:** [@computerprosupport](https://forum.ansible.com/u/computerprosupport)\
**Replies:** 3\
**Last updated:** [January 22, 2019, 11:13am UTC](https://forum.ansible.com/t/lineinfile-module-not-running/29471 "2019-01-22T11:13:09Z")

</div>

This playbook is not running. Can anyone tell me why? Running on Linux CentOS 6.6 ansible 2.6.4 ansible-playbook -i hosts plays/sudoers.yml -u ansible-user name: add groups to sudoers hosts: all tasks: name: line…

---

## [Ansible to windows client connection](https://forum.ansible.com/t/ansible-to-windows-client-connection/29463)

<div class="topic-metadata">

**Author:** [@sindhu\_shree](https://forum.ansible.com/u/sindhu_shree)\
**Replies:** 14\
**Last updated:** [January 22, 2019, 10:39am UTC](https://forum.ansible.com/t/ansible-to-windows-client-connection/29463 "2019-01-22T10:39:54Z")

</div>

Hi. Am facing some authentication issues when i run ansible all -m win\_ping. Response - 10.67.104.45 | UNREACHABLE! =\> { “changed”: false, “msg”: “basic: the specified credentials were rejected by the server”, “unrea…

---

## [Setting dns\_servers on linux guest using vmware\_guest module](https://forum.ansible.com/t/setting-dns-servers-on-linux-guest-using-vmware-guest-module/28440)

<div class="topic-metadata">

**Author:** [@Jorg\_Kastning](https://forum.ansible.com/u/Jorg_Kastning)\
**Replies:** 2\
**Last updated:** [January 22, 2019, 8:16am UTC](https://forum.ansible.com/t/setting-dns-servers-on-linux-guest-using-vmware-guest-module/28440 "2019-01-22T08:16:12Z")

</div>

Hi, I read in vmware\_guest documentation that Linux based OSes requires Perl package to be installed for OS customizations. Do I have to install the perl package on the guest or on my ansible controller machine? Regar…

---

## [Can we use one include inside another include?](https://forum.ansible.com/t/can-we-use-one-include-inside-another-include/29487)

<div class="topic-metadata">

**Author:** [@Sahar](https://forum.ansible.com/u/Sahar)\
**Replies:** 1\
**Last updated:** [January 22, 2019, 5:46am UTC](https://forum.ansible.com/t/can-we-use-one-include-inside-another-include/29487 "2019-01-22T05:46:17Z")

</div>

I’m wondering if we can use one include include another include?

---

## [How to sort a loop based upon a key value - weird behaviour using win\_dsc](https://forum.ansible.com/t/how-to-sort-a-loop-based-upon-a-key-value-weird-behaviour-using-win-dsc/29486)

<div class="topic-metadata">

**Author:** [@Lee\_Drew](https://forum.ansible.com/u/Lee_Drew)\
**Replies:** 2\
**Last updated:** [January 22, 2019, 2:20am UTC](https://forum.ansible.com/t/how-to-sort-a-loop-based-upon-a-key-value-weird-behaviour-using-win-dsc/29486 "2019-01-22T02:20:40Z")

</div>

Hi - I’ve got a few questions…I have a variable (dictionary with lists I think is what it is? Is this the correct name/term?) \` dns\_nat\_dc1\_records: { zone: ‘test.com’, name: ‘server1’, target: ‘192.168.1.10’, type: …

---

## [role variables](https://forum.ansible.com/t/role-variables/29482)

<div class="topic-metadata">

**Author:** [@Sreejith\_Sreejayan](https://forum.ansible.com/u/Sreejith_Sreejayan)\
**Replies:** 2\
**Last updated:** [January 21, 2019, 3:57pm UTC](https://forum.ansible.com/t/role-variables/29482 "2019-01-21T15:57:01Z")

</div>

Anybody knows passing solution vars\_files in dependencies role i have variable files located in vars dir but i tried to pass vars\_files in this play but its not working any solution to solve this issues . now passing v…

---

## [Ansible and Huawei](https://forum.ansible.com/t/ansible-and-huawei/29361)

<div class="topic-metadata">

**Author:** [@Anurag\_Bhatia](https://forum.ansible.com/u/Anurag_Bhatia)\
**Replies:** 2\
**Last updated:** [January 21, 2019, 11:34am UTC](https://forum.ansible.com/t/ansible-and-huawei/29361 "2019-01-21T11:34:46Z")

</div>

Hello there Was wondering if anyone has experience of using ansible with Huawei successfully? We are using Huawei at our IX and I am able to use ad-hoc commands with Huawei but playbooks based on documentation fail wit…

---

## [ntp.j2 for different set of hosts](https://forum.ansible.com/t/ntp-j2-for-different-set-of-hosts/29462)

<div class="topic-metadata">

**Author:** [@coach.rhca](https://forum.ansible.com/u/coach.rhca)\
**Replies:** 3\
**Last updated:** [January 21, 2019, 6:50am UTC](https://forum.ansible.com/t/ntp-j2-for-different-set-of-hosts/29462 "2019-01-21T06:50:30Z")

</div>

Hi, I have created a role for the ntp with the ntp.j2 and ntp1.j2 templates in templates diretory . with ntp.j2 consisting of server 2.2.2.1 iburst and with tp. ntp1.j2 consist of server 1.2.1.3 iburst In the task…

---

## [Unable to parse /etc/ansible/hosts as an inventory source](https://forum.ansible.com/t/unable-to-parse-etc-ansible-hosts-as-an-inventory-source/27844)

<div class="topic-metadata">

**Author:** [@Rob\_Christian](https://forum.ansible.com/u/Rob_Christian)\
**Replies:** 6\
**Last updated:** [January 20, 2019, 6:32pm UTC](https://forum.ansible.com/t/unable-to-parse-etc-ansible-hosts-as-an-inventory-source/27844 "2019-01-20T18:32:20Z")

</div>

How can I have my Ansible project use only the local /inventories directory? I am getting this output and I get the impression that Ansible is not finding my inventories. \` \[WARNING\]: Unable to parse /etc/ansible/hosts…

---

## [Want to change the installatin path using win\_package](https://forum.ansible.com/t/want-to-change-the-installatin-path-using-win-package/29478)

<div class="topic-metadata">

**Author:** [@shyam.awk](https://forum.ansible.com/u/shyam.awk)\
**Replies:** 3\
**Last updated:** [January 20, 2019, 5:22pm UTC](https://forum.ansible.com/t/want-to-change-the-installatin-path-using-win-package/29478 "2019-01-20T17:22:01Z")

</div>

Hi, I want to change the new software installation path from C:\\ to D:\\ but the installation is going to the C:\\ drive and the following playbook not worked. The package is at shared network path. name: installation o…

---

## [Event handler using ansible](https://forum.ansible.com/t/event-handler-using-ansible/29415)

<div class="topic-metadata">

**Author:** [@Sathya\_Narayanan](https://forum.ansible.com/u/Sathya_Narayanan)\
**Replies:** 2\
**Last updated:** [January 20, 2019, 12:33pm UTC](https://forum.ansible.com/t/event-handler-using-ansible/29415 "2019-01-20T12:33:24Z")

</div>

Hi All, I know, I have ask this question before, but to my surprise I don’t find any better documentation on internet which can say how I can use mandible as a EDI tool (event driven infra). We have nagios in our envir…

---

## [ansible jinja2 template to loop through variables that has multiple values for each variable on a per host basis](https://forum.ansible.com/t/ansible-jinja2-template-to-loop-through-variables-that-has-multiple-values-for-each-variable-on-a-per-host-basis/29477)

<div class="topic-metadata">

**Author:** [@pnagaraj7656](https://forum.ansible.com/u/pnagaraj7656)\
**Replies:** 2\
**Last updated:** [January 20, 2019, 8:14am UTC](https://forum.ansible.com/t/ansible-jinja2-template-to-loop-through-variables-that-has-multiple-values-for-each-variable-on-a-per-host-basis/29477 "2019-01-20T08:14:25Z")

</div>

My Requirement is as follows Below is the list of variables and its multiple values : host1 env : qa,dev,uat grpn: g1 type: t1 port: 1401 type: t2 port: 1402 type: t3 port: 1403 host2 env : qa,dev,uat grpn: …

---

## [Problem with: create user with an encrypted password](https://forum.ansible.com/t/problem-with-create-user-with-an-encrypted-password/29474)

<div class="topic-metadata">

**Author:** [@Henrik\_Schuetze](https://forum.ansible.com/u/Henrik_Schuetze)\
**Replies:** 2\
**Last updated:** [January 19, 2019, 3:11pm UTC](https://forum.ansible.com/t/problem-with-create-user-with-an-encrypted-password/29474 "2019-01-19T15:11:26Z")

</div>

Hello, i want to create users on a centos system. the users use rsa keys to authenticate on the linux. They have an PAM token to connect on the maria db on the system. And with PAM they need an Linux password and the …

---

## [Trouble integrating custom module\_utils module](https://forum.ansible.com/t/trouble-integrating-custom-module-utils-module/29437)

<div class="topic-metadata">

**Author:** [@Andrei\_Pashkin](https://forum.ansible.com/u/Andrei_Pashkin)\
**Replies:** 3\
**Last updated:** [January 19, 2019, 6:36am UTC](https://forum.ansible.com/t/trouble-integrating-custom-module-utils-module/29437 "2019-01-19T06:36:49Z")

</div>

Hello! I tried to write a custom module\_utils module, I set up everything according to the docs, but for some reason I get an error: Skipping plugin (…) as it seems to be invalid: No module named … I’ve isolated the…

---

## [Ansible update on Ubuntu 18.04](https://forum.ansible.com/t/ansible-update-on-ubuntu-18-04/29472)

<div class="topic-metadata">

**Author:** [@eric.dunn](https://forum.ansible.com/u/eric.dunn)\
**Replies:** 0\
**Last updated:** [January 18, 2019, 9:43pm UTC](https://forum.ansible.com/t/ansible-update-on-ubuntu-18-04/29472 "2019-01-18T21:43:01Z")

</div>

This isn't an Ansible bug, but I cannot update using a local mirror (apt-mirror). If I use an external mirror (us.archive.ubuntu.com) the anisible update operation works fine. I found plenty of users complaining about …

---

## [command not found -\> while running "show version" on cisco IOS device.](https://forum.ansible.com/t/command-not-found-while-running-show-version-on-cisco-ios-device/29470)

<div class="topic-metadata">

**Author:** [@KESHAV\_YADAV](https://forum.ansible.com/u/KESHAV_YADAV)\
**Replies:** 0\
**Last updated:** [January 18, 2019, 6:49pm UTC](https://forum.ansible.com/t/command-not-found-while-running-show-version-on-cisco-ios-device/29470 "2019-01-18T18:49:34Z")

</div>

What is the reason behind the below output ? The device is reachable and ssh is successful from MAC terminal. ansible R2 -m raw -a “show version” -u keshav -k R2 | FAILED | rc=127 \>\> /bin/sh: show: command not found n…

---

## [Need help related to jdk installation on linux](https://forum.ansible.com/t/need-help-related-to-jdk-installation-on-linux/29469)

<div class="topic-metadata">

**Author:** [@ashok\_kumar\_penumudi](https://forum.ansible.com/u/ashok_kumar_penumudi)\
**Replies:** 0\
**Last updated:** [January 18, 2019, 6:47pm UTC](https://forum.ansible.com/t/need-help-related-to-jdk-installation-on-linux/29469 "2019-01-18T18:47:41Z")

</div>

Can anyone help how to install java by using ansible on Linux without internet by using rpm or tar.gz file. Thanks In advance.

---

## [vmware\_host\_config\_facts - Gathers facts about an ESXi host’s advance configuration information](https://forum.ansible.com/t/vmware-host-config-facts-gathers-facts-about-an-esxi-host-s-advance-configuration-information/29465)

<div class="topic-metadata">

**Author:** [@Karthikeyan\_Karunamo](https://forum.ansible.com/u/Karthikeyan_Karunamo)\
**Replies:** 0\
**Last updated:** [January 18, 2019, 3:09pm UTC](https://forum.ansible.com/t/vmware-host-config-facts-gathers-facts-about-an-esxi-host-s-advance-configuration-information/29465 "2019-01-18T15:09:20Z")

</div>

Hello Team, I’m collecting the facts for all ESXi hosts using vmware\_host\_config\_facts but I did not see that what are all the datastore(s) attached with each ESXi and status. Is there any alternative way to pull the ES…

---

## [Ansible vault -- "ERROR! playbooks must be a list of plays"](https://forum.ansible.com/t/ansible-vault-error-playbooks-must-be-a-list-of-plays/29458)

<div class="topic-metadata">

**Author:** [@John\_Harmon](https://forum.ansible.com/u/John_Harmon)\
**Replies:** 2\
**Last updated:** [January 18, 2019, 5:13am UTC](https://forum.ansible.com/t/ansible-vault-error-playbooks-must-be-a-list-of-plays/29458 "2019-01-18T05:13:23Z")

</div>

I wouldn’t be surprised if I am using this incorrectly, but I could use some outside input. Consider the following tree (not in a role): . ├── get\_user\_info.yml └── vault.yml vault.yml contents: \`

---

## [How to assign inventory group alias to a variable?](https://forum.ansible.com/t/how-to-assign-inventory-group-alias-to-a-variable/29461)

<div class="topic-metadata">

**Author:** [@Robert\_F](https://forum.ansible.com/u/Robert_F)\
**Replies:** 2\
**Last updated:** [January 17, 2019, 10:49pm UTC](https://forum.ansible.com/t/how-to-assign-inventory-group-alias-to-a-variable/29461 "2019-01-17T22:49:50Z")

</div>

I have this Ansible inventory file: \[fileservers\] fs01.example.com ansible\_ssh\_host=192.168.1.1 ip\_addr=192.168.1.1 \[dbservers\] db01.example.com ansible\_ssh\_host=192.168.1.2 ip\_addr=192.168.1.2 \[webservers\] web01.e…

---

## [Ansible 2.7.6 and 2.6.12](https://forum.ansible.com/t/ansible-2-7-6-and-2-6-12/29459)

<div class="topic-metadata">

**Author:** [@tkuratom](https://forum.ansible.com/u/tkuratom)\
**Replies:** 0\
**Last updated:** [January 17, 2019, 7:46pm UTC](https://forum.ansible.com/t/ansible-2-7-6-and-2-6-12/29459 "2019-01-17T19:46:20Z")

</div>

Hi all- we're happy to announce that the general releases of Ansible 2.7.6 and Ansible 2.6.12 are now available! How do you get it?

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

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