# Archives

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

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

**Page:** 154

---

## ["when" attribute in a play](https://forum.ansible.com/t/when-attribute-in-a-play/34357)

<div class="topic-metadata">

**Author:** [@Alan\_Evangelista](https://forum.ansible.com/u/Alan_Evangelista)\
**Replies:** 3\
**Last updated:** [December 18, 2020, 11:32pm UTC](https://forum.ansible.com/t/when-attribute-in-a-play/34357 "2020-12-18T23:32:47Z")

</div>

Today I needed to add a condition to a play in my playbook. If it is true, the tasks are executed. I’d expect this intuitive code to work: hosts:all become:yes when: tasks: … Unfortunately, “when” is not a v…

---

## [Stdout error](https://forum.ansible.com/t/stdout-error/34354)

<div class="topic-metadata">

**Author:** [@Thuan1](https://forum.ansible.com/u/Thuan1)\
**Replies:** 8\
**Last updated:** [December 18, 2020, 6:31pm UTC](https://forum.ansible.com/t/stdout-error/34354 "2020-12-18T18:31:08Z")

</div>

Hi, I’m getting the below error. I’ve tried: service\_status.stdout == ‘enabled’, and service.status.stdout.find(‘enabled’) != -1 but no luck. TASK \[set\_fact\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [Trouble with win\_chocolatey and OpenSSH](https://forum.ansible.com/t/trouble-with-win-chocolatey-and-openssh/34350)

<div class="topic-metadata">

**Author:** [@Mike\_Alberghini](https://forum.ansible.com/u/Mike_Alberghini)\
**Replies:** 5\
**Last updated:** [December 18, 2020, 5:53pm UTC](https://forum.ansible.com/t/trouble-with-win-chocolatey-and-openssh/34350 "2020-12-18T17:53:25Z")

</div>

I’m using OpenSSH to connect to Windows boxes to avoid having to deal with WinRM. So far it is working pretty good, but I have found an issue and i’m hoping someone has an idea. This is what my tasks looks like: name…

---

## [Error building awx\_sdist\_builder image](https://forum.ansible.com/t/error-building-awx-sdist-builder-image/34356)

<div class="topic-metadata">

**Author:** [@Cnu\_k](https://forum.ansible.com/u/Cnu_k)\
**Replies:** 0\
**Last updated:** [December 18, 2020, 5:45pm UTC](https://forum.ansible.com/t/error-building-awx-sdist-builder-image/34356 "2020-12-18T17:45:24Z")

</div>

Running into this issue inside Corporate network but worked fine outside. Any clues what needs to be done since passing ca\_cert argument to docker\_image module and setting http\_proxy in the inventory didn’t seem to fix …

---

## [Errors while building sdist builder image](https://forum.ansible.com/t/errors-while-building-sdist-builder-image/34351)

<div class="topic-metadata">

**Author:** [@Cnu\_k](https://forum.ansible.com/u/Cnu_k)\
**Replies:** 2\
**Last updated:** [December 18, 2020, 5:42pm UTC](https://forum.ansible.com/t/errors-while-building-sdist-builder-image/34351 "2020-12-18T17:42:06Z")

</div>

We’re trying to build our own awx-web image since need to install custom tools that are not in docker hub image. I was able to install and run successfully on a personal computer but having issues when I tried the same i…

---

## [nxos spanning tree vlan priority](https://forum.ansible.com/t/nxos-spanning-tree-vlan-priority/34355)

<div class="topic-metadata">

**Author:** [@Richard\_Lucht](https://forum.ansible.com/u/Richard_Lucht)\
**Replies:** 1\
**Last updated:** [December 18, 2020, 4:32pm UTC](https://forum.ansible.com/t/nxos-spanning-tree-vlan-priority/34355 "2020-12-18T16:32:54Z")

</div>

I am having some issues in a playbook I am working on. When I create a vlan on a nxos I want to set the spanning-tree vlan “{{ vlan }}” root primary. what I have when it runs errors on me. This is the last bit I need for…

---

## [encrypted password hash question](https://forum.ansible.com/t/encrypted-password-hash-question/34343)

<div class="topic-metadata">

**Author:** [@Rene\_Paquin](https://forum.ansible.com/u/Rene_Paquin)\
**Replies:** 9\
**Last updated:** [December 18, 2020, 2:33pm UTC](https://forum.ansible.com/t/encrypted-password-hash-question/34343 "2020-12-18T14:33:19Z")

</div>

Hi. New ansible user here so just starting out. My first experiment is to create a user with sudo privileges on an Oracle Linux 8 server in my test environment. Here are the contents of the files in the /home/”user”/ansi…

---

## [Reg :Regex\_search (or) regex\_findall](https://forum.ansible.com/t/reg-regex-search-or-regex-findall/34353)

<div class="topic-metadata">

**Author:** [@Heman\_Malve](https://forum.ansible.com/u/Heman_Malve)\
**Replies:** 0\
**Last updated:** [December 18, 2020, 12:36pm UTC](https://forum.ansible.com/t/reg-regex-search-or-regex-findall/34353 "2020-12-18T12:36:53Z")

</div>

Hi Team, Currently we are developing script to fetch tomact version & instances information from servers list. 1)Tomcat server path : /users/domains/tomcat/zz0003/zz0003\_app/conf/tomcat.version Would like to extract s…

---

## [where should I install my own collection plugin?](https://forum.ansible.com/t/where-should-i-install-my-own-collection-plugin/34322)

<div class="topic-metadata">

**Author:** [@Nathanael\_Blanchet](https://forum.ansible.com/u/Nathanael_Blanchet)\
**Replies:** 4\
**Last updated:** [December 18, 2020, 10:49am UTC](https://forum.ansible.com/t/where-should-i-install-my-own-collection-plugin/34322 "2020-12-18T10:49:41Z")

</div>

Hi all, I want ton use an inventory file which needs a personnal plugin that I wrote. I installed it in a the pre-existing folder /var/lib/awx/vendor/awx\_ansible\_collections/ansible\_collections/ovirt/ovirt/plugins/inve…

---

## [Ansible 2.8.2 - yum list of local packages](https://forum.ansible.com/t/ansible-2-8-2-yum-list-of-local-packages/34352)

<div class="topic-metadata">

**Author:** [@Ty\_Smith](https://forum.ansible.com/u/Ty_Smith)\
**Replies:** 0\
**Last updated:** [December 18, 2020, 3:40am UTC](https://forum.ansible.com/t/ansible-2-8-2-yum-list-of-local-packages/34352 "2020-12-18T03:40:32Z")

</div>

I get a deprecation warning when running the below task when using yum module with local install. The variable “packages” comes from vars/centos\_6.yml \*\*\*\* This Works but provides deprecated warning \*\*\*\* name: Includ…

---

## [CentOS 7 is end-of-life when using Ansible?](https://forum.ansible.com/t/centos-7-is-end-of-life-when-using-ansible/34345)

<div class="topic-metadata">

**Author:** [@Onno](https://forum.ansible.com/u/Onno)\
**Replies:** 5\
**Last updated:** [December 17, 2020, 8:38pm UTC](https://forum.ansible.com/t/centos-7-is-end-of-life-when-using-ansible/34345 "2020-12-17T20:38:58Z")

</div>

Hi all, I stumbled onto the problem If you require Python 3 support use the dnf Ansible module instead." This message baffles me. It has for some time and I do not understand what it implies or means. My conclusion a…

---

## [Need help with Loop and Stat playbook](https://forum.ansible.com/t/need-help-with-loop-and-stat-playbook/34344)

<div class="topic-metadata">

**Author:** [@Thuan1](https://forum.ansible.com/u/Thuan1)\
**Replies:** 4\
**Last updated:** [December 17, 2020, 8:30pm UTC](https://forum.ansible.com/t/need-help-with-loop-and-stat-playbook/34344 "2020-12-17T20:30:27Z")

</div>

Hi all, I’m try to use the Loop and Stat modules instead Shell command with Ansible playbook. Whenever I run the playbook with --check, I always get the ‘Pass’ message. The error was: error while evaluating conditiona…

---

## [gather facts fails when inventory contains vault variable](https://forum.ansible.com/t/gather-facts-fails-when-inventory-contains-vault-variable/34342)

<div class="topic-metadata">

**Author:** [@Umesha\_A](https://forum.ansible.com/u/Umesha_A)\
**Replies:** 2\
**Last updated:** [December 17, 2020, 7:28pm UTC](https://forum.ansible.com/t/gather-facts-fails-when-inventory-contains-vault-variable/34342 "2020-12-17T19:28:21Z")

</div>

Hi All, With the following inventory file, gather facts gives error. The inventory file has root\_password which is defined in vault and I am passing vault-id in command line. Any ideas ? I am able to access the root\_pas…

---

## [How to grant System Auditor role via awx.awx.tower\_role module](https://forum.ansible.com/t/how-to-grant-system-auditor-role-via-awx-awx-tower-role-module/34349)

<div class="topic-metadata">

**Author:** [@Harrison\_Katz](https://forum.ansible.com/u/Harrison_Katz)\
**Replies:** 0\
**Last updated:** [December 17, 2020, 3:33pm UTC](https://forum.ansible.com/t/how-to-grant-system-auditor-role-via-awx-awx-tower-role-module/34349 "2020-12-17T15:33:52Z")

</div>

Hello! How can I grant the “System Auditor” role via the awx.awx.tower\_role module (or even in the UI I can’t figure it out)? See: https://docs.ansible.com/ansible/latest/collections/awx/awx/tower\_role\_module.html See…

---

## [Multiple values for ansible connection properties](https://forum.ansible.com/t/multiple-values-for-ansible-connection-properties/34347)

<div class="topic-metadata">

**Author:** [@Ivan\_Labrovic](https://forum.ansible.com/u/Ivan_Labrovic)\
**Replies:** 4\
**Last updated:** [December 17, 2020, 1:23pm UTC](https://forum.ansible.com/t/multiple-values-for-ansible-connection-properties/34347 "2020-12-17T13:23:13Z")

</div>

Has anyone heard of providing a second --user/–privatekey to ansible-playbook command, just in case the first user/privkey authentication fails? Seem to remember something about this in an Ansible session on the RHEl su…

---

## [Need to enter chroot on remote host](https://forum.ansible.com/t/need-to-enter-chroot-on-remote-host/34335)

<div class="topic-metadata">

**Author:** [@Mathias\_Jung](https://forum.ansible.com/u/Mathias_Jung)\
**Replies:** 3\
**Last updated:** [December 17, 2020, 8:35am UTC](https://forum.ansible.com/t/need-to-enter-chroot-on-remote-host/34335 "2020-12-17T08:35:46Z")

</div>

Hello, some servers i like to manage have a chroot. There I have to run: chroot /home/system/chroot to switch in. There i have to install packages with APT, store configurations, etc. Is there a chance to do that wit…

---

## [Modify awx\_task container to include new software](https://forum.ansible.com/t/modify-awx-task-container-to-include-new-software/30578)

<div class="topic-metadata">

**Author:** [@Sergio\_Fernandez](https://forum.ansible.com/u/Sergio_Fernandez)\
**Replies:** 4\
**Last updated:** [December 16, 2020, 8:55pm UTC](https://forum.ansible.com/t/modify-awx-task-container-to-include-new-software/30578 "2020-12-16T20:55:29Z")

</div>

Hi, I would like to know if you could pinpoint me the exact way to make a software installed in the awx\_task container, so when I run playbooks from AWX using the “delegate\_to: localhost” it gets done successfully. Curr…

---

## [Announcing AWX 16.0.0](https://forum.ansible.com/t/announcing-awx-16-0-0/34316)

<div class="topic-metadata">

**Author:** [@mabashia](https://forum.ansible.com/u/mabashia)\
**Replies:** 11\
**Last updated:** [December 16, 2020, 3:51pm UTC](https://forum.ansible.com/t/announcing-awx-16-0-0/34316 "2020-12-16T15:51:52Z")

</div>

Hello Everyone, I am excited to announce a new version of AWX, 16.0.0. As you’ll see in the changelog, this version of AWX ships with a new take on the user interface. We’re excited for you all to give it a try and giv…

---

## [Setting a variable in one playbook and using that in another](https://forum.ansible.com/t/setting-a-variable-in-one-playbook-and-using-that-in-another/34339)

<div class="topic-metadata">

**Author:** [@Akshay\_Kumar](https://forum.ansible.com/u/Akshay_Kumar)\
**Replies:** 2\
**Last updated:** [December 16, 2020, 1:31pm UTC](https://forum.ansible.com/t/setting-a-variable-in-one-playbook-and-using-that-in-another/34339 "2020-12-16T13:31:33Z")

</div>

Hi Everyone, Hope all are well . I have a small query where in i want to know if i can set a variable in one playbook and use that in another playbook. For eg Playbook1 : setting a var with output of shell set\_fact: …

---

## [Mapping from hosts to services](https://forum.ansible.com/t/mapping-from-hosts-to-services/34336)

<div class="topic-metadata">

**Author:** [@Axel\_Rau](https://forum.ansible.com/u/Axel_Rau)\
**Replies:** 3\
**Last updated:** [December 16, 2020, 11:57am UTC](https://forum.ansible.com/t/mapping-from-hosts-to-services/34336 "2020-12-16T11:57:07Z")

</div>

Hi all, I’m still in the learning phase. I try to complete a strong normalized approach with all variables and dependencies declared in the inventory with the goal to manage the configuration of a server infrastructure…

---

## [saving login details in remote device](https://forum.ansible.com/t/saving-login-details-in-remote-device/34341)

<div class="topic-metadata">

**Author:** [@anup\_nepal](https://forum.ansible.com/u/anup_nepal)\
**Replies:** 0\
**Last updated:** [December 16, 2020, 11:34am UTC](https://forum.ansible.com/t/saving-login-details-in-remote-device/34341 "2020-12-16T11:34:21Z")

</div>

how can i write the ansible playbook for finding the last login details and saving those details in my remote device and updating in every details when user login with same ip address

---

## [How to run two tasks at the same time](https://forum.ansible.com/t/how-to-run-two-tasks-at-the-same-time/34234)

<div class="topic-metadata">

**Author:** [@Prathap\_Dasari](https://forum.ansible.com/u/Prathap_Dasari)\
**Replies:** 1\
**Last updated:** [December 15, 2020, 4:47pm UTC](https://forum.ansible.com/t/how-to-run-two-tasks-at-the-same-time/34234 "2020-12-15T16:47:50Z")

</div>

Hi , How to run two tasks at the same time ? Kindly let me know if anyone knows about it. Regards, Prathap

---

## [Error after upgrading to version 15.0.1](https://forum.ansible.com/t/error-after-upgrading-to-version-15-0-1/34338)

<div class="topic-metadata">

**Author:** [@Russell\_Teeter](https://forum.ansible.com/u/Russell_Teeter)\
**Replies:** 0\
**Last updated:** [December 15, 2020, 4:47pm UTC](https://forum.ansible.com/t/error-after-upgrading-to-version-15-0-1/34338 "2020-12-15T16:47:07Z")

</div>

I apologize for my ignorance, I am just getting involved in an AWX in our environment. Currently after upgrading to version 15.0.1, we are getting the following error at login prompt: ERROR Failed to read /api. GET sta…

---

## [shell module  variables](https://forum.ansible.com/t/shell-module-variables/34300)

<div class="topic-metadata">

**Author:** [@Manoj\_Chander](https://forum.ansible.com/u/Manoj_Chander)\
**Replies:** 4\
**Last updated:** [December 15, 2020, 2:44pm UTC](https://forum.ansible.com/t/shell-module-variables/34300 "2020-12-15T14:44:57Z")

</div>

Im trying to read a file line by line and pass it to a shell module Is this completely wrong or i just have to find a way to make the wildcard and string to match . name: remove older files shell: ls “{{item}}.jar” …

---

## [Using Ansible from other tools (Eg. Terraform)](https://forum.ansible.com/t/using-ansible-from-other-tools-eg-terraform/34307)

<div class="topic-metadata">

**Author:** [@Philip\_Mallegol-Hans](https://forum.ansible.com/u/Philip_Mallegol-Hans)\
**Replies:** 2\
**Last updated:** [December 15, 2020, 2:36pm UTC](https://forum.ansible.com/t/using-ansible-from-other-tools-eg-terraform/34307 "2020-12-15T14:36:57Z")

</div>

Hey everyone! A month ago I opened an issue regarding how the ansible-pull command assumes local connections should be used, in the context of a pull vs. push architecture. I was kindly informed there are no plans to ch…

---

## [Handle MFA Setup on Linux hosts using Ansible](https://forum.ansible.com/t/handle-mfa-setup-on-linux-hosts-using-ansible/34337)

<div class="topic-metadata">

**Author:** [@Parth\_Patel](https://forum.ansible.com/u/Parth_Patel)\
**Replies:** 1\
**Last updated:** [December 15, 2020, 1:45pm UTC](https://forum.ansible.com/t/handle-mfa-setup-on-linux-hosts-using-ansible/34337 "2020-12-15T13:45:53Z")

</div>

Assume we have linux servers with MFA being setup while logging in using SSH key based authentication. Like say example https://cmd.com/ or OKTA is used to setup MFA. How can we do same task using ansible ? I wanted to m…

---

## [custom callback plugin for AWX](https://forum.ansible.com/t/custom-callback-plugin-for-awx/32309)

<div class="topic-metadata">

**Author:** [@Punit\_Jain](https://forum.ansible.com/u/Punit_Jain)\
**Replies:** 3\
**Last updated:** [December 15, 2020, 11:52am UTC](https://forum.ansible.com/t/custom-callback-plugin-for-awx/32309 "2020-12-15T11:52:02Z")

</div>

Hi , I am trying to get back o/p as a json so I am using json callback pluugin. My playbook str: admin$ ls README.md ansible.cfg callback\_plugins test.yml also ansible.cfg admin$ cat ansible.cfg \[defaults\] callbac…

---

## [suppress stdout titiles](https://forum.ansible.com/t/suppress-stdout-titiles/34324)

<div class="topic-metadata">

**Author:** [@Sanoj\_Thampi](https://forum.ansible.com/u/Sanoj_Thampi)\
**Replies:** 1\
**Last updated:** [December 15, 2020, 11:51am UTC](https://forum.ansible.com/t/suppress-stdout-titiles/34324 "2020-12-15T11:51:22Z")

</div>

Hello Team, Is there any way to suppress play and task tile from stdout api ? this is possible in cli but not working from awx

---

## [Warning in ansible-base 2.10 (when running playbook)](https://forum.ansible.com/t/warning-in-ansible-base-2-10-when-running-playbook/33975)

<div class="topic-metadata">

**Author:** [@Alex\_Cernat](https://forum.ansible.com/u/Alex_Cernat)\
**Replies:** 4\
**Last updated:** [December 15, 2020, 8:38am UTC](https://forum.ansible.com/t/warning-in-ansible-base-2-10-when-running-playbook/33975 "2020-12-15T08:38:33Z")

</div>

Debian 10.6 up-to-date, ansible-base 2.10.2 (for ubuntu bionic) installed as package. Every module that implies a redirection (not from ansible.builtin) seems to trigger that warning. I.e: community.general, community.…

---

## [New release: ansible-base 2.10.4](https://forum.ansible.com/t/new-release-ansible-base-2-10-4/34334)

<div class="topic-metadata">

**Author:** [@relrod](https://forum.ansible.com/u/relrod)\
**Replies:** 0\
**Last updated:** [December 15, 2020, 6:05am UTC](https://forum.ansible.com/t/new-release-ansible-base-2-10-4/34334 "2020-12-15T06:05:23Z")

</div>

Hi all- we're happy to announce that the general release of ansible-base 2.10.4 is now available! How to get it

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

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