# Ansible Project

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

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

**Page:** 140

---

## [Unable to combine docker\_login with credential store](https://forum.ansible.com/t/unable-to-combine-docker-login-with-credential-store/32372)

<div class="topic-metadata">

**Author:** [@Jeremy\_Njock](https://forum.ansible.com/u/Jeremy_Njock)\
**Replies:** 1\
**Last updated:** [March 3, 2020, 10:00am UTC](https://forum.ansible.com/t/unable-to-combine-docker-login-with-credential-store/32372 "2020-03-03T10:00:23Z")

</div>

Hello, I’m using ansible 2.9 to install Docker on a remote RedHat, create a docker credential store with pass and pull several images from private docker registries. After the run of my playbook installing docker, docke…

---

## [Facing issue with URI module](https://forum.ansible.com/t/facing-issue-with-uri-module/32362)

<div class="topic-metadata">

**Author:** [@Himanshu\_Pupneja](https://forum.ansible.com/u/Himanshu_Pupneja)\
**Replies:** 4\
**Last updated:** [March 3, 2020, 6:29am UTC](https://forum.ansible.com/t/facing-issue-with-uri-module/32362 "2020-03-03T06:29:43Z")

</div>

I am facing issue in URI module, Could you please help me in this It works well with postman and curl command. Below module is failing

---

## [Swapping credentials](https://forum.ansible.com/t/swapping-credentials/32356)

<div class="topic-metadata">

**Author:** [@Dave\_York](https://forum.ansible.com/u/Dave_York)\
**Replies:** 14\
**Last updated:** [March 3, 2020, 2:11am UTC](https://forum.ansible.com/t/swapping-credentials/32356 "2020-03-03T02:11:35Z")

</div>

Hi Ansible Community! I have a playbook running against windows servers. I have one play where I’m connecting as the local administrator, then a second play where I’m connecting as a domain user. I’m confused on how to …

---

## [\-u not being set when running ad-hoc ansible run?](https://forum.ansible.com/t/u-not-being-set-when-running-ad-hoc-ansible-run/32369)

<div class="topic-metadata">

**Author:** [@John\_Miller](https://forum.ansible.com/u/John_Miller)\
**Replies:** 0\
**Last updated:** [March 3, 2020, 12:24am UTC](https://forum.ansible.com/t/u-not-being-set-when-running-ad-hoc-ansible-run/32369 "2020-03-03T00:24:46Z")

</div>

Hello everyone, I’m trying to run the following ad hoc ansible command to run the date command remotely against an IP camera running Linux: \` myuser@myhost:$ ansible camera.site.example.org -i /path/to/inventory -u ro…

---

## [How to replace all occurrences of '\_' by '-' in all keys of a YAML complex object](https://forum.ansible.com/t/how-to-replace-all-occurrences-of-by-in-all-keys-of-a-yaml-complex-object/32343)

<div class="topic-metadata">

**Author:** [@actionmystique](https://forum.ansible.com/u/actionmystique)\
**Replies:** 4\
**Last updated:** [March 2, 2020, 2:50pm UTC](https://forum.ansible.com/t/how-to-replace-all-occurrences-of-by-in-all-keys-of-a-yaml-complex-object/32343 "2020-03-02T14:50:56Z")

</div>

For instance, let’s consider the following YAML data: \` key\_1: ‘$.\*?/|^(){}+@&\_-’ key\_2: ‘$.\*?/|^(){}+@&\_-’ “{\_}” value23 key\_3: value31 key\_4: value41 value42 key\_5: value51 key\_1\_: value12 \_key\_2: value24 value…

---

## [Python 2, Python 3, Conda, and ansible modules dnf and docker\_container](https://forum.ansible.com/t/python-2-python-3-conda-and-ansible-modules-dnf-and-docker-container/32363)

<div class="topic-metadata">

**Author:** [@Julien\_Cochennec](https://forum.ansible.com/u/Julien_Cochennec)\
**Replies:** 0\
**Last updated:** [March 2, 2020, 2:05pm UTC](https://forum.ansible.com/t/python-2-python-3-conda-and-ansible-modules-dnf-and-docker-container/32363 "2020-03-02T14:05:02Z")

</div>

Hi, When using Docker CE on RHEL 7, installed whith Ansible (python 2.7 on target), docker\_container module fails, saying I should install docker or docker-py, but I can’t find a way to make it work. Python 2.7 being u…

---

## [How do i loop over include\_vars objects under a dictionary ?](https://forum.ansible.com/t/how-do-i-loop-over-include-vars-objects-under-a-dictionary/32361)

<div class="topic-metadata">

**Author:** [@Shifa\_Shaikh](https://forum.ansible.com/u/Shifa_Shaikh)\
**Replies:** 3\
**Last updated:** [March 2, 2020, 6:23am UTC](https://forum.ansible.com/t/how-do-i-loop-over-include-vars-objects-under-a-dictionary/32361 "2020-03-02T06:23:47Z")

</div>

I have a include\_vars file with the below entries in listings.yml \`

---

## [windows dynamic inventory](https://forum.ansible.com/t/windows-dynamic-inventory/32241)

<div class="topic-metadata">

**Author:** [@Andrew\_Morgan](https://forum.ansible.com/u/Andrew_Morgan)\
**Replies:** 4\
**Last updated:** [March 2, 2020, 5:11am UTC](https://forum.ansible.com/t/windows-dynamic-inventory/32241 "2020-03-02T05:11:46Z")

</div>

Hello Guys, I am working in an azure environment and after research I am in need of some help. I am unable to find anywhere how to setup and use correctly azure plugin for dynamic inventory. Is this possible? Has anyone…

---

## [How to append items to a list inside a nested structure](https://forum.ansible.com/t/how-to-append-items-to-a-list-inside-a-nested-structure/32360)

<div class="topic-metadata">

**Author:** [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Replies:** 0\
**Last updated:** [March 1, 2020, 5:41pm UTC](https://forum.ansible.com/t/how-to-append-items-to-a-list-inside-a-nested-structure/32360 "2020-03-01T17:41:44Z")

</div>

Hi I have this structure: git\_servers: - host: github.com user: git repos: - ansible/ansible - cirrusidentity/simplesamlphp-module-authoauth2 - dnmvisser/an…

---

## [Windows updates found but not installed](https://forum.ansible.com/t/windows-updates-found-but-not-installed/32302)

<div class="topic-metadata">

**Author:** [@astrakid](https://forum.ansible.com/u/astrakid)\
**Replies:** 5\
**Last updated:** [March 1, 2020, 5:02pm UTC](https://forum.ansible.com/t/windows-updates-found-but-not-installed/32302 "2020-03-01T17:02:06Z")

</div>

hi, i tried to update some sql-servers with ansible (awx). overall it worked fine, but some updates (latest sql-server 2016 sp2 and .bnet-framework) werde detected referring to windows updsate logfile but not installed…

---

## [Telnet to network devices](https://forum.ansible.com/t/telnet-to-network-devices/32359)

<div class="topic-metadata">

**Author:** [@Ashish\_Sagar](https://forum.ansible.com/u/Ashish_Sagar)\
**Replies:** 1\
**Last updated:** [March 1, 2020, 3:06pm UTC](https://forum.ansible.com/t/telnet-to-network-devices/32359 "2020-03-01T15:06:22Z")

</div>

Folks, I am aware that native ansible doesn’t support telnet. Do we have any alternate to test playbooks while telnet to network devices in lab environment ? Thanks Ashish

---

## ["ONE" inventory question](https://forum.ansible.com/t/one-inventory-question/32335)

<div class="topic-metadata">

**Author:** [@Xinhuan\_Zheng](https://forum.ansible.com/u/Xinhuan_Zheng)\
**Replies:** 3\
**Last updated:** [February 29, 2020, 1:44pm UTC](https://forum.ansible.com/t/one-inventory-question/32335 "2020-02-29T13:44:04Z")

</div>

Hello, We have ansible code that are in version control repository. This makes how to maintaining “ONE” inventory file difficult. If we need to create multiple repositories, for different purpose of Ansible playbook run…

---

## [SSL Certificate or Passwordless WinRM setup](https://forum.ansible.com/t/ssl-certificate-or-passwordless-winrm-setup/32354)

<div class="topic-metadata">

**Author:** [@FloodBarboy](https://forum.ansible.com/u/FloodBarboy)\
**Replies:** 2\
**Last updated:** [February 29, 2020, 10:19am UTC](https://forum.ansible.com/t/ssl-certificate-or-passwordless-winrm-setup/32354 "2020-02-29T10:19:00Z")

</div>

Hello, I have been racking my brain for the last few days trying to setup SSL Certificate based or Passwordless WinRM setup in Ansible. I have a mixed environment of domain and non domain WIndows servers that I would li…

---

## [variable undefined?](https://forum.ansible.com/t/variable-undefined/32357)

<div class="topic-metadata">

**Author:** [@Dave\_York](https://forum.ansible.com/u/Dave_York)\
**Replies:** 2\
**Last updated:** [February 29, 2020, 9:28am UTC](https://forum.ansible.com/t/variable-undefined/32357 "2020-02-29T09:28:10Z")

</div>

I’m confused why I’m getting a ‘variable undefined’ error with this playbook, anyone have any idea? hosts: localhost connection: local gather\_facts: yes tasks: name: Generate a temporary random password for templa…

---

## [Ansible parallel execution over winrm](https://forum.ansible.com/t/ansible-parallel-execution-over-winrm/32352)

<div class="topic-metadata">

**Author:** [@Peter\_Garner](https://forum.ansible.com/u/Peter_Garner)\
**Replies:** 1\
**Last updated:** [February 29, 2020, 12:17am UTC](https://forum.ansible.com/t/ansible-parallel-execution-over-winrm/32352 "2020-02-29T00:17:57Z")

</div>

I notice there is a config option to enable ansible to run in parallel (host\_key\_checking = False) however, this strikes me as an ssh option. I’m running playbooks over winrm and would like to know if there is a similar …

---

## [Is there Module to output the playbook in specific directory for windows and linux hosts ?](https://forum.ansible.com/t/is-there-module-to-output-the-playbook-in-specific-directory-for-windows-and-linux-hosts/32355)

<div class="topic-metadata">

**Author:** [@Work\_Email](https://forum.ansible.com/u/Work_Email)\
**Replies:** 0\
**Last updated:** [February 28, 2020, 6:01pm UTC](https://forum.ansible.com/t/is-there-module-to-output-the-playbook-in-specific-directory-for-windows-and-linux-hosts/32355 "2020-02-28T18:01:21Z")

</div>

hello, Is there a Module to output the playbook in a specific directory for windows and Linux hosts? say - I want to output the result of the playbook in /etc/ansible/win-logs for windows and /etc/ansible/Linux-logs th…

---

## [Variable leaking between hosts when concurrency \> 1](https://forum.ansible.com/t/variable-leaking-between-hosts-when-concurrency-1/32350)

<div class="topic-metadata">

**Author:** [@Ben\_Spencer](https://forum.ansible.com/u/Ben_Spencer)\
**Replies:** 1\
**Last updated:** [February 28, 2020, 12:41pm UTC](https://forum.ansible.com/t/variable-leaking-between-hosts-when-concurrency-1/32350 "2020-02-28T12:41:57Z")

</div>

This is probably going to be long as I haven’t figured out a way to explain and show the issue in a summarized fashion. From the testing I’ve performed so far, it looks like there may be an issue/limit with nesting inclu…

---

## [Links on stale documentation pages](https://forum.ansible.com/t/links-on-stale-documentation-pages/32345)

<div class="topic-metadata">

**Author:** [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Replies:** 0\
**Last updated:** [February 27, 2020, 6:10pm UTC](https://forum.ansible.com/t/links-on-stale-documentation-pages/32345 "2020-02-27T18:10:49Z")

</div>

Hi Often the googles cause me to land on outdated documentation pages, for instance: https://docs.ansible.com/ansible/2.4/playbooks\_loops.html That displays a nice banner to indicate it's stale, but the href at the …

---

## [Running perl script on remote host as applcation user](https://forum.ansible.com/t/running-perl-script-on-remote-host-as-applcation-user/32341)

<div class="topic-metadata">

**Author:** [@DiViNe](https://forum.ansible.com/u/DiViNe)\
**Replies:** 2\
**Last updated:** [February 27, 2020, 9:44am UTC](https://forum.ansible.com/t/running-perl-script-on-remote-host-as-applcation-user/32341 "2020-02-27T09:44:49Z")

</div>

Thank you guys @Kai Stian Olstad \> It’s probably because your script /sgi/atx/src/atxBoxHWM.pl need some \> environment variables set. Yes, I guess you’re right on this one. But I thought using “shell:” within the ans…

---

## [set object property using set\_fact](https://forum.ansible.com/t/set-object-property-using-set-fact/32340)

<div class="topic-metadata">

**Author:** [@Shyam\_Sunder1](https://forum.ansible.com/u/Shyam_Sunder1)\
**Replies:** 1\
**Last updated:** [February 27, 2020, 9:00am UTC](https://forum.ansible.com/t/set-object-property-using-set-fact/32340 "2020-02-27T09:00:25Z")

</div>

Hi, I am new to Ansible an trying to achieve this below. Is this possible to set a dictionary property using key in Ansible. vars: mydict: keyA: path: ‘path of device A’ error\_files: \[\] keyB: path: ‘path of device B’ e…

---

## [using hosts mentioned in inventory files in my tasks](https://forum.ansible.com/t/using-hosts-mentioned-in-inventory-files-in-my-tasks/32332)

<div class="topic-metadata">

**Author:** [@Vishal\_Bobade](https://forum.ansible.com/u/Vishal_Bobade)\
**Replies:** 1\
**Last updated:** [February 27, 2020, 7:21am UTC](https://forum.ansible.com/t/using-hosts-mentioned-in-inventory-files-in-my-tasks/32332 "2020-02-27T07:21:49Z")

</div>

Hello , I have a inventory file with some 5-6 hosts and I want use them in some of my tasks/main.yml file. Could some one please suggest how can I do that . Lets say below is my inventory file \[gameday\] grafana.domai…

---

## [license issues for ansible contribution.](https://forum.ansible.com/t/license-issues-for-ansible-contribution/32338)

<div class="topic-metadata">

**Author:** [@Nalin\_Garg](https://forum.ansible.com/u/Nalin_Garg)\
**Replies:** 2\
**Last updated:** [February 26, 2020, 11:57pm UTC](https://forum.ansible.com/t/license-issues-for-ansible-contribution/32338 "2020-02-26T23:57:42Z")

</div>

I have a PR towards upstream ansible that is failing because of lib/ansible/modules/web\_infrastructure/jenkins\_node.py:0:0: missing-gplv3-license: GPLv3 license header not found in the first 20 lines of the module I hav…

---

## [Running perl script on remote host as applcation user](https://forum.ansible.com/t/running-perl-script-on-remote-host-as-applcation-user/32337)

<div class="topic-metadata">

**Author:** [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Replies:** 0\
**Last updated:** [February 26, 2020, 9:28pm UTC](https://forum.ansible.com/t/running-perl-script-on-remote-host-as-applcation-user/32337 "2020-02-26T21:28:32Z")

</div>

It's probably because your script /sgi/atx/src/atxBoxHWM.pl need some environment variables set. When you login and manually execute the command you are using a interactive shell, when Ansible(or you) execute the comm…

---

## [How to build Ansible inventory file](https://forum.ansible.com/t/how-to-build-ansible-inventory-file/32227)

<div class="topic-metadata">

**Author:** [@Xinhuan\_Zheng](https://forum.ansible.com/u/Xinhuan_Zheng)\
**Replies:** 1\
**Last updated:** [February 26, 2020, 8:18pm UTC](https://forum.ansible.com/t/how-to-build-ansible-inventory-file/32227 "2020-02-26T20:18:28Z")

</div>

Hello, I need to build Ansible inventory files, but somehow got stuck. Typically for a service, there is development, staging and production. Initially, I thought I can create 3 inventory files with those names. Later I…

---

## [Netscaler Ansible question](https://forum.ansible.com/t/netscaler-ansible-question/32336)

<div class="topic-metadata">

**Author:** [@Xinhuan\_Zheng](https://forum.ansible.com/u/Xinhuan_Zheng)\
**Replies:** 0\
**Last updated:** [February 26, 2020, 8:11pm UTC](https://forum.ansible.com/t/netscaler-ansible-question/32336 "2020-02-26T20:11:18Z")

</div>

Hello, In my Netscaler Ansible module, I encountered a problem with netscaler\_lb\_vserver. I’m trying to use a list of servicebindings to create a single lb vserver with two services, but instead it only creates “test2-s…

---

## [Win\_ping Module | failed to run exec\_wrapper | URGENT](https://forum.ansible.com/t/win-ping-module-failed-to-run-exec-wrapper-urgent/32313)

<div class="topic-metadata">

**Author:** [@Piyush\_Bansal](https://forum.ansible.com/u/Piyush_Bansal)\
**Replies:** 5\
**Last updated:** [February 26, 2020, 7:32pm UTC](https://forum.ansible.com/t/win-ping-module-failed-to-run-exec-wrapper-urgent/32313 "2020-02-26T19:32:51Z")

</div>

Hello, I am running win\_ping for windows 2008R2 64bit server from ansible 2.8.2 & python version = 2.7.5. Below are connection parameters: winrm ssl 5986 ignore certificates Admin user Credentials are working fine…

---

## [Running perl script on remote host as applcation user](https://forum.ansible.com/t/running-perl-script-on-remote-host-as-applcation-user/32334)

<div class="topic-metadata">

**Author:** [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Replies:** 0\
**Last updated:** [February 26, 2020, 2:57pm UTC](https://forum.ansible.com/t/running-perl-script-on-remote-host-as-applcation-user/32334 "2020-02-26T14:57:26Z")

</div>

Could you please state clearly: - Which command did you run, and what actual output did you get from that (copied as plain text - not as images, attachments, or screenshots). - What the relevant tasks/playbooks/code/…

---

## [How can i pass hosts information dynamically from UI and invoke an ansible playbook .](https://forum.ansible.com/t/how-can-i-pass-hosts-information-dynamically-from-ui-and-invoke-an-ansible-playbook/32333)

<div class="topic-metadata">

**Author:** [@anilkumar\_panditi](https://forum.ansible.com/u/anilkumar_panditi)\
**Replies:** 1\
**Last updated:** [February 26, 2020, 2:54pm UTC](https://forum.ansible.com/t/how-can-i-pass-hosts-information-dynamically-from-ui-and-invoke-an-ansible-playbook/32333 "2020-02-26T14:54:49Z")

</div>

Hi, I am trying to pass hosts information dynamically from UI and invoke an ansible playbook which will configure the things on the dynamically passed hosts from UI. Could you please help.

---

## [How can I pass predefined variable to playbook's “- hosts: ”POD\_'+VARIABLE+'\_master\_sn“”](https://forum.ansible.com/t/how-can-i-pass-predefined-variable-to-playbooks-hosts-pod-variable-master-sn/32331)

<div class="topic-metadata">

**Author:** [@Anton\_Tsurkanu](https://forum.ansible.com/u/Anton_Tsurkanu)\
**Replies:** 0\
**Last updated:** [February 26, 2020, 9:33am UTC](https://forum.ansible.com/t/how-can-i-pass-predefined-variable-to-playbooks-hosts-pod-variable-master-sn/32331 "2020-02-26T09:33:53Z")

</div>

I need to read VARIABLE from some pre-defined file, not from the console. I have a file named “all” under group\_vars with predefined variable, the value of which can be changed, let say, from “C” to "D’ depends on what …

---

## [set\_fact undefined variable issue when concat string to itself.](https://forum.ansible.com/t/set-fact-undefined-variable-issue-when-concat-string-to-itself/32327)

<div class="topic-metadata">

**Author:** [@Shifa\_Shaikh](https://forum.ansible.com/u/Shifa_Shaikh)\
**Replies:** 2\
**Last updated:** [February 26, 2020, 9:21am UTC](https://forum.ansible.com/t/set-fact-undefined-variable-issue-when-concat-string-to-itself/32327 "2020-02-26T09:21:29Z")

</div>

I need to set\_fact variable and contact to itself a list of items as below: \` set\_fact: excludefolders: “{{ excludefolders + ’ -o -name ’ + item | default(‘’) }}” with\_items: “{{ lookup(‘vars’, ‘MY\_’ + Layer).split(…

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

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