# Ansible Project

**URL:** https://forum.ansible.com/c/archives/ansible-project/30.md?page=102

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

**Page:** 103

---

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

---

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

---

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

---

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

---

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

---

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

---

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

---

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

---

## [Websitecreation playbook](https://forum.ansible.com/t/websitecreation-playbook/33885)

<div class="topic-metadata">

**Author:** [@rubod\_singh](https://forum.ansible.com/u/rubod_singh)\
**Replies:** 0\
**Last updated:** [September 24, 2020, 11:56am UTC](https://forum.ansible.com/t/websitecreation-playbook/33885 "2020-09-24T11:56:43Z")

</div>

HI Team, can someone share or point me to a playbook that can be used to create the iis websites dynamically on windows. i have this currently that i found on internet but doesnt seem to be working.

---

## [Branching/conditional statements to install different editions and versions of MS SQL Server](https://forum.ansible.com/t/branching-conditional-statements-to-install-different-editions-and-versions-of-ms-sql-server/33786)

<div class="topic-metadata">

**Author:** [@Rahul\_Puli](https://forum.ansible.com/u/Rahul_Puli)\
**Replies:** 1\
**Last updated:** [September 24, 2020, 11:27am UTC](https://forum.ansible.com/t/branching-conditional-statements-to-install-different-editions-and-versions-of-ms-sql-server/33786 "2020-09-24T11:27:55Z")

</div>

Hello, I have created a role to install MSSQL for different versions (2014,2016,2017,2019) and its working fine for all the versions. For installing MS SQL 2014 developer version I need to comment the others developer …

---

## [ios\_vlans and ios\_l2\_interfaces error](https://forum.ansible.com/t/ios-vlans-and-ios-l2-interfaces-error/33867)

<div class="topic-metadata">

**Author:** [@Jaime\_Jaca](https://forum.ansible.com/u/Jaime_Jaca)\
**Replies:** 2\
**Last updated:** [September 24, 2020, 6:31am UTC](https://forum.ansible.com/t/ios-vlans-and-ios-l2-interfaces-error/33867 "2020-09-24T06:31:33Z")

</div>

The new ios\_vlans and ios\_l2\_interfaces modules give me the following error when executing it:

---

## [unable to ping  windows machine](https://forum.ansible.com/t/unable-to-ping-windows-machine/33843)

<div class="topic-metadata">

**Author:** [@PRAVEEN\_KATTULAPALLI](https://forum.ansible.com/u/PRAVEEN_KATTULAPALLI)\
**Replies:** 3\
**Last updated:** [September 24, 2020, 4:35am UTC](https://forum.ansible.com/t/unable-to-ping-windows-machine/33843 "2020-09-24T04:35:55Z")

</div>

server16 | UNREACHABLE! =\> { “changed”: false, “msg”: “basic: HTTPConnectionPool(host=‘server16’, port=5985): Max retries exceeded with url: /wsman (Caused by ConnectTimeoutError(\<urllib3.connection.HTTPConnection obje…

---

## [unistall windows server](https://forum.ansible.com/t/unistall-windows-server/33865)

<div class="topic-metadata">

**Author:** [@PRAVEEN\_KATTULAPALLI](https://forum.ansible.com/u/PRAVEEN_KATTULAPALLI)\
**Replies:** 13\
**Last updated:** [September 24, 2020, 2:07am UTC](https://forum.ansible.com/t/unistall-windows-server/33865 "2020-09-24T02:07:26Z")

</div>

Hii all, could anyone share ansible script or basic format of script for windows server uninstallation. i couldn’t find any related scripts or modules in official docs.

---

## [What's wrong with this block of code?](https://forum.ansible.com/t/whats-wrong-with-this-block-of-code/33883)

<div class="topic-metadata">

**Author:** [@Prabhakaran\_Karuppai](https://forum.ansible.com/u/Prabhakaran_Karuppai)\
**Replies:** 1\
**Last updated:** [September 24, 2020, 1:57am UTC](https://forum.ansible.com/t/whats-wrong-with-this-block-of-code/33883 "2020-09-24T01:57:50Z")

</div>

name: Install other dependencies dnf: name: unixODBC unixODBC-devel mysql-connector-odbc MySQL-python tcpdump ntp ntpdate jansson bind-utils state: present I am getting the following error Message: ERROR! Conflicti…

---

## [Ansible-2.10.0 has been released!](https://forum.ansible.com/t/ansible-2-10-0-has-been-released/33870)

<div class="topic-metadata">

**Author:** [@tkuratom](https://forum.ansible.com/u/tkuratom)\
**Replies:** 2\
**Last updated:** [September 23, 2020, 2:58pm UTC](https://forum.ansible.com/t/ansible-2-10-0-has-been-released/33870 "2020-09-23T14:58:19Z")

</div>

Hi all- \*\*Important:\*\* If you are upgrading from an older Ansible release, please see the \`How to get it\` section for an important limitation. We're happy to announce that the ansible-2.10 package is now available! T…

---

## [Template for /etc/hosts file replication](https://forum.ansible.com/t/template-for-etc-hosts-file-replication/33807)

<div class="topic-metadata">

**Author:** [@Vicente\_Dominguez](https://forum.ansible.com/u/Vicente_Dominguez)\
**Replies:** 12\
**Last updated:** [September 23, 2020, 11:40am UTC](https://forum.ansible.com/t/template-for-etc-hosts-file-replication/33807 "2020-09-23T11:40:14Z")

</div>

Hi, Id like to ask for help to solve the following case, as I don’t know how to solve it myself. Imagine that you have to replicate “/etc/hosts” file of the control node and spread it to specific managed nodes, via J2 …

---

## [Minimal ansible 2.10 installation](https://forum.ansible.com/t/minimal-ansible-2-10-installation/33876)

<div class="topic-metadata">

**Author:** [@Anand\_Buddhdev1](https://forum.ansible.com/u/Anand_Buddhdev1)\
**Replies:** 0\
**Last updated:** [September 23, 2020, 10:12am UTC](https://forum.ansible.com/t/minimal-ansible-2-10-installation/33876 "2020-09-23T10:12:40Z")

</div>

Hi folks, Now that ansible’s code has been reorganised, I have a question about how to do a minimal installation. I am interested in just these 3 things: ansible-base ansible.posix collection community collection I c…

---

## [What is the right tool to make yml files on Windows 10?](https://forum.ansible.com/t/what-is-the-right-tool-to-make-yml-files-on-windows-10/33875)

<div class="topic-metadata">

**Author:** [@Prabhakaran\_Karuppai](https://forum.ansible.com/u/Prabhakaran_Karuppai)\
**Replies:** 2\
**Last updated:** [September 23, 2020, 9:03am UTC](https://forum.ansible.com/t/what-is-the-right-tool-to-make-yml-files-on-windows-10/33875 "2020-09-23T09:03:46Z")

</div>

You know… There must be some Software tool like Notepad, Wordpad or Microsoft Word… How about Atos? Or Notepad++ Maybe… My core learning is not with ansible. I just want to run some Playbooks…(On CentOS 7) to install …

---

## [Not connected application server..](https://forum.ansible.com/t/not-connected-application-server/33869)

<div class="topic-metadata">

**Author:** [@Amit\_Joshi](https://forum.ansible.com/u/Amit_Joshi)\
**Replies:** 1\
**Last updated:** [September 23, 2020, 6:47am UTC](https://forum.ansible.com/t/not-connected-application-server/33869 "2020-09-23T06:47:07Z")

</div>

I am working for our application for bounce (start/stop) but i am not connected with application host. I tried ping command, which you sent and it works… \[webadmin@vlodjumpts00 ~\]$ ping 8.8.8.8 PING 8.8.8.8 (8.8.8.8) …

[Previous page](https://forum.ansible.com/c/archives/ansible-project/30.md?page=101)

[Next page](https://forum.ansible.com/c/archives/ansible-project/30.md?page=103)
