# Archives

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

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

**Page:** 291

---

## ['gcp\_compute\_disk' is not a valid attribute for a Play](https://forum.ansible.com/t/gcp-compute-disk-is-not-a-valid-attribute-for-a-play/30153)

<div class="topic-metadata">

**Author:** [@gottumukkala\_srija](https://forum.ansible.com/u/gottumukkala_srija)\
**Replies:** 8\
**Last updated:** [May 13, 2019, 10:00pm UTC](https://forum.ansible.com/t/gcp-compute-disk-is-not-a-valid-attribute-for-a-play/30153 "2019-05-13T22:00:38Z")

</div>

Hi Team, Trying to spinup windows VM using ansible in GCP. While executing the playbook, getting error as “‘gcp\_compute\_disk’ is not a valid attribute for a Play” Here is the code we are using(mentioned is the error pa…

---

## [problem  when I want to run a shell program on remote host in background](https://forum.ansible.com/t/problem-when-i-want-to-run-a-shell-program-on-remote-host-in-background/30317)

<div class="topic-metadata">

**Author:** [@Nguyen\_Hoang](https://forum.ansible.com/u/Nguyen_Hoang)\
**Replies:** 2\
**Last updated:** [May 13, 2019, 8:21pm UTC](https://forum.ansible.com/t/problem-when-i-want-to-run-a-shell-program-on-remote-host-in-background/30317 "2019-05-13T20:21:10Z")

</div>

Hi Ansible Experts! I use ansible 2.4.2.0 on linux Centos I have one problem when I want to run a shell program on remote host in background I have a shell program ControllerAgent like that : \[root@157501lepca02 bin\]…

---

## [dbpath](https://forum.ansible.com/t/dbpath/30320)

<div class="topic-metadata">

**Author:** [@Antje\_Rau](https://forum.ansible.com/u/Antje_Rau)\
**Replies:** 0\
**Last updated:** [May 13, 2019, 5:57pm UTC](https://forum.ansible.com/t/dbpath/30320 "2019-05-13T17:57:23Z")

</div>

how can you install a rpm package with ansible by specifying rpmdb? analogous rpm ... --dbpath /my/own/rpmdbpath/rpm xxx.rpm Thx Antje

---

## [Functionality of vmware\_guest\_disk module](https://forum.ansible.com/t/functionality-of-vmware-guest-disk-module/30319)

<div class="topic-metadata">

**Author:** [@Johan1](https://forum.ansible.com/u/Johan1)\
**Replies:** 0\
**Last updated:** [May 13, 2019, 4:12pm UTC](https://forum.ansible.com/t/functionality-of-vmware-guest-disk-module/30319 "2019-05-13T16:12:37Z")

</div>

Hi all, I would like to use the vmware\_guest\_disk module. However, the description states: “Manage disks related to virtual machine in given vCenter infrastructure.” Is vCenter required for this module, or does it work…

---

## [Best Practice for a reusable task and its output](https://forum.ansible.com/t/best-practice-for-a-reusable-task-and-its-output/30318)

<div class="topic-metadata">

**Author:** [@Jyotsna\_Mehta](https://forum.ansible.com/u/Jyotsna_Mehta)\
**Replies:** 0\
**Last updated:** [May 13, 2019, 2:53pm UTC](https://forum.ansible.com/t/best-practice-for-a-reusable-task-and-its-output/30318 "2019-05-13T14:53:50Z")

</div>

What is the best practice to place a task that will be used multiple times across a playbook and the output of this task will be used in the conditionals of the main tasks? I am writing a playbook that does app server …

---

## [ImportError: No module named future](https://forum.ansible.com/t/importerror-no-module-named-future/30314)

<div class="topic-metadata">

**Author:** [@christian.tremel](https://forum.ansible.com/u/christian.tremel)\
**Replies:** 3\
**Last updated:** [May 13, 2019, 2:33pm UTC](https://forum.ansible.com/t/importerror-no-module-named-future/30314 "2019-05-13T14:33:26Z")

</div>

since i moved to python 3.6 and modernized some of my modules with futurize/pasteurize ansible is not able du import the future module and failes to run. this is the case with both 2.7 and 3.6. python 3.6 \` (root) roo…

---

## [Delete based on directory size](https://forum.ansible.com/t/delete-based-on-directory-size/30307)

<div class="topic-metadata">

**Author:** [@Nicholas\_Britton](https://forum.ansible.com/u/Nicholas_Britton)\
**Replies:** 2\
**Last updated:** [May 13, 2019, 2:20pm UTC](https://forum.ansible.com/t/delete-based-on-directory-size/30307 "2019-05-13T14:20:51Z")

</div>

I have been looking for a module for something similar to the du command. I would like to have a play that looks at the log directory to detect if it's a certian size or larger and if so find the sub folders with gbs of …

---

## [Check a var with 'meta noop'?](https://forum.ansible.com/t/check-a-var-with-meta-noop/30290)

<div class="topic-metadata">

**Author:** [@Guy\_Matz1](https://forum.ansible.com/u/Guy_Matz1)\
**Replies:** 1\
**Last updated:** [May 13, 2019, 2:16pm UTC](https://forum.ansible.com/t/check-a-var-with-meta-noop/30290 "2019-05-13T14:16:50Z")

</div>

Hi! I have some ansible code to run a bunch of checks on a system to verify its compliance, and would like to check the kernel against an expected version. I was hoping this would work: name: versions | Check kernel ag…

---

## [json filter](https://forum.ansible.com/t/json-filter/30298)

<div class="topic-metadata">

**Author:** [@Nicholas\_Britton](https://forum.ansible.com/u/Nicholas_Britton)\
**Replies:** 1\
**Last updated:** [May 13, 2019, 2:14pm UTC](https://forum.ansible.com/t/json-filter/30298 "2019-05-13T14:14:48Z")

</div>

I have been trying to work with the filter for json responces but i am not having much luck. I can print out a line of intrest, but i am not able to iteriate over the other objects in the response when i try to loop thro…

---

## [How to choose the var list based on a condition](https://forum.ansible.com/t/how-to-choose-the-var-list-based-on-a-condition/30310)

<div class="topic-metadata">

**Author:** [@Saranya\_N](https://forum.ansible.com/u/Saranya_N)\
**Replies:** 3\
**Last updated:** [May 13, 2019, 2:10pm UTC](https://forum.ansible.com/t/how-to-choose-the-var-list-based-on-a-condition/30310 "2019-05-13T14:10:30Z")

</div>

I have a list of dictionary variables something like below in vars file. App01: B : value2 C : value3 App02: C : value5 B : value6 And so on... When I run my playbook with -e option app=01 or app=App01 I wan…

---

## [ansible cron with 2.8rc3](https://forum.ansible.com/t/ansible-cron-with-2-8rc3/30308)

<div class="topic-metadata">

**Author:** [@Michael\_Stroder](https://forum.ansible.com/u/Michael_Stroder)\
**Replies:** 4\
**Last updated:** [May 13, 2019, 1:51pm UTC](https://forum.ansible.com/t/ansible-cron-with-2-8rc3/30308 "2019-05-13T13:51:19Z")

</div>

HI! I'm testing my ansible roles with ansible 2.8rc3. The roles work with ansible 2.7.10. This cron task fails with 2.8rc3 using Python 2.7.16 (see details attached at message end): - name: "Remove obsolete CRON job…

---

## [Manual de Instalación y Configuración para AWX.](https://forum.ansible.com/t/manual-de-instalacion-y-configuracion-para-awx/30315)

<div class="topic-metadata">

**Author:** [@cristian.fernandez](https://forum.ansible.com/u/cristian.fernandez)\
**Replies:** 0\
**Last updated:** [May 13, 2019, 12:21pm UTC](https://forum.ansible.com/t/manual-de-instalacion-y-configuracion-para-awx/30315 "2019-05-13T12:21:54Z")

</div>

Hola a todos, he creado un manual resumido para la instalación y configuración de AWX sobre ansible en español. Espero que le sirva a algunos. (attachments)Guia AWX.md.html (46.9 KB)

---

## [Looking for an ansible module which supports  yum-utils package](https://forum.ansible.com/t/looking-for-an-ansible-module-which-supports-yum-utils-package/30311)

<div class="topic-metadata">

**Author:** [@Veera](https://forum.ansible.com/u/Veera)\
**Replies:** 1\
**Last updated:** [May 12, 2019, 9:43pm UTC](https://forum.ansible.com/t/looking-for-an-ansible-module-which-supports-yum-utils-package/30311 "2019-05-12T21:43:47Z")

</div>

Hi , I am looking for an ansible module which supports yum-utils package commands. It consists of a command \*\*"package-cleanup\*\*" which is pretty useful in cleaning the old kernels. package-cleanup --oldkernels --coun…

---

## [set\_facts with if-else clause, also check if the var contains digits?](https://forum.ansible.com/t/set-facts-with-if-else-clause-also-check-if-the-var-contains-digits/30309)

<div class="topic-metadata">

**Author:** [@sahitansar](https://forum.ansible.com/u/sahitansar)\
**Replies:** 0\
**Last updated:** [May 11, 2019, 6:15pm UTC](https://forum.ansible.com/t/set-facts-with-if-else-clause-also-check-if-the-var-contains-digits/30309 "2019-05-11T18:15:31Z")

</div>

Im trying to set a variable based on below condition where templname is an external variable with below options ansible-playbook -i hosts -e “templname=CTrl03\_kerbs\_09” OR ansible-playbook -i hosts -e “templname=CTrl0…

---

## [Upstream Ansible 2.8.0rc3 released](https://forum.ansible.com/t/upstream-ansible-2-8-0rc3-released/30306)

<div class="topic-metadata">

**Author:** [@Matt\_Clay1](https://forum.ansible.com/u/Matt_Clay1)\
**Replies:** 0\
**Last updated:** [May 10, 2019, 10:27pm UTC](https://forum.ansible.com/t/upstream-ansible-2-8-0rc3-released/30306 "2019-05-10T22:27:16Z")

</div>

Hi all- we’re happy to announce that the general release of Ansible 2.8.0rc3 is now available! How do you get it?

---

## [Pass a variable in "vars\_file" to "with\_items" from command prompt as part of "extra-vars"](https://forum.ansible.com/t/pass-a-variable-in-vars-file-to-with-items-from-command-prompt-as-part-of-extra-vars/30299)

<div class="topic-metadata">

**Author:** [@Anuradha\_Gangu](https://forum.ansible.com/u/Anuradha_Gangu)\
**Replies:** 1\
**Last updated:** [May 10, 2019, 7:04pm UTC](https://forum.ansible.com/t/pass-a-variable-in-vars-file-to-with-items-from-command-prompt-as-part-of-extra-vars/30299 "2019-05-10T19:04:47Z")

</div>

My main objective is, I want to create a playbook with one task which will take list of docker images and list of hosts and then run one image on one host respectively or run list of images on one of host list supplied. …

---

## [Linebreak Ansible Filters](https://forum.ansible.com/t/linebreak-ansible-filters/30291)

<div class="topic-metadata">

**Author:** [@Ron\_Gebauer](https://forum.ansible.com/u/Ron_Gebauer)\
**Replies:** 1\
**Last updated:** [May 10, 2019, 3:37pm UTC](https://forum.ansible.com/t/linebreak-ansible-filters/30291 "2019-05-10T15:37:05Z")

</div>

Hi, I want to fix the Ansible Linter issue “\[204\] Lines should be no longer than 160 chars”. But how I can linebreak filters? \` local\_filters\_in\_templates\_list: “{{ local\_filters\_in\_templates.files | map(attribute=‘p…

---

## [setup module fails sometimes](https://forum.ansible.com/t/setup-module-fails-sometimes/30296)

<div class="topic-metadata">

**Author:** [@sampsont](https://forum.ansible.com/u/sampsont)\
**Replies:** 1\
**Last updated:** [May 10, 2019, 2:09pm UTC](https://forum.ansible.com/t/setup-module-fails-sometimes/30296 "2019-05-10T14:09:35Z")

</div>

When I run a playbook, sometimes a target gets in a mode where the setup module fails. Other times it runs just fine. Can anyone give me any ideas of what might be going on? Kindof looks like: https://github.com/ansible/…

---

## [Need assistance using SSH keys and Ansible](https://forum.ansible.com/t/need-assistance-using-ssh-keys-and-ansible/30304)

<div class="topic-metadata">

**Author:** [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Replies:** 0\
**Last updated:** [May 10, 2019, 2:06pm UTC](https://forum.ansible.com/t/need-assistance-using-ssh-keys-and-ansible/30304 "2019-05-10T14:06:34Z")

</div>

Hi This isn't an ansible problem. Take a look at some general SSH public key authentication pages, for instance: https://www.digitalocean.com/community/tutorials/how-to-configure-ssh-key-based-authentication-on-a-linu…

---

## [Usage of Machine Credential (SSH-Password) from HashiCorp Vault in a Template?](https://forum.ansible.com/t/usage-of-machine-credential-ssh-password-from-hashicorp-vault-in-a-template/30303)

<div class="topic-metadata">

**Author:** [@Dan\_Steffen](https://forum.ansible.com/u/Dan_Steffen)\
**Replies:** 2\
**Last updated:** [May 10, 2019, 2:03pm UTC](https://forum.ansible.com/t/usage-of-machine-credential-ssh-password-from-hashicorp-vault-in-a-template/30303 "2019-05-10T14:03:25Z")

</div>

Hello, I am not sure if this more a question of AWX or more a Question of HashiCorp Vault but is there a way to use Machine Credential (e.g. a SSH-Password) which are stored in HashiCorp Vault? I have seen there is a Cr…

---

## [Using a bash script in github by the ansible playbook](https://forum.ansible.com/t/using-a-bash-script-in-github-by-the-ansible-playbook/30302)

<div class="topic-metadata">

**Author:** [@michal.misiak](https://forum.ansible.com/u/michal.misiak)\
**Replies:** 1\
**Last updated:** [May 10, 2019, 12:08pm UTC](https://forum.ansible.com/t/using-a-bash-script-in-github-by-the-ansible-playbook/30302 "2019-05-10T12:08:02Z")

</div>

Hi, I have some bash scripts which I use in my ansible playbooks by script module. Now, I would like to move my bash scripts to github and still use them in my ansible playbooks, but directly from github. How can I do t…

---

## [Ansible nested variable regex search](https://forum.ansible.com/t/ansible-nested-variable-regex-search/30293)

<div class="topic-metadata">

**Author:** [@Srikanth\_Ethiraj](https://forum.ansible.com/u/Srikanth_Ethiraj)\
**Replies:** 1\
**Last updated:** [May 10, 2019, 10:22am UTC](https://forum.ansible.com/t/ansible-nested-variable-regex-search/30293 "2019-05-10T10:22:57Z")

</div>

How do we do a wildcard search with ansible nested variable? test: name: address: zipcode: 12345 Ansible nested variable - {{ test\[name\]\[addre\*\].zipcode }}

---

## [Windows patch update](https://forum.ansible.com/t/windows-patch-update/30301)

<div class="topic-metadata">

**Author:** [@The\_Vandyy\_Vines](https://forum.ansible.com/u/The_Vandyy_Vines)\
**Replies:** 0\
**Last updated:** [May 10, 2019, 9:32am UTC](https://forum.ansible.com/t/windows-patch-update/30301 "2019-05-10T09:32:48Z")

</div>

Hello All, I am trying to do a Windows patch update. So far i have use win\_update modules. I am trying to understand how before starting the update we can know the pending reboot . Any clue ? Thanks

---

## [How to pass the remote\_user to callback plugins?](https://forum.ansible.com/t/how-to-pass-the-remote-user-to-callback-plugins/30300)

<div class="topic-metadata">

**Author:** [@KaKin\_Kwok](https://forum.ansible.com/u/KaKin_Kwok)\
**Replies:** 0\
**Last updated:** [May 10, 2019, 8:26am UTC](https://forum.ansible.com/t/how-to-pass-the-remote-user-to-callback-plugins/30300 "2019-05-10T08:26:42Z")

</div>

Hi all, I would like to set the ssh user from ansible-playbook as a variable in callback plugins .py script. Is there any method to make it done? Regards with thanks

---

## [AWX High availability](https://forum.ansible.com/t/awx-high-availability/30297)

<div class="topic-metadata">

**Author:** [@Praveen\_Kumar](https://forum.ansible.com/u/Praveen_Kumar)\
**Replies:** 2\
**Last updated:** [May 10, 2019, 6:42am UTC](https://forum.ansible.com/t/awx-high-availability/30297 "2019-05-10T06:42:55Z")

</div>

Hello, Can I please know if Awx Tower can be installed in the HA mode ? I am not able to find any documentation in the installation guide. Not sure if this is something that has been implemented in awx yet . Please sha…

---

## [$PATH with shell is different to manual ssh](https://forum.ansible.com/t/path-with-shell-is-different-to-manual-ssh/30278)

<div class="topic-metadata">

**Author:** [@Matthew\_Davis](https://forum.ansible.com/u/Matthew_Davis)\
**Replies:** 4\
**Last updated:** [May 10, 2019, 12:20am UTC](https://forum.ansible.com/t/path-with-shell-is-different-to-manual-ssh/30278 "2019-05-10T00:20:24Z")

</div>

Hi, I have been redirected from Github issue 56044. I am finding that commands which work when run manually fail when run with a shell task, because the $PATH is different, so binaries such as ip and modinfo cannot be …

---

## [vars\_prompt within a role](https://forum.ansible.com/t/vars-prompt-within-a-role/30295)

<div class="topic-metadata">

**Author:** [@Nicholas\_Britton](https://forum.ansible.com/u/Nicholas_Britton)\
**Replies:** 3\
**Last updated:** [May 9, 2019, 8:09pm UTC](https://forum.ansible.com/t/vars-prompt-within-a-role/30295 "2019-05-09T20:09:39Z")

</div>

I am working on a project that will be mostly api based running locally and attaching to different environments via the api (uri module) My plan was to create a role for each type of call that will be made, that way pla…

---

## [Documentation about how to upgrade awx](https://forum.ansible.com/t/documentation-about-how-to-upgrade-awx/30286)

<div class="topic-metadata">

**Author:** [@Dan\_Steffen](https://forum.ansible.com/u/Dan_Steffen)\
**Replies:** 3\
**Last updated:** [May 9, 2019, 7:19pm UTC](https://forum.ansible.com/t/documentation-about-how-to-upgrade-awx/30286 "2019-05-09T19:19:53Z")

</div>

Hello, at the moment we try to evaluate the usage of AWX for our company and at the moment I try to find documentation about a reliable way to upgrade awx. And related to this question does awx has something like a rol…

---

## [Help with ovirt\_vms module](https://forum.ansible.com/t/help-with-ovirt-vms-module/30294)

<div class="topic-metadata">

**Author:** [@Robert2](https://forum.ansible.com/u/Robert2)\
**Replies:** 2\
**Last updated:** [May 9, 2019, 6:01pm UTC](https://forum.ansible.com/t/help-with-ovirt-vms-module/30294 "2019-05-09T18:01:21Z")

</div>

Hey everyone. I am working on a role that will delete VM’s from RHV and remove their entries from satelite and AD. The challenge I have is that I need to pass the current host into the name field without doing a loop. …

---

## [Host File as a command line variable](https://forum.ansible.com/t/host-file-as-a-command-line-variable/30270)

<div class="topic-metadata">

**Author:** [@John\_Andrew](https://forum.ansible.com/u/John_Andrew)\
**Replies:** 1\
**Last updated:** [May 9, 2019, 5:56pm UTC](https://forum.ansible.com/t/host-file-as-a-command-line-variable/30270 "2019-05-09T17:56:34Z")

</div>

Can i do this in my hosts/inventory file? Also, can i pass a host group in command line -e? \[env1\] vm1 ansible\_host=vm001 vm2 ansible\_host=vm002 \[env2\] vm1 ansible\_host=vm888 vm2 ansible\_host=vm999 I want to use t…

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

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