# Archives

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

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

**Page:** 224

---

## [Failed to import docker or docker-py - cannot import name constants” when installing AWX on Ubuntu 19.04](https://forum.ansible.com/t/failed-to-import-docker-or-docker-py-cannot-import-name-constants-when-installing-awx-on-ubuntu-19-04/31219)

<div class="topic-metadata">

**Author:** [@Moussa\_Balla](https://forum.ansible.com/u/Moussa_Balla)\
**Replies:** 4\
**Last updated:** [February 22, 2020, 4:52pm UTC](https://forum.ansible.com/t/failed-to-import-docker-or-docker-py-cannot-import-name-constants-when-installing-awx-on-ubuntu-19-04/31219 "2020-02-22T16:52:39Z")

</div>

TASK \[local\_docker : Start the containers\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* fatal: \[localhost\]: FAILED! =\> {“changed”: false, “msg”: “Fail…

---

## [How to access any other executable like java, sdkman installed within the awx\_task container?](https://forum.ansible.com/t/how-to-access-any-other-executable-like-java-sdkman-installed-within-the-awx-task-container/32303)

<div class="topic-metadata">

**Author:** [@Blacksensei](https://forum.ansible.com/u/Blacksensei)\
**Replies:** 0\
**Last updated:** [February 22, 2020, 4:42pm UTC](https://forum.ansible.com/t/how-to-access-any-other-executable-like-java-sdkman-installed-within-the-awx-task-container/32303 "2020-02-22T16:42:53Z")

</div>

Hello Team, I have been trying to move my team from ansible core and would like to do that with little change into what we have already so the contribution from team can still happen. I need a way to sync AWX as closely…

---

## [Ansible - Environment variable](https://forum.ansible.com/t/ansible-environment-variable/32283)

<div class="topic-metadata">

**Author:** [@Sivaraman\_P](https://forum.ansible.com/u/Sivaraman_P)\
**Replies:** 8\
**Last updated:** [February 22, 2020, 6:18am UTC](https://forum.ansible.com/t/ansible-environment-variable/32283 "2020-02-22T06:18:14Z")

</div>

0I have the env file which is present in target machine and it contain certain number of variables with export command(the export command itself was present inside the file). export AB\_HOME=/et/dev/abinitio/abinitio-V3 …

---

## [jump through two bastion hosts?](https://forum.ansible.com/t/jump-through-two-bastion-hosts/32276)

<div class="topic-metadata">

**Author:** [@erichymowitz](https://forum.ansible.com/u/erichymowitz)\
**Replies:** 1\
**Last updated:** [February 21, 2020, 11:31pm UTC](https://forum.ansible.com/t/jump-through-two-bastion-hosts/32276 "2020-02-21T23:31:53Z")

</div>

So I’ve got a host that I need to jump through two bastion hosts to get to: Ansible -----\> bastion\_1 -----\> bastion\_2 -----\> target I can use ansible to get to bastion\_2 by setting up a hostvar: ansible\_ssh\_common\_arg…

---

## [How to source a file which contains environment variables in a linux](https://forum.ansible.com/t/how-to-source-a-file-which-contains-environment-variables-in-a-linux/26810)

<div class="topic-metadata">

**Author:** [@Gopi\_Krishna](https://forum.ansible.com/u/Gopi_Krishna)\
**Replies:** 5\
**Last updated:** [February 21, 2020, 10:37pm UTC](https://forum.ansible.com/t/how-to-source-a-file-which-contains-environment-variables-in-a-linux/26810 "2020-02-21T22:37:23Z")

</div>

Hi All, name: “source then env file” shell: . /home/myfiles/setup.env I used . & source to source the env file, but its was not happening the way that works in linux environement my setup.env: export ip\_net=xx.xx.x…

---

## [Migration off Tool Server to Admin Box on Citrix](https://forum.ansible.com/t/migration-off-tool-server-to-admin-box-on-citrix/32299)

<div class="topic-metadata">

**Author:** [@Harris\_Humayun](https://forum.ansible.com/u/Harris_Humayun)\
**Replies:** 0\
**Last updated:** [February 21, 2020, 10:03pm UTC](https://forum.ansible.com/t/migration-off-tool-server-to-admin-box-on-citrix/32299 "2020-02-21T22:03:04Z")

</div>

Hello: I am a sys admin for a contractor in the govt. Where I work we have servers with tools on them, what I am tasked with doing is moving these tools over to an admin box on Citrix, so it can be accessed by VDI. I ne…

---

## [Ansible delegate to another host](https://forum.ansible.com/t/ansible-delegate-to-another-host/32296)

<div class="topic-metadata">

**Author:** [@Amit\_Juneja](https://forum.ansible.com/u/Amit_Juneja)\
**Replies:** 2\
**Last updated:** [February 21, 2020, 9:52pm UTC](https://forum.ansible.com/t/ansible-delegate-to-another-host/32296 "2020-02-21T21:52:54Z")

</div>

Hi everyone, I would appreciate if you could please look at my issue below and provide your suggestions - GOAL - Identify if the data in lower environment is scrambled. Steps - Identify all lower environment and for…

---

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

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

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