# Archives

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

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

**Page:** 191

---

## [Use lookup/dynamic variable names in jinja2 template](https://forum.ansible.com/t/use-lookup-dynamic-variable-names-in-jinja2-template/33246)

<div class="topic-metadata">

**Author:** [@Willem\_Bos](https://forum.ansible.com/u/Willem_Bos)\
**Replies:** 6\
**Last updated:** [June 26, 2020, 8:39am UTC](https://forum.ansible.com/t/use-lookup-dynamic-variable-names-in-jinja2-template/33246 "2020-06-26T08:39:58Z")

</div>

Hi, The playbook below should generate a file with the content: a,b ssh\_host\_key ssh\_rsa\_host\_key However, the way I construct the variable names results in either syntax/templating errors or ‘variable name does not…

---

## [\[AWX tower\] Error when use synchronize which inventory from satellite6](https://forum.ansible.com/t/awx-tower-error-when-use-synchronize-which-inventory-from-satellite6/33258)

<div class="topic-metadata">

**Author:** [@Sureenart\_Kietsaroch](https://forum.ansible.com/u/Sureenart_Kietsaroch)\
**Replies:** 3\
**Last updated:** [June 26, 2020, 8:02am UTC](https://forum.ansible.com/t/awx-tower-error-when-use-synchronize-which-inventory-from-satellite6/33258 "2020-06-26T08:02:02Z")

</div>

Hi All, Could you advice when use synchronize which inventory from satellite6 ? I found error shown as below picture. name: sync script to server for ‘{{ folder\_db }}’ synchronize: src: ‘{{ script\_dir }}’ dest: ‘{…

---

## [win\_mapped\_drive fails with become(runas) and ansible\_become\_pass var defined](https://forum.ansible.com/t/win-mapped-drive-fails-with-become-runas-and-ansible-become-pass-var-defined/33203)

<div class="topic-metadata">

**Author:** [@viten](https://forum.ansible.com/u/viten)\
**Replies:** 3\
**Last updated:** [June 26, 2020, 6:49am UTC](https://forum.ansible.com/t/win-mapped-drive-fails-with-become-runas-and-ansible-become-pass-var-defined/33203 "2020-06-26T06:49:44Z")

</div>

Hi everyone, I’m trying to mount smb share on windows host (win10 pro) that requires authentication using win\_mapped\_drive/win\_credential Here is the playbook sample (based on docs example) \` name: Create mapped dr…

---

## [janusgraph script](https://forum.ansible.com/t/janusgraph-script/33252)

<div class="topic-metadata">

**Author:** [@Rajeeb\_sahoo](https://forum.ansible.com/u/Rajeeb_sahoo)\
**Replies:** 4\
**Last updated:** [June 25, 2020, 9:16pm UTC](https://forum.ansible.com/t/janusgraph-script/33252 "2020-06-25T21:16:24Z")

</div>

I am new in ansible project. I need to start janusgraph.sh script through ansible. when I am executing it not giving any error but janusgraph is not starting. my janusgraph is combining with Cassandra, elasticsearch, an…

---

## [RE: \[awx-project\] Cant use dash with numbers as hostname](https://forum.ansible.com/t/re-awx-project-cant-use-dash-with-numbers-as-hostname/33266)

<div class="topic-metadata">

**Author:** [@Mike\_Charchuk](https://forum.ansible.com/u/Mike_Charchuk)\
**Replies:** 0\
**Last updated:** [June 25, 2020, 4:31pm UTC](https://forum.ansible.com/t/re-awx-project-cant-use-dash-with-numbers-as-hostname/33266 "2020-06-25T16:31:30Z")

</div>

https://docs.ansible.com/ansible/latest/user\_guide/intro\_inventory.html

---

## [Cant use dash with numbers as hostname](https://forum.ansible.com/t/cant-use-dash-with-numbers-as-hostname/33264)

<div class="topic-metadata">

**Author:** [@CWollinger1](https://forum.ansible.com/u/CWollinger1)\
**Replies:** 0\
**Last updated:** [June 25, 2020, 2:56pm UTC](https://forum.ansible.com/t/cant-use-dash-with-numbers-as-hostname/33264 "2020-06-25T14:56:53Z")

</div>

Hi all, is there a way to escape the dash/minus in the hostname (when using numbers) hostfile: test1 ansible\_host=10-1 test2 ansible\_host=“10-1” Result: bash-4.4# ansible-inventory -i hosts --list { “\_meta”: { “…

---

## [Custom monitoring task in ansible](https://forum.ansible.com/t/custom-monitoring-task-in-ansible/33260)

<div class="topic-metadata">

**Author:** [@Jagadeeshkumar\_Ditta](https://forum.ansible.com/u/Jagadeeshkumar_Ditta)\
**Replies:** 2\
**Last updated:** [June 25, 2020, 2:12pm UTC](https://forum.ansible.com/t/custom-monitoring-task-in-ansible/33260 "2020-06-25T14:12:22Z")

</div>

I have a requirement where in I need to create a monitoring task to monitor other task completions (all are part of the same playbook). Mainly the monitoring task has to take certain actions based on the progress made by…

---

## [Versioning, deprecation and changelogs for community.general and community.network](https://forum.ansible.com/t/versioning-deprecation-and-changelogs-for-community-general-and-community-network/33262)

<div class="topic-metadata">

**Author:** [@felixfontein](https://forum.ansible.com/u/felixfontein)\
**Replies:** 0\
**Last updated:** [June 25, 2020, 11:31am UTC](https://forum.ansible.com/t/versioning-deprecation-and-changelogs-for-community-general-and-community-network/33262 "2020-06-25T11:31:50Z")

</div>

This information can also be found in sticky locked issues in the collection GitHub repositories: https://github.com/ansible-collections/community.general/issues/582 https://github.com/ansible-collections/community.ne…

---

## [Handling prompts and drop-downs via ansible 2.9](https://forum.ansible.com/t/handling-prompts-and-drop-downs-via-ansible-2-9/33259)

<div class="topic-metadata">

**Author:** [@Nishant\_Passari](https://forum.ansible.com/u/Nishant_Passari)\
**Replies:** 2\
**Last updated:** [June 25, 2020, 10:05am UTC](https://forum.ansible.com/t/handling-prompts-and-drop-downs-via-ansible-2-9/33259 "2020-06-25T10:05:20Z")

</div>

Hi everyone, Am trying to install jenkins-x version 2.0.785 via ansible 2.9.9. How do I handle the prompts like “Please enter the name you wish to use with git:” that I get while installing jenkins-x? I get the prompt …

---

## [unsupported parameter](https://forum.ansible.com/t/unsupported-parameter/33261)

<div class="topic-metadata">

**Author:** [@Jenisha\_T](https://forum.ansible.com/u/Jenisha_T)\
**Replies:** 3\
**Last updated:** [June 25, 2020, 9:35am UTC](https://forum.ansible.com/t/unsupported-parameter/33261 "2020-06-25T09:35:50Z")

</div>

My Playbook:

---

## [Steps required for aws/azure migration](https://forum.ansible.com/t/steps-required-for-aws-azure-migration/33255)

<div class="topic-metadata">

**Author:** [@Naresh\_Kasula](https://forum.ansible.com/u/Naresh_Kasula)\
**Replies:** 2\
**Last updated:** [June 25, 2020, 8:32am UTC](https://forum.ansible.com/t/steps-required-for-aws-azure-migration/33255 "2020-06-25T08:32:44Z")

</div>

Hi Team, Can anyone help me how to migrate to aws/azure cloud using cloudendure through Ansible scripts. Regards, Naresh K

---

## [Ansible playbook error when daemon\_reload:yes](https://forum.ansible.com/t/ansible-playbook-error-when-daemon-reload-yes/33254)

<div class="topic-metadata">

**Author:** [@Ameya\_Agashe](https://forum.ansible.com/u/Ameya_Agashe)\
**Replies:** 2\
**Last updated:** [June 25, 2020, 7:11am UTC](https://forum.ansible.com/t/ansible-playbook-error-when-daemon-reload-yes/33254 "2020-06-25T07:11:03Z")

</div>

Hi Guys, I am getting the below error as described in StackOverflow post, I would appreciate guidance as to why it is giving Connection time out error https://stackoverflow.com/questions/62566871/ansible-errros-out-whe…

---

## [CentOS repository patching](https://forum.ansible.com/t/centos-repository-patching/33234)

<div class="topic-metadata">

**Author:** [@Snehal\_Mehar](https://forum.ansible.com/u/Snehal_Mehar)\
**Replies:** 2\
**Last updated:** [June 25, 2020, 7:05am UTC](https://forum.ansible.com/t/centos-repository-patching/33234 "2020-06-25T07:05:35Z")

</div>

Hello, I need help with setting up Centos client-server with centos repository URL. It should add a repository URL to the client-server and patch to the next available version identifying the existing os version. I hav…

---

## [Handling prompts using ansible 2.9 with ansible\_connection=ssh](https://forum.ansible.com/t/handling-prompts-using-ansible-2-9-with-ansible-connection-ssh/33256)

<div class="topic-metadata">

**Author:** [@Nishant\_Passari](https://forum.ansible.com/u/Nishant_Passari)\
**Replies:** 1\
**Last updated:** [June 25, 2020, 6:27am UTC](https://forum.ansible.com/t/handling-prompts-using-ansible-2-9-with-ansible-connection-ssh/33256 "2020-06-25T06:27:23Z")

</div>

Hi everyone, I am trying to handle yes/no and other prompts using ansible 2.9 and tried using the shell and expect module via ansible. Can you guys help me out regarding the same. https://stackoverflow.com/questions/6…

---

## [win\_command and when condition](https://forum.ansible.com/t/win-command-and-when-condition/33257)

<div class="topic-metadata">

**Author:** [@shyam.awk](https://forum.ansible.com/u/shyam.awk)\
**Replies:** 0\
**Last updated:** [June 25, 2020, 6:25am UTC](https://forum.ansible.com/t/win-command-and-when-condition/33257 "2020-06-25T06:25:28Z")

</div>

Hi, Im trying to rename the file using win\_command if the file exists using when condition, other wise it won’t execute the command, but it is failing, Can any one suggest. name: Rename the file based on condition wi…

---

## [Need help for ternary operator in ansible](https://forum.ansible.com/t/need-help-for-ternary-operator-in-ansible/33243)

<div class="topic-metadata">

**Author:** [@Rahul\_Kumar1](https://forum.ansible.com/u/Rahul_Kumar1)\
**Replies:** 1\
**Last updated:** [June 25, 2020, 5:37am UTC](https://forum.ansible.com/t/need-help-for-ternary-operator-in-ansible/33243 "2020-06-25T05:37:15Z")

</div>

Hi Ansible Gurus , i have below task : name: RPM EPOCH Finder #command: rpm -qa --qf ‘%|EPOCH?{%{EPOCH}}:{0}|\\n’ {{ item.split(‘.’)\[0\] | regex\_replace(‘-\\d+’, ‘’)}} command: rpm -qa --qf ‘%|EPOCH?{%{EPOCH}}:{0}|\\n’ …

---

## [fatal: \[localhost\]: FAILED! =\> {"changed": false, "msg": "Instance creation failed](https://forum.ansible.com/t/fatal-localhost-failed-changed-false-msg-instance-creation-failed/33233)

<div class="topic-metadata">

**Author:** [@Mujeeb\_k.s](https://forum.ansible.com/u/Mujeeb_k.s)\
**Replies:** 4\
**Last updated:** [June 25, 2020, 2:57am UTC](https://forum.ansible.com/t/fatal-localhost-failed-changed-false-msg-instance-creation-failed/33233 "2020-06-25T02:57:27Z")

</div>

Hi I am trying to create EC2 in using play book, but i am unable to create instance I am getting below error Please help me, how can i fix this issue \[root@jenkinansible ansible\]# ansible-playbook ec2.yml PLAY \[crea…

---

## [Unreachable : Failed to connect to the host via ssh](https://forum.ansible.com/t/unreachable-failed-to-connect-to-the-host-via-ssh/33248)

<div class="topic-metadata">

**Author:** [@Mahesh\_b](https://forum.ansible.com/u/Mahesh_b)\
**Replies:** 4\
**Last updated:** [June 25, 2020, 1:26am UTC](https://forum.ansible.com/t/unreachable-failed-to-connect-to-the-host-via-ssh/33248 "2020-06-25T01:26:34Z")

</div>

Dear All, I have created my RHEL 8, AWS EC2 instances and Windows 2019 AWS EC2 instance And, have installed Ansible and followed the prerequisites on control node. Equally I have created user and ran the script https:…

---

## [stable version](https://forum.ansible.com/t/stable-version/33253)

<div class="topic-metadata">

**Author:** [@Uthred\_Ragnorson](https://forum.ansible.com/u/Uthred_Ragnorson)\
**Replies:** 1\
**Last updated:** [June 25, 2020, 1:00am UTC](https://forum.ansible.com/t/stable-version/33253 "2020-06-25T01:00:02Z")

</div>

At the moment there are 3 release versions: 13, 12, 11.20. What should be considered for a production deployment?

---

## [AWX Dynamic inventory and new AWS regions](https://forum.ansible.com/t/awx-dynamic-inventory-and-new-aws-regions/33220)

<div class="topic-metadata">

**Author:** [@Thomas\_Halligan](https://forum.ansible.com/u/Thomas_Halligan)\
**Replies:** 4\
**Last updated:** [June 24, 2020, 10:54pm UTC](https://forum.ansible.com/t/awx-dynamic-inventory-and-new-aws-regions/33220 "2020-06-24T22:54:06Z")

</div>

I built a bit of automation off of the AWX\\ec2 inventory capability. Trouble is that AWX inventory ec2 source lookup has not been incorporating newer AWS regions (8 or 9 at this point) due to boto related stuff and thing…

---

## [Loop over list of dicts in ansible](https://forum.ansible.com/t/loop-over-list-of-dicts-in-ansible/33247)

<div class="topic-metadata">

**Author:** [@BIJAY\_PARIDA](https://forum.ansible.com/u/BIJAY_PARIDA)\
**Replies:** 2\
**Last updated:** [June 24, 2020, 8:47pm UTC](https://forum.ansible.com/t/loop-over-list-of-dicts-in-ansible/33247 "2020-06-24T20:47:22Z")

</div>

I have a list of dicst like this - “lv”: \[ { “CreatedDate”: “2020-06-23T16:49:55.504+0000”, “Description”: “Layer 0”, “LayerVersionArn”: “arn:aws:lambda:us-east-1”, “Version”: 10 }, { “CreatedDate”: “2020-06-23T…

---

## [What is the best way to track deployment options for new releases?](https://forum.ansible.com/t/what-is-the-best-way-to-track-deployment-options-for-new-releases/33251)

<div class="topic-metadata">

**Author:** [@Gary\_Hawker](https://forum.ansible.com/u/Gary_Hawker)\
**Replies:** 0\
**Last updated:** [June 24, 2020, 6:20pm UTC](https://forum.ansible.com/t/what-is-the-best-way-to-track-deployment-options-for-new-releases/33251 "2020-06-24T18:20:54Z")

</div>

Hi all, We’re running 9.2.0 on k8s (eks on aws) with external postgres and looking to upgrade. This project moves crazy fast so I want to try and keep on top of the ‘advised’ or ‘most successful’ deployment methods for …

---

## [vmware\_vm\_inventory filter](https://forum.ansible.com/t/vmware-vm-inventory-filter/33250)

<div class="topic-metadata">

**Author:** [@Todd\_Schaal](https://forum.ansible.com/u/Todd_Schaal)\
**Replies:** 2\
**Last updated:** [June 24, 2020, 5:40pm UTC](https://forum.ansible.com/t/vmware-vm-inventory-filter/33250 "2020-06-24T17:40:05Z")

</div>

I have the vmware\_vm\_inventory plugin working. My issue is that it returns everything, including powered-off vms. I can filter them out when I run my playbooks, but I’d prefer they not be in my inventory in the first pla…

---

## [win\_copy updating timestamps](https://forum.ansible.com/t/win-copy-updating-timestamps/33249)

<div class="topic-metadata">

**Author:** [@Callum\_Elliott](https://forum.ansible.com/u/Callum_Elliott)\
**Replies:** 0\
**Last updated:** [June 24, 2020, 4:20pm UTC](https://forum.ansible.com/t/win-copy-updating-timestamps/33249 "2020-06-24T16:20:01Z")

</div>

Hi, I’ve got a role that performs a win\_copy from 1 directory to another. I took the files from the target, put them in GIT (source) and ran the playbook to copy the files over, the 1st time. All the timestamps in the t…

---

## [Run a task on only one server in a group in inventory.](https://forum.ansible.com/t/run-a-task-on-only-one-server-in-a-group-in-inventory/33245)

<div class="topic-metadata">

**Author:** [@soumya\_dutta](https://forum.ansible.com/u/soumya_dutta)\
**Replies:** 1\
**Last updated:** [June 24, 2020, 2:32pm UTC](https://forum.ansible.com/t/run-a-task-on-only-one-server-in-a-group-in-inventory/33245 "2020-06-24T14:32:48Z")

</div>

Hi guys, I have a situation where I need to run one task in only one server of a particular group. For example i have inventory as below \[aws\] server1 server2 \[gcp\] server3 server4 now I need to run a task on wh…

---

## [Cannot run my inventory script in AWX](https://forum.ansible.com/t/cannot-run-my-inventory-script-in-awx/33236)

<div class="topic-metadata">

**Author:** [@Dieye\_Pape\_Doudou](https://forum.ansible.com/u/Dieye_Pape_Doudou)\
**Replies:** 2\
**Last updated:** [June 24, 2020, 11:28am UTC](https://forum.ansible.com/t/cannot-run-my-inventory-script-in-awx/33236 "2020-06-24T11:28:06Z")

</div>

Hello , I have an issue with the execution of my plabooks on AWX. I use the API glpi : https://github.com/unistra/ansible-inventory-glpi in order to connect that with AWX. With the documentation its runs very well in m…

---

## [Question on using the Ansible API](https://forum.ansible.com/t/question-on-using-the-ansible-api/33235)

<div class="topic-metadata">

**Author:** [@Nick\_Kakouros](https://forum.ansible.com/u/Nick_Kakouros)\
**Replies:** 2\
**Last updated:** [June 24, 2020, 10:26am UTC](https://forum.ansible.com/t/question-on-using-the-ansible-api/33235 "2020-06-24T10:26:56Z")

</div>

I have a big ansible project where I have separated my files into playbooks, vars files, an inventory folder and roles. These files make extensive use of jinja templates. For my use case, I need to be able to access the…

---

## [Password strength for awx local internal accounts](https://forum.ansible.com/t/password-strength-for-awx-local-internal-accounts/33242)

<div class="topic-metadata">

**Author:** [@Ron\_McKenzie](https://forum.ansible.com/u/Ron_McKenzie)\
**Replies:** 0\
**Last updated:** [June 23, 2020, 11:55pm UTC](https://forum.ansible.com/t/password-strength-for-awx-local-internal-accounts/33242 "2020-06-23T23:55:41Z")

</div>

Reposting as someone posted over this previously. Still haven’t determined a way to do this and it was something supported a long time back. Thanks for any help on this challenging issue. Looking for some help on the be…

---

## [Using fact as loop control in Jinja2 template](https://forum.ansible.com/t/using-fact-as-loop-control-in-jinja2-template/33239)

<div class="topic-metadata">

**Author:** [@harry\_devine](https://forum.ansible.com/u/harry_devine)\
**Replies:** 4\
**Last updated:** [June 23, 2020, 8:13pm UTC](https://forum.ansible.com/t/using-fact-as-loop-control-in-jinja2-template/33239 "2020-06-23T20:13:49Z")

</div>

I have a playbook that will use the user\_find API call against our FreeIPA server to retrieve a list of all users. What I’m trying to do is get the total count, then use that count in my j2 file. I’m getting the count as…

---

## [Announcing AWX 13.0.0](https://forum.ansible.com/t/announcing-awx-13-0-0/33240)

<div class="topic-metadata">

**Author:** [@bianca](https://forum.ansible.com/u/bianca)\
**Replies:** 0\
**Last updated:** [June 23, 2020, 7:38pm UTC](https://forum.ansible.com/t/announcing-awx-13-0-0/33240 "2020-06-23T19:38:14Z")

</div>

Hi everyone, We are very happy to announce a new major version of AWX, 13.0.0! Here are some of the notable changes from the official changelog (https://github.com/ansible/awx/blob/devel/CHANGELOG.md): Added import a…

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

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