# Ansible Project

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

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

**Page:** 197

---

## [Variable substitution in meta/main.yml](https://forum.ansible.com/t/variable-substitution-in-meta-main-yml/29193)

<div class="topic-metadata">

**Author:** [@Lee\_Connell](https://forum.ansible.com/u/Lee_Connell)\
**Replies:** 2\
**Last updated:** [April 9, 2019, 1:32pm UTC](https://forum.ansible.com/t/variable-substitution-in-meta-main-yml/29193 "2019-04-09T13:32:55Z")

</div>

Hi all, I am looking to use variable substitution in meta/main.yml and it doesn’t seem to be working, at least on 2.4.2. Is this a supported feature in any of the newer versions? My use case is I have one “common” role …

---

## [Ansible modules copy/template errors for Linux 5 hosts using python26 ,python binding libselinux-python needed](https://forum.ansible.com/t/ansible-modules-copy-template-errors-for-linux-5-hosts-using-python26-python-binding-libselinux-python-needed/29988)

<div class="topic-metadata">

**Author:** [@iamlightsocialxen](https://forum.ansible.com/u/iamlightsocialxen)\
**Replies:** 2\
**Last updated:** [April 9, 2019, 8:49am UTC](https://forum.ansible.com/t/ansible-modules-copy-template-errors-for-linux-5-hosts-using-python26-python-binding-libselinux-python-needed/29988 "2019-04-09T08:49:42Z")

</div>

Hello Ladies & Gentlemen, We have some 50 odd linux 5 hosts, and to manage that we use ansible. Problem :- Ansible modules copy/template errors for Linux 5 hosts using python26 ,python binding libselinux-python needed …

---

## [RDS DB instance and EC2 security group are in different VPCs](https://forum.ansible.com/t/rds-db-instance-and-ec2-security-group-are-in-different-vpcs/30080)

<div class="topic-metadata">

**Author:** [@Ian\_Williamson](https://forum.ansible.com/u/Ian_Williamson)\
**Replies:** 0\
**Last updated:** [April 9, 2019, 12:36am UTC](https://forum.ansible.com/t/rds-db-instance-and-ec2-security-group-are-in-different-vpcs/30080 "2019-04-09T00:36:43Z")

</div>

I am trying to create an RDS MySQL instance in AWS using the Ansible rds module. It works fine if I do not provide subnet or SG parameters. it will deploys into the default VPC. However I need to be able to define the V…

---

## [Execut playbook host after host](https://forum.ansible.com/t/execut-playbook-host-after-host/30077)

<div class="topic-metadata">

**Author:** [@ryad9200000](https://forum.ansible.com/u/ryad9200000)\
**Replies:** 2\
**Last updated:** [April 8, 2019, 9:58am UTC](https://forum.ansible.com/t/execut-playbook-host-after-host/30077 "2019-04-08T09:58:39Z")

</div>

Hi all, I have my principal playbook with this content : hosts: all become: no gather\_facts: no roles: role I have on file with content : my\_host\_1 ansible\_user: my\_user my\_host\_2 ansible\_user: my\_user I want t…

---

## [how to access debug  stdout variable](https://forum.ansible.com/t/how-to-access-debug-stdout-variable/30051)

<div class="topic-metadata">

**Author:** [@Kunalsing\_Thakur](https://forum.ansible.com/u/Kunalsing_Thakur)\
**Replies:** 10\
**Last updated:** [April 8, 2019, 5:27am UTC](https://forum.ansible.com/t/how-to-access-debug-stdout-variable/30051 "2019-04-08T05:27:15Z")

</div>

playbook:- task:- name: Deploying PCC-test hosts: pulp gather\_facts: true vars\_files: /etc/ansible/inventories/group\_vars/common.yaml vars: rpmsearch: true rpmname: mobi-auth-manager-5.42.0-201903291228.ed4d6a0.no…

---

## [ssh transport and windows](https://forum.ansible.com/t/ssh-transport-and-windows/30071)

<div class="topic-metadata">

**Author:** [@sergey.mihailov](https://forum.ansible.com/u/sergey.mihailov)\
**Replies:** 4\
**Last updated:** [April 7, 2019, 8:10am UTC](https://forum.ansible.com/t/ssh-transport-and-windows/30071 "2019-04-07T08:10:18Z")

</div>

Hello. I am aware of the support for SSH in Windows 2019 and Windows 10. I installed the OpenSSH in Windows 8.1 and tried to enter it. All is well. But if you turn on ssh transport in ansable, then nothing works …

---

## [purestorage sdk missing](https://forum.ansible.com/t/purestorage-sdk-missing/30055)

<div class="topic-metadata">

**Author:** [@Lucas\_Possamai](https://forum.ansible.com/u/Lucas_Possamai)\
**Replies:** 16\
**Last updated:** [April 7, 2019, 5:21am UTC](https://forum.ansible.com/t/purestorage-sdk-missing/30055 "2019-04-07T05:21:20Z")

</div>

Hi guys. When calling a playbook I get the following error: FAILED! =\> {“changed”: false, “msg”: “purestorage sdk is required for this module in volume”} Purestorage sdk is installed in my laptop (i’m running that loc…

---

## [regex\_replace filter](https://forum.ansible.com/t/regex-replace-filter/30075)

<div class="topic-metadata">

**Author:** [@Sri\_Krishna\_G](https://forum.ansible.com/u/Sri_Krishna_G)\
**Replies:** 1\
**Last updated:** [April 7, 2019, 5:13am UTC](https://forum.ansible.com/t/regex-replace-filter/30075 "2019-04-07T05:13:32Z")

</div>

I have a list of strings like : \` \[hosts\] 10.100.0.1 10.100.0.2 10.100.0.3 \` I am following the example under : https://docs.ansible.com/ansible/latest/user\_guide/playbooks\_filters.html to “add “https://” prefix t…

---

## [cannot get this playbook to work with inventory file](https://forum.ansible.com/t/cannot-get-this-playbook-to-work-with-inventory-file/30076)

<div class="topic-metadata">

**Author:** [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Replies:** 0\
**Last updated:** [April 6, 2019, 8:48pm UTC](https://forum.ansible.com/t/cannot-get-this-playbook-to-work-with-inventory-file/30076 "2019-04-06T20:48:36Z")

</div>

I am having an issue with ansible/vmware. Trying to clone vms from an inventory file and playbook inventory file: \[test-vms\] ans-test\[01:05\] ‘disk’=‘60’ ‘memory’=‘2048’ ‘cpucount’=‘1’ ‘datastore’=‘VOL1-TEST’ 'osid=‘wi…

---

## [\\e\[0m comapre this string in failed\_when condition](https://forum.ansible.com/t/e-0m-comapre-this-string-in-failed-when-condition/30057)

<div class="topic-metadata">

**Author:** [@Kunalsing\_Thakur](https://forum.ansible.com/u/Kunalsing_Thakur)\
**Replies:** 5\
**Last updated:** [April 6, 2019, 10:08am UTC](https://forum.ansible.com/t/e-0m-comapre-this-string-in-failed-when-condition/30057 "2019-04-06T10:08:23Z")

</div>

Hello Team, When i was checking for string comparison in failed\_when condition. the ansible task does not give any output if search is not found. but it will print stdout variable as stdout: “\\e\[0m” But when i try to …

---

## [failed\_when not working for empty sting output in task output](https://forum.ansible.com/t/failed-when-not-working-for-empty-sting-output-in-task-output/30050)

<div class="topic-metadata">

**Author:** [@Kunalsing\_Thakur](https://forum.ansible.com/u/Kunalsing_Thakur)\
**Replies:** 18\
**Last updated:** [April 6, 2019, 10:08am UTC](https://forum.ansible.com/t/failed-when-not-working-for-empty-sting-output-in-task-output/30050 "2019-04-06T10:08:09Z")

</div>

playbook:-

---

## [How to make Ansible Tasks work with Packer](https://forum.ansible.com/t/how-to-make-ansible-tasks-work-with-packer/30069)

<div class="topic-metadata">

**Author:** [@gigit1000](https://forum.ansible.com/u/gigit1000)\
**Replies:** 3\
**Last updated:** [April 5, 2019, 10:21pm UTC](https://forum.ansible.com/t/how-to-make-ansible-tasks-work-with-packer/30069 "2019-04-05T22:21:45Z")

</div>

Hello, I’m trying to use Ansible as a provisioner with Packer. I have a playbook with tasks that: -create a local directory (win\_file) -download a file from s3 (aws\_s3) -run windows updates (win\_updates) It works fi…

---

## [New Ansible release 2.7.10 and 2.6.16](https://forum.ansible.com/t/new-ansible-release-2-7-10-and-2-6-16/30066)

<div class="topic-metadata">

**Author:** [@tkuratom](https://forum.ansible.com/u/tkuratom)\
**Replies:** 2\
**Last updated:** [April 5, 2019, 5:13pm UTC](https://forum.ansible.com/t/new-ansible-release-2-7-10-and-2-6-16/30066 "2019-04-05T17:13:28Z")

</div>

Hi all- we're happy to announce that the general release of Ansible 2.7.10 and 2.6.16 is now available! How do you get it?

---

## [var for --ask-pass ?](https://forum.ansible.com/t/var-for-ask-pass/30056)

<div class="topic-metadata">

**Author:** [@sergey.mihailov](https://forum.ansible.com/u/sergey.mihailov)\
**Replies:** 8\
**Last updated:** [April 5, 2019, 12:15pm UTC](https://forum.ansible.com/t/var-for-ask-pass/30056 "2019-04-05T12:15:57Z")

</div>

I start playbook : ansible-playbook win\_install\_ascon.yml --ask-pass define in playbook: … ansible\_become\_pass: “{{ remote\_pass }}” … OUT: … FAILED! =\> {“msg”: “The field ‘become\_pass’ has an invalid value, which …

---

## [list containing any item of another list](https://forum.ansible.com/t/list-containing-any-item-of-another-list/30054)

<div class="topic-metadata">

**Author:** [@Adam\_E](https://forum.ansible.com/u/Adam_E)\
**Replies:** 1\
**Last updated:** [April 5, 2019, 11:04am UTC](https://forum.ansible.com/t/list-containing-any-item-of-another-list/30054 "2019-04-05T11:04:14Z")

</div>

Hi, wondering if there is any cleaner way to see if two lists have 1 or more intersecting values? the following works for me returns true {{ \[‘value1’, ‘value2’\] | intersect(\[‘value1’, ‘value2’\]) | length \> 0 }} retu…

---

## [Ansible winrm for non domain joined devices and domain joined](https://forum.ansible.com/t/ansible-winrm-for-non-domain-joined-devices-and-domain-joined/30068)

<div class="topic-metadata">

**Author:** [@daemenseth](https://forum.ansible.com/u/daemenseth)\
**Replies:** 2\
**Last updated:** [April 5, 2019, 9:58am UTC](https://forum.ansible.com/t/ansible-winrm-for-non-domain-joined-devices-and-domain-joined/30068 "2019-04-05T09:58:45Z")

</div>

We use a lot of windows devices. They are installed with the windows deployment toolkit and after that i want to run ansible playbooks on it to join domain and some other settings. Which winrm authentication can we best…

---

## [open(module, 'wb') SyntaxError for raw module in ansible-playbook](https://forum.ansible.com/t/open-module-wb-syntaxerror-for-raw-module-in-ansible-playbook/30062)

<div class="topic-metadata">

**Author:** [@Henry\_Iracheta](https://forum.ansible.com/u/Henry_Iracheta)\
**Replies:** 3\
**Last updated:** [April 4, 2019, 10:04pm UTC](https://forum.ansible.com/t/open-module-wb-syntaxerror-for-raw-module-in-ansible-playbook/30062 "2019-04-04T22:04:33Z")

</div>

I am trying to use Ansible on a remote host that has a version of Python 2.4.3 installed. My understanding is that a more recent version of Python is required to properly use Ansible; however, I should be able to use th…

---

## [ansible uri and body format](https://forum.ansible.com/t/ansible-uri-and-body-format/30058)

<div class="topic-metadata">

**Author:** [@wanexa77](https://forum.ansible.com/u/wanexa77)\
**Replies:** 2\
**Last updated:** [April 4, 2019, 8:35pm UTC](https://forum.ansible.com/t/ansible-uri-and-body-format/30058 "2019-04-04T20:35:18Z")

</div>

Here are my body’s model { “specs”: \[ { “name”: “test”, “id”: “7dcf2db8-858e-4c00-bbde-e0c5c734770c” } \] } trying to convert this last for uri module body\_format: json body: specs: id: “{{ item.0.uuid }}” n…

---

## [mysql\_db module issue](https://forum.ansible.com/t/mysql-db-module-issue/30067)

<div class="topic-metadata">

**Author:** [@William\_Muriithi](https://forum.ansible.com/u/William_Muriithi)\
**Replies:** 1\
**Last updated:** [April 4, 2019, 6:27pm UTC](https://forum.ansible.com/t/mysql-db-module-issue/30067 "2019-04-04T18:27:22Z")

</div>

Hello, I have an old task that works on an previous system but fail to work in the new system. I am certain it hasn’t changed through git log but I have updated ansible on control system. I don’t see other people raisin…

---

## [Splunk Administror](https://forum.ansible.com/t/splunk-administror/30065)

<div class="topic-metadata">

**Author:** [@Ankit2](https://forum.ansible.com/u/Ankit2)\
**Replies:** 1\
**Last updated:** [April 4, 2019, 6:04pm UTC](https://forum.ansible.com/t/splunk-administror/30065 "2019-04-04T18:04:39Z")

</div>

Can we ban the spammers?

---

## [How to execute a playbook before a role?](https://forum.ansible.com/t/how-to-execute-a-playbook-before-a-role/30064)

<div class="topic-metadata">

**Author:** [@John\_Harmon](https://forum.ansible.com/u/John_Harmon)\
**Replies:** 2\
**Last updated:** [April 4, 2019, 5:12pm UTC](https://forum.ansible.com/t/how-to-execute-a-playbook-before-a-role/30064 "2019-04-04T17:12:57Z")

</div>

This doesn’t work of course, but shows what I am trying to do. I wish to call a playbook before a couple of roles. How might I do this? Doesn’t work, but is an explanatory example: \`

---

## [Ansible with gpg-agent prompts for private key password constantly](https://forum.ansible.com/t/ansible-with-gpg-agent-prompts-for-private-key-password-constantly/30053)

<div class="topic-metadata">

**Author:** [@Mark\_Clarke](https://forum.ansible.com/u/Mark_Clarke)\
**Replies:** 4\
**Last updated:** [April 4, 2019, 3:42pm UTC](https://forum.ansible.com/t/ansible-with-gpg-agent-prompts-for-private-key-password-constantly/30053 "2019-04-04T15:42:13Z")

</div>

Hi all, We are using gpg-agent to provide ssh-agent functionality for the caching the private key passphrases. Some of the keys will be stored in the gpg keyring whilst some services such as ansible uses a standard ssh …

---

## [What is the difference between runing playbook on ansible host and from Jenkins](https://forum.ansible.com/t/what-is-the-difference-between-runing-playbook-on-ansible-host-and-from-jenkins/30061)

<div class="topic-metadata">

**Author:** [@Jinna\_Balu](https://forum.ansible.com/u/Jinna_Balu)\
**Replies:** 0\
**Last updated:** [April 4, 2019, 3:14pm UTC](https://forum.ansible.com/t/what-is-the-difference-between-runing-playbook-on-ansible-host-and-from-jenkins/30061 "2019-04-04T15:14:54Z")

</div>

SUMMARY Failed to connect to the host via ssh: Host key verification failed I have set of EC2 instance, i want to do application automation through jenkins UI using ansible plugin. ISSUE TYPE- Bug Report I am able to r…

---

## [template Text Area value from AWX survey](https://forum.ansible.com/t/template-text-area-value-from-awx-survey/30059)

<div class="topic-metadata">

**Author:** [@guhan\_kumar](https://forum.ansible.com/u/guhan_kumar)\
**Replies:** 0\
**Last updated:** [April 4, 2019, 11:47am UTC](https://forum.ansible.com/t/template-text-area-value-from-awx-survey/30059 "2019-04-04T11:47:20Z")

</div>

Hi All, I have to create the variable in group vars as below disk: { device: /dev/sdb pvname: /dev/sdb1 } { device: /dev/sdc pvname: /dev/sdc1 } i am getting disks name from job template survey i textarea , while te…

---

## [Module yum: update revision](https://forum.ansible.com/t/module-yum-update-revision/29853)

<div class="topic-metadata">

**Author:** [@Ricardo\_Ferreira](https://forum.ansible.com/u/Ricardo_Ferreira)\
**Replies:** 1\
**Last updated:** [April 4, 2019, 10:20am UTC](https://forum.ansible.com/t/module-yum-update-revision/29853 "2019-04-04T10:20:51Z")

</div>

Hi all, I need to update a list of packages but to a new revision inside a version. If I use state latest the yum module just ignore the version and install the latest version avaliable. If I use the state present and…

---

## [ansible concatenate variables](https://forum.ansible.com/t/ansible-concatenate-variables/30025)

<div class="topic-metadata">

**Author:** [@Krzysztof\_Kulaj](https://forum.ansible.com/u/Krzysztof_Kulaj)\
**Replies:** 1\
**Last updated:** [April 3, 2019, 9:35pm UTC](https://forum.ansible.com/t/ansible-concatenate-variables/30025 "2019-04-03T21:35:27Z")

</div>

Hello, I have simple question about concatenating variables in Ansible. I am using a role https://github.com/singleplatform-eng/ansible-users . I would like to define root user in group\_vars/all . It works well. The p…

---

## [connection caching throughout a play](https://forum.ansible.com/t/connection-caching-throughout-a-play/30030)

<div class="topic-metadata">

**Author:** [@Michael\_Stroder](https://forum.ansible.com/u/Michael_Stroder)\
**Replies:** 1\
**Last updated:** [April 3, 2019, 8:41pm UTC](https://forum.ansible.com/t/connection-caching-throughout-a-play/30030 "2019-04-03T20:41:51Z")

</div>

HI! On the ansible controller I'd like to establish an authenticated LDAP connection at the beginning of a playbook run and use this afterwards in several tasks. Up to now the ansible modules I reviewed seem to re-op…

---

## [How to write an Ansible Module that does not do the initial check '/bin/sh -c '"'"'echo ~ && sleep 0'"'"''](https://forum.ansible.com/t/how-to-write-an-ansible-module-that-does-not-do-the-initial-check-bin-sh-c-echo-sleep-0/30031)

<div class="topic-metadata">

**Author:** [@Mikael\_Liljebladh](https://forum.ansible.com/u/Mikael_Liljebladh)\
**Replies:** 1\
**Last updated:** [April 3, 2019, 8:23pm UTC](https://forum.ansible.com/t/how-to-write-an-ansible-module-that-does-not-do-the-initial-check-bin-sh-c-echo-sleep-0/30031 "2019-04-03T20:23:17Z")

</div>

Hi, I am writing a module to a storage nas that allows me to connect to it using ssh. However, it does not provide a standard shell. So I cannot connect to it using command and shell modules. It works with raw assuming …

---

## [more freedom and options for \`run\_once\`](https://forum.ansible.com/t/more-freedom-and-options-for-run-once/30037)

<div class="topic-metadata">

**Author:** [@Uffi\_Schnuffi1](https://forum.ansible.com/u/Uffi_Schnuffi1)\
**Replies:** 1\
**Last updated:** [April 3, 2019, 7:52pm UTC](https://forum.ansible.com/t/more-freedom-and-options-for-run-once/30037 "2019-04-03T19:52:19Z")

</div>

Currently something like the following: - \<some action\> run\_once: true when: item == true with\_random\_choice: - true - false Will run only once even when the task is skipped (item = false). There are cases when it …

---

## [How to copy directory from remote machine to ansible machine](https://forum.ansible.com/t/how-to-copy-directory-from-remote-machine-to-ansible-machine/30048)

<div class="topic-metadata">

**Author:** [@amit\_ahuja](https://forum.ansible.com/u/amit_ahuja)\
**Replies:** 3\
**Last updated:** [April 3, 2019, 7:46pm UTC](https://forum.ansible.com/t/how-to-copy-directory-from-remote-machine-to-ansible-machine/30048 "2019-04-03T19:46:29Z")

</div>

Hi, i want to know if there is any way to copy complete directory from remote machine to local ansible machine . i tried to used fetch method but it is copying files with complete path which i dont want . pls help . th…

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

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