# Ansible Project

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

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

**Page:** 100

---

## [Python error with ansible](https://forum.ansible.com/t/python-error-with-ansible/28861)

<div class="topic-metadata">

**Author:** [@Juraj\_Papic1](https://forum.ansible.com/u/Juraj_Papic1)\
**Replies:** 1\
**Last updated:** [October 17, 2020, 11:09am UTC](https://forum.ansible.com/t/python-error-with-ansible/28861 "2020-10-17T11:09:59Z")

</div>

Hi all, getting the error "The Python 2 bindings for are needed for this module. If you require Python 3 support use the Ansible module instead." 2.5.4 file = ///ansible.cfg module search path = \[u’/home///plugins/mo…

---

## [Incorrect Output from junos ansible command module](https://forum.ansible.com/t/incorrect-output-from-junos-ansible-command-module/34047)

<div class="topic-metadata">

**Author:** [@AK1](https://forum.ansible.com/u/AK1)\
**Replies:** 1\
**Last updated:** [October 17, 2020, 12:18am UTC](https://forum.ansible.com/t/incorrect-output-from-junos-ansible-command-module/34047 "2020-10-17T00:18:08Z")

</div>

Hi Folks, I am trying to display output for junos command “show configuration | compare rollback 1” through ansible however every time I store the data, I see the whole config output. Any ideas? Is there another way to …

---

## [How to extract a value of a field within a list of deeply nested dictionaries when some keys match other values](https://forum.ansible.com/t/how-to-extract-a-value-of-a-field-within-a-list-of-deeply-nested-dictionaries-when-some-keys-match-other-values/34040)

<div class="topic-metadata">

**Author:** [@actionmystique](https://forum.ansible.com/u/actionmystique)\
**Replies:** 6\
**Last updated:** [October 16, 2020, 7:31pm UTC](https://forum.ansible.com/t/how-to-extract-a-value-of-a-field-within-a-list-of-deeply-nested-dictionaries-when-some-keys-match-other-values/34040 "2020-10-16T19:31:59Z")

</div>

Let’s assume the following fictional dictionary with nested lists, dictionaries, and strings, of arbitrary depth.: domain\_definition.yml --- domain\_definition: - name: server01 cluster: cluster0 port: '8070' - name: s…

---

## [How can I tried to convert one task from junos\_command to junos\_config I have tried but getting error like below](https://forum.ansible.com/t/how-can-i-tried-to-convert-one-task-from-junos-command-to-junos-config-i-have-tried-but-getting-error-like-below/34044)

<div class="topic-metadata">

**Author:** [@Venu\_Devannagari](https://forum.ansible.com/u/Venu_Devannagari)\
**Replies:** 0\
**Last updated:** [October 16, 2020, 3:36pm UTC](https://forum.ansible.com/t/how-can-i-tried-to-convert-one-task-from-junos-command-to-junos-config-i-have-tried-but-getting-error-like-below/34044 "2020-10-16T15:36:55Z")

</div>

---

## [How can i use Host Variables in Task name](https://forum.ansible.com/t/how-can-i-use-host-variables-in-task-name/33998)

<div class="topic-metadata">

**Author:** [@Ankit2](https://forum.ansible.com/u/Ankit2)\
**Replies:** 3\
**Last updated:** [October 16, 2020, 3:28pm UTC](https://forum.ansible.com/t/how-can-i-use-host-variables-in-task-name/33998 "2020-10-16T15:28:39Z")

</div>

Hello Everyone, I am trying to use the host variables set for each host of inventory in the task name but for some reason, it doesn’t work. I have got a dynamic inventory (hosts imported in AWX using it) and all the ho…

---

## [Error while Trying to run a dynamic inventory script from ldap source,](https://forum.ansible.com/t/error-while-trying-to-run-a-dynamic-inventory-script-from-ldap-source/34031)

<div class="topic-metadata">

**Author:** [@sameer\_khan](https://forum.ansible.com/u/sameer_khan)\
**Replies:** 8\
**Last updated:** [October 16, 2020, 7:32am UTC](https://forum.ansible.com/t/error-while-trying-to-run-a-dynamic-inventory-script-from-ldap-source/34031 "2020-10-16T07:32:56Z")

</div>

when I run the script with python on command line, I get the json output, however when I run it with ansible-inventory or ansible-playbook I hit the following error ansible-inventory 2.9.6 config file = /Users/sm/ansib…

---

## [Ansible user create and test ssh connectivity](https://forum.ansible.com/t/ansible-user-create-and-test-ssh-connectivity/34041)

<div class="topic-metadata">

**Author:** [@Harshal\_Unhale](https://forum.ansible.com/u/Harshal_Unhale)\
**Replies:** 1\
**Last updated:** [October 16, 2020, 1:34am UTC](https://forum.ansible.com/t/ansible-user-create-and-test-ssh-connectivity/34041 "2020-10-16T01:34:18Z")

</div>

My playbook:

---

## [AzureStack - azure\_rm\_virtualmachine - Not accecpting api\_profile](https://forum.ansible.com/t/azurestack-azure-rm-virtualmachine-not-accecpting-api-profile/34043)

<div class="topic-metadata">

**Author:** [@Charles\_Shaw](https://forum.ansible.com/u/Charles_Shaw)\
**Replies:** 0\
**Last updated:** [October 15, 2020, 8:34pm UTC](https://forum.ansible.com/t/azurestack-azure-rm-virtualmachine-not-accecpting-api-profile/34043 "2020-10-15T20:34:19Z")

</div>

Hi there, I am working with ansible 2.9 and ansible\[azure\] modules. These have been successfully installed and configured, as I can create resources within AzureStack. ansible 2.9.0 config file = /ansible/azure\_stack/…

---

## [ansible unarchive module idempotency](https://forum.ansible.com/t/ansible-unarchive-module-idempotency/34039)

<div class="topic-metadata">

**Author:** [@Michael3](https://forum.ansible.com/u/Michael3)\
**Replies:** 2\
**Last updated:** [October 15, 2020, 6:38pm UTC](https://forum.ansible.com/t/ansible-unarchive-module-idempotency/34039 "2020-10-15T18:38:08Z")

</div>

I have a Jenkins pipeline that automates an install using Ansible. One of the steps includes copying a tar file to the target host using the unarchive module. This step finishes with a ‘changed’ status if rerun and so is…

---

## [fortios config backup - can someone help me understand this please](https://forum.ansible.com/t/fortios-config-backup-can-someone-help-me-understand-this-please/34038)

<div class="topic-metadata">

**Author:** [@Gisbert\_Haas](https://forum.ansible.com/u/Gisbert_Haas)\
**Replies:** 0\
**Last updated:** [October 15, 2020, 1:11pm UTC](https://forum.ansible.com/t/fortios-config-backup-can-someone-help-me-understand-this-please/34038 "2020-10-15T13:11:46Z")

</div>

https://docs.ansible.com/ansible/latest/collections/fortinet/fortios/fortios\_system\_config\_backup\_restore\_module.html using the example from the documentation above I dont understand why hosts is set to locahosts and I…

---

## [Mysql Grafana using ansible](https://forum.ansible.com/t/mysql-grafana-using-ansible/34035)

<div class="topic-metadata">

**Author:** [@Pavithra\_Chellakumar](https://forum.ansible.com/u/Pavithra_Chellakumar)\
**Replies:** 0\
**Last updated:** [October 14, 2020, 11:30pm UTC](https://forum.ansible.com/t/mysql-grafana-using-ansible/34035 "2020-10-14T23:30:19Z")

</div>

How to add mysql queries and connect to grafana using ansible? Thanks in advance

---

## [Using ansible\_user in task with delegate\_to: localhost](https://forum.ansible.com/t/using-ansible-user-in-task-with-delegate-to-localhost/34033)

<div class="topic-metadata">

**Author:** [@Simon\_Liddicott](https://forum.ansible.com/u/Simon_Liddicott)\
**Replies:** 1\
**Last updated:** [October 14, 2020, 3:59pm UTC](https://forum.ansible.com/t/using-ansible-user-in-task-with-delegate-to-localhost/34033 "2020-10-14T15:59:01Z")

</div>

Hi I’d expect the following two tasks to return the same output, however the first task returns the user that I was running ansible-playbook as and the second task returns the user set with -u. I can understand why thi…

---

## [Ansible 2.10 - ModuleNotFoundError: No module named 'azure.mgmt.monitor.version'](https://forum.ansible.com/t/ansible-2-10-modulenotfounderror-no-module-named-azure-mgmt-monitor-version/33981)

<div class="topic-metadata">

**Author:** [@nbmprivat](https://forum.ansible.com/u/nbmprivat)\
**Replies:** 4\
**Last updated:** [October 14, 2020, 12:07pm UTC](https://forum.ansible.com/t/ansible-2-10-modulenotfounderror-no-module-named-azure-mgmt-monitor-version/33981 "2020-10-14T12:07:38Z")

</div>

Hi, I find it impossible to find good guides on how to switch to ansible 2.10 and use galaxy collections. SUMMARY Installed Ansible 2.10 and collection azure.azurecollection. I am unable to get Ansible 2.10 working wi…

---

## [ERROR! the field 'hosts' is required but was not set](https://forum.ansible.com/t/error-the-field-hosts-is-required-but-was-not-set/34015)

<div class="topic-metadata">

**Author:** [@Subhash\_Chandra\_Rang](https://forum.ansible.com/u/Subhash_Chandra_Rang)\
**Replies:** 2\
**Last updated:** [October 13, 2020, 11:21pm UTC](https://forum.ansible.com/t/error-the-field-hosts-is-required-but-was-not-set/34015 "2020-10-13T23:21:08Z")

</div>

---

## [Ansible-2.10.1 has been released](https://forum.ansible.com/t/ansible-2-10-1-has-been-released/34026)

<div class="topic-metadata">

**Author:** [@tkuratom](https://forum.ansible.com/u/tkuratom)\
**Replies:** 0\
**Last updated:** [October 13, 2020, 10:17pm UTC](https://forum.ansible.com/t/ansible-2-10-1-has-been-released/34026 "2020-10-13T22:17:02Z")

</div>

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

---

## [How treat errors in tasks](https://forum.ansible.com/t/how-treat-errors-in-tasks/34025)

<div class="topic-metadata">

**Author:** [@Rafael\_Tomelin](https://forum.ansible.com/u/Rafael_Tomelin)\
**Replies:** 1\
**Last updated:** [October 13, 2020, 9:40pm UTC](https://forum.ansible.com/t/how-treat-errors-in-tasks/34025 "2020-10-13T21:40:21Z")

</div>

Hi, I have the function that creates a database and after creating the DB I inserted the access information in a VAULT, the problem that sometimes inconsistent information is passed and the database creation TASK return…

---

## [Missing collection error](https://forum.ansible.com/t/missing-collection-error/34023)

<div class="topic-metadata">

**Author:** [@Eoghan\_O\_Hara](https://forum.ansible.com/u/Eoghan_O_Hara)\
**Replies:** 3\
**Last updated:** [October 13, 2020, 5:05pm UTC](https://forum.ansible.com/t/missing-collection-error/34023 "2020-10-13T17:05:08Z")

</div>

Hi all, I wish to use the ansible.posix.mount module in my project, and have been attempting to include the installation of this collection in code. To do this I have a requirements.yml file:

---

## [Digital Ocean Droplet facts](https://forum.ansible.com/t/digital-ocean-droplet-facts/34021)

<div class="topic-metadata">

**Author:** [@Yantram\_Cloud](https://forum.ansible.com/u/Yantram_Cloud)\
**Replies:** 0\
**Last updated:** [October 13, 2020, 3:26pm UTC](https://forum.ansible.com/t/digital-ocean-droplet-facts/34021 "2020-10-13T15:26:27Z")

</div>

Hi All, Just curious to know,. Is there any specific reason why digital ocean droplet facts are not avaialble as part of the digital ocean collection. Is there been any other approach which is being followed to retrie…

---

## [Failing host (or better still - a group of hosts) after one login failure.](https://forum.ansible.com/t/failing-host-or-better-still-a-group-of-hosts-after-one-login-failure/34020)

<div class="topic-metadata">

**Author:** [@Go\_Away](https://forum.ansible.com/u/Go_Away)\
**Replies:** 4\
**Last updated:** [October 13, 2020, 12:50pm UTC](https://forum.ansible.com/t/failing-host-or-better-still-a-group-of-hosts-after-one-login-failure/34020 "2020-10-13T12:50:44Z")

</div>

I have (again ;-\>) a quite unusual situation. I have a bunch of hosts to which I connect with ansible to perform some tasks. The problem is that they are not mine alone and the authentication is done with password and i…

---

## [Template lookup failure triggered by rescue in role??](https://forum.ansible.com/t/template-lookup-failure-triggered-by-rescue-in-role/34019)

<div class="topic-metadata">

**Author:** [@iamroddo](https://forum.ansible.com/u/iamroddo)\
**Replies:** 0\
**Last updated:** [October 13, 2020, 10:08am UTC](https://forum.ansible.com/t/template-lookup-failure-triggered-by-rescue-in-role/34019 "2020-10-13T10:08:48Z")

</div>

I have a role which pushes updates to GitHub Enterprise. Every now and then the push fails, so I enclosed this push in a block/rescue with a rescue task to retry after a short random length pause. The result is success, …

---

## [Ansible Nmap](https://forum.ansible.com/t/ansible-nmap/33979)

<div class="topic-metadata">

**Author:** [@maysirahza](https://forum.ansible.com/u/maysirahza)\
**Replies:** 4\
**Last updated:** [October 13, 2020, 8:19am UTC](https://forum.ansible.com/t/ansible-nmap/33979 "2020-10-13T08:19:29Z")

</div>

Hello all I have network 172.130.23.0/20 with a lot of router I tried to make inventory file for ansible. https://docs.ansible.com/ansible/latest/plugins/inventory/nmap.html How can I use ansible nmap for scanning my…

---

## [Windows machine not pinging.](https://forum.ansible.com/t/windows-machine-not-pinging/33991)

<div class="topic-metadata">

**Author:** [@uday1kiran](https://forum.ansible.com/u/uday1kiran)\
**Replies:** 3\
**Last updated:** [October 13, 2020, 7:32am UTC](https://forum.ansible.com/t/windows-machine-not-pinging/33991 "2020-10-13T07:32:38Z")

</div>

ICMP protocol is emabled on remote machine. Remote desktop is also enabled. winrm and enable-psremoting also enabled Ran, below commands also. winrm set winrm/config/client/auth ‘@{Basic=“true”}’ winrm set winrm/con…

---

## [ansible secret has a special character ':' (colon) at the end how to deal with special characters in asnible-vault/secrets ?](https://forum.ansible.com/t/ansible-secret-has-a-special-character-colon-at-the-end-how-to-deal-with-special-characters-in-asnible-vault-secrets/34012)

<div class="topic-metadata">

**Author:** [@sameer\_khan](https://forum.ansible.com/u/sameer_khan)\
**Replies:** 1\
**Last updated:** [October 13, 2020, 6:14am UTC](https://forum.ansible.com/t/ansible-secret-has-a-special-character-colon-at-the-end-how-to-deal-with-special-characters-in-asnible-vault-secrets/34012 "2020-10-13T06:14:28Z")

</div>

Exception : "yaml.scanner.ScannerError: mapping values are not allowed here in “”, line 1, column 22: ldappass: \*\*\*\*\*\*\*:

---

## [Server build post tasks with ansible](https://forum.ansible.com/t/server-build-post-tasks-with-ansible/33851)

<div class="topic-metadata">

**Author:** [@Kumaresan\_M](https://forum.ansible.com/u/Kumaresan_M)\
**Replies:** 2\
**Last updated:** [October 13, 2020, 4:43am UTC](https://forum.ansible.com/t/server-build-post-tasks-with-ansible/33851 "2020-10-13T04:43:47Z")

</div>

Hi Experts, We are planning to automate server commissioning posts tasks through ansible.Is there way the ansible playbook can be triggered as soon as the OS provisioned? The requirement for both azure cloud and on-pre…

---

## [Error when writing to another directory](https://forum.ansible.com/t/error-when-writing-to-another-directory/34018)

<div class="topic-metadata">

**Author:** [@Liew\_KengHong](https://forum.ansible.com/u/Liew_KengHong)\
**Replies:** 2\
**Last updated:** [October 13, 2020, 4:37am UTC](https://forum.ansible.com/t/error-when-writing-to-another-directory/34018 "2020-10-13T04:37:00Z")

</div>

Hi, I have a template that copy the configuration file to another directory. But it return fatal error: {“msg”: “The task includes an option with an undefined variable. The error was: ‘deploy\_dir’ is undefined\\n\\nThe e…

---

## [ERROR! this task 'yum' has extra params](https://forum.ansible.com/t/error-this-task-yum-has-extra-params/34010)

<div class="topic-metadata">

**Author:** [@Subhash\_Chandra\_Rang](https://forum.ansible.com/u/Subhash_Chandra_Rang)\
**Replies:** 4\
**Last updated:** [October 12, 2020, 6:32pm UTC](https://forum.ansible.com/t/error-this-task-yum-has-extra-params/34010 "2020-10-12T18:32:15Z")

</div>

---

## [Ansible GCP Project enable APIs](https://forum.ansible.com/t/ansible-gcp-project-enable-apis/34013)

<div class="topic-metadata">

**Author:** [@Ian\_Hiddleston](https://forum.ansible.com/u/Ian_Hiddleston)\
**Replies:** 0\
**Last updated:** [October 12, 2020, 5:00pm UTC](https://forum.ansible.com/t/ansible-gcp-project-enable-apis/34013 "2020-10-12T17:00:33Z")

</div>

Hi all, I’ve had a rummage through the documentation but can’t see an Ansible native way to enable APIs on a GCP project (I can create the project just fine with Ansible, it just comes without all the APIs I need turned…

---

## [Different credentials](https://forum.ansible.com/t/different-credentials/34008)

<div class="topic-metadata">

**Author:** [@uday1kiran](https://forum.ansible.com/u/uday1kiran)\
**Replies:** 0\
**Last updated:** [October 12, 2020, 9:38am UTC](https://forum.ansible.com/t/different-credentials/34008 "2020-10-12T09:38:02Z")

</div>

It is not related to the other issue I posted. I have some set of windows machines, which we are connecting through credentials in the inventory file. For all the machines the username/password is same. But, for some …

---

## [How to convert output of task in dictionary](https://forum.ansible.com/t/how-to-convert-output-of-task-in-dictionary/34006)

<div class="topic-metadata">

**Author:** [@Kundan\_Singh](https://forum.ansible.com/u/Kundan_Singh)\
**Replies:** 0\
**Last updated:** [October 12, 2020, 8:24am UTC](https://forum.ansible.com/t/how-to-convert-output-of-task-in-dictionary/34006 "2020-10-12T08:24:09Z")

</div>

Hi All, I am new to ansible working on a requirement where the the command has been executed and output has been stored in register. Need your guidance to find how to change the out put in dictionary or json file forma…

---

## [Ansible tower issue](https://forum.ansible.com/t/ansible-tower-issue/34001)

<div class="topic-metadata">

**Author:** [@Abdulrazzaq\_shaik](https://forum.ansible.com/u/Abdulrazzaq_shaik)\
**Replies:** 5\
**Last updated:** [October 11, 2020, 10:16pm UTC](https://forum.ansible.com/t/ansible-tower-issue/34001 "2020-10-11T22:16:43Z")

</div>

Hi all, Kindly help on the below issue, I was trying to 2gb file from ansible controller to ansible node where am using copy / synchronize module and my all playbooks are working fine in the ansible cli, when it come t…

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

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