# Ansible Project

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

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

**Page:** 319

---

## [with\_items loops saying item undefined even if its present in parameter](https://forum.ansible.com/t/with-items-loops-saying-item-undefined-even-if-its-present-in-parameter/25297)

<div class="topic-metadata">

**Author:** [@Sameer\_Modak](https://forum.ansible.com/u/Sameer_Modak)\
**Replies:** 3\
**Last updated:** [August 22, 2017, 3:10pm UTC](https://forum.ansible.com/t/with-items-loops-saying-item-undefined-even-if-its-present-in-parameter/25297 "2017-08-22T15:10:46Z")

</div>

hosts: all tasks: name: “install EPEL and Remi reps” yum\_repository: name: “{{ item.href }}” basurl: “{{ item.repo }}” with\_items: { href: “http://dl.fedoraproject.org/pub/epel/7/x86\_64/e/epel-release-7-5.noarch.r…

---

## [Use Ansible expect module without question](https://forum.ansible.com/t/use-ansible-expect-module-without-question/25304)

<div class="topic-metadata">

**Author:** [@Charles\_Giudicelli](https://forum.ansible.com/u/Charles_Giudicelli)\
**Replies:** 0\
**Last updated:** [August 22, 2017, 12:49pm UTC](https://forum.ansible.com/t/use-ansible-expect-module-without-question/25304 "2017-08-22T12:49:43Z")

</div>

Hi, I 'd like to use the expect plugin to send commands to a configuration soft that doesn’t ask questions, but only waits for instructions. Here is how work my prog I run the programm in CLI: “loracmd -ns 127.0.0.1” …

---

## [failing to connect through ssh](https://forum.ansible.com/t/failing-to-connect-through-ssh/25298)

<div class="topic-metadata">

**Author:** [@gcpconsole](https://forum.ansible.com/u/gcpconsole)\
**Replies:** 3\
**Last updated:** [August 22, 2017, 9:24am UTC](https://forum.ansible.com/t/failing-to-connect-through-ssh/25298 "2017-08-22T09:24:28Z")

</div>

I used the below example to execute from GIT https://github.com/GoogleCloudPlatform/compute-ansible-gluster I am getting the following error: fatal: \[35.184.19.164\]: UNREACHABLE! =\> {"changed": false, "msg": "Failed t…

---

## [ansible 2.3.0 host alias not working](https://forum.ansible.com/t/ansible-2-3-0-host-alias-not-working/25301)

<div class="topic-metadata">

**Author:** [@Ted\_Meller](https://forum.ansible.com/u/Ted_Meller)\
**Replies:** 1\
**Last updated:** [August 22, 2017, 3:55am UTC](https://forum.ansible.com/t/ansible-2-3-0-host-alias-not-working/25301 "2017-08-22T03:55:21Z")

</div>

Im trying to rename my host list file from IP addresses to aliases but for some reason when I run my playbooks i get the below error. fatal: \[test\]: FAILED! =\> {"changed": false, "failed": true, "msg": "unable to open s…

---

## [disable unnecessary output on ansible server console](https://forum.ansible.com/t/disable-unnecessary-output-on-ansible-server-console/25279)

<div class="topic-metadata">

**Author:** [@Sameer\_Modak](https://forum.ansible.com/u/Sameer_Modak)\
**Replies:** 4\
**Last updated:** [August 21, 2017, 3:30pm UTC](https://forum.ansible.com/t/disable-unnecessary-output-on-ansible-server-console/25279 "2017-08-21T15:30:36Z")

</div>

Hello Team, When i run following command i get log of output on screen. I just want if it success or failed. ansible web -m yum -a “name=MySQL-python state=present”. 192.168.211.129 | SUCCESS =\> { “changed”: true, “…

---

## [Cannot connect to WindowsServer from Centos7 ProxyError](https://forum.ansible.com/t/cannot-connect-to-windowsserver-from-centos7-proxyerror/25278)

<div class="topic-metadata">

**Author:** [@Aleksander\_Lipka](https://forum.ansible.com/u/Aleksander_Lipka)\
**Replies:** 8\
**Last updated:** [August 21, 2017, 1:35pm UTC](https://forum.ansible.com/t/cannot-connect-to-windowsserver-from-centos7-proxyerror/25278 "2017-08-21T13:35:19Z")

</div>

Hi I am trying to connect to Windows Server 2012 from my ansible server (Centos7). Let’s assume its host is x and port is y I managed to connect to other linux based servers but I cannot connect to the windows one. I…

---

## [Trigger ansible through powershell](https://forum.ansible.com/t/trigger-ansible-through-powershell/25291)

<div class="topic-metadata">

**Author:** [@Amitha\_K\_T](https://forum.ansible.com/u/Amitha_K_T)\
**Replies:** 3\
**Last updated:** [August 21, 2017, 8:49am UTC](https://forum.ansible.com/t/trigger-ansible-through-powershell/25291 "2017-08-21T08:49:25Z")

</div>

Hello, I’m trying to find a way to trigger an ansible playbook for a windows machine using an external system or script, for example, powershell or python. Is this possible? Can anyone tell me the list of ways to trigg…

---

## [Need to know if Ansible has capablity for parallel execution](https://forum.ansible.com/t/need-to-know-if-ansible-has-capablity-for-parallel-execution/25296)

<div class="topic-metadata">

**Author:** [@ashish\_chanda](https://forum.ansible.com/u/ashish_chanda)\
**Replies:** 2\
**Last updated:** [August 21, 2017, 8:43am UTC](https://forum.ansible.com/t/need-to-know-if-ansible-has-capablity-for-parallel-execution/25296 "2017-08-21T08:43:09Z")

</div>

Good Morning, So the scenario is: I have 2 VM’s on which i want to install linux parallely without waiting on one task to get completed. Is there a way in Ansible Playbooks to achieve this. I know ansible playbooks ha…

---

## [delegate\_to localhost tries to connect to WinRM](https://forum.ansible.com/t/delegate-to-localhost-tries-to-connect-to-winrm/25287)

<div class="topic-metadata">

**Author:** [@Sandeep\_MS](https://forum.ansible.com/u/Sandeep_MS)\
**Replies:** 2\
**Last updated:** [August 21, 2017, 8:29am UTC](https://forum.ansible.com/t/delegate-to-localhost-tries-to-connect-to-winrm/25287 "2017-08-21T08:29:07Z")

</div>

I need a role with some tasks for remote windows server and some tasks for localhost. A sample like this fails with UNREACHABLE! =\> {“changed”: false, “msg”: “plaintext: HTTPConnectionPool(host=‘localhost’, port=5985):…

---

## [FIle not being copied using template](https://forum.ansible.com/t/file-not-being-copied-using-template/25294)

<div class="topic-metadata">

**Author:** [@Sinan](https://forum.ansible.com/u/Sinan)\
**Replies:** 1\
**Last updated:** [August 19, 2017, 11:20am UTC](https://forum.ansible.com/t/file-not-being-copied-using-template/25294 "2017-08-19T11:20:51Z")

</div>

I have the following tree; Root folder: ~/ansible/ I am running the command from the root folder. Command: $ ansible-playbook -i hosts playbook.yml --tags resolvconf --private-key ~/.ssh/hps PLAY \[all\] \*\*\*\*\*\*\*\*\*\*\*\*…

---

## [Syntax Issues for When Conditional](https://forum.ansible.com/t/syntax-issues-for-when-conditional/25280)

<div class="topic-metadata">

**Author:** [@Mark\_Huang](https://forum.ansible.com/u/Mark_Huang)\
**Replies:** 2\
**Last updated:** [August 18, 2017, 9:06pm UTC](https://forum.ansible.com/t/syntax-issues-for-when-conditional/25280 "2017-08-18T21:06:42Z")

</div>

Hi, What is the proper syntax for trying to do something like this? It works fine but it gives me a warning that says not to use templating delimiters. when: “{{ customer }}.aws\_cloud\_formation\_state == ‘present’” I h…

---

## [vmware\_guest - Nested datacenter issue](https://forum.ansible.com/t/vmware-guest-nested-datacenter-issue/25293)

<div class="topic-metadata">

**Author:** [@BG\_Sony](https://forum.ansible.com/u/BG_Sony)\
**Replies:** 0\
**Last updated:** [August 18, 2017, 9:02pm UTC](https://forum.ansible.com/t/vmware-guest-nested-datacenter-issue/25293 "2017-08-18T21:02:41Z")

</div>

Hello. I am unable to deploy from template when the datacenter is inside a folder. I am getting the error “msg”: “No folder matched the path: /Chicago Data Center/datacenter1/app” i.e. /Folder/datacenter/folder /Chicag…

---

## [how to retain stdout formatting when using adhoc commands (shell module)](https://forum.ansible.com/t/how-to-retain-stdout-formatting-when-using-adhoc-commands-shell-module/25283)

<div class="topic-metadata">

**Author:** [@jeder](https://forum.ansible.com/u/jeder)\
**Replies:** 3\
**Last updated:** [August 18, 2017, 8:41pm UTC](https://forum.ansible.com/t/how-to-retain-stdout-formatting-when-using-adhoc-commands-shell-module/25283 "2017-08-18T20:41:37Z")

</div>

Hey – when running adhoc commands (using shell module), the stdout returned from target systems is stripped of formatting. Is there a standard way to retain the formatting?

---

## [jenkins\_configure\_proxy role missing in Ansible](https://forum.ansible.com/t/jenkins-configure-proxy-role-missing-in-ansible/25276)

<div class="topic-metadata">

**Author:** [@Maciej\_Gawinecki](https://forum.ansible.com/u/Maciej_Gawinecki)\
**Replies:** 1\
**Last updated:** [August 18, 2017, 7:59pm UTC](https://forum.ansible.com/t/jenkins-configure-proxy-role-missing-in-ansible/25276 "2017-08-18T19:59:35Z")

</div>

I have Ansible 2.4.0. I am trying to configure Jenkins proxy based on Ansible Jenkins DevOps Roles documentation: hosts: master roles: jenkins\_configure\_proxy: jenkins\_home: “{{ jenkins\_home }}” proxy\_host: “{{ prox…

---

## [why handers sub topic is not indented same like tasks or vars](https://forum.ansible.com/t/why-handers-sub-topic-is-not-indented-same-like-tasks-or-vars/25270)

<div class="topic-metadata">

**Author:** [@Sameer\_Modak](https://forum.ansible.com/u/Sameer_Modak)\
**Replies:** 1\
**Last updated:** [August 18, 2017, 7:42pm UTC](https://forum.ansible.com/t/why-handers-sub-topic-is-not-indented-same-like-tasks-or-vars/25270 "2017-08-18T19:42:26Z")

</div>

How understand and practice correct way of yml or indentation, so confusing hosts: webservers vars: http\_port: 80 max\_clients: 200 remote\_user: root tasks: name: ensure apache is at the latest version ----\> here n…

---

## [Use variables from host\_vars and if not existent fall back to role vars](https://forum.ansible.com/t/use-variables-from-host-vars-and-if-not-existent-fall-back-to-role-vars/25258)

<div class="topic-metadata">

**Author:** [@Frieder\_Heugel](https://forum.ansible.com/u/Frieder_Heugel)\
**Replies:** 3\
**Last updated:** [August 18, 2017, 7:23pm UTC](https://forum.ansible.com/t/use-variables-from-host-vars-and-if-not-existent-fall-back-to-role-vars/25258 "2017-08-18T19:23:48Z")

</div>

Hi guys I have a role that installs Python on the target host (\[0\]). Different hosts require different Python libraries (some only need the basic set of libraries, others need completely different ones). My idea was to …

---

## [why debug is considered as task and needs - while other can run under single -name](https://forum.ansible.com/t/why-debug-is-considered-as-task-and-needs-while-other-can-run-under-single-name/25292)

<div class="topic-metadata">

**Author:** [@Sameer\_Modak](https://forum.ansible.com/u/Sameer_Modak)\
**Replies:** 1\
**Last updated:** [August 18, 2017, 5:49pm UTC](https://forum.ansible.com/t/why-debug-is-considered-as-task-and-needs-while-other-can-run-under-single-name/25292 "2017-08-18T17:49:51Z")

</div>

When i execute below code it does not run it give error. hosts: all tasks: name: “show version” setup: filter=“\*version” name: “status of service” shell: “/usr/sbin/service auditd status” name: “register demo” she…

---

## [Examples of Ansible automated supporting and remediation](https://forum.ansible.com/t/examples-of-ansible-automated-supporting-and-remediation/25271)

<div class="topic-metadata">

**Author:** [@Connor\_Pinkney](https://forum.ansible.com/u/Connor_Pinkney)\
**Replies:** 1\
**Last updated:** [August 18, 2017, 1:31pm UTC](https://forum.ansible.com/t/examples-of-ansible-automated-supporting-and-remediation/25271 "2017-08-18T13:31:29Z")

</div>

Hello, Is there any examples of Ansible being used for automated supporting and remediation Thank you.

---

## [YAML loop is giving me error: unable to open shell // NX\_OS and IOS modules](https://forum.ansible.com/t/yaml-loop-is-giving-me-error-unable-to-open-shell-nx-os-and-ios-modules/25290)

<div class="topic-metadata">

**Author:** [@erotski](https://forum.ansible.com/u/erotski)\
**Replies:** 0\
**Last updated:** [August 18, 2017, 10:57am UTC](https://forum.ansible.com/t/yaml-loop-is-giving-me-error-unable-to-open-shell-nx-os-and-ios-modules/25290 "2017-08-18T10:57:09Z")

</div>

Hi there, I am building a virtual lab to test Ansible network modules against, Cisco Nexus and IOS devices. I am running ansible with version 2.3.2 on Ubuntu server 16.04.3 root@ubuntu:/etc/ansible# ansible --version …

---

## [suggest me the steps for clearing  the  hadoop YARN Cache using Ansible](https://forum.ansible.com/t/suggest-me-the-steps-for-clearing-the-hadoop-yarn-cache-using-ansible/25288)

<div class="topic-metadata">

**Author:** [@Soniya\_panwar](https://forum.ansible.com/u/Soniya_panwar)\
**Replies:** 0\
**Last updated:** [August 18, 2017, 8:24am UTC](https://forum.ansible.com/t/suggest-me-the-steps-for-clearing-the-hadoop-yarn-cache-using-ansible/25288 "2017-08-18T08:24:05Z")

</div>

Hello bibhu patnaik , you can use this Ansible playbook to execute your tasks. name: service hadoop-mapreduce-historyserver stop service: name: hadoop-mapreduce-historyserver state: stopped name: service hadoop…

---

## [Galaxy maintenance tonight 11 PM Eastern](https://forum.ansible.com/t/galaxy-maintenance-tonight-11-pm-eastern/25284)

<div class="topic-metadata">

**Author:** [@chousekn](https://forum.ansible.com/u/chousekn)\
**Replies:** 1\
**Last updated:** [August 18, 2017, 5:36am UTC](https://forum.ansible.com/t/galaxy-maintenance-tonight-11-pm-eastern/25284 "2017-08-18T05:36:09Z")

</div>

We’ll be taking Galaxy offline for approximately an hour this evening starting at 11:00 PM Eastern. During this time the the web site will be offline, which means logins, role imports and role downloads (from Galaxy) wil…

---

## [suggest me the steps for clearing the hadoop YARN Cache using Ansible](https://forum.ansible.com/t/suggest-me-the-steps-for-clearing-the-hadoop-yarn-cache-using-ansible/25286)

<div class="topic-metadata">

**Author:** [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Replies:** 0\
**Last updated:** [August 17, 2017, 11:07pm UTC](https://forum.ansible.com/t/suggest-me-the-steps-for-clearing-the-hadoop-yarn-cache-using-ansible/25286 "2017-08-17T23:07:22Z")

</div>

Hi Suggestion is to use the service module for step 1 and 4. Find the documentation here: http://docs.ansible.com/ansible/latest/service\_module.html Other steps just the find module or even command module. Dick

---

## [Using when conditional to match string in output register](https://forum.ansible.com/t/using-when-conditional-to-match-string-in-output-register/25273)

<div class="topic-metadata">

**Author:** [@Ted\_Meller](https://forum.ansible.com/u/Ted_Meller)\
**Replies:** 1\
**Last updated:** [August 17, 2017, 8:10pm UTC](https://forum.ansible.com/t/using-when-conditional-to-match-string-in-output-register/25273 "2017-08-17T20:10:31Z")

</div>

Im unable to search my output variable for a specified string that im using for a when statement. The code below is supposed to check for the string “distribute-list” in the output variable but when run the playbook it g…

---

## [Destroyed ec2 resources with count\_tag and exact count](https://forum.ansible.com/t/destroyed-ec2-resources-with-count-tag-and-exact-count/25277)

<div class="topic-metadata">

**Author:** [@Bill\_Brooks](https://forum.ansible.com/u/Bill_Brooks)\
**Replies:** 1\
**Last updated:** [August 17, 2017, 1:40pm UTC](https://forum.ansible.com/t/destroyed-ec2-resources-with-count-tag-and-exact-count/25277 "2017-08-17T13:40:52Z")

</div>

I am working with Ansible and just accidentally terminated 4 ec2 instances out of 20+ in AWS and I’m trying to figure out the why as to what was deleted. I have already determined that the code I originally used was wron…

---

## [docker module  - what is the syntax for 'volumes' parameter](https://forum.ansible.com/t/docker-module-what-is-the-syntax-for-volumes-parameter/16343)

<div class="topic-metadata">

**Author:** [@Bk\_Lau](https://forum.ansible.com/u/Bk_Lau)\
**Replies:** 3\
**Last updated:** [August 17, 2017, 11:08am UTC](https://forum.ansible.com/t/docker-module-what-is-the-syntax-for-volumes-parameter/16343 "2017-08-17T11:08:04Z")

</div>

Hi : What is the syntax for the “volumes” parameter in the docker module?. There is no example. Assume that I have a host dirs at “/opt/my\_logs1” and “/opt/my\_logs2” and I want to map it to a container volumes at “/op…

---

## [async tasks not following remote\_tmp settings](https://forum.ansible.com/t/async-tasks-not-following-remote-tmp-settings/24982)

<div class="topic-metadata">

**Author:** [@alan](https://forum.ansible.com/u/alan)\
**Replies:** 1\
**Last updated:** [August 17, 2017, 8:49am UTC](https://forum.ansible.com/t/async-tasks-not-following-remote-tmp-settings/24982 "2017-08-17T08:49:10Z")

</div>

Greetings, I think I’m having the same issue reported in #10054, but using Ansible-2.3.0. A little background: I’m running an Ansible playbook on remote systems where the root directory (which includes /home dirs) is i…

---

## [ec2\_lc - launch configuration user data - uploads to aws OK but disappears!!](https://forum.ansible.com/t/ec2-lc-launch-configuration-user-data-uploads-to-aws-ok-but-disappears/17748)

<div class="topic-metadata">

**Author:** [@Stephen\_Tan](https://forum.ansible.com/u/Stephen_Tan)\
**Replies:** 4\
**Last updated:** [August 16, 2017, 9:44pm UTC](https://forum.ansible.com/t/ec2-lc-launch-configuration-user-data-uploads-to-aws-ok-but-disappears/17748 "2017-08-16T21:44:16Z")

</div>

Hi all Got a weird issue where I’m trying upload a bash script as user-data - via the launch config module. Any help regarding this is appreciated - even if it’s a method of debugging this - there are no errors which i…

---

## [can we setup HA Ansible server using community Ansible ?](https://forum.ansible.com/t/can-we-setup-ha-ansible-server-using-community-ansible/25216)

<div class="topic-metadata">

**Author:** [@htallur](https://forum.ansible.com/u/htallur)\
**Replies:** 2\
**Last updated:** [August 16, 2017, 7:36pm UTC](https://forum.ansible.com/t/can-we-setup-ha-ansible-server-using-community-ansible/25216 "2017-08-16T19:36:08Z")

</div>

can we setup HA Ansible server using community Ansible ?. is there already such solution.

---

## [can ansible tower cluster nodes be grouped under auto scaling group in aws ?](https://forum.ansible.com/t/can-ansible-tower-cluster-nodes-be-grouped-under-auto-scaling-group-in-aws/25272)

<div class="topic-metadata">

**Author:** [@htallur](https://forum.ansible.com/u/htallur)\
**Replies:** 0\
**Last updated:** [August 16, 2017, 7:33pm UTC](https://forum.ansible.com/t/can-ansible-tower-cluster-nodes-be-grouped-under-auto-scaling-group-in-aws/25272 "2017-08-16T19:33:40Z")

</div>

can ansible tower cluster nodes be grouped under auto scaling group in aws ? I am planning for a scenario when the number of aws instances increases is it possible to spin a ansible tower node part of cluster to handle…

---

## [ansible-vault doesn't prompt to create vault password](https://forum.ansible.com/t/ansible-vault-doesnt-prompt-to-create-vault-password/25214)

<div class="topic-metadata">

**Author:** [@mamullen13316](https://forum.ansible.com/u/mamullen13316)\
**Replies:** 4\
**Last updated:** [August 16, 2017, 6:53pm UTC](https://forum.ansible.com/t/ansible-vault-doesnt-prompt-to-create-vault-password/25214 "2017-08-16T18:53:25Z")

</div>

I’m running 2.4.0 and trying to encrypt a file with ansible-vault. In past versions of Ansible, this command would prompt to create a vault password to encrypt the file: C02NVAEGG3QJ:playbooks mullenma$ ansible-vault en…

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

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