# Archives

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

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

**Page:** 159

---

## [Issue when running docker-compose](https://forum.ansible.com/t/issue-when-running-docker-compose/34211)

<div class="topic-metadata">

**Author:** [@Prem\_Kumar](https://forum.ansible.com/u/Prem_Kumar)\
**Replies:** 0\
**Last updated:** [November 19, 2020, 6:56pm UTC](https://forum.ansible.com/t/issue-when-running-docker-compose/34211 "2020-11-19T18:56:53Z")

</div>

Environment: Centos 7.7 Softwares: git gcc gcc-c++ nodejs gettext device-mapper-persistent-data lvm2 bzip2 ansible python-pip, npm (6.14.8) & node (v12.19.1), Python 3.6.8, Docker version 19.03.13, docker-compose versi…

---

## [Connection to Windows via winrm](https://forum.ansible.com/t/connection-to-windows-via-winrm/34208)

<div class="topic-metadata">

**Author:** [@Lukasz1](https://forum.ansible.com/u/Lukasz1)\
**Replies:** 3\
**Last updated:** [November 19, 2020, 9:23am UTC](https://forum.ansible.com/t/connection-to-windows-via-winrm/34208 "2020-11-19T09:23:28Z")

</div>

Hello, I am having trouble connecting ansible via winrm. Something is wrongly defined and ansible connects to windows via ssh. ( more https://dpaste.org/6LdQ ) Where else can I look for problems? … ansible-playbook…

---

## [awx\_web won't start. Port Issue?](https://forum.ansible.com/t/awx-web-wont-start-port-issue/34209)

<div class="topic-metadata">

**Author:** [@Chris\_Curry](https://forum.ansible.com/u/Chris_Curry)\
**Replies:** 0\
**Last updated:** [November 19, 2020, 12:54am UTC](https://forum.ansible.com/t/awx-web-wont-start-port-issue/34209 "2020-11-19T00:54:17Z")

</div>

I just did a new install of awx using docker and when it starts the awx\_web container stops immediately. When I look at the logs of the container I see this message: Error: Another program is already listening on a port…

---

## [\[WARNING\]: Unhandled error in Python interpreter....](https://forum.ansible.com/t/warning-unhandled-error-in-python-interpreter/34192)

<div class="topic-metadata">

**Author:** [@bill\_paxton](https://forum.ansible.com/u/bill_paxton)\
**Replies:** 3\
**Last updated:** [November 18, 2020, 5:43pm UTC](https://forum.ansible.com/t/warning-unhandled-error-in-python-interpreter/34192 "2020-11-18T17:43:48Z")

</div>

I have a task that works fine for Ansible 2.9.7, but fails when I upgrade to 2.10.3. yaml - name: Ping ServiceNow IP Address shell: "ping -c 1 -w 5 {{ sn\_ip\_address | trim }}" ignore\_errors: true register: ping\_result…

---

## [Failed to create virtual machine... guest operating not supported](https://forum.ansible.com/t/failed-to-create-virtual-machine-guest-operating-not-supported/34202)

<div class="topic-metadata">

**Author:** [@hieronymus](https://forum.ansible.com/u/hieronymus)\
**Replies:** 5\
**Last updated:** [November 18, 2020, 9:09am UTC](https://forum.ansible.com/t/failed-to-create-virtual-machine-guest-operating-not-supported/34202 "2020-11-18T09:09:36Z")

</div>

Hi All, I’m using the role vmware\_guest to create virtual machine in both vCenter environments: a Test and a Prod. This role use a template with CentOS 8 and it is the same on both vCenters. All is running fine in Test…

---

## [ModuleNotFoundError when trying to execute Python using ansible](https://forum.ansible.com/t/modulenotfounderror-when-trying-to-execute-python-using-ansible/34205)

<div class="topic-metadata">

**Author:** [@magae](https://forum.ansible.com/u/magae)\
**Replies:** 1\
**Last updated:** [November 18, 2020, 4:44am UTC](https://forum.ansible.com/t/modulenotfounderror-when-trying-to-execute-python-using-ansible/34205 "2020-11-18T04:44:36Z")

</div>

Hi, everyone I’m trying to execute Python Files on EC2 using ansible I got an error message like this 'import influxdb\\nModuleNotFoundError: No module named ‘influxdb’ I installed ‘influxdb’ module on EC2 and it wor…

---

## [How to automate ansible automation runs from Python?](https://forum.ansible.com/t/how-to-automate-ansible-automation-runs-from-python/34190)

<div class="topic-metadata">

**Author:** [@Rafal\_Radecki](https://forum.ansible.com/u/Rafal_Radecki)\
**Replies:** 2\
**Last updated:** [November 17, 2020, 2:57pm UTC](https://forum.ansible.com/t/how-to-automate-ansible-automation-runs-from-python/34190 "2020-11-17T14:57:48Z")

</div>

Hi All, I have some ansible role structure which I use through playbooks in one of my gitlab repositories. Every time a developer needs to add a new service which uses some role/-s I manually update the code (eg. add a …

---

## [Azure Private and Service endpoints](https://forum.ansible.com/t/azure-private-and-service-endpoints/34204)

<div class="topic-metadata">

**Author:** [@Nicholas\_Reid](https://forum.ansible.com/u/Nicholas_Reid)\
**Replies:** 0\
**Last updated:** [November 17, 2020, 11:47am UTC](https://forum.ansible.com/t/azure-private-and-service-endpoints/34204 "2020-11-17T11:47:22Z")

</div>

Hi All, What’s the recommendation for configuring Azure’s service and private endpoints? I can’t see an obvious role or task for this. I want to configure my storage accounts to allow direct access from VMs without tra…

---

## [Executing Python script in AWX job template](https://forum.ansible.com/t/executing-python-script-in-awx-job-template/34203)

<div class="topic-metadata">

**Author:** [@Jarugumilli\_Venkata](https://forum.ansible.com/u/Jarugumilli_Venkata)\
**Replies:** 1\
**Last updated:** [November 17, 2020, 11:22am UTC](https://forum.ansible.com/t/executing-python-script-in-awx-job-template/34203 "2020-11-17T11:22:30Z")

</div>

Hi, I am new to AWX and trying to fulfil a requirement of showing running configuration of a device using AWX. I have the project , inventory and job template defined. But when i run the job, it’s not executing python s…

---

## [Ansible Yum Update](https://forum.ansible.com/t/ansible-yum-update/34201)

<div class="topic-metadata">

**Author:** [@HtetAung](https://forum.ansible.com/u/HtetAung)\
**Replies:** 0\
**Last updated:** [November 17, 2020, 5:24am UTC](https://forum.ansible.com/t/ansible-yum-update/34201 "2020-11-17T05:24:04Z")

</div>

Hi Guys, I have been using ansible for 3 months now and I updated my servers’ packages using yum module. My goal is to update all the packages in those servers to latest. The command line will be “yum -y update” As st…

---

## [Stripping YAML dashes from output](https://forum.ansible.com/t/stripping-yaml-dashes-from-output/34187)

<div class="topic-metadata">

**Author:** [@harry\_devine](https://forum.ansible.com/u/harry_devine)\
**Replies:** 15\
**Last updated:** [November 16, 2020, 5:56pm UTC](https://forum.ansible.com/t/stripping-yaml-dashes-from-output/34187 "2020-11-16T17:56:10Z")

</div>

I have a playbook where I am traversing our FreeIPA server and pulling out each user’s email address. I’m then putting that data into a text file using the template module: name: Set User Email fact set\_fact: user\_l…

---

## [AWX using only one Task container when running jobs in container groups](https://forum.ansible.com/t/awx-using-only-one-task-container-when-running-jobs-in-container-groups/34199)

<div class="topic-metadata">

**Author:** [@Ilija\_Matoski](https://forum.ansible.com/u/Ilija_Matoski)\
**Replies:** 0\
**Last updated:** [November 16, 2020, 1:48pm UTC](https://forum.ansible.com/t/awx-using-only-one-task-container-when-running-jobs-in-container-groups/34199 "2020-11-16T13:48:10Z")

</div>

Hello, When running jobs in task containers, our k8s cluster runs on EKS with autoscaler. We are running 100 jobs on the cluster all jobs require on average between 22-25 minutes to complete. Currently my replica set …

---

## [error while running uptime.py](https://forum.ansible.com/t/error-while-running-uptime-py/34050)

<div class="topic-metadata">

**Author:** [@nikhil\_gupta](https://forum.ansible.com/u/nikhil_gupta)\
**Replies:** 1\
**Last updated:** [November 15, 2020, 6:31pm UTC](https://forum.ansible.com/t/error-while-running-uptime-py/34050 "2020-11-15T18:31:01Z")

</div>

Hello I am new to Ansilbe. I downloaded the ansible source code zip from GitHub. I am trying to run uptime.py under examples/scripts. I am getting below error. Please let me know the steps to run this. UP \*\*\*\*\*\*\*\*\*\*\* …

---

## [help on windows gather facts](https://forum.ansible.com/t/help-on-windows-gather-facts/34188)

<div class="topic-metadata">

**Author:** [@Anitha\_sreejith](https://forum.ansible.com/u/Anitha_sreejith)\
**Replies:** 4\
**Last updated:** [November 15, 2020, 6:19pm UTC](https://forum.ansible.com/t/help-on-windows-gather-facts/34188 "2020-11-15T18:19:44Z")

</div>

Hi Anthony, I am trying to create custom fact like below. But setup module during playbook execution gets hung. What I am missing here. Please help. I have attached Screenshort below. The task “Gather custom facts” g…

---

## [How to catch and re-raise errors from inner blocks](https://forum.ansible.com/t/how-to-catch-and-re-raise-errors-from-inner-blocks/34198)

<div class="topic-metadata">

**Author:** [@Richard\_Megginson](https://forum.ansible.com/u/Richard_Megginson)\
**Replies:** 0\
**Last updated:** [November 13, 2020, 9:44pm UTC](https://forum.ansible.com/t/how-to-catch-and-re-raise-errors-from-inner-blocks/34198 "2020-11-13T21:44:46Z")

</div>

I don't know if anyone else has run into this, or if this is the right way to handle this case, but it works for me in Ansible 2.9 and 2.10: https://richm.github.io/how-to-catch-and-reraise-errors-in-ansible

---

## [Running playbooks across multiple platforms within the playbook](https://forum.ansible.com/t/running-playbooks-across-multiple-platforms-within-the-playbook/34197)

<div class="topic-metadata">

**Author:** [@Glen\_Collins](https://forum.ansible.com/u/Glen_Collins)\
**Replies:** 2\
**Last updated:** [November 13, 2020, 7:13pm UTC](https://forum.ansible.com/t/running-playbooks-across-multiple-platforms-within-the-playbook/34197 "2020-11-13T19:13:36Z")

</div>

Hello. I have an need to be able to run a playbook against a Windows system and a Linux system with different accounts and different methods of connection. The windows server of course uses winrm and the linux system us…

---

## [ssh key authentication fails on a new AWX Instance](https://forum.ansible.com/t/ssh-key-authentication-fails-on-a-new-awx-instance/34196)

<div class="topic-metadata">

**Author:** [@anish\_anil](https://forum.ansible.com/u/anish_anil)\
**Replies:** 0\
**Last updated:** [November 13, 2020, 4:56pm UTC](https://forum.ansible.com/t/ssh-key-authentication-fails-on-a-new-awx-instance/34196 "2020-11-13T16:56:25Z")

</div>

Hello AWX Team, I’m unable to run a simple ping command on a new instance of AWX Setup is on AWS AWX 15.0.1 Ansible 2.9.14 Docker version 19.03.13, build 4484c46d9d Steps followed: 1\> Install AWX using the Docker-…

---

## [Helm module issue.](https://forum.ansible.com/t/helm-module-issue/34195)

<div class="topic-metadata">

**Author:** [@Sebastian](https://forum.ansible.com/u/Sebastian)\
**Replies:** 0\
**Last updated:** [November 13, 2020, 3:38pm UTC](https://forum.ansible.com/t/helm-module-issue/34195 "2020-11-13T15:38:38Z")

</div>

Hi, I’m trying to install Helm chart from the local file on the local Minikube instance but I’m constantly getting the same error: fatal: \[localhost\]: FAILED! =\> { “changed”: false, “command”: “/usr/local/bin/helm --…

---

## [Pinging Windows Host Now Returns Unexpected Error](https://forum.ansible.com/t/pinging-windows-host-now-returns-unexpected-error/34125)

<div class="topic-metadata">

**Author:** [@dwiz](https://forum.ansible.com/u/dwiz)\
**Replies:** 3\
**Last updated:** [November 13, 2020, 2:53pm UTC](https://forum.ansible.com/t/pinging-windows-host-now-returns-unexpected-error/34125 "2020-11-13T14:53:15Z")

</div>

Hello, I am testing connection to my windows host. My host file is set up as below. \[windows\] X.X.X.X \[windows:vars\] ansible\_user= ansible\_password= ansible\_connection=winrm ansible\_port=5985 I was able to conne…

---

## [SSH authentication with multiple prompts](https://forum.ansible.com/t/ssh-authentication-with-multiple-prompts/34194)

<div class="topic-metadata">

**Author:** [@Florian\_LACOMMARE](https://forum.ansible.com/u/Florian_LACOMMARE)\
**Replies:** 0\
**Last updated:** [November 13, 2020, 1:54pm UTC](https://forum.ansible.com/t/ssh-authentication-with-multiple-prompts/34194 "2020-11-13T13:54:26Z")

</div>

Hello, I would like to know if it possible to use some network modules (aireos for example) and connect to my device which is asking me multiples prompts (username and password). The device behavior : When you try to …

---

## [ansible-runner use of /etc/ansible](https://forum.ansible.com/t/ansible-runner-use-of-etc-ansible/34186)

<div class="topic-metadata">

**Author:** [@Gerard\_Weatherby](https://forum.ansible.com/u/Gerard_Weatherby)\
**Replies:** 3\
**Last updated:** [November 13, 2020, 9:57am UTC](https://forum.ansible.com/t/ansible-runner-use-of-etc-ansible/34186 "2020-11-13T09:57:15Z")

</div>

If I’m understanding the ansible-runner documentation correctly, it does not use /etc/ansible but requires a directory structure set up in a particular way. If that is correct, is there a tool that converts /etc/ansible…

---

## [Network os unsupported](https://forum.ansible.com/t/network-os-unsupported/34193)

<div class="topic-metadata">

**Author:** [@Gebrina\_Divva\_Meuthi](https://forum.ansible.com/u/Gebrina_Divva_Meuthi)\
**Replies:** 1\
**Last updated:** [November 13, 2020, 7:58am UTC](https://forum.ansible.com/t/network-os-unsupported/34193 "2020-11-13T07:58:09Z")

</div>

Hai so Im trying to ping mikrotik device by just using hosts file, but instead I got an error: network os routeros is not supported the hosts file: \[&hosts\_route&\] R01 ansible\_host=netsim241.lan.glcnetworks.com ansib…

---

## [multi hosts in block/rescue](https://forum.ansible.com/t/multi-hosts-in-block-rescue/34191)

<div class="topic-metadata">

**Author:** [@ken\_partridge](https://forum.ansible.com/u/ken_partridge)\
**Replies:** 1\
**Last updated:** [November 12, 2020, 7:47pm UTC](https://forum.ansible.com/t/multi-hosts-in-block-rescue/34191 "2020-11-12T19:47:56Z")

</div>

Hello, We are writing a simple block/rescue playbook, where we see if a box is online and if its not we want to notify another box to this fact. I apologize in advance but it look like another hosts parameters can not …

---

## [hosts syntax?](https://forum.ansible.com/t/hosts-syntax/34189)

<div class="topic-metadata">

**Author:** [@Mike\_Eggleston](https://forum.ansible.com/u/Mike_Eggleston)\
**Replies:** 2\
**Last updated:** [November 12, 2020, 5:07pm UTC](https://forum.ansible.com/t/hosts-syntax/34189 "2020-11-12T17:07:36Z")

</div>

Normally in my playbooks I say “hosts: all”. For a new playbook I want to say “hosts: !A,!B”, but that is not a valid syntax. What is the syntax to exclude two hosts (not in a group)? Mike

---

## [GET IP AND HOST NAME AND SAVE IT TO FILE IN LOCALHOST](https://forum.ansible.com/t/get-ip-and-host-name-and-save-it-to-file-in-localhost/34185)

<div class="topic-metadata">

**Author:** [@gr00t](https://forum.ansible.com/u/gr00t)\
**Replies:** 1\
**Last updated:** [November 12, 2020, 3:33pm UTC](https://forum.ansible.com/t/get-ip-and-host-name-and-save-it-to-file-in-localhost/34185 "2020-11-12T15:33:51Z")

</div>

HI, I am trying to create a task that will get the host target IP address and host-name that are in the inventory then save it to a file in the local directory. Would love to save the data like this: hostname:ip-add…

---

## [Run task based on value in register](https://forum.ansible.com/t/run-task-based-on-value-in-register/34184)

<div class="topic-metadata">

**Author:** [@dudu.c](https://forum.ansible.com/u/dudu.c)\
**Replies:** 3\
**Last updated:** [November 12, 2020, 1:54pm UTC](https://forum.ansible.com/t/run-task-based-on-value-in-register/34184 "2020-11-12T13:54:37Z")

</div>

I have created a playbook that should run the following scenario – I’m having a problem with the second tasks Query the source Kafka for a topic list and save the output in register Run topics creation as a loop on…

---

## [Integrate ansible-cmdb with ansible AWX](https://forum.ansible.com/t/integrate-ansible-cmdb-with-ansible-awx/27754)

<div class="topic-metadata">

**Author:** [@Rajesh\_Chowdary\_Sami](https://forum.ansible.com/u/Rajesh_Chowdary_Sami)\
**Replies:** 5\
**Last updated:** [November 12, 2020, 1:24pm UTC](https://forum.ansible.com/t/integrate-ansible-cmdb-with-ansible-awx/27754 "2020-11-12T13:24:34Z")

</div>

Hi All, i’m just new to Ansible, I stuck to create a playbook for setup-gather facts. My requirement is simple. Play-book for setup-gatherfacts, which should save the facts each inventory-host in ansible server ( som…

---

## [Force ansible to ask for username and password when running task on a server](https://forum.ansible.com/t/force-ansible-to-ask-for-username-and-password-when-running-task-on-a-server/34182)

<div class="topic-metadata">

**Author:** [@dudu.c](https://forum.ansible.com/u/dudu.c)\
**Replies:** 1\
**Last updated:** [November 12, 2020, 8:13am UTC](https://forum.ansible.com/t/force-ansible-to-ask-for-username-and-password-when-running-task-on-a-server/34182 "2020-11-12T08:13:24Z")

</div>

My ansible server and playbook are running on a closed environment – So basically everything is been accessed by know ssh-keys and I don’t need to supply any user and password while running the playbooks. I need to crea…

---

## [Looking for suggestions](https://forum.ansible.com/t/looking-for-suggestions/34174)

<div class="topic-metadata">

**Author:** [@Manoj\_Chander](https://forum.ansible.com/u/Manoj_Chander)\
**Replies:** 3\
**Last updated:** [November 12, 2020, 6:15am UTC](https://forum.ansible.com/t/looking-for-suggestions/34174 "2020-11-12T06:15:49Z")

</div>

Hi all , Greetings i am currently learning ansible, I have set up a 4 node cluster and i practiced basics in them . now i am looking to step it up . Is there any material with exercises to practice and gain more knowle…

---

## [2FA/MFA support of AWX/Ansible](https://forum.ansible.com/t/2fa-mfa-support-of-awx-ansible/34161)

<div class="topic-metadata">

**Author:** [@Raj\_Gupta](https://forum.ansible.com/u/Raj_Gupta)\
**Replies:** 6\
**Last updated:** [November 11, 2020, 9:00pm UTC](https://forum.ansible.com/t/2fa-mfa-support-of-awx-ansible/34161 "2020-11-11T21:00:08Z")

</div>

Hi, Does AWX/Ansible supports 2FA/MFA, or is there any alternate solution? Thanks, Raj

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

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