# Archives

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

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

**Page:** 290

---

## [Calling Playbook which accept Parameters from another application usinf the Ansible API](https://forum.ansible.com/t/calling-playbook-which-accept-parameters-from-another-application-usinf-the-ansible-api/30351)

<div class="topic-metadata">

**Author:** [@Dominic\_Lewis](https://forum.ansible.com/u/Dominic_Lewis)\
**Replies:** 0\
**Last updated:** [May 16, 2019, 6:18pm UTC](https://forum.ansible.com/t/calling-playbook-which-accept-parameters-from-another-application-usinf-the-ansible-api/30351 "2019-05-16T18:18:10Z")

</div>

Hi … Can you give me a location to go to which has detailed examples of using the Ansible API to execute Playbooks that use parameters? Thanks, Dominic

---

## [Configuring Management Jobs](https://forum.ansible.com/t/configuring-management-jobs/30326)

<div class="topic-metadata">

**Author:** [@Mayank\_Kumar](https://forum.ansible.com/u/Mayank_Kumar)\
**Replies:** 3\
**Last updated:** [May 16, 2019, 3:25pm UTC](https://forum.ansible.com/t/configuring-management-jobs/30326 "2019-05-16T15:25:40Z")

</div>

Hi All, Is there any way we can make changes in Management Jobs for ansible from config files? For example, I want to put "Cleanup Activity Stream" as 45 days but I am wondering if I can achieve it via some any config …

---

## [Molecule/docker login for multiple instance](https://forum.ansible.com/t/molecule-docker-login-for-multiple-instance/30347)

<div class="topic-metadata">

**Author:** [@Kunalsing\_Thakur](https://forum.ansible.com/u/Kunalsing_Thakur)\
**Replies:** 1\
**Last updated:** [May 16, 2019, 1:28pm UTC](https://forum.ansible.com/t/molecule-docker-login-for-multiple-instance/30347 "2019-05-16T13:28:14Z")

</div>

Molecule and Ansible details dependency: name: galaxy driver: name: docker lint: name: yamllint platforms: - name: nocon01p2 hostname: nocon01p2.example.com image: centos/systemd:1.0 pre\_build\_image…

---

## [ping is not working](https://forum.ansible.com/t/ping-is-not-working/30336)

<div class="topic-metadata">

**Author:** [@Ebrahim\_Kutty](https://forum.ansible.com/u/Ebrahim_Kutty)\
**Replies:** 4\
**Last updated:** [May 16, 2019, 7:02am UTC](https://forum.ansible.com/t/ping-is-not-working/30336 "2019-05-16T07:02:20Z")

</div>

When I test ping command with ansible, I am getting the below error, (red colored) /etc/ansible$ more hosts root@192.168.100.128 /etc/ansible$ more ansible.cfg \[defaults\] remote\_tmp = /tmp/ansible-$USER #remote\_tmp …

---

## [Cisco Switch IOS upgrade playbook](https://forum.ansible.com/t/cisco-switch-ios-upgrade-playbook/30344)

<div class="topic-metadata">

**Author:** [@Pushparaj\_Gothandam](https://forum.ansible.com/u/Pushparaj_Gothandam)\
**Replies:** 0\
**Last updated:** [May 16, 2019, 6:42am UTC](https://forum.ansible.com/t/cisco-switch-ios-upgrade-playbook/30344 "2019-05-16T06:42:11Z")

</div>

Hi Team, Can anyone share me the IOS upgrade playbook for cisco switches. thanks,

---

## [\[Issue\] Update variable in vars\_file and call it in a playbook doesn't work](https://forum.ansible.com/t/issue-update-variable-in-vars-file-and-call-it-in-a-playbook-doesnt-work/30333)

<div class="topic-metadata">

**Author:** [@Tran\_Khang](https://forum.ansible.com/u/Tran_Khang)\
**Replies:** 2\
**Last updated:** [May 16, 2019, 3:10am UTC](https://forum.ansible.com/t/issue-update-variable-in-vars-file-and-call-it-in-a-playbook-doesnt-work/30333 "2019-05-16T03:10:01Z")

</div>

Hi all, Please see my playbook below. I call 2 executions on different hosts in 1 playbook. The first execution changes some variables in a vars file which would be used in next execution (create new backup folder and …

---

## [\[Feature Request\] Warn user if nothing is matched by tag](https://forum.ansible.com/t/feature-request-warn-user-if-nothing-is-matched-by-tag/30342)

<div class="topic-metadata">

**Author:** [@Matthew\_Davis](https://forum.ansible.com/u/Matthew_Davis)\
**Replies:** 0\
**Last updated:** [May 15, 2019, 11:58pm UTC](https://forum.ansible.com/t/feature-request-warn-user-if-nothing-is-matched-by-tag/30342 "2019-05-15T23:58:51Z")

</div>

Following on from this github issue. If the user mis-spells a tag when invoking a playbook, then Ansible will run 0 tasks and claim it succeeded. This is misleading. Ansible should warn users when 0 tasks match the tag…

---

## [Running ansible tasks in background and disown](https://forum.ansible.com/t/running-ansible-tasks-in-background-and-disown/30331)

<div class="topic-metadata">

**Author:** [@Kaustav\_Majumder](https://forum.ansible.com/u/Kaustav_Majumder)\
**Replies:** 2\
**Last updated:** [May 15, 2019, 11:14pm UTC](https://forum.ansible.com/t/running-ansible-tasks-in-background-and-disown/30331 "2019-05-15T23:14:38Z")

</div>

Hi all, i am trying to top , sar , iostats in the backgound via ansible on remote hosts and collect stats redirecting outpu to a log file while I run other tasks from my local machine. I have tried - name: collect hyperv…

---

## [Multiple hosts in playbook](https://forum.ansible.com/t/multiple-hosts-in-playbook/28161)

<div class="topic-metadata">

**Author:** [@vinod93pop](https://forum.ansible.com/u/vinod93pop)\
**Replies:** 3\
**Last updated:** [May 15, 2019, 10:45pm UTC](https://forum.ansible.com/t/multiple-hosts-in-playbook/28161 "2019-05-15T22:45:27Z")

</div>

HI all, I have a playbook with 2 inventory groups. primary and secondary, where I want to run few tasks primary and few with secondary in a single playbook. How can I get that. need your help.

---

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

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

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