# Archives

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

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

**Page:** 169

---

## [Ansible hangs on package installation for hours before connection to host is lost](https://forum.ansible.com/t/ansible-hangs-on-package-installation-for-hours-before-connection-to-host-is-lost/33787)

<div class="topic-metadata">

**Author:** [@Pankaj\_Basnal](https://forum.ansible.com/u/Pankaj_Basnal)\
**Replies:** 8\
**Last updated:** [September 29, 2020, 7:31am UTC](https://forum.ansible.com/t/ansible-hangs-on-package-installation-for-hours-before-connection-to-host-is-lost/33787 "2020-09-29T07:31:02Z")

</div>

Hi, I’m new to ansible and I’m facing an issue with executing our playbook. Setup- For 10 hosts on azure all hosts are identical and newly created ansible.cfg- \[defaults\] host\_key\_checking = False portion…

---

## [New release candidate: ansible-base 2.10.2rc1](https://forum.ansible.com/t/new-release-candidate-ansible-base-2-10-2rc1/33917)

<div class="topic-metadata">

**Author:** [@relrod](https://forum.ansible.com/u/relrod)\
**Replies:** 0\
**Last updated:** [September 28, 2020, 11:33pm UTC](https://forum.ansible.com/t/new-release-candidate-ansible-base-2-10-2rc1/33917 "2020-09-28T23:33:34Z")

</div>

Hi all- we're happy to announce that the general release of ansible-base 2.10.2rc1 is now available! These are release candidates that you can use for testing the next available minor releases of ansible-base. How to …

---

## [New release candidates: ansible 2.8.16rc1, 2.9.14rc1](https://forum.ansible.com/t/new-release-candidates-ansible-2-8-16rc1-2-9-14rc1/33916)

<div class="topic-metadata">

**Author:** [@relrod](https://forum.ansible.com/u/relrod)\
**Replies:** 0\
**Last updated:** [September 28, 2020, 11:27pm UTC](https://forum.ansible.com/t/new-release-candidates-ansible-2-8-16rc1-2-9-14rc1/33916 "2020-09-28T23:27:11Z")

</div>

Hi all- we're happy to announce that the general release of Ansible 2.9.14rc1 and 2.8.16rc1 are now available! These are release candidates that you can use for testing the next available minor releases of Ansible. Ho…

---

## [Register variable, get specific strings and use strings in subsequent task](https://forum.ansible.com/t/register-variable-get-specific-strings-and-use-strings-in-subsequent-task/33912)

<div class="topic-metadata">

**Author:** [@Sven1](https://forum.ansible.com/u/Sven1)\
**Replies:** 2\
**Last updated:** [September 28, 2020, 8:15pm UTC](https://forum.ansible.com/t/register-variable-get-specific-strings-and-use-strings-in-subsequent-task/33912 "2020-09-28T20:15:38Z")

</div>

Hello guys, I am not quite sure how to describe this. I have a simple task, which executes a shell command and register a variable. - name: execute ovs-vsctl show command shell: ovs-vsctl show register: output This…

---

## [How to have stateful python class during play execution? (singleton?](https://forum.ansible.com/t/how-to-have-stateful-python-class-during-play-execution-singleton/33904)

<div class="topic-metadata">

**Author:** [@thlanzer](https://forum.ansible.com/u/thlanzer)\
**Replies:** 3\
**Last updated:** [September 28, 2020, 7:46pm UTC](https://forum.ansible.com/t/how-to-have-stateful-python-class-during-play-execution-singleton/33904 "2020-09-28T19:46:49Z")

</div>

Hi guys I would like to parse specifc JSON files, create objects from them and store them in memory for further lookup (for my usecase I can’t use jmespath). So I plan to read once the whole json file into dictionary w…

---

## [need playbook to update ubuntu and centos](https://forum.ansible.com/t/need-playbook-to-update-ubuntu-and-centos/33891)

<div class="topic-metadata">

**Author:** [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Replies:** 9\
**Last updated:** [September 28, 2020, 7:10pm UTC](https://forum.ansible.com/t/need-playbook-to-update-ubuntu-and-centos/33891 "2020-09-28T19:10:59Z")

</div>

how can i update both ubuntu and centos boxes all in one playbook?

---

## [Ansible playbook command issue not running successful without -K](https://forum.ansible.com/t/ansible-playbook-command-issue-not-running-successful-without-k/33910)

<div class="topic-metadata">

**Author:** [@Hitesh\_Kumar](https://forum.ansible.com/u/Hitesh_Kumar)\
**Replies:** 2\
**Last updated:** [September 28, 2020, 4:56pm UTC](https://forum.ansible.com/t/ansible-playbook-command-issue-not-running-successful-without-k/33910 "2020-09-28T16:56:33Z")

</div>

Hi All I am running an ansible playbook command and it runs successfully only with -K. I think it is some privilege level escalation issue. Need help without “K” it is giving me “missing sudo password” when I m…

---

## [Ansible project to create windows vm from iso in vmware](https://forum.ansible.com/t/ansible-project-to-create-windows-vm-from-iso-in-vmware/33911)

<div class="topic-metadata">

**Author:** [@Luis\_Martinez](https://forum.ansible.com/u/Luis_Martinez)\
**Replies:** 0\
**Last updated:** [September 28, 2020, 4:55pm UTC](https://forum.ansible.com/t/ansible-project-to-create-windows-vm-from-iso-in-vmware/33911 "2020-09-28T16:55:25Z")

</div>

Hi Does anyone can share a playback to create a windows vm in vmware from an iso file? Thank you.

---

## [searching multi lines using regex](https://forum.ansible.com/t/searching-multi-lines-using-regex/33860)

<div class="topic-metadata">

**Author:** [@Pushparaj\_Gothandam](https://forum.ansible.com/u/Pushparaj_Gothandam)\
**Replies:** 3\
**Last updated:** [September 28, 2020, 5:22am UTC](https://forum.ansible.com/t/searching-multi-lines-using-regex/33860 "2020-09-28T05:22:39Z")

</div>

How to search multiple lines using regex in Ansible? I tried below pattern and it is not working regex: ^line con.(?:\\n^\\s.) line console 0 password

---

## [Intersect and difference in Ansible](https://forum.ansible.com/t/intersect-and-difference-in-ansible/33908)

<div class="topic-metadata">

**Author:** [@Fred\_Kanyesigye](https://forum.ansible.com/u/Fred_Kanyesigye)\
**Replies:** 0\
**Last updated:** [September 28, 2020, 4:57am UTC](https://forum.ansible.com/t/intersect-and-difference-in-ansible/33908 "2020-09-28T04:57:16Z")

</div>

I have been trying to create a playbook that removes the resource record sets for terminated EC2 instances. Other tasks can debug fine, but when it comes to intersect and difference to debug/list the common contents to …

---

## [clear arp vrf XXX force-complete](https://forum.ansible.com/t/clear-arp-vrf-xxx-force-complete/33907)

<div class="topic-metadata">

**Author:** [@stack\_flow](https://forum.ansible.com/u/stack_flow)\
**Replies:** 0\
**Last updated:** [September 28, 2020, 2:19am UTC](https://forum.ansible.com/t/clear-arp-vrf-xxx-force-complete/33907 "2020-09-28T02:19:58Z")

</div>

I am looking for following command for NXOS ansible module but I am not able to find it. it seems it is not available. how to accomplish this? clear arp vrf XXX force-complete

---

## [AWX  currently not installable   ??](https://forum.ansible.com/t/awx-currently-not-installable/33900)

<div class="topic-metadata">

**Author:** [@barry\_kelliher](https://forum.ansible.com/u/barry_kelliher)\
**Replies:** 4\
**Last updated:** [September 27, 2020, 5:42am UTC](https://forum.ansible.com/t/awx-currently-not-installable/33900 "2020-09-27T05:42:25Z")

</div>

hello i have had a very frustrating day I have Reached the conclusion that at the time of writing it is impossible to install awx . i have tried rel7 and centos 8 with the docker method - issue there seems to be that d…

---

## [Dynamic inventory and run ansible playbook in python script](https://forum.ansible.com/t/dynamic-inventory-and-run-ansible-playbook-in-python-script/33903)

<div class="topic-metadata">

**Author:** [@P\_R\_Music\_video\_s](https://forum.ansible.com/u/P_R_Music_video_s)\
**Replies:** 3\
**Last updated:** [September 27, 2020, 2:28am UTC](https://forum.ansible.com/t/dynamic-inventory-and-run-ansible-playbook-in-python-script/33903 "2020-09-27T02:28:22Z")

</div>

Hi all I need help to create dynamic inventory and run playbook using python script if anyone knows please help me out Thanks Prajwal

---

## [Docker+gitlab setup using ansible](https://forum.ansible.com/t/docker-gitlab-setup-using-ansible/33878)

<div class="topic-metadata">

**Author:** [@Gopal\_Dhapa](https://forum.ansible.com/u/Gopal_Dhapa)\
**Replies:** 4\
**Last updated:** [September 26, 2020, 8:59pm UTC](https://forum.ansible.com/t/docker-gitlab-setup-using-ansible/33878 "2020-09-26T20:59:40Z")

</div>

Hello Team, Need your help to configure docker+gitlab setup in ubuntu or any linux environment using ansible please help me on this task thanks in advance.

---

## [ansible installation: no /etc/ansible/hosts file](https://forum.ansible.com/t/ansible-installation-no-etc-ansible-hosts-file/19887)

<div class="topic-metadata">

**Author:** [@Sebastian\_M\_Cheung](https://forum.ansible.com/u/Sebastian_M_Cheung)\
**Replies:** 5\
**Last updated:** [September 26, 2020, 8:55pm UTC](https://forum.ansible.com/t/ansible-installation-no-etc-ansible-hosts-file/19887 "2020-09-26T20:55:24Z")

</div>

No file for /etc/ansible/hosts Where is this file? Instructor opened an automatically generated /etc/ansible/hosts file but there is no such file in Mac OSX after ansible is installed? Am I supposed to create this file…

---

## [use source control credential in playbook](https://forum.ansible.com/t/use-source-control-credential-in-playbook/33827)

<div class="topic-metadata">

**Author:** [@John\_Ratliff](https://forum.ansible.com/u/John_Ratliff)\
**Replies:** 8\
**Last updated:** [September 26, 2020, 4:58pm UTC](https://forum.ansible.com/t/use-source-control-credential-in-playbook/33827 "2020-09-26T16:58:45Z")

</div>

Is it possible to use a source control credential within a playbook in awx? I need to clone a repo during the play and I want to use the existing source control credential in the playbook. {{ scm\_username }} or somethin…

---

## [Need some suggestion to work on precheck and post check on ansible.](https://forum.ansible.com/t/need-some-suggestion-to-work-on-precheck-and-post-check-on-ansible/33902)

<div class="topic-metadata">

**Author:** [@Venu\_Devannagari](https://forum.ansible.com/u/Venu_Devannagari)\
**Replies:** 0\
**Last updated:** [September 26, 2020, 11:39am UTC](https://forum.ansible.com/t/need-some-suggestion-to-work-on-precheck-and-post-check-on-ansible/33902 "2020-09-26T11:39:33Z")

</div>

Actually trying to understand how prechecks and post checks are working in real time in ansible for configuration changes. I mean what is the best way to start to check these kind of things. Currently I am checking wit…

---

## [Error messages](https://forum.ansible.com/t/error-messages/33895)

<div class="topic-metadata">

**Author:** [@Joe3](https://forum.ansible.com/u/Joe3)\
**Replies:** 2\
**Last updated:** [September 26, 2020, 5:08am UTC](https://forum.ansible.com/t/error-messages/33895 "2020-09-26T05:08:06Z")

</div>

I’m pretty new to ansible, so I’m learning as i go. I run the code below and it seem to work. However i get the following errors messages? Any one know why? Any one have suggestions on how i should re-write it properly?

---

## [Running Awx container as non root user](https://forum.ansible.com/t/running-awx-container-as-non-root-user/33888)

<div class="topic-metadata">

**Author:** [@Shantanu\_Dutta](https://forum.ansible.com/u/Shantanu_Dutta)\
**Replies:** 1\
**Last updated:** [September 25, 2020, 11:33pm UTC](https://forum.ansible.com/t/running-awx-container-as-non-root-user/33888 "2020-09-25T23:33:37Z")

</div>

I have been trying to run the awx containers as non root, but unfortunately haven’t managed yet. Can anybody help me please? I have been trying since last few days but without any success.

---

## [Ways of debugging the installation for having more output](https://forum.ansible.com/t/ways-of-debugging-the-installation-for-having-more-output/33899)

<div class="topic-metadata">

**Author:** [@Ayrton\_Araujo](https://forum.ansible.com/u/Ayrton_Araujo)\
**Replies:** 0\
**Last updated:** [September 25, 2020, 10:10pm UTC](https://forum.ansible.com/t/ways-of-debugging-the-installation-for-having-more-output/33899 "2020-09-25T22:10:56Z")

</div>

Hey there, my friends. I’m experiencing this issue with a new install from the latest git tag: https://pastebin.com/xwJ6FHUH Using docker-compose. Has someone ever experienced this recently? Also, something that would…

---

## [Docker Deployment - Errno 2](https://forum.ansible.com/t/docker-deployment-errno-2/33896)

<div class="topic-metadata">

**Author:** [@Dave\_Gilmore](https://forum.ansible.com/u/Dave_Gilmore)\
**Replies:** 5\
**Last updated:** [September 25, 2020, 6:46pm UTC](https://forum.ansible.com/t/docker-deployment-errno-2/33896 "2020-09-25T18:46:38Z")

</div>

Hi Folks, I am having some issues deploying containers to a remote host, specifically reading in a env\_file. The error message I get is: \[Errno 2\] No such file or directory: "\[‘/usr/local/hg/defaults.env’, ‘/var/lib/d…

---

## [Netbox collection Error](https://forum.ansible.com/t/netbox-collection-error/33898)

<div class="topic-metadata">

**Author:** [@Jamal\_Aw\_Yonis](https://forum.ansible.com/u/Jamal_Aw_Yonis)\
**Replies:** 0\
**Last updated:** [September 25, 2020, 5:49pm UTC](https://forum.ansible.com/t/netbox-collection-error/33898 "2020-09-25T17:49:26Z")

</div>

Hey guys, I am not sure how this works but i am running into problem when i try to create device types in netbox via API. I am using ansible and python but one of the playbooks is crashed due to device type id. Here is …

---

## [catalyst 802.1x interface configuration](https://forum.ansible.com/t/catalyst-802-1x-interface-configuration/33897)

<div class="topic-metadata">

**Author:** [@Richard\_Lucht](https://forum.ansible.com/u/Richard_Lucht)\
**Replies:** 1\
**Last updated:** [September 25, 2020, 3:42pm UTC](https://forum.ansible.com/t/catalyst-802-1x-interface-configuration/33897 "2020-09-25T15:42:38Z")

</div>

Hello, I am very new to AWX. I have been a network engineer for about 10 years now. I am looking to automate a configuration change that we would have to do to about 2k switches. I would like to go from this interfac…

---

## [How to run my Playbook using the Python 3.8.5 as an interpreter?](https://forum.ansible.com/t/how-to-run-my-playbook-using-the-python-3-8-5-as-an-interpreter/33894)

<div class="topic-metadata">

**Author:** [@Prabhakaran\_Karuppai](https://forum.ansible.com/u/Prabhakaran_Karuppai)\
**Replies:** 5\
**Last updated:** [September 25, 2020, 12:56pm UTC](https://forum.ansible.com/t/how-to-run-my-playbook-using-the-python-3-8-5-as-an-interpreter/33894 "2020-09-25T12:56:16Z")

</div>

Hi Members, I tried running my ansible playbook using below linux command on CentOS 7 (Minimal Install - Command line only). But Unfortunately I am getting an error message. How to run it properly using my altinstalled …

---

## [Timezone change](https://forum.ansible.com/t/timezone-change/33889)

<div class="topic-metadata">

**Author:** [@Vineeth\_Joseph\_Abrah](https://forum.ansible.com/u/Vineeth_Joseph_Abrah)\
**Replies:** 2\
**Last updated:** [September 25, 2020, 2:31am UTC](https://forum.ansible.com/t/timezone-change/33889 "2020-09-25T02:31:01Z")

</div>

Hi Following is the script to change the timezone in ec2-instance vars: timezone: Canada/Eastern name: Check current timezone shell: awk -F" ‘{ print $2}’ /etc/sysconfig/clock register: current\_zone changed\_…

---

## [single instance of module trough playbook execution](https://forum.ansible.com/t/single-instance-of-module-trough-playbook-execution/33893)

<div class="topic-metadata">

**Author:** [@thlanzer](https://forum.ansible.com/u/thlanzer)\
**Replies:** 0\
**Last updated:** [September 25, 2020, 12:07am UTC](https://forum.ansible.com/t/single-instance-of-module-trough-playbook-execution/33893 "2020-09-25T00:07:18Z")

</div>

Hello guys I work with an API that is pretty old and only supports get of a whole bunch of data objects. The data is quite complex as I decided to define my own module/plugin to parse and store the result in memory by …

---

## [GPG Signature Validation failed for mysql community release...](https://forum.ansible.com/t/gpg-signature-validation-failed-for-mysql-community-release/33884)

<div class="topic-metadata">

**Author:** [@Prabhakaran\_Karuppai](https://forum.ansible.com/u/Prabhakaran_Karuppai)\
**Replies:** 6\
**Last updated:** [September 24, 2020, 11:34pm UTC](https://forum.ansible.com/t/gpg-signature-validation-failed-for-mysql-community-release/33884 "2020-09-24T23:34:14Z")

</div>

Hi Members, I am running an ansible Playbook which installs the below community version of MySql repo: mysql-community-release-e17-5.noarch But the problem is I am getting the Below error Message: Fatal: \[localhost\]:…

---

## [Ansible can read environment variables which AWS CloudFormation creates ?](https://forum.ansible.com/t/ansible-can-read-environment-variables-which-aws-cloudformation-creates/33892)

<div class="topic-metadata">

**Author:** [@Vineeth\_Joseph\_Abrah](https://forum.ansible.com/u/Vineeth_Joseph_Abrah)\
**Replies:** 0\
**Last updated:** [September 24, 2020, 6:00pm UTC](https://forum.ansible.com/t/ansible-can-read-environment-variables-which-aws-cloudformation-creates/33892 "2020-09-24T18:00:37Z")

</div>

Hi All, Is there a way Ansible can read environment variables which AWS CloudFormation creates ?. For example : CloudFormation can create ANSIBLE\_SOURCE env variable with the S3 bucket name that Ansible can read to pul…

---

## [Is there a way to denote modules/plugins that are private to a collection?](https://forum.ansible.com/t/is-there-a-way-to-denote-modules-plugins-that-are-private-to-a-collection/33890)

<div class="topic-metadata">

**Author:** [@Richard\_Megginson](https://forum.ansible.com/u/Richard_Megginson)\
**Replies:** 2\
**Last updated:** [September 24, 2020, 5:43pm UTC](https://forum.ansible.com/t/is-there-a-way-to-denote-modules-plugins-that-are-private-to-a-collection/33890 "2020-09-24T17:43:51Z")

</div>

The linux-system-roles project has several roles that have modules that are used in the implementation of the role. However, once we convert to collections, all of these modules will be part of the public API of the col…

---

## [How to convert dict or list to string in ansible](https://forum.ansible.com/t/how-to-convert-dict-or-list-to-string-in-ansible/33887)

<div class="topic-metadata">

**Author:** [@Devops\_testing](https://forum.ansible.com/u/Devops_testing)\
**Replies:** 2\
**Last updated:** [September 24, 2020, 4:14pm UTC](https://forum.ansible.com/t/how-to-convert-dict-or-list-to-string-in-ansible/33887 "2020-09-24T16:14:02Z")

</div>

play: set\_fact: irules: “{{ rule | json\_query(‘\[\*\].definition’) }}” debug: msg: “{{ irules }}” output: “msg”: \[ “when HTTP\_REQUEST {\\n switch -glob \[HTTP::uri\] {\\n "HAC" { pool char.hr.cal.ed.ABC.pool }\\n \\n } \\n}” …

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

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