# Latest

**URL:** https://forum.ansible.com/latest.md?page=460

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

**Page:** 461

---

## [Q on hostvars access to inventory variables ad-hoc vs playbook](https://forum.ansible.com/t/q-on-hostvars-access-to-inventory-variables-ad-hoc-vs-playbook/30248)

<div class="topic-metadata">

**Author:** [@countryroad62](https://forum.ansible.com/u/countryroad62)\
**Replies:** 3\
**Last updated:** [May 15, 2019, 7:50pm UTC](https://forum.ansible.com/t/q-on-hostvars-access-to-inventory-variables-ad-hoc-vs-playbook/30248 "2019-05-15T19:50:20Z")

</div>

I seem to be able to query hostvars for a particular host from the command line and get at the inventory variables but I haven’t figured out how to do this in a playbook. Might it be from hostvars being lazily loaded - …

---

## [Ansible GCP |   gcp\_compute\_instance](https://forum.ansible.com/t/ansible-gcp-gcp-compute-instance/30341)

<div class="topic-metadata">

**Author:** [@Fabio\_Maia](https://forum.ansible.com/u/Fabio_Maia)\
**Replies:** 1\
**Last updated:** [May 15, 2019, 5:25pm UTC](https://forum.ansible.com/t/ansible-gcp-gcp-compute-instance/30341 "2019-05-15T17:25:35Z")

</div>

Hi Guys!! Can u help me? I used a subnet that was being created in a region, but when I run the playbook it shows conflict errors. :frowning: it is possible to use an existing subnet? Here go my playbook example: n…

---

## [Stuck pull request due to Shippable failure](https://forum.ansible.com/t/stuck-pull-request-due-to-shippable-failure/30340)

<div class="topic-metadata">

**Author:** [@Vadim\_Raskhozhev](https://forum.ansible.com/u/Vadim_Raskhozhev)\
**Replies:** 1\
**Last updated:** [May 15, 2019, 4:54pm UTC](https://forum.ansible.com/t/stuck-pull-request-due-to-shippable-failure/30340 "2019-05-15T16:54:21Z")

</div>

Hello. I tried to make a pull request, but it stuck into shippable failure irrelated to my code changes as far as I can see. What should I do now? Thanks.

---

## [Suggestion for deploying Ansible](https://forum.ansible.com/t/suggestion-for-deploying-ansible/30335)

<div class="topic-metadata">

**Author:** [@Pushparaj\_Gothandam](https://forum.ansible.com/u/Pushparaj_Gothandam)\
**Replies:** 2\
**Last updated:** [May 15, 2019, 2:24pm UTC](https://forum.ansible.com/t/suggestion-for-deploying-ansible/30335 "2019-05-15T14:24:06Z")

</div>

Hi Team, Is it good to deploy Ansible tower(Network Automation) in DMZ ? if yes what are reasons? thanks, Pushparaj

---

## [Workflow invocation from other](https://forum.ansible.com/t/workflow-invocation-from-other/30189)

<div class="topic-metadata">

**Author:** [@Nilesh\_Jaiswal](https://forum.ansible.com/u/Nilesh_Jaiswal)\
**Replies:** 4\
**Last updated:** [May 15, 2019, 12:32pm UTC](https://forum.ansible.com/t/workflow-invocation-from-other/30189 "2019-05-15T12:32:02Z")

</div>

Hi Team, We have the two workflows second workflow needs to get executed based on the outcome of first workflow, I would like to know if we have such mechanism to execute the workflow. If yes, can we schedule second wo…

---

## [How delete one task wo is run](https://forum.ansible.com/t/how-delete-one-task-wo-is-run/30339)

<div class="topic-metadata">

**Author:** [@ryad9200000](https://forum.ansible.com/u/ryad9200000)\
**Replies:** 1\
**Last updated:** [May 15, 2019, 11:54am UTC](https://forum.ansible.com/t/how-delete-one-task-wo-is-run/30339 "2019-05-15T11:54:46Z")

</div>

Hey, I have this task : name: “Execution one scirpt” script: ./my\_script.sh delegate\_to: lacalhost I want a second taks who cancel all action of my first task of my script… Can you help me please ! :slight\_smile: …

---

## [New to ansible so please be gentle - running ansible-playbook via crontab](https://forum.ansible.com/t/new-to-ansible-so-please-be-gentle-running-ansible-playbook-via-crontab/30338)

<div class="topic-metadata">

**Author:** [@Tariq\_Hasan](https://forum.ansible.com/u/Tariq_Hasan)\
**Replies:** 2\
**Last updated:** [May 15, 2019, 11:53am UTC](https://forum.ansible.com/t/new-to-ansible-so-please-be-gentle-running-ansible-playbook-via-crontab/30338 "2019-05-15T11:53:42Z")

</div>

Hi Please find below my playbook name: Patch the server and Reboot hosts: tariq-test tasks: name: Patch the server become: yes become\_user: root tags: Patch shell: “yum -y update” exclude: kernel\*,mongo\* r…

---

## [How can I get gs\_secret\_key and gs\_access\_key to use gc\_storage module in Ansible?](https://forum.ansible.com/t/how-can-i-get-gs-secret-key-and-gs-access-key-to-use-gc-storage-module-in-ansible/28758)

<div class="topic-metadata">

**Author:** [@Augusto\_M](https://forum.ansible.com/u/Augusto_M)\
**Replies:** 1\
**Last updated:** [May 15, 2019, 10:55am UTC](https://forum.ansible.com/t/how-can-i-get-gs-secret-key-and-gs-access-key-to-use-gc-storage-module-in-ansible/28758 "2019-05-15T10:55:15Z")

</div>

I would need to create a directory in a Google Cloud Bucket using Ansible. I would like to know where I can find the values to complete “gs\_secret\_key” and “gs\_access\_key” to use “gc\_storage” module in Ansible. \` - nam…

---

## [Execute the ipaddr filter after installation](https://forum.ansible.com/t/execute-the-ipaddr-filter-after-installation/30328)

<div class="topic-metadata">

**Author:** [@Evgeniy\_Ivanov](https://forum.ansible.com/u/Evgeniy_Ivanov)\
**Replies:** 3\
**Last updated:** [May 15, 2019, 10:46am UTC](https://forum.ansible.com/t/execute-the-ipaddr-filter-after-installation/30328 "2019-05-15T10:46:48Z")

</div>

Hi there, I’ve got a problem with the ipaddr filter. It doesn’t seem to be loaded after installed in the same playbook: example: \` pip: name=netaddr state=latest debug: msg=“{{ ‘192.0.2.0’ | ipaddr }}” \` giv…

---

## [Issue re-using variables in vars\_prompt](https://forum.ansible.com/t/issue-re-using-variables-in-vars-prompt/30334)

<div class="topic-metadata">

**Author:** [@Matt\_SF](https://forum.ansible.com/u/Matt_SF)\
**Replies:** 0\
**Last updated:** [May 15, 2019, 8:30am UTC](https://forum.ansible.com/t/issue-re-using-variables-in-vars-prompt/30334 "2019-05-15T08:30:43Z")

</div>

Hello, The following playbook extract used to work with Ansible 2.4 : \`

---

## [Rollback in Ansible ?](https://forum.ansible.com/t/rollback-in-ansible/30324)

<div class="topic-metadata">

**Author:** [@ryad9200000](https://forum.ansible.com/u/ryad9200000)\
**Replies:** 8\
**Last updated:** [May 15, 2019, 7:41am UTC](https://forum.ansible.com/t/rollback-in-ansible/30324 "2019-05-15T07:41:59Z")

</div>

Hey all, I want know when i play one task who failed if possible that ansible do rollback ? Exemple : name: “create file” shell: touch test\_file.txt When i play this task, she failed so i want one task or method fo…

---

## [Added new VM to existing AWS cluster](https://forum.ansible.com/t/added-new-vm-to-existing-aws-cluster/30332)

<div class="topic-metadata">

**Author:** [@Amit\_Bhardwaj](https://forum.ansible.com/u/Amit_Bhardwaj)\
**Replies:** 0\
**Last updated:** [May 15, 2019, 7:04am UTC](https://forum.ansible.com/t/added-new-vm-to-existing-aws-cluster/30332 "2019-05-15T07:04:33Z")

</div>

Hey everyone! I have been working on Ansible from past few months now and I am really impressed by the active community here that takes interest in discussing and addressing various issues. My issue is a bit complex an…

---

## [Sorting dicts in lists - works different between my machine and others](https://forum.ansible.com/t/sorting-dicts-in-lists-works-different-between-my-machine-and-others/30329)

<div class="topic-metadata">

**Author:** [@JonTheNiceGuy](https://forum.ansible.com/u/JonTheNiceGuy)\
**Replies:** 0\
**Last updated:** [May 14, 2019, 3:40pm UTC](https://forum.ansible.com/t/sorting-dicts-in-lists-works-different-between-my-machine-and-others/30329 "2019-05-14T15:40:22Z")

</div>

Hi, I have a variable which is a list (sourced from registering the response from a 3rd party module). In that list, each item is a dict, as follows: \[ {‘policyid’: ‘1009’, ‘other’: ‘content’}, {‘policyid’: ‘2019’, ‘…

---

## [ansible\_python\_interpreter facts.d](https://forum.ansible.com/t/ansible-python-interpreter-facts-d/30321)

<div class="topic-metadata">

**Author:** [@Adam\_E](https://forum.ansible.com/u/Adam_E)\
**Replies:** 1\
**Last updated:** [May 14, 2019, 1:54pm UTC](https://forum.ansible.com/t/ansible-python-interpreter-facts-d/30321 "2019-05-14T13:54:38Z")

</div>

Hi there. On a few old/legacy systems I have installed python 2.6 in a nondefault location whereas the “default” (path) is an older version such as 2.4. In some cases I have legacy apps that may need the old version and…

---

## [a way to stop ansible execution with a plugin/forced variable validations](https://forum.ansible.com/t/a-way-to-stop-ansible-execution-with-a-plugin-forced-variable-validations/30327)

<div class="topic-metadata">

**Author:** [@saulius\_alisauskas](https://forum.ansible.com/u/saulius_alisauskas)\
**Replies:** 0\
**Last updated:** [May 14, 2019, 1:09pm UTC](https://forum.ansible.com/t/a-way-to-stop-ansible-execution-with-a-plugin-forced-variable-validations/30327 "2019-05-14T13:09:46Z")

</div>

hi, I am looking for a way to stop Ansible execution if it doesn’t meet certain conditions through a plugin. A more concrete example: i want to check that tasks has certain variables defined and if they don’t - fail. I…

---

## [using inventory group name as var?](https://forum.ansible.com/t/using-inventory-group-name-as-var/30305)

<div class="topic-metadata">

**Author:** [@Matthew\_Arguin](https://forum.ansible.com/u/Matthew_Arguin)\
**Replies:** 2\
**Last updated:** [May 14, 2019, 11:51am UTC](https://forum.ansible.com/t/using-inventory-group-name-as-var/30305 "2019-05-14T11:51:22Z")

</div>

I am sure that i am just glossing over this in the documentation, but here goes anyway: i am tryingto identify how i can use a hosts group name host\_group\_1: host1: host2: in such a way that i can call it in a task …

---

## [Unable to user aruba\_command](https://forum.ansible.com/t/unable-to-user-aruba-command/30325)

<div class="topic-metadata">

**Author:** [@Sudheer\_S1](https://forum.ansible.com/u/Sudheer_S1)\
**Replies:** 0\
**Last updated:** [May 14, 2019, 10:16am UTC](https://forum.ansible.com/t/unable-to-user-aruba-command/30325 "2019-05-14T10:16:48Z")

</div>

Hello, I am trying to use the aruba\_command: Here's my playbook:

---

## [Default filter issue](https://forum.ansible.com/t/default-filter-issue/30323)

<div class="topic-metadata">

**Author:** [@Daniel\_Vasek](https://forum.ansible.com/u/Daniel_Vasek)\
**Replies:** 3\
**Last updated:** [May 14, 2019, 9:24am UTC](https://forum.ansible.com/t/default-filter-issue/30323 "2019-05-14T09:24:19Z")

</div>

Hello, Im trying to use default filter: hosts: \[“{{ groups\[‘examples’\]\[0\] | default(‘localhost’) }}”:5045\] But it return error: FAILED! =\> {“changed”: false, “msg”: “AnsibleUndefinedVariable: ‘dict object’ has no att…

---

## [Installing AWX local with multiple instances](https://forum.ansible.com/t/installing-awx-local-with-multiple-instances/30322)

<div class="topic-metadata">

**Author:** [@Juan\_A\_S](https://forum.ansible.com/u/Juan_A_S)\
**Replies:** 0\
**Last updated:** [May 14, 2019, 6:39am UTC](https://forum.ansible.com/t/installing-awx-local-with-multiple-instances/30322 "2019-05-14T06:39:01Z")

</div>

Hi all I am trying to install AWX locally, without K8s or Openshift. I have followed the instructions, and more or less, it is working in the first server. The only change I have done is to change manually the host id i…

---

## [how to stop a running job ?](https://forum.ansible.com/t/how-to-stop-a-running-job/30245)

<div class="topic-metadata">

**Author:** [@mohamedjarboui1995](https://forum.ansible.com/u/mohamedjarboui1995)\
**Replies:** 1\
**Last updated:** [May 14, 2019, 5:09am UTC](https://forum.ansible.com/t/how-to-stop-a-running-job/30245 "2019-05-14T05:09:15Z")

</div>

hello, Clould you tell me how to stop job from running, it’s seems that awx has problem with synchronize module, it’s still running and i can’t stop him? please help me to figure out this problem! thanks. Mohamed Amin…

---

## [Complex api json calls](https://forum.ansible.com/t/complex-api-json-calls/30285)

<div class="topic-metadata">

**Author:** [@Nicholas\_Britton](https://forum.ansible.com/u/Nicholas_Britton)\
**Replies:** 3\
**Last updated:** [May 13, 2019, 10:09pm UTC](https://forum.ansible.com/t/complex-api-json-calls/30285 "2019-05-13T22:09:27Z")

</div>

I am looking to use the uri module and have been sucessfull with simpler calls, but i am unsure how to get something like the following to work correctly. I have been provided what the json should look like but i am unsu…

---

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

[Previous page](https://forum.ansible.com/latest.md?page=459)

[Next page](https://forum.ansible.com/latest.md?page=461)
