# Latest

**URL:** https://forum.ansible.com/latest.md?page=333

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

**Page:** 334

---

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

---

## [variable passing in win\_shell module with powershell command](https://forum.ansible.com/t/variable-passing-in-win-shell-module-with-powershell-command/34178)

<div class="topic-metadata">

**Author:** [@Kundan\_Singh](https://forum.ansible.com/u/Kundan_Singh)\
**Replies:** 2\
**Last updated:** [November 11, 2020, 8:33pm UTC](https://forum.ansible.com/t/variable-passing-in-win-shell-module-with-powershell-command/34178 "2020-11-11T20:33:38Z")

</div>

Hi All, I am using win\_shell module in playbook to execute a PowerShell script. while execution of script it will prompt and ask for a domain and username below is the synatx i am using need help on the variable part …

---

## [host\_pinned strategy not working as expected?](https://forum.ansible.com/t/host-pinned-strategy-not-working-as-expected/34181)

<div class="topic-metadata">

**Author:** [@cruscio](https://forum.ansible.com/u/cruscio)\
**Replies:** 3\
**Last updated:** [November 11, 2020, 8:31pm UTC](https://forum.ansible.com/t/host-pinned-strategy-not-working-as-expected/34181 "2020-11-11T20:31:20Z")

</div>

I have a playbook with a couple dozen tasks. It runs against 3000 Windows Server targets with 1000 forks and strategy: host\_pinned. It takes about two hours to run to completion when 90% of servers have no changes to be …

---

## [AWX is not allowing the passphrase to be used in ssh key](https://forum.ansible.com/t/awx-is-not-allowing-the-passphrase-to-be-used-in-ssh-key/34180)

<div class="topic-metadata">

**Author:** [@Abhinit\_Mallick](https://forum.ansible.com/u/Abhinit_Mallick)\
**Replies:** 0\
**Last updated:** [November 11, 2020, 4:03pm UTC](https://forum.ansible.com/t/awx-is-not-allowing-the-passphrase-to-be-used-in-ssh-key/34180 "2020-11-11T16:03:45Z")

</div>

I am using the latest version of AWX and yet everytime I am trying to setup the ssh key I am getting an error I can confirm that the ssh key and passphrase is a valid one but it still keeps throwing the same error of " …

---

## [Pass VM name to ansible](https://forum.ansible.com/t/pass-vm-name-to-ansible/34179)

<div class="topic-metadata">

**Author:** [@Eoghan\_O\_Hara](https://forum.ansible.com/u/Eoghan_O_Hara)\
**Replies:** 1\
**Last updated:** [November 11, 2020, 1:19pm UTC](https://forum.ansible.com/t/pass-vm-name-to-ansible/34179 "2020-11-11T13:19:50Z")

</div>

Hi all, I am using Packer with Ansible. What is the best way to pass in the VM name (generated in Packer) to Ansible? I need it for naming directories in a task. See my packer JSON: { “builders”: \[ { “boot\_command”…

---

## [Automatically putting value in bracket \[\]](https://forum.ansible.com/t/automatically-putting-value-in-bracket/34175)

<div class="topic-metadata">

**Author:** [@Pravin\_V](https://forum.ansible.com/u/Pravin_V)\
**Replies:** 5\
**Last updated:** [November 10, 2020, 9:08pm UTC](https://forum.ansible.com/t/automatically-putting-value-in-bracket/34175 "2020-11-10T21:08:02Z")

</div>

Hello Everyone, Below is the output of the task json: resourceIds: 66523 and I’m trying to fetch the resourceIDs into the task like below. RESOURCEID\_LIST={{ resourceID.json.resourceIds }} But the issue is when I…

---

## [POS config management](https://forum.ansible.com/t/pos-config-management/34177)

<div class="topic-metadata">

**Author:** [@Rajvanth11](https://forum.ansible.com/u/Rajvanth11)\
**Replies:** 0\
**Last updated:** [November 10, 2020, 9:04pm UTC](https://forum.ansible.com/t/pos-config-management/34177 "2020-11-10T21:04:30Z")

</div>

Hi All, Please let me know if Ansible can be used for the use case below: We have about 8000 POS registers (ecommerce) that need to be updated with a new release for an Xstore application running on them. Typically all…

---

## [Need suggestion on our setup](https://forum.ansible.com/t/need-suggestion-on-our-setup/34176)

<div class="topic-metadata">

**Author:** [@Sander\_Mol](https://forum.ansible.com/u/Sander_Mol)\
**Replies:** 1\
**Last updated:** [November 10, 2020, 1:30pm UTC](https://forum.ansible.com/t/need-suggestion-on-our-setup/34176 "2020-11-10T13:30:29Z")

</div>

Hi I currently notice some problems without role structure in Ansible and think that we might not have defined a logical separation of responsibility of the roles. Currently, two scenarios do not work smoothly, indicati…

---

## [Variable Management](https://forum.ansible.com/t/variable-management/34173)

<div class="topic-metadata">

**Author:** [@Marco\_Aurelio](https://forum.ansible.com/u/Marco_Aurelio)\
**Replies:** 0\
**Last updated:** [November 10, 2020, 9:05am UTC](https://forum.ansible.com/t/variable-management/34173 "2020-11-10T09:05:47Z")

</div>

Hello everyone! We’re currently preparing to set up our configuration management with Ansible from scratch. We have decided on using dynamic inventory for AWS with the amazon.aws.aws\_ec2 inventory plugin, grouping insta…

---

## [is it possible to set "name" of instance with ec2 module](https://forum.ansible.com/t/is-it-possible-to-set-name-of-instance-with-ec2-module/34172)

<div class="topic-metadata">

**Author:** [@Kiran\_Kumar](https://forum.ansible.com/u/Kiran_Kumar)\
**Replies:** 0\
**Last updated:** [November 10, 2020, 1:11am UTC](https://forum.ansible.com/t/is-it-possible-to-set-name-of-instance-with-ec2-module/34172 "2020-11-10T01:11:58Z")

</div>

Hi, name: Provision instance(s) ec2: key\_name: “{{ key\_name }}” id: “{{ id }}” group\_id: “{{ result\_sec\_group.group\_id }}” image: “{{ image }}” instance\_type: t2.micro region: “{{ region }}” wait: true count: …

---

## [Dynamic inventory with "static" groups?](https://forum.ansible.com/t/dynamic-inventory-with-static-groups/34171)

<div class="topic-metadata">

**Author:** [@Pavel\_Dimow](https://forum.ansible.com/u/Pavel_Dimow)\
**Replies:** 0\
**Last updated:** [November 9, 2020, 8:47pm UTC](https://forum.ansible.com/t/dynamic-inventory-with-static-groups/34171 "2020-11-09T20:47:19Z")

</div>

Hi, I am using AWX 10.0.0 with dynamic inventory (python script). Is it possible that AWX ‘remembers’ the group to which host belongs when host goes offline and comes back online few hours later? To illustrate what I thi…

---

## [AWX Development Environment Setup](https://forum.ansible.com/t/awx-development-environment-setup/34162)

<div class="topic-metadata">

**Author:** [@Prem\_Kumar](https://forum.ansible.com/u/Prem_Kumar)\
**Replies:** 4\
**Last updated:** [November 9, 2020, 5:56pm UTC](https://forum.ansible.com/t/awx-development-environment-setup/34162 "2020-11-09T17:56:15Z")

</div>

Hi Team, I’m a newbie in the group. First, Sorry if it’s not the right place to post this content. Please guide me to the right place. We are trying to build some customization in Ansible AWX. Hence, trying to setup An…

---

## [Backup Vault Credentials](https://forum.ansible.com/t/backup-vault-credentials/34170)

<div class="topic-metadata">

**Author:** [@David\_McWilliams](https://forum.ansible.com/u/David_McWilliams)\
**Replies:** 1\
**Last updated:** [November 9, 2020, 5:44pm UTC](https://forum.ansible.com/t/backup-vault-credentials/34170 "2020-11-09T17:44:44Z")

</div>

Hi all, I’m brand new to the group and also new to AWX as a whole. We have been looking at various ways of backing up & restoring/ duplicating our environment and I’m struggling to find how to do this with credentials s…

[Previous page](https://forum.ansible.com/latest.md?page=332)

[Next page](https://forum.ansible.com/latest.md?page=334)
