# Archives

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

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

**Page:** 219

---

## [json\_query/jmespath filtering question](https://forum.ansible.com/t/json-query-jmespath-filtering-question/32437)

<div class="topic-metadata">

**Author:** [@nschende](https://forum.ansible.com/u/nschende)\
**Replies:** 7\
**Last updated:** [March 11, 2020, 11:39pm UTC](https://forum.ansible.com/t/json-query-jmespath-filtering-question/32437 "2020-03-11T23:39:44Z")

</div>

Trying to wrap my head about how to query json results from a URI call & could use some guidance. I am guessing there are plenty in this group which this will be an easy question for. I am registering the json response …

---

## [Register variable not capturing](https://forum.ansible.com/t/register-variable-not-capturing/32442)

<div class="topic-metadata">

**Author:** [@Sivaraman\_P](https://forum.ansible.com/u/Sivaraman_P)\
**Replies:** 4\
**Last updated:** [March 11, 2020, 4:56pm UTC](https://forum.ansible.com/t/register-variable-not-capturing/32442 "2020-03-11T16:56:38Z")

</div>

Hi I have the below playbook to stop and start the service using the script present in the the target machine, tasks: - name : stop command: ./coconf.sh -stop & register: stop\_details - debug: var=stop\_d…

---

## [How to use the playbooks and tasks folders in a Collection](https://forum.ansible.com/t/how-to-use-the-playbooks-and-tasks-folders-in-a-collection/32444)

<div class="topic-metadata">

**Author:** [@Andrew\_Garner](https://forum.ansible.com/u/Andrew_Garner)\
**Replies:** 1\
**Last updated:** [March 11, 2020, 4:54pm UTC](https://forum.ansible.com/t/how-to-use-the-playbooks-and-tasks-folders-in-a-collection/32444 "2020-03-11T16:54:49Z")

</div>

Hi, I see on the documentation for Developing Collections (https://docs.ansible.com/ansible/latest/dev\_guide/developing\_collections.html#playbooks-directory) there is a section for playbooks, but there are no details th…

---

## [Permit vaulted passwords in extra variables via Tower](https://forum.ansible.com/t/permit-vaulted-passwords-in-extra-variables-via-tower/32434)

<div class="topic-metadata">

**Author:** [@Spiro\_Mitsialis](https://forum.ansible.com/u/Spiro_Mitsialis)\
**Replies:** 1\
**Last updated:** [March 11, 2020, 1:13pm UTC](https://forum.ansible.com/t/permit-vaulted-passwords-in-extra-variables-via-tower/32434 "2020-03-11T13:13:36Z")

</div>

I’m using Tower 3.6.2 with Ansible 2.9.2. I have a “credential” with a vault password and have it associated with a template. I’m trying to add a vaulted variable as an extra variable at either the inventory or template…

---

## [Testing Authentication with Ansible](https://forum.ansible.com/t/testing-authentication-with-ansible/31762)

<div class="topic-metadata">

**Author:** [@Cade\_Lambert](https://forum.ansible.com/u/Cade_Lambert)\
**Replies:** 5\
**Last updated:** [March 11, 2020, 12:16pm UTC](https://forum.ansible.com/t/testing-authentication-with-ansible/31762 "2020-03-11T12:16:12Z")

</div>

We have a CMS web application that we’d like to ensure is up and accessible. I was using the URI module to check the login page for a proper response code, but I’d like to go a step further and test that a set of credent…

---

## [docker\_secret module does not behave the same as docker recommended approach](https://forum.ansible.com/t/docker-secret-module-does-not-behave-the-same-as-docker-recommended-approach/32436)

<div class="topic-metadata">

**Author:** [@Matthew\_Wimpelberg](https://forum.ansible.com/u/Matthew_Wimpelberg)\
**Replies:** 1\
**Last updated:** [March 11, 2020, 10:10am UTC](https://forum.ansible.com/t/docker-secret-module-does-not-behave-the-same-as-docker-recommended-approach/32436 "2020-03-11T10:10:36Z")

</div>

I recently moved my Docker Swarm setup to Ansible and found an issue with the docker\_secret module. In each container my code runs cat /run/secrets/\* \> all\_secrets to concatenate all of the secrets into a file where each…

---

## [AWX/Tower - Ability to pass jinja2 templated variables in survey](https://forum.ansible.com/t/awx-tower-ability-to-pass-jinja2-templated-variables-in-survey/32379)

<div class="topic-metadata">

**Author:** [@Tony\_Hogsten](https://forum.ansible.com/u/Tony_Hogsten)\
**Replies:** 2\
**Last updated:** [March 11, 2020, 9:28am UTC](https://forum.ansible.com/t/awx-tower-ability-to-pass-jinja2-templated-variables-in-survey/32379 "2020-03-11T09:28:26Z")

</div>

Hi! We have a master workflow that invokes several other templates, and these templates have surveys to make it easier for non-ansible users to know what to pass in them. In the master workflow when we select the given…

---

## [Updating list of dictionary values from another list](https://forum.ansible.com/t/updating-list-of-dictionary-values-from-another-list/32440)

<div class="topic-metadata">

**Author:** [@soumya\_dutta](https://forum.ansible.com/u/soumya_dutta)\
**Replies:** 0\
**Last updated:** [March 11, 2020, 3:50am UTC](https://forum.ansible.com/t/updating-list-of-dictionary-values-from-another-list/32440 "2020-03-11T03:50:18Z")

</div>

Hi all, I have a list of dictionaries where I need to update a value sequentially from another list. 1st dictionary: Xyz: 1: Name: abc State: 2: Name: cdf State: Now I have a list as below: …

---

## [Weird Kerberos Issues with WinRM and a new host spun up from vmware\_guest](https://forum.ansible.com/t/weird-kerberos-issues-with-winrm-and-a-new-host-spun-up-from-vmware-guest/32435)

<div class="topic-metadata">

**Author:** [@Dave\_York](https://forum.ansible.com/u/Dave_York)\
**Replies:** 4\
**Last updated:** [March 10, 2020, 9:53pm UTC](https://forum.ansible.com/t/weird-kerberos-issues-with-winrm-and-a-new-host-spun-up-from-vmware-guest/32435 "2020-03-10T21:53:57Z")

</div>

Hi Ansible Community. I’ve been struggling with an issue I’ve actually posted about here before. It’s more of an annoyance than anything but I’d really love to get past it, as I’m trying to demo Infrastructure-as-code to…

---

## [Regarding the code flow of ansible](https://forum.ansible.com/t/regarding-the-code-flow-of-ansible/32438)

<div class="topic-metadata">

**Author:** [@Ravindra\_Lakal](https://forum.ansible.com/u/Ravindra_Lakal)\
**Replies:** 0\
**Last updated:** [March 10, 2020, 8:32pm UTC](https://forum.ansible.com/t/regarding-the-code-flow-of-ansible/32438 "2020-03-10T20:32:58Z")

</div>

Hi, I have experience in python and looking forward to contribute in ansible I just want to know if there is a document or some guide for understanding the flow of code. Regards Ravindra Lakal

---

## [Module nxos\_user not recognizing fails saying role is invalid](https://forum.ansible.com/t/module-nxos-user-not-recognizing-fails-saying-role-is-invalid/29642)

<div class="topic-metadata">

**Author:** [@Eliezer\_Rodriguez](https://forum.ansible.com/u/Eliezer_Rodriguez)\
**Replies:** 2\
**Last updated:** [March 10, 2020, 6:06pm UTC](https://forum.ansible.com/t/module-nxos-user-not-recognizing-fails-saying-role-is-invalid/29642 "2020-03-10T18:06:55Z")

</div>

Hi everybody, I wrote this playbook to create a new role in Nexus OS and then create a new user to use that role. The role gets created but when it’s time for the second task to create the role it fails with a non-exis…

---

## [awx inventory of esxi](https://forum.ansible.com/t/awx-inventory-of-esxi/32433)

<div class="topic-metadata">

**Author:** [@Imran\_Mughal](https://forum.ansible.com/u/Imran_Mughal)\
**Replies:** 0\
**Last updated:** [March 10, 2020, 5:37pm UTC](https://forum.ansible.com/t/awx-inventory-of-esxi/32433 "2020-03-10T17:37:38Z")

</div>

Is it possible to create an inventory of esxi hosts within vcenter from awx? I’ve created a vcenter source but it only returns the one virtual machine and not the esxi hosts.

---

## [VM IP not getting set when using vmware\_guest module](https://forum.ansible.com/t/vm-ip-not-getting-set-when-using-vmware-guest-module/32431)

<div class="topic-metadata">

**Author:** [@chavali\_shruti](https://forum.ansible.com/u/chavali_shruti)\
**Replies:** 0\
**Last updated:** [March 10, 2020, 3:14pm UTC](https://forum.ansible.com/t/vm-ip-not-getting-set-when-using-vmware-guest-module/32431 "2020-03-10T15:14:01Z")

</div>

Hi Team, Not sure if this is a ansible bug, or something wrong with my script or setup. But I really need help. Issue is VM is getting created, OS is installed, but IP, subnet, gateway, etc are not getting assigned to …

---

## [ansible to create multiple security groups with os\_security\_group module](https://forum.ansible.com/t/ansible-to-create-multiple-security-groups-with-os-security-group-module/32430)

<div class="topic-metadata">

**Author:** [@Robert2](https://forum.ansible.com/u/Robert2)\
**Replies:** 0\
**Last updated:** [March 10, 2020, 3:03pm UTC](https://forum.ansible.com/t/ansible-to-create-multiple-security-groups-with-os-security-group-module/32430 "2020-03-10T15:03:35Z")

</div>

Hey everyone, Has anyone been successful in using the openstack module os\_security\_group to create a list of security groups? Here is what I have: — - hosts: localhost gather\_facts: no vars\_prompt: - name: usernam…

---

## [Migrating tower\_\* modules to from tower-cli to awxkit](https://forum.ansible.com/t/migrating-tower-modules-to-from-tower-cli-to-awxkit/32374)

<div class="topic-metadata">

**Author:** [@Juerg\_Ritter](https://forum.ansible.com/u/Juerg_Ritter)\
**Replies:** 4\
**Last updated:** [March 10, 2020, 1:32pm UTC](https://forum.ansible.com/t/migrating-tower-modules-to-from-tower-cli-to-awxkit/32374 "2020-03-10T13:32:33Z")

</div>

Hi everybody, I’m currently trying to get the tower\_\* modules in the awx collection running on a RHEL8. My problem is, there is no tower-cli RPM package for RHEL8 / Centos 8 around, so the only way to install tower-cli …

---

## [How to run ansible cli in awx](https://forum.ansible.com/t/how-to-run-ansible-cli-in-awx/32395)

<div class="topic-metadata">

**Author:** [@Francois\_Nature](https://forum.ansible.com/u/Francois_Nature)\
**Replies:** 5\
**Last updated:** [March 10, 2020, 12:57pm UTC](https://forum.ansible.com/t/how-to-run-ansible-cli-in-awx/32395 "2020-03-10T12:57:31Z")

</div>

Hi, I don’t seem to find the answer anywhere, I've just started to deploy and use ansible AWX. There are lots of tutos on ansible CLI. So when I run in the awx\_task container for example ansible-inventory --graph it …

---

## [AWX and ADFS (SAML)](https://forum.ansible.com/t/awx-and-adfs-saml/32415)

<div class="topic-metadata">

**Author:** [@Ansible\_Madness](https://forum.ansible.com/u/Ansible_Madness)\
**Replies:** 2\
**Last updated:** [March 10, 2020, 12:56pm UTC](https://forum.ansible.com/t/awx-and-adfs-saml/32415 "2020-03-10T12:56:57Z")

</div>

Bit of a vague question but I am messing around on some test servers and thought it would be cool to see if AWX can authenticate via AD & ADFS using SAML. Quite honestly I am still learning SAML (and things like ADFS), …

---

## [Which user/org is a dynamic AWX inventory script running for?](https://forum.ansible.com/t/which-user-org-is-a-dynamic-awx-inventory-script-running-for/32429)

<div class="topic-metadata">

**Author:** [@jpmens1](https://forum.ansible.com/u/jpmens1)\
**Replies:** 0\
**Last updated:** [March 10, 2020, 12:35pm UTC](https://forum.ansible.com/t/which-user-org-is-a-dynamic-awx-inventory-script-running-for/32429 "2020-03-10T12:35:21Z")

</div>

When a dynamic inventory script is run on AWX, would it be possible to determine for which user or organization the script is running for? I’ve checked and there are no args or environment variables which provide the inf…

---

## [Network switch total uptime in minutes](https://forum.ansible.com/t/network-switch-total-uptime-in-minutes/32418)

<div class="topic-metadata">

**Author:** [@Nasir\_Nasir](https://forum.ansible.com/u/Nasir_Nasir)\
**Replies:** 2\
**Last updated:** [March 10, 2020, 12:02pm UTC](https://forum.ansible.com/t/network-switch-total-uptime-in-minutes/32418 "2020-03-10T12:02:22Z")

</div>

Hi, i want to get the total uptime of switch in minutes, i have tried the below command for it but it gives me in days, hours, and minutes but i would need it only in minutes: i am currently using below module for it …

---

## [Can I get json output for jobs?](https://forum.ansible.com/t/can-i-get-json-output-for-jobs/32427)

<div class="topic-metadata">

**Author:** [@kurrent93](https://forum.ansible.com/u/kurrent93)\
**Replies:** 1\
**Last updated:** [March 10, 2020, 7:19am UTC](https://forum.ansible.com/t/can-i-get-json-output-for-jobs/32427 "2020-03-10T07:19:02Z")

</div>

Hello I’m hoping that I can use the AWX api to get data back from a job. I can call /api/v2/jobs/2704/stdout/?format=json, for example, but - while the result is technically json - its justs not particularly usable. I…

---

## [Is a file level group possible for multiple inventory files in directory?](https://forum.ansible.com/t/is-a-file-level-group-possible-for-multiple-inventory-files-in-directory/32426)

<div class="topic-metadata">

**Author:** [@Josef\_Fortier](https://forum.ansible.com/u/Josef_Fortier)\
**Replies:** 0\
**Last updated:** [March 9, 2020, 8:48pm UTC](https://forum.ansible.com/t/is-a-file-level-group-possible-for-multiple-inventory-files-in-directory/32426 "2020-03-09T20:48:53Z")

</div>

I have two different organizations managed in two separate files, with some overlap in roles. I’m currently manually creating groups within each file target hosts in that file (conceptually “organization”). I’d like to…

---

## [apt-add-repository ppa:ansible/ansible timeout?](https://forum.ansible.com/t/apt-add-repository-ppa-ansible-ansible-timeout/32425)

<div class="topic-metadata">

**Author:** [@Joshua\_Goldman](https://forum.ansible.com/u/Joshua_Goldman)\
**Replies:** 1\
**Last updated:** [March 9, 2020, 7:26pm UTC](https://forum.ansible.com/t/apt-add-repository-ppa-ansible-ansible-timeout/32425 "2020-03-09T19:26:21Z")

</div>

Is adding the repository timing out for anyone else?

---

## [Unexpected parameter type in new Ansible role](https://forum.ansible.com/t/unexpected-parameter-type-in-new-ansible-role/32424)

<div class="topic-metadata">

**Author:** [@harry\_devine](https://forum.ansible.com/u/harry_devine)\
**Replies:** 1\
**Last updated:** [March 9, 2020, 7:23pm UTC](https://forum.ansible.com/t/unexpected-parameter-type-in-new-ansible-role/32424 "2020-03-09T19:23:15Z")

</div>

I’m trying to create a role that will update Satellite content views using the Foreman/Katello modules. Here’s what the role tree looks like: \[root@server1 /etc/ansible/roles/foreman\_content\_views\]#tree . ├── defaults …

---

## [Thoughts on bugfix in ActionBase.\_low\_level\_execute\_command](https://forum.ansible.com/t/thoughts-on-bugfix-in-actionbase-low-level-execute-command/32421)

<div class="topic-metadata">

**Author:** [@rjwagner.dba](https://forum.ansible.com/u/rjwagner.dba)\
**Replies:** 0\
**Last updated:** [March 9, 2020, 2:58pm UTC](https://forum.ansible.com/t/thoughts-on-bugfix-in-actionbase-low-level-execute-command/32421 "2020-03-09T14:58:38Z")

</div>

Hey all - Last week, I opened https://github.com/ansible/ansible/issues/68054 (raw plugin doesn’t honor executable in Ansible 2.8+). Matt proposed an update to ActionBase.\_low\_level\_execute\_command that fixes the issue. …

---

## [Unable to substitute variable inside variable](https://forum.ansible.com/t/unable-to-substitute-variable-inside-variable/32420)

<div class="topic-metadata">

**Author:** [@Sanjay1](https://forum.ansible.com/u/Sanjay1)\
**Replies:** 2\
**Last updated:** [March 9, 2020, 2:00pm UTC](https://forum.ansible.com/t/unable-to-substitute-variable-inside-variable/32420 "2020-03-09T14:00:04Z")

</div>

Any idea/comments why this doesn’t work? Installed aversion - 2.9.0 Playbook : test.yml

---

## [Jinja2 iterate over strings and lists](https://forum.ansible.com/t/jinja2-iterate-over-strings-and-lists/32409)

<div class="topic-metadata">

**Author:** [@Quentin\_Aveno](https://forum.ansible.com/u/Quentin_Aveno)\
**Replies:** 2\
**Last updated:** [March 9, 2020, 12:54pm UTC](https://forum.ansible.com/t/jinja2-iterate-over-strings-and-lists/32409 "2020-03-09T12:54:30Z")

</div>

Hi guys, I got a question concerning list of lists and strings. I have something like : - name: test vars: test1: "test1" test2: - "test21" - "test22" test3: - "{{ test1 }}" …

---

## [using ansible facts in key value](https://forum.ansible.com/t/using-ansible-facts-in-key-value/32417)

<div class="topic-metadata">

**Author:** [@Azir\_Guleroglu](https://forum.ansible.com/u/Azir_Guleroglu)\
**Replies:** 2\
**Last updated:** [March 8, 2020, 2:08pm UTC](https://forum.ansible.com/t/using-ansible-facts-in-key-value/32417 "2020-03-08T14:08:58Z")

</div>

Hello, I try to use ansible facts in variable file but i get below error. Anyone how any idea how can i use my variable in to the playbook fatal: \[ANSIBLET01\]: FAILED! =\> {“ansible\_facts”: {}, “ansible\_included\_var\_fil…

---

## [Help on Ansible gcp\_compute\_snapshot module](https://forum.ansible.com/t/help-on-ansible-gcp-compute-snapshot-module/32407)

<div class="topic-metadata">

**Author:** [@FRANK\_L](https://forum.ansible.com/u/FRANK_L)\
**Replies:** 1\
**Last updated:** [March 8, 2020, 1:55pm UTC](https://forum.ansible.com/t/help-on-ansible-gcp-compute-snapshot-module/32407 "2020-03-08T13:55:37Z")

</div>

Hi Ansible helpers, Could someone help on how to use the Ansible gcp\_compute\_snapshot module? I created an Ansible playbook as bollow but ran into one error during the snapshot on SUSE 12.3. The error was "fatal: \[patc…

---

## [ansible-galaxy git clone failures](https://forum.ansible.com/t/ansible-galaxy-git-clone-failures/25231)

<div class="topic-metadata">

**Author:** [@Prasoon\_Majumdar](https://forum.ansible.com/u/Prasoon_Majumdar)\
**Replies:** 5\
**Last updated:** [March 8, 2020, 1:09pm UTC](https://forum.ansible.com/t/ansible-galaxy-git-clone-failures/25231 "2020-03-08T13:09:02Z")

</div>

Hello, I was trying to clone roles using ansible-galaxy cli from private repo, requirements file : working.yml src: git+https://git@git.xxxxxx.com/devops/ansible-role-fpm.git name: watever.fpm version: master ansi…

---

## [ansible variable in number](https://forum.ansible.com/t/ansible-variable-in-number/32416)

<div class="topic-metadata">

**Author:** [@SeungJoon](https://forum.ansible.com/u/SeungJoon)\
**Replies:** 4\
**Last updated:** [March 8, 2020, 7:17am UTC](https://forum.ansible.com/t/ansible-variable-in-number/32416 "2020-03-08T07:17:38Z")

</div>

I want to put the numbers 1 to 10 in the {{}} variable but it fails How to put numbers from 1 to 10 in a variable The condition does not use with\_item playbook example : name: Alarm check when: ‘“{{ }} alarms curre…

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

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