# Archives

**URL:** https://forum.ansible.com/c/archives/31.md?page=299

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

**Page:** 300

---

## [Ansible dictionary or local facts for blue-green deployment](https://forum.ansible.com/t/ansible-dictionary-or-local-facts-for-blue-green-deployment/30070)

<div class="topic-metadata">

**Author:** [@Daniel\_Bianco](https://forum.ansible.com/u/Daniel_Bianco)\
**Replies:** 0\
**Last updated:** [April 5, 2019, 1:49pm UTC](https://forum.ansible.com/t/ansible-dictionary-or-local-facts-for-blue-green-deployment/30070 "2019-04-05T13:49:51Z")

</div>

I’m working on a kubernetes blue green deployment on Ansible. I know this would probably be easier with Terraform, but we are not using it :S. The variables I’m getting from the requestor are: Application Name Ap…

---

## [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…

---

## [Ansible-2.8.0 delay](https://forum.ansible.com/t/ansible-2-8-0-delay/29947)

<div class="topic-metadata">

**Author:** [@tkuratom](https://forum.ansible.com/u/tkuratom)\
**Replies:** 3\
**Last updated:** [April 4, 2019, 6:09pm UTC](https://forum.ansible.com/t/ansible-2-8-0-delay/29947 "2019-04-04T18:09:11Z")

</div>

Hello all, As some of you may have noticed, Ansible-2.8.0-alpha1 has been delayed. It was scheduled for last week but we have one important feature that we're still working on. To give it a chance to be finished up…

---

## [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: \`

---

## [Running tasks on GCP hosts using service account](https://forum.ansible.com/t/running-tasks-on-gcp-hosts-using-service-account/30063)

<div class="topic-metadata">

**Author:** [@Jan\_D](https://forum.ansible.com/u/Jan_D)\
**Replies:** 1\
**Last updated:** [April 4, 2019, 4:27pm UTC](https://forum.ansible.com/t/running-tasks-on-gcp-hosts-using-service-account/30063 "2019-04-04T16:27:07Z")

</div>

I have been playing with the GCP Inventory plugin and can now succesfully view/list my GCE VM instances with my dynamic inventory file. It looks like this: plugin: gcp\_compute projects: my-project filters: …

---

## [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…

---

## [AWX select credential in job template dynamically based on logged in user](https://forum.ansible.com/t/awx-select-credential-in-job-template-dynamically-based-on-logged-in-user/28753)

<div class="topic-metadata">

**Author:** [@Darkhan](https://forum.ansible.com/u/Darkhan)\
**Replies:** 6\
**Last updated:** [April 4, 2019, 2:30pm UTC](https://forum.ansible.com/t/awx-select-credential-in-job-template-dynamically-based-on-logged-in-user/28753 "2019-04-04T14:30:00Z")

</div>

Hello, In our organization each user must use his own credentials for audit purposes so i can’t have one central key for awx. Therefore every user will define his own machine type credential with his ssh key attached to…

---

## [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…

---

## [Custom Virtual Environments Not Registered](https://forum.ansible.com/t/custom-virtual-environments-not-registered/30052)

<div class="topic-metadata">

**Author:** [@Kim\_Spasaro](https://forum.ansible.com/u/Kim_Spasaro)\
**Replies:** 3\
**Last updated:** [April 4, 2019, 11:21am UTC](https://forum.ansible.com/t/custom-virtual-environments-not-registered/30052 "2019-04-04T11:21:58Z")

</div>

I’ve been following instructions for setting up custom virtual environments on AWX, but I the venvs never become accessible. Any idea what I’m doing wrong? (cross-posted to StackOverflow) Steps so far: Created virtual…

---

## [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…

---

## [Ansible unable to except any other body format except raw and jason in the uri module and upload a zip or a jar via POST method](https://forum.ansible.com/t/ansible-unable-to-except-any-other-body-format-except-raw-and-jason-in-the-uri-module-and-upload-a-zip-or-a-jar-via-post-method/27582)

<div class="topic-metadata">

**Author:** [@Apu\_Mondal](https://forum.ansible.com/u/Apu_Mondal)\
**Replies:** 2\
**Last updated:** [April 3, 2019, 5:56pm UTC](https://forum.ansible.com/t/ansible-unable-to-except-any-other-body-format-except-raw-and-jason-in-the-uri-module-and-upload-a-zip-or-a-jar-via-post-method/27582 "2019-04-03T17:56:43Z")

</div>

Zip file not getting POST to the server with the uri module in Ansible. These are the codes I am trying to execute name: Transfering the Proxies uri: headers: Authorization: ‘{{API\_USER\_PASS\_BASE64\_ENCRYPT}}’ Cont…

---

## [What is the parameter attribute to use VM storage Policy](https://forum.ansible.com/t/what-is-the-parameter-attribute-to-use-vm-storage-policy/30023)

<div class="topic-metadata">

**Author:** [@himanshu\_gupta](https://forum.ansible.com/u/himanshu_gupta)\
**Replies:** 1\
**Last updated:** [April 3, 2019, 2:41pm UTC](https://forum.ansible.com/t/what-is-the-parameter-attribute-to-use-vm-storage-policy/30023 "2019-04-03T14:41:14Z")

</div>

Hi Team, We are using Ansible to build the VM on Vmware ESXi host and recently we configured the VASA to use the VVOLS. We have created some VM Storgare Policies and we now want to pass these VM storage policy while cre…

---

## [How to avoid backslash and quote from variable](https://forum.ansible.com/t/how-to-avoid-backslash-and-quote-from-variable/30035)

<div class="topic-metadata">

**Author:** [@Bikram](https://forum.ansible.com/u/Bikram)\
**Replies:** 2\
**Last updated:** [April 3, 2019, 1:07pm UTC](https://forum.ansible.com/t/how-to-avoid-backslash-and-quote-from-variable/30035 "2019-04-03T13:07:37Z")

</div>

Hello, I am running an audit against some interfaces on Cisco switches: Here is the task: ios\_command: provider: “{{ cli }}” commands: show run interface “{{ item }}” | i no cdp timeout: 15 register: no\_cdp with…

---

## [Apache ProxyPass: Page not refreshing automatically after SSL installed](https://forum.ansible.com/t/apache-proxypass-page-not-refreshing-automatically-after-ssl-installed/30049)

<div class="topic-metadata">

**Author:** [@TOB](https://forum.ansible.com/u/TOB)\
**Replies:** 0\
**Last updated:** [April 3, 2019, 12:17pm UTC](https://forum.ansible.com/t/apache-proxypass-page-not-refreshing-automatically-after-ssl-installed/30049 "2019-04-03T12:17:40Z")

</div>

Hi, yesterday I configured an Apache Reverse Proxy to get a SSL certificate for Ansible AWX inside docker running on port 8080. Apache with the proxy is in front of the docker listening on port 80. Everything’s working…

---

## [Ansible how to get output as variable without brackets and u](https://forum.ansible.com/t/ansible-how-to-get-output-as-variable-without-brackets-and-u/30047)

<div class="topic-metadata">

**Author:** [@wanexa77](https://forum.ansible.com/u/wanexa77)\
**Replies:** 3\
**Last updated:** [April 3, 2019, 9:53am UTC](https://forum.ansible.com/t/ansible-how-to-get-output-as-variable-without-brackets-and-u/30047 "2019-04-03T09:53:12Z")

</div>

I have the result of a query from ansible and I tried to use the result as a variable My playbook is like this - name: Query oracle\_sql: username: "{{ user }}" password: "{{ password }}" service\_name: "{{…

---

## [This topic needs a title](https://forum.ansible.com/t/this-topic-needs-a-title/30043)

<div class="topic-metadata">

**Author:** [@Pawel\_Szatkowski](https://forum.ansible.com/u/Pawel_Szatkowski)\
**Replies:** 0\
**Last updated:** [April 3, 2019, 8:12am UTC](https://forum.ansible.com/t/this-topic-needs-a-title/30043 "2019-04-03T08:12:17Z")

</div>

Hello Community, I’ve recently created pull request “New module for managing btrfs quota #54728”. I wrote some integration tests that were passed, however when I checked details on shippable I noticed that actually none…

---

## [vault not decrypting in loops](https://forum.ansible.com/t/vault-not-decrypting-in-loops/30042)

<div class="topic-metadata">

**Author:** [@P\_Varsha](https://forum.ansible.com/u/P_Varsha)\
**Replies:** 0\
**Last updated:** [April 3, 2019, 6:21am UTC](https://forum.ansible.com/t/vault-not-decrypting-in-loops/30042 "2019-04-03T06:21:58Z")

</div>

hello, try once instead of two quotation use one. thanks

---

## [Check Number Of Wheel Group Members](https://forum.ansible.com/t/check-number-of-wheel-group-members/30039)

<div class="topic-metadata">

**Author:** [@Jon\_Adcock](https://forum.ansible.com/u/Jon_Adcock)\
**Replies:** 5\
**Last updated:** [April 2, 2019, 6:52pm UTC](https://forum.ansible.com/t/check-number-of-wheel-group-members/30039 "2019-04-02T18:52:44Z")

</div>

I’m trying to add a task to my security playbook to ensure that there are no members in the default Linux wheel group. This has turned out to be more difficult than I thought it would be. Can someone out there help get …

[Previous page](https://forum.ansible.com/c/archives/31.md?page=298)

[Next page](https://forum.ansible.com/c/archives/31.md?page=300)
