# Ansible Project

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

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

**Page:** 221

---

## [how can change or add multiple path to "ansible python module location" variable?](https://forum.ansible.com/t/how-can-change-or-add-multiple-path-to-ansible-python-module-location-variable/29142)

<div class="topic-metadata">

**Author:** [@Alex\_Penazzi](https://forum.ansible.com/u/Alex_Penazzi)\
**Replies:** 0\
**Last updated:** [November 28, 2018, 1:52pm UTC](https://forum.ansible.com/t/how-can-change-or-add-multiple-path-to-ansible-python-module-location-variable/29142 "2018-11-28T13:52:48Z")

</div>

after developing a dynamic inventory script in python3 that requires 3rd party modules installed in a different path (from ansible site-package) I realised that ansible is not able to import them (I guess because the var…

---

## [Parameterize an array for vars\_files, can't seem to template i.e. lookup/split](https://forum.ansible.com/t/parameterize-an-array-for-vars-files-cant-seem-to-template-i-e-lookup-split/28554)

<div class="topic-metadata">

**Author:** [@H\_Kim](https://forum.ansible.com/u/H_Kim)\
**Replies:** 6\
**Last updated:** [November 28, 2018, 11:42am UTC](https://forum.ansible.com/t/parameterize-an-array-for-vars-files-cant-seem-to-template-i-e-lookup-split/28554 "2018-11-28T11:42:55Z")

</div>

I’d like to read in a directory full of var files without having to specify individual files. The below combination of lookup and split is valid to define a variable but appears not to be supported with vars\_files with “…

---

## [Can't decrypt SSH key to execute ansible commands from remote Jenkins host](https://forum.ansible.com/t/cant-decrypt-ssh-key-to-execute-ansible-commands-from-remote-jenkins-host/29140)

<div class="topic-metadata">

**Author:** [@maayeti](https://forum.ansible.com/u/maayeti)\
**Replies:** 0\
**Last updated:** [November 28, 2018, 11:33am UTC](https://forum.ansible.com/t/cant-decrypt-ssh-key-to-execute-ansible-commands-from-remote-jenkins-host/29140 "2018-11-28T11:33:30Z")

</div>

Good morning, I have one Jenkins instance from which I need to issue ansible commands & playbooks, ansible master being on another dedicated machine. In my jenkins builds I execute Ansible playbooks using “Send files o…

---

## [win\_copy in windows 7 issue](https://forum.ansible.com/t/win-copy-in-windows-7-issue/29139)

<div class="topic-metadata">

**Author:** [@Sushanta\_Das](https://forum.ansible.com/u/Sushanta_Das)\
**Replies:** 0\
**Last updated:** [November 28, 2018, 11:19am UTC](https://forum.ansible.com/t/win-copy-in-windows-7-issue/29139 "2018-11-28T11:19:25Z")

</div>

Hi Experts, I am facing following error message when trying to copy a .exe file of size 500MB using win\_scp module. \[WARNING\]: FATAL ERROR DURING FILE TRANSFER: HTTPSConnectionPool(host=‘172.17.11.112’, port=5986): Rea…

---

## [Ansible constructs incorrect ssh](https://forum.ansible.com/t/ansible-constructs-incorrect-ssh/29135)

<div class="topic-metadata">

**Author:** [@Easy\_King](https://forum.ansible.com/u/Easy_King)\
**Replies:** 1\
**Last updated:** [November 28, 2018, 9:55am UTC](https://forum.ansible.com/t/ansible-constructs-incorrect-ssh/29135 "2018-11-28T09:55:04Z")

</div>

My firm’s policy has a constraint of passing “-t bash” to ssh for connectivity else it would fail \[This could be to prevent anyone from firing remote commands\]. Below ssh command works fine: ssh -i /opt/cert/id\_rsa\_pro…

---

## [Variable in "body" parameter of "uri" module](https://forum.ansible.com/t/variable-in-body-parameter-of-uri-module/29124)

<div class="topic-metadata">

**Author:** [@Ilya\_Ulis](https://forum.ansible.com/u/Ilya_Ulis)\
**Replies:** 1\
**Last updated:** [November 28, 2018, 9:32am UTC](https://forum.ansible.com/t/variable-in-body-parameter-of-uri-module/29124 "2018-11-28T09:32:19Z")

</div>

Hi all! This is my task that works: \` name: Stop services on ambari uri: url: http://{{ inventory\_hostname }}:8080/api/v1/clusters/{{ hostvars\[inventory\_hostname\].cluster\_name }}/services/{{ service }} method: PUT …

---

## [Notify with import or include not working](https://forum.ansible.com/t/notify-with-import-or-include-not-working/28992)

<div class="topic-metadata">

**Author:** [@Claudio\_Soprano](https://forum.ansible.com/u/Claudio_Soprano)\
**Replies:** 1\
**Last updated:** [November 28, 2018, 9:27am UTC](https://forum.ansible.com/t/notify-with-import-or-include-not-working/28992 "2018-11-28T09:27:56Z")

</div>

I’m on ansible 2.6.3-1.el7 on CentOS 7.2 and i’m having problems with notify using include\_tasks or import\_tasks This is that i want to achieve: using a variable to pass the packages list to a task that use yum to inst…

---

## [pickup hostname and create self signed certificate](https://forum.ansible.com/t/pickup-hostname-and-create-self-signed-certificate/29125)

<div class="topic-metadata">

**Author:** [@Vivek1](https://forum.ansible.com/u/Vivek1)\
**Replies:** 2\
**Last updated:** [November 28, 2018, 8:18am UTC](https://forum.ansible.com/t/pickup-hostname-and-create-self-signed-certificate/29125 "2018-11-28T08:18:52Z")

</div>

Hello Experts, i have working command for creating self signed certificate for IHS server’s .kdb file and i was trying to use the same command through ansible. Here my aim is that ansible should detect the hostname of a…

---

## [unarchive is not skipping if the folder already exists](https://forum.ansible.com/t/unarchive-is-not-skipping-if-the-folder-already-exists/29123)

<div class="topic-metadata">

**Author:** [@Vivek1](https://forum.ansible.com/u/Vivek1)\
**Replies:** 4\
**Last updated:** [November 28, 2018, 8:17am UTC](https://forum.ansible.com/t/unarchive-is-not-skipping-if-the-folder-already-exists/29123 "2018-11-28T08:17:26Z")

</div>

Hi Experts, I have below play book for extracting a .zip file from Ansible controller machine to the target folders. But i noticed that play is not working as expected if the target folder and the unzipped files are alr…

---

## [ipaddr filter doesn't work in virtuelenv](https://forum.ansible.com/t/ipaddr-filter-doesnt-work-in-virtuelenv/29136)

<div class="topic-metadata">

**Author:** [@Evgeniy\_Ivanov](https://forum.ansible.com/u/Evgeniy_Ivanov)\
**Replies:** 0\
**Last updated:** [November 28, 2018, 6:09am UTC](https://forum.ansible.com/t/ipaddr-filter-doesnt-work-in-virtuelenv/29136 "2018-11-28T06:09:21Z")

</div>

Hey Folks, I’ve been forwarded to this maillist from the bug tracker. Here is the problem - https://github.com/ansible/ansible/issues/49139 The filter ipaddr doesn’t seem to work properly if installed in the same playb…

---

## [How to specify multiple groups in ansible playbook.](https://forum.ansible.com/t/how-to-specify-multiple-groups-in-ansible-playbook/29121)

<div class="topic-metadata">

**Author:** [@Ameya\_Agashe](https://forum.ansible.com/u/Ameya_Agashe)\
**Replies:** 3\
**Last updated:** [November 28, 2018, 5:08am UTC](https://forum.ansible.com/t/how-to-specify-multiple-groups-in-ansible-playbook/29121 "2018-11-28T05:08:48Z")

</div>

Hello, I’m wondering how to specify multiple groups in a Ansible playbook?? I followed the correct syntax but it reports error “skipping: no hosts matched” Playbook code is as below: name: Install IIS on the newly …

---

## [difference between win\_dsc and win\_package](https://forum.ansible.com/t/difference-between-win-dsc-and-win-package/29132)

<div class="topic-metadata">

**Author:** [@Narmada\_Karthika](https://forum.ansible.com/u/Narmada_Karthika)\
**Replies:** 9\
**Last updated:** [November 28, 2018, 4:02am UTC](https://forum.ansible.com/t/difference-between-win-dsc-and-win-package/29132 "2018-11-28T04:02:54Z")

</div>

Hello All, what is the difference between win\_dsc and win\_package. thanks, Narmada

---

## [How to use eval() method in ansible?](https://forum.ansible.com/t/how-to-use-eval-method-in-ansible/29119)

<div class="topic-metadata">

**Author:** [@Sindhuja\_Durairaj](https://forum.ansible.com/u/Sindhuja_Durairaj)\
**Replies:** 1\
**Last updated:** [November 28, 2018, 3:33am UTC](https://forum.ansible.com/t/how-to-use-eval-method-in-ansible/29119 "2018-11-28T03:33:51Z")

</div>

Hello Team, I would like to use eval() method which we use in python to be used in Ansible or in jinja templating. So far, I didn’t get any module for it in Ansible. There is no filter called eval which can be used in j…

---

## [A couple of thousand new servers to add into ansible](https://forum.ansible.com/t/a-couple-of-thousand-new-servers-to-add-into-ansible/29081)

<div class="topic-metadata">

**Author:** [@Sloan](https://forum.ansible.com/u/Sloan)\
**Replies:** 3\
**Last updated:** [November 27, 2018, 11:10pm UTC](https://forum.ansible.com/t/a-couple-of-thousand-new-servers-to-add-into-ansible/29081 "2018-11-27T23:10:44Z")

</div>

I am currently setting up to add a couple of thousand servers into ansible config mgmt. Does anyone know of any blogs scripts etc that could be helpful. specifically I am looking into automated login scripts like expect …

---

## [Ansible Play Output](https://forum.ansible.com/t/ansible-play-output/29131)

<div class="topic-metadata">

**Author:** [@evangelinaa.ruiz32](https://forum.ansible.com/u/evangelinaa.ruiz32)\
**Replies:** 1\
**Last updated:** [November 27, 2018, 10:16pm UTC](https://forum.ansible.com/t/ansible-play-output/29131 "2018-11-27T22:16:36Z")

</div>

How can I completely omit the output of an entire play?

---

## [bulk set\_fact from output of an external script?](https://forum.ansible.com/t/bulk-set-fact-from-output-of-an-external-script/29128)

<div class="topic-metadata">

**Author:** [@Alexander\_Spitzer](https://forum.ansible.com/u/Alexander_Spitzer)\
**Replies:** 1\
**Last updated:** [November 27, 2018, 7:22pm UTC](https://forum.ansible.com/t/bulk-set-fact-from-output-of-an-external-script/29128 "2018-11-27T19:22:51Z")

</div>

Right now I have a role/common that does a lot of “discovery” about the machine. It does things like looks at the hostname and sets “machine\_env” to dev/qa/prod. It also does a lot of discovery to see what applications…

---

## [Ansible vmware module - create a template from a VM](https://forum.ansible.com/t/ansible-vmware-module-create-a-template-from-a-vm/29083)

<div class="topic-metadata">

**Author:** [@Tuyen\_Nguyen](https://forum.ansible.com/u/Tuyen_Nguyen)\
**Replies:** 2\
**Last updated:** [November 27, 2018, 7:18pm UTC](https://forum.ansible.com/t/ansible-vmware-module-create-a-template-from-a-vm/29083 "2018-11-27T19:18:53Z")

</div>

Hi I am seeing a lot of information on how to deploy a VM from a template, however what I am looking for is how we can create a template from a VM? My plan is to first bring up a VM from a base template, then I will ha…

---

## [block/rescue to find out failed hosts with hostvar and when](https://forum.ansible.com/t/block-rescue-to-find-out-failed-hosts-with-hostvar-and-when/29129)

<div class="topic-metadata">

**Author:** [@hajott](https://forum.ansible.com/u/hajott)\
**Replies:** 0\
**Last updated:** [November 27, 2018, 6:49pm UTC](https://forum.ansible.com/t/block-rescue-to-find-out-failed-hosts-with-hostvar-and-when/29129 "2018-11-27T18:49:49Z")

</div>

Hello, I try to figure out, how I can find the failed hosts in rescue. My idea was to use: name: add failed hosts to the exclude list add\_host: name: “{{ item }}” groups: failed\_hosts\_in\_block when: hostvars:\[ite…

---

## [uncommenting a line in file is not working](https://forum.ansible.com/t/uncommenting-a-line-in-file-is-not-working/29127)

<div class="topic-metadata">

**Author:** [@vivek\_mv](https://forum.ansible.com/u/vivek_mv)\
**Replies:** 2\
**Last updated:** [November 27, 2018, 4:59pm UTC](https://forum.ansible.com/t/uncommenting-a-line-in-file-is-not-working/29127 "2018-11-27T16:59:43Z")

</div>

Hello Experts, my ansible play book is working for me to uncomment certain lines in a .conf file, but its failing for one particular line its not making any change. below is my .conf file part. → #\<VirtualHost \*:44…

---

## [how to deference data from registered variables with loop](https://forum.ansible.com/t/how-to-deference-data-from-registered-variables-with-loop/29126)

<div class="topic-metadata">

**Author:** [@Dale\_Sykora](https://forum.ansible.com/u/Dale_Sykora)\
**Replies:** 2\
**Last updated:** [November 27, 2018, 4:26pm UTC](https://forum.ansible.com/t/how-to-deference-data-from-registered-variables-with-loop/29126 "2018-11-27T16:26:25Z")

</div>

I am trying to process a list of subfolders, but am having trouble dereferencing the data If I run the following playbook

---

## [Ansible copy or delete multiple files in parallel](https://forum.ansible.com/t/ansible-copy-or-delete-multiple-files-in-parallel/29105)

<div class="topic-metadata">

**Author:** [@anushakeshipeddy4](https://forum.ansible.com/u/anushakeshipeddy4)\
**Replies:** 3\
**Last updated:** [November 27, 2018, 3:59pm UTC](https://forum.ansible.com/t/ansible-copy-or-delete-multiple-files-in-parallel/29105 "2018-11-27T15:59:31Z")

</div>

Hi Team, Can we copy or delete files in parallel instead of sequence for different locations when using with\_items.

---

## [Is there any way to manage windows 2003 servers using Ansible?](https://forum.ansible.com/t/is-there-any-way-to-manage-windows-2003-servers-using-ansible/29118)

<div class="topic-metadata">

**Author:** [@yyellapragada](https://forum.ansible.com/u/yyellapragada)\
**Replies:** 2\
**Last updated:** [November 27, 2018, 2:33am UTC](https://forum.ansible.com/t/is-there-any-way-to-manage-windows-2003-servers-using-ansible/29118 "2018-11-27T02:33:27Z")

</div>

Hello Team, Based on my research, there is no straight way to manage windows 2003 servers using Ansible and there are some github repos which share Ansible Core packages that use powershell 2.0 (windows 2003) but it is …

---

## [\[WARNING\]: The src option requires state to be 'link' or 'hard'.  This will become an error in Ansible 2.10](https://forum.ansible.com/t/warning-the-src-option-requires-state-to-be-link-or-hard-this-will-become-an-error-in-ansible-2-10/29120)

<div class="topic-metadata">

**Author:** [@Ronnie10](https://forum.ansible.com/u/Ronnie10)\
**Replies:** 2\
**Last updated:** [November 27, 2018, 2:27am UTC](https://forum.ansible.com/t/warning-the-src-option-requires-state-to-be-link-or-hard-this-will-become-an-error-in-ansible-2-10/29120 "2018-11-27T02:27:19Z")

</div>

Hi All, I have the following ansible codes, however when I run molecule test, it gave me the error as my subject, anyway to fix that? name: Copy file to config folder file: src: files/ dest: “PATH/config/” mode: …

---

## [error when installing apache on ubuntu](https://forum.ansible.com/t/error-when-installing-apache-on-ubuntu/24625)

<div class="topic-metadata">

**Author:** [@DOkuwa](https://forum.ansible.com/u/DOkuwa)\
**Replies:** 12\
**Last updated:** [November 27, 2018, 1:15am UTC](https://forum.ansible.com/t/error-when-installing-apache-on-ubuntu/24625 "2018-11-27T01:15:06Z")

</div>

This is my playbook apache.yml

---

## [Cannot copy a file from S3 to a windows node. WinRM send\_input failed error.](https://forum.ansible.com/t/cannot-copy-a-file-from-s3-to-a-windows-node-winrm-send-input-failed-error/29111)

<div class="topic-metadata">

**Author:** [@yyellapragada](https://forum.ansible.com/u/yyellapragada)\
**Replies:** 2\
**Last updated:** [November 26, 2018, 11:56pm UTC](https://forum.ansible.com/t/cannot-copy-a-file-from-s3-to-a-windows-node-winrm-send-input-failed-error/29111 "2018-11-26T23:56:45Z")

</div>

Hello Team, I just started using Ansible and am having trouble in getting it to work with AWS S3. Could you please have a look at the output and help me understand what I did wrong? I did a lot of research on the error…

---

## [Ansible querry](https://forum.ansible.com/t/ansible-querry/29115)

<div class="topic-metadata">

**Author:** [@Sudhir](https://forum.ansible.com/u/Sudhir)\
**Replies:** 2\
**Last updated:** [November 26, 2018, 10:36pm UTC](https://forum.ansible.com/t/ansible-querry/29115 "2018-11-26T22:36:42Z")

</div>

Hello all, Just wanted to check how can I write a shell script and running as adhoc command on managed host to update the server CPU/memory/mac address ( facts )

---

## [how to add ssh host-keys for lots of new cloud hosts?](https://forum.ansible.com/t/how-to-add-ssh-host-keys-for-lots-of-new-cloud-hosts/29096)

<div class="topic-metadata">

**Author:** [@Mark\_Zhitomirski](https://forum.ansible.com/u/Mark_Zhitomirski)\
**Replies:** 4\
**Last updated:** [November 26, 2018, 10:35am UTC](https://forum.ansible.com/t/how-to-add-ssh-host-keys-for-lots-of-new-cloud-hosts/29096 "2018-11-26T10:35:06Z")

</div>

Traditional approach is to leave it to a human operator and warn him of a new host key. This way is a no-go for automation and testing, a workaround is to disable host-key checks with ansible\_ssh\_extra\_args: ‘-o StrictH…

---

## [How do I exit Ansible playbook without error on a condition](https://forum.ansible.com/t/how-do-i-exit-ansible-playbook-without-error-on-a-condition/29108)

<div class="topic-metadata">

**Author:** [@Pandu\_jh](https://forum.ansible.com/u/Pandu_jh)\
**Replies:** 4\
**Last updated:** [November 26, 2018, 9:59am UTC](https://forum.ansible.com/t/how-do-i-exit-ansible-playbook-without-error-on-a-condition/29108 "2018-11-26T09:59:54Z")

</div>

I have 3 plays in a playbook. In a task in 1st play, If the desired value is not set to variable, the execution should exist with success status and remaining plays also should not get executed.

---

## [ssh-copy-id error](https://forum.ansible.com/t/ssh-copy-id-error/29069)

<div class="topic-metadata">

**Author:** [@Arvind\_Thatikonda](https://forum.ansible.com/u/Arvind_Thatikonda)\
**Replies:** 2\
**Last updated:** [November 25, 2018, 12:38am UTC](https://forum.ansible.com/t/ssh-copy-id-error/29069 "2018-11-25T00:38:04Z")

</div>

I created a ansible control server, and client server. I created ‘ansible’ users on both control and remote client server. I created ssh keys use ssh-keygen, I tried to copy the ssh keys ( public key) to remote client us…

---

## [How to write selected values to a file from a list of JSON arrays?](https://forum.ansible.com/t/how-to-write-selected-values-to-a-file-from-a-list-of-json-arrays/29109)

<div class="topic-metadata">

**Author:** [@Nick\_Ellson](https://forum.ansible.com/u/Nick_Ellson)\
**Replies:** 3\
**Last updated:** [November 24, 2018, 7:51pm UTC](https://forum.ansible.com/t/how-to-write-selected-values-to-a-file-from-a-list-of-json-arrays/29109 "2018-11-24T19:51:24Z")

</div>

I have a task that I am scratching my head on, and my google foo is just getting some really basic examples of the COPY - CONTENT method of writing a file. my variable returned from the URI module is data, which is a 4 …

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

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