# Latest

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

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

**Page:** 399

---

## [ansible - ios\_config:  suppress all the "show running-configs" that occur after updating each port on a cisco switch?](https://forum.ansible.com/t/ansible-ios-config-suppress-all-the-show-running-configs-that-occur-after-updating-each-port-on-a-cisco-switch/32297)

<div class="topic-metadata">

**Author:** [@John\_Hawley](https://forum.ansible.com/u/John_Hawley)\
**Replies:** 0\
**Last updated:** [February 21, 2020, 8:14pm UTC](https://forum.ansible.com/t/ansible-ios-config-suppress-all-the-show-running-configs-that-occur-after-updating-each-port-on-a-cisco-switch/32297 "2020-02-21T20:14:04Z")

</div>

I have a playbook that steps through all the ports on a cisco switch stack, adding or removing lines and it takes a very long time to run. I can see in TACACS command accounting that it is doing a “show running-config” a…

---

## [\[ Ansible \] - How to comment (add #) all lines in file](https://forum.ansible.com/t/ansible-how-to-comment-add-all-lines-in-file/32288)

<div class="topic-metadata">

**Author:** [@Joao\_Santos](https://forum.ansible.com/u/Joao_Santos)\
**Replies:** 6\
**Last updated:** [February 21, 2020, 4:59pm UTC](https://forum.ansible.com/t/ansible-how-to-comment-add-all-lines-in-file/32288 "2020-02-21T16:59:03Z")

</div>

Hey Ansible gurus, need your help here… Just googled around and was not able to find a satisfactory answer to the following: I have a file and want to insert in the beginning of each line the # character No matter if …

---

## [.ansible/tmp/ansible-tmp readonly file systems](https://forum.ansible.com/t/ansible-tmp-ansible-tmp-readonly-file-systems/32295)

<div class="topic-metadata">

**Author:** [@Bill\_Mounsey](https://forum.ansible.com/u/Bill_Mounsey)\
**Replies:** 0\
**Last updated:** [February 21, 2020, 3:04pm UTC](https://forum.ansible.com/t/ansible-tmp-ansible-tmp-readonly-file-systems/32295 "2020-02-21T15:04:12Z")

</div>

serverA | UNREACHABLE! =\> { “changed”: false, “msg”: “Authentication or permission failure. In some cases, you may have been able to authenticate and did not have permissions on the target directory. Consider changing …

---

## [\[ Ansible \] - Read a properties file (java/springboot) to use later](https://forum.ansible.com/t/ansible-read-a-properties-file-java-springboot-to-use-later/32291)

<div class="topic-metadata">

**Author:** [@Joao\_Santos](https://forum.ansible.com/u/Joao_Santos)\
**Replies:** 3\
**Last updated:** [February 21, 2020, 2:11pm UTC](https://forum.ansible.com/t/ansible-read-a-properties-file-java-springboot-to-use-later/32291 "2020-02-21T14:11:43Z")

</div>

Hey all, Would like to count with your experience/feedback with a very specific task… I would like to collect the content of a properties file (java/springboot) and turn it to a form of data structure to later use it d…

---

## [Ansible 2.9.4 collection not picking the action plugin](https://forum.ansible.com/t/ansible-2-9-4-collection-not-picking-the-action-plugin/32294)

<div class="topic-metadata">

**Author:** [@Mohamed\_Javeed](https://forum.ansible.com/u/Mohamed_Javeed)\
**Replies:** 0\
**Last updated:** [February 21, 2020, 1:30pm UTC](https://forum.ansible.com/t/ansible-2-9-4-collection-not-picking-the-action-plugin/32294 "2020-02-21T13:30:54Z")

</div>

Hi team, I’m having trouble getting the actions plugin inside the collection being used on playbook execution This happens due to the name change from dellos10.py to os10.py for the plugin Summary of issue

---

## [How to use an IF Else Statement with Ansible Playbook](https://forum.ansible.com/t/how-to-use-an-if-else-statement-with-ansible-playbook/32292)

<div class="topic-metadata">

**Author:** [@David\_Foley](https://forum.ansible.com/u/David_Foley)\
**Replies:** 3\
**Last updated:** [February 21, 2020, 11:56am UTC](https://forum.ansible.com/t/how-to-use-an-if-else-statement-with-ansible-playbook/32292 "2020-02-21T11:56:16Z")

</div>

Hi, Can Someone help with a IF Else Statment within Ansible. If i Run a a GetStatus Playbook the Register: vminfo outputs the Following: ok: \[localhost\] =\> { “vminfo”: { “changed”: false, “failed”: false, “instanc…

---

## [Creating variables from register variable in ansible](https://forum.ansible.com/t/creating-variables-from-register-variable-in-ansible/32293)

<div class="topic-metadata">

**Author:** [@Sivaraman\_P](https://forum.ansible.com/u/Sivaraman_P)\
**Replies:** 0\
**Last updated:** [February 21, 2020, 11:35am UTC](https://forum.ansible.com/t/creating-variables-from-register-variable-in-ansible/32293 "2020-02-21T11:35:40Z")

</div>

I have the register variable which contains number of lines in stdout\_lines. With those lines I have to create variables. Is there any workaround for this. Ex: register: output output.stdout\_line contains below lines v…

---

## [Unable to create the new dashboard : 404 messageDashboard not found](https://forum.ansible.com/t/unable-to-create-the-new-dashboard-404-messagedashboard-not-found/31930)

<div class="topic-metadata">

**Author:** [@anilkumar\_panditi](https://forum.ansible.com/u/anilkumar_panditi)\
**Replies:** 4\
**Last updated:** [February 21, 2020, 8:24am UTC](https://forum.ansible.com/t/unable-to-create-the-new-dashboard-404-messagedashboard-not-found/31930 "2020-02-21T08:24:28Z")

</div>

I am trying to import a Grafana dashboard(JSON) to Grafana. Following is the ansible playbook --- - name: task to parameterise grafana template hosts: localhost become: true user: root tasks: - name: Import …

---

## [Svn migration to git using Ansible](https://forum.ansible.com/t/svn-migration-to-git-using-ansible/32290)

<div class="topic-metadata">

**Author:** [@Markus\_Rottlander](https://forum.ansible.com/u/Markus_Rottlander)\
**Replies:** 0\
**Last updated:** [February 20, 2020, 7:46pm UTC](https://forum.ansible.com/t/svn-migration-to-git-using-ansible/32290 "2020-02-20T19:46:01Z")

</div>

There are already special tools for this (e.g. svn2git). https://github.com/nirvdrum/svn2git Why reinvent the wheel?

---

## [azure\_rm.py invalid start byte](https://forum.ansible.com/t/azure-rm-py-invalid-start-byte/32287)

<div class="topic-metadata">

**Author:** [@Patrick\_O\_Dowd](https://forum.ansible.com/u/Patrick_O_Dowd)\
**Replies:** 0\
**Last updated:** [February 20, 2020, 4:25pm UTC](https://forum.ansible.com/t/azure-rm-py-invalid-start-byte/32287 "2020-02-20T16:25:26Z")

</div>

Hi - I am hitting the following error on windows 10 subsystem for linux (wsl) when running this command: $ ansible ie1salx41711-apigw-intdev-green-proxy-2-devtest -i azure\_rm.py -m ping ERROR! ‘utf8’ codec can’t decode…

---

## [Ansible 2.6.2: playbook works when executed in CLI but not in AWX 1.0.7.2](https://forum.ansible.com/t/ansible-2-6-2-playbook-works-when-executed-in-cli-but-not-in-awx-1-0-7-2/32286)

<div class="topic-metadata">

**Author:** [@nicolas](https://forum.ansible.com/u/nicolas)\
**Replies:** 0\
**Last updated:** [February 20, 2020, 4:14pm UTC](https://forum.ansible.com/t/ansible-2-6-2-playbook-works-when-executed-in-cli-but-not-in-awx-1-0-7-2/32286 "2020-02-20T16:14:54Z")

</div>

Saisissez le code ici... Hello, I’m trying to import into AWX 1.0.7.2 a couple of ansible projects, after I have tested them with CLI. My inventory file is as follows: \` ... \[jenkins-nodes\] jenkins-master ansible-hos…

---

## [ansible ping failure to windows host](https://forum.ansible.com/t/ansible-ping-failure-to-windows-host/32285)

<div class="topic-metadata">

**Author:** [@Yehuda\_Pinhas](https://forum.ansible.com/u/Yehuda_Pinhas)\
**Replies:** 2\
**Last updated:** [February 20, 2020, 1:49pm UTC](https://forum.ansible.com/t/ansible-ping-failure-to-windows-host/32285 "2020-02-20T13:49:36Z")

</div>

Hi guys! I have issues with ansible ping (python module validation) with Windows Server 2019 host. This is the result: \[ansible@Netauto-Dev new\_branch\]$ ansible dhcp-test -m ping -vvvv 2020-02-20 14:37:56,686 p=ansib…

---

## [Export environment variables](https://forum.ansible.com/t/export-environment-variables/31913)

<div class="topic-metadata">

**Author:** [@mark.tovey](https://forum.ansible.com/u/mark.tovey)\
**Replies:** 11\
**Last updated:** [February 20, 2020, 12:22pm UTC](https://forum.ansible.com/t/export-environment-variables/31913 "2020-02-20T12:22:40Z")

</div>

I need to export some environment variables before running a task, but it appears that setting variables with “environment” does not export them; they remain local. For test, I wrote the following simple playbook: ho…

---

## [Set VAULT\_TOKEN environment variable in AWX](https://forum.ansible.com/t/set-vault-token-environment-variable-in-awx/32254)

<div class="topic-metadata">

**Author:** [@Jan\_Stenvall](https://forum.ansible.com/u/Jan_Stenvall)\
**Replies:** 5\
**Last updated:** [February 20, 2020, 12:22pm UTC](https://forum.ansible.com/t/set-vault-token-environment-variable-in-awx/32254 "2020-02-20T12:22:26Z")

</div>

Hello, In my playbook I’m using the hashi\_vault lookup. According to the specification of the plugin, one way to authenticate against vault is to use the VAULT\_TOKEN environment variable (see https://docs.ansible.com/an…

---

## [Svn migration to git using Ansible](https://forum.ansible.com/t/svn-migration-to-git-using-ansible/32284)

<div class="topic-metadata">

**Author:** [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Replies:** 1\
**Last updated:** [February 20, 2020, 11:33am UTC](https://forum.ansible.com/t/svn-migration-to-git-using-ansible/32284 "2020-02-20T11:33:20Z")

</div>

Hi Gyalgin Is there anything ansible specific that you are looking for?

---

## [remote\_src and template\_host for template module not working for me](https://forum.ansible.com/t/remote-src-and-template-host-for-template-module-not-working-for-me/32274)

<div class="topic-metadata">

**Author:** [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Replies:** 1\
**Last updated:** [February 20, 2020, 9:51am UTC](https://forum.ansible.com/t/remote-src-and-template-host-for-template-module-not-working-for-me/32274 "2020-02-20T09:51:51Z")

</div>

A few issues: 1. The file /template/test.j2 needs to be available on the remote node, because you specified "remote\_src: yes". Fix this. 2. template\_host is not a valid parameter for the template task - and it is not…

---

## [remote\_src and template\_host for template module not working for me](https://forum.ansible.com/t/remote-src-and-template-host-for-template-module-not-working-for-me/32282)

<div class="topic-metadata">

**Author:** [@jborean](https://forum.ansible.com/u/jborean)\
**Replies:** 0\
**Last updated:** [February 20, 2020, 8:09am UTC](https://forum.ansible.com/t/remote-src-and-template-host-for-template-module-not-working-for-me/32282 "2020-02-20T08:09:23Z")

</div>

You can’t, template will only work with a source on the controller as that is where the cars are stored. Either store the template in your role/playbook or use fetch to fetch the file to the controller temporarily and th…

---

## [ansible-playbook command prompt like yes/no while connecting to managed node for the first time](https://forum.ansible.com/t/ansible-playbook-command-prompt-like-yes-no-while-connecting-to-managed-node-for-the-first-time/32281)

<div class="topic-metadata">

**Author:** [@anilkumar\_panditi](https://forum.ansible.com/u/anilkumar_panditi)\
**Replies:** 1\
**Last updated:** [February 20, 2020, 6:46am UTC](https://forum.ansible.com/t/ansible-playbook-command-prompt-like-yes-no-while-connecting-to-managed-node-for-the-first-time/32281 "2020-02-20T06:46:44Z")

</div>

Hello, All My ansible-playbook -i -vv command prompt like yes/no while connecting to managed node for the first time. How can i avoid the prompting because i have aggregated all ansible-playbook commands in a shell sc…

---

## [cannot import name PlayBook in python](https://forum.ansible.com/t/cannot-import-name-playbook-in-python/32280)

<div class="topic-metadata">

**Author:** [@Sagar\_Mujumale](https://forum.ansible.com/u/Sagar_Mujumale)\
**Replies:** 0\
**Last updated:** [February 20, 2020, 6:03am UTC](https://forum.ansible.com/t/cannot-import-name-playbook-in-python/32280 "2020-02-20T06:03:15Z")

</div>

I am trying to execute ansible playbook by python script however I am getting below error. from ansible.playbook import PlayBook ImportError: cannot import name PlayBook My script is as below, from ansible.playbook i…

---

## [win\_dns\_record](https://forum.ansible.com/t/win-dns-record/32277)

<div class="topic-metadata">

**Author:** [@kzersatz](https://forum.ansible.com/u/kzersatz)\
**Replies:** 2\
**Last updated:** [February 20, 2020, 12:38am UTC](https://forum.ansible.com/t/win-dns-record/32277 "2020-02-20T00:38:42Z")

</div>

OK, Am I missing something? or is this module requiring you to run it against the DNS server directly? I know I though powershell normally can define the DNS server I wish to execute against, but this module doesn’t lo…

---

## [Does anyone have an Interesting Ansible demo idea for a talk?](https://forum.ansible.com/t/does-anyone-have-an-interesting-ansible-demo-idea-for-a-talk/32258)

<div class="topic-metadata">

**Author:** [@Christopher\_Saunders](https://forum.ansible.com/u/Christopher_Saunders)\
**Replies:** 3\
**Last updated:** [February 19, 2020, 10:03pm UTC](https://forum.ansible.com/t/does-anyone-have-an-interesting-ansible-demo-idea-for-a-talk/32258 "2020-02-19T22:03:07Z")

</div>

I am doing a 45-minute talk on Ansible and Ansible Tower to a large group of infrastructure people at my company. The audience is mixed, some know Ansible well, others may have only heard about it. I would like to develo…

---

## [Ansible 2.10 and Project Restructuring](https://forum.ansible.com/t/ansible-2-10-and-project-restructuring/32279)

<div class="topic-metadata">

**Author:** [@sdoran](https://forum.ansible.com/u/sdoran)\
**Replies:** 0\
**Last updated:** [February 19, 2020, 9:57pm UTC](https://forum.ansible.com/t/ansible-2-10-and-project-restructuring/32279 "2020-02-19T21:57:34Z")

</div>

Greetings Ansible Community, For the 2.10 release of Ansible, we plan to restructure the ansible/ansible repository. The majority of modules and plugins will migrate to collection repositories to better enable the commu…

---

## [Ansible-vault password file not found](https://forum.ansible.com/t/ansible-vault-password-file-not-found/26932)

<div class="topic-metadata">

**Author:** [@JiElPe-Fr38](https://forum.ansible.com/u/JiElPe-Fr38)\
**Replies:** 4\
**Last updated:** [February 19, 2020, 6:57pm UTC](https://forum.ansible.com/t/ansible-vault-password-file-not-found/26932 "2020-02-19T18:57:24Z")

</div>

Dear all, I am “auto learning” ansible and currently try to understand how to use vault. To summarize things, I have created a vault.yml file in the vars directory, and included it in the main.yml task. Then, I put the…

---

## [AWX Installation Failing!](https://forum.ansible.com/t/awx-installation-failing/28047)

<div class="topic-metadata">

**Author:** [@Ram\_V](https://forum.ansible.com/u/Ram_V)\
**Replies:** 3\
**Last updated:** [February 19, 2020, 5:25pm UTC](https://forum.ansible.com/t/awx-installation-failing/28047 "2020-02-19T17:25:10Z")

</div>

Hi, I installed docker, docker-py, ansible and cloned AWX. When i try to install AWX, I am getting below error. Any help will be appreciated. Thank you. TASK \[local\_docker : Activate postgres container\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [Obfuscate password in the Ansible Vault](https://forum.ansible.com/t/obfuscate-password-in-the-ansible-vault/32275)

<div class="topic-metadata">

**Author:** [@Jeremy\_Njock](https://forum.ansible.com/u/Jeremy_Njock)\
**Replies:** 1\
**Last updated:** [February 19, 2020, 3:28pm UTC](https://forum.ansible.com/t/obfuscate-password-in-the-ansible-vault/32275 "2020-02-19T15:28:56Z")

</div>

Hi, My playbook installs Docker on a remote server, and logs in on a docker registry by using user credentials, specified by following task \` name: Log into FIS registry docker\_login: registry: my-company-docker-re…

---

## [AWX Install in Openshift Failing: "msg": "template error while templating string: no test named 'version'. String: {{ 'apps/v1' if kube\_api\_version is version('1.9', '\>=') else 'apps/v1beta1' }}"](https://forum.ansible.com/t/awx-install-in-openshift-failing-msg-template-error-while-templating-string-no-test-named-version-string-apps-v1-if-kube-api-version-is-version-1-9-else-apps-v1beta1/32238)

<div class="topic-metadata">

**Author:** [@Parashar\_Singh](https://forum.ansible.com/u/Parashar_Singh)\
**Replies:** 2\
**Last updated:** [February 19, 2020, 3:10pm UTC](https://forum.ansible.com/t/awx-install-in-openshift-failing-msg-template-error-while-templating-string-no-test-named-version-string-apps-v1-if-kube-api-version-is-version-1-9-else-apps-v1beta1/32238 "2020-02-19T15:10:01Z")

</div>

Can someone please advise, how to fix this issue while installing AWX in Openshift 3.9? I’m getting following error: TASK \[kubernetes : Determine StatefulSet api version\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [remote\_src and template\_host not working in template module for me](https://forum.ansible.com/t/remote-src-and-template-host-not-working-in-template-module-for-me/32272)

<div class="topic-metadata">

**Author:** [@felixfontein](https://forum.ansible.com/u/felixfontein)\
**Replies:** 0\
**Last updated:** [February 19, 2020, 2:02pm UTC](https://forum.ansible.com/t/remote-src-and-template-host-not-working-in-template-module-for-me/32272 "2020-02-19T14:02:32Z")

</div>

Hello, pleaes use the appropriate places for support questions. This mailing list is for discussions on the development of Ansible. You might want to try https://groups.google.com/forum/#!forum/ansible-project instea…

---

## [retrieving the inventory name from the job template](https://forum.ansible.com/t/retrieving-the-inventory-name-from-the-job-template/32264)

<div class="topic-metadata">

**Author:** [@Dave\_York](https://forum.ansible.com/u/Dave_York)\
**Replies:** 5\
**Last updated:** [February 19, 2020, 1:24pm UTC](https://forum.ansible.com/t/retrieving-the-inventory-name-from-the-job-template/32264 "2020-02-19T13:24:22Z")

</div>

Hi Ansible/AWX Community! I’m working on a project that builds an on-premesis virtual machine then adds it to a tower inventory. I have a job template that runs against “Inventory X”. How can I retrieve the name of the…

---

## [Cannot filter with from\_json](https://forum.ansible.com/t/cannot-filter-with-from-json/32261)

<div class="topic-metadata">

**Author:** [@hieronymus](https://forum.ansible.com/u/hieronymus)\
**Replies:** 6\
**Last updated:** [February 19, 2020, 12:41pm UTC](https://forum.ansible.com/t/cannot-filter-with-from-json/32261 "2020-02-19T12:41:52Z")

</div>

Hi Team, I’m encountered some issue with set\_facts from variable with json and for this reason I’m tried to understand this. To reproduce this case I’m using the example from here : playbooks filters \` tasks shell:…

---

## [Ansible - Router ACL changes](https://forum.ansible.com/t/ansible-router-acl-changes/32266)

<div class="topic-metadata">

**Author:** [@ilayavpl](https://forum.ansible.com/u/ilayavpl)\
**Replies:** 4\
**Last updated:** [February 19, 2020, 11:55am UTC](https://forum.ansible.com/t/ansible-router-acl-changes/32266 "2020-02-19T11:55:59Z")

</div>

Router ACL Changes - Ansible playbook Execution – While updating the below Router ACL changes in router, The playbook execution status was changed, but the changes are not replicated in Router and not getting any error …

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

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