# Archives

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

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

**Page:** 221

---

## [Using GCP Creds in Ansible Tower](https://forum.ansible.com/t/using-gcp-creds-in-ansible-tower/32385)

<div class="topic-metadata">

**Author:** [@KDE](https://forum.ansible.com/u/KDE)\
**Replies:** 1\
**Last updated:** [March 4, 2020, 7:10pm UTC](https://forum.ansible.com/t/using-gcp-creds-in-ansible-tower/32385 "2020-03-04T19:10:26Z")

</div>

Hi, When using Ansible Tower, is it possible to interact with Google Cloud without needing to store credentials in a local JSON file? I can see there’s a google credential type although I’m struggling to find out how I…

---

## [AnsibleConnectionFailure: Name or service not known](https://forum.ansible.com/t/ansibleconnectionfailure-name-or-service-not-known/32384)

<div class="topic-metadata">

**Author:** [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Replies:** 2\
**Last updated:** [March 4, 2020, 6:07pm UTC](https://forum.ansible.com/t/ansibleconnectionfailure-name-or-service-not-known/32384 "2020-03-04T18:07:43Z")

</div>

Could you please state clearly ALL of the below: - What goal you are trying to achieve. - How you are doing this. - What problems you encounter. - Which command did you run, and what actual output did you get from t…

---

## [AnsibleConnectionFailure: Name or service not known](https://forum.ansible.com/t/ansibleconnectionfailure-name-or-service-not-known/32383)

<div class="topic-metadata">

**Author:** [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Replies:** 0\
**Last updated:** [March 4, 2020, 3:13pm UTC](https://forum.ansible.com/t/ansibleconnectionfailure-name-or-service-not-known/32383 "2020-03-04T15:13:36Z")

</div>

You are trying to connect to a host called 'cisco' but that does not resolve to something. So, you should fix your inventory (which you didn't post BTW, so we can't tell what's exactly wrong with that).

---

## [Keep items of for loop on the same line, but adding a new line when the loop is done (Jinja template)](https://forum.ansible.com/t/keep-items-of-for-loop-on-the-same-line-but-adding-a-new-line-when-the-loop-is-done-jinja-template/32381)

<div class="topic-metadata">

**Author:** [@K\_de\_Jong](https://forum.ansible.com/u/K_de_Jong)\
**Replies:** 1\
**Last updated:** [March 4, 2020, 1:44pm UTC](https://forum.ansible.com/t/keep-items-of-for-loop-on-the-same-line-but-adding-a-new-line-when-the-loop-is-done-jinja-template/32381 "2020-03-04T13:44:47Z")

</div>

The template code below is from my Postfix setup in Ansible. What I want to do is to put all domain names on a single line with a comma+space as separator. To do this, I make use of the “{%-” syntax. However, at the end …

---

## [AWX-manage failed inventory import](https://forum.ansible.com/t/awx-manage-failed-inventory-import/28448)

<div class="topic-metadata">

**Author:** [@Alan\_Fraser](https://forum.ansible.com/u/Alan_Fraser)\
**Replies:** 2\
**Last updated:** [March 4, 2020, 10:37am UTC](https://forum.ansible.com/t/awx-manage-failed-inventory-import/28448 "2020-03-04T10:37:26Z")

</div>

Hi, I’m trying to import a static inventory file into AWX for use with an openshift installation. This is failing when ran from AWX Web UI (or playbook present in UI) but the same command imports successfully when run di…

---

## [Schedule not run](https://forum.ansible.com/t/schedule-not-run/32380)

<div class="topic-metadata">

**Author:** [@Mohamed\_Magdy](https://forum.ansible.com/u/Mohamed_Magdy)\
**Replies:** 0\
**Last updated:** [March 4, 2020, 10:08am UTC](https://forum.ansible.com/t/schedule-not-run/32380 "2020-03-04T10:08:29Z")

</div>

SUMMARY i try to make Schedule to run commend to get heap size every day from other server and after try to run Schedule successfully that include the commend and to run the playbook ISSUE TYPE- Documentation Report COM…

---

## [How to get IP address from controller's /etc/hosts file?](https://forum.ansible.com/t/how-to-get-ip-address-from-controllers-etc-hosts-file/32376)

<div class="topic-metadata">

**Author:** [@Robert\_F](https://forum.ansible.com/u/Robert_F)\
**Replies:** 6\
**Last updated:** [March 4, 2020, 4:50am UTC](https://forum.ansible.com/t/how-to-get-ip-address-from-controllers-etc-hosts-file/32376 "2020-03-04T04:50:01Z")

</div>

I’m trying to get the IP address of one of my remote hosts by querying my controller machine’s /etc/hosts file which happens to contain the IP addresses of all the servers I build with Ansible. My Ansible playbook looks …

---

## [Partial cancellation of Ansible Contributor Summit 8 (in-person component)](https://forum.ansible.com/t/partial-cancellation-of-ansible-contributor-summit-8-in-person-component/32378)

<div class="topic-metadata">

**Author:** [@Carol\_Chen1](https://forum.ansible.com/u/Carol_Chen1)\
**Replies:** 0\
**Last updated:** [March 3, 2020, 9:45pm UTC](https://forum.ansible.com/t/partial-cancellation-of-ansible-contributor-summit-8-in-person-component/32378 "2020-03-03T21:45:42Z")

</div>

Hi everyone, It is with deep regret that we confirm the partial cancellation of Ansible Contributor Summit Europe 2020, the physical/in-person element that was planned for Sunday, March 29, in Gothenburg, Sweden. This i…

---

## [Sudo su -](https://forum.ansible.com/t/sudo-su/32375)

<div class="topic-metadata">

**Author:** [@Suresh\_R](https://forum.ansible.com/u/Suresh_R)\
**Replies:** 2\
**Last updated:** [March 3, 2020, 8:33pm UTC](https://forum.ansible.com/t/sudo-su/32375 "2020-03-03T20:33:54Z")

</div>

In my environment we needed to execute the command " sudo su - " to become a root. I did tried something with the become method but nothing got worked. Do we have working setup for this scenario ?

---

## [Simple Math with String to Int](https://forum.ansible.com/t/simple-math-with-string-to-int/32370)

<div class="topic-metadata">

**Author:** [@M\_F](https://forum.ansible.com/u/M_F)\
**Replies:** 3\
**Last updated:** [March 3, 2020, 8:16pm UTC](https://forum.ansible.com/t/simple-math-with-string-to-int/32370 "2020-03-03T20:16:06Z")

</div>

Hi All, Im having trouble with setting a fact, doing some math, and having the result be an INT To start, i set the base Var set\_fact: SOMENUMBER = 8 Ansible stores this value as a String Later, i need to divide tha…

---

## [Sum a list of items received](https://forum.ansible.com/t/sum-a-list-of-items-received/32342)

<div class="topic-metadata">

**Author:** [@harry\_devine](https://forum.ansible.com/u/harry_devine)\
**Replies:** 10\
**Last updated:** [March 3, 2020, 2:31pm UTC](https://forum.ansible.com/t/sum-a-list-of-items-received/32342 "2020-03-03T14:31:28Z")

</div>

I’m using the gluster\_heal\_info module to check the heal status of a gluster volume. What I’d like to do is gather the “no\_of\_entries” parameter, sum them up, and it if it is 0, move to the next step of stopping gluster …

---

## [Checkpoint Interface details](https://forum.ansible.com/t/checkpoint-interface-details/32271)

<div class="topic-metadata">

**Author:** [@Pushparaj\_Gothandam](https://forum.ansible.com/u/Pushparaj_Gothandam)\
**Replies:** 5\
**Last updated:** [March 3, 2020, 11:30am UTC](https://forum.ansible.com/t/checkpoint-interface-details/32271 "2020-03-03T11:30:37Z")

</div>

Hi , Has anybody generated interface report for checkpoint firewalls using Ansible? Thanks

---

## [Unable to read variable in a loop using include\_vars.](https://forum.ansible.com/t/unable-to-read-variable-in-a-loop-using-include-vars/32371)

<div class="topic-metadata">

**Author:** [@Shifa\_Shaikh](https://forum.ansible.com/u/Shifa_Shaikh)\
**Replies:** 6\
**Last updated:** [March 3, 2020, 10:11am UTC](https://forum.ansible.com/t/unable-to-read-variable-in-a-loop-using-include-vars/32371 "2020-03-03T10:11:18Z")

</div>

Below is my playbook which loads variables and passes it to ls command on remote hosts. \` name: Load repository include\_vars: file=“{{ playbook\_dir }}/vars/listing.yml” name=user1 set\_fact: allinonecmd: “{{ al…

---

## [ping windows - ssl: the specified credentials were rejected by the serve](https://forum.ansible.com/t/ping-windows-ssl-the-specified-credentials-were-rejected-by-the-serve/23564)

<div class="topic-metadata">

**Author:** [@John\_Norris](https://forum.ansible.com/u/John_Norris)\
**Replies:** 7\
**Last updated:** [March 3, 2020, 10:02am UTC](https://forum.ansible.com/t/ping-windows-ssl-the-specified-credentials-were-rejected-by-the-serve/23564 "2020-03-03T10:02:32Z")

</div>

Hi I am running ansible 2.1.2.0 on centos7. The windows machine is running windows 10 with powershell 5. I have installed pywinrm-0.2.2, included windows hostnames in the inventory file and also added group variables t…

---

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

---

## [endless circulation](https://forum.ansible.com/t/endless-circulation/32367)

<div class="topic-metadata">

**Author:** [@YiCheng\_Song](https://forum.ansible.com/u/YiCheng_Song)\
**Replies:** 0\
**Last updated:** [March 2, 2020, 7:38pm UTC](https://forum.ansible.com/t/endless-circulation/32367 "2020-03-02T19:38:48Z")

</div>

---

## [Contributing problem](https://forum.ansible.com/t/contributing-problem/32366)

<div class="topic-metadata">

**Author:** [@YiCheng\_Song](https://forum.ansible.com/u/YiCheng_Song)\
**Replies:** 0\
**Last updated:** [March 2, 2020, 7:29pm UTC](https://forum.ansible.com/t/contributing-problem/32366 "2020-03-02T19:29:36Z")

</div>

I want to add some features on AWX. I have installed https://github.com/ansible/awx/blob/devel/CONTRIBUTING.md. but I can not access the AWX web interface. regards

---

## [ansible/ansible devel branch has been frozen](https://forum.ansible.com/t/ansible-ansible-devel-branch-has-been-frozen/32365)

<div class="topic-metadata">

**Author:** [@sivel](https://forum.ansible.com/u/sivel)\
**Replies:** 0\
**Last updated:** [March 2, 2020, 4:53pm UTC](https://forum.ansible.com/t/ansible-ansible-devel-branch-has-been-frozen/32365 "2020-03-02T16:53:38Z")

</div>

The devel branch of ansible/ansible has been frozen for the next 3 weeks. No changes will be accepted into the temporary branch until after March 11. The temporary branch may have to be deleted and recreated from now th…

---

## [Cannot run playbook inside AWX](https://forum.ansible.com/t/cannot-run-playbook-inside-awx/32269)

<div class="topic-metadata">

**Author:** [@A\_Constantin](https://forum.ansible.com/u/A_Constantin)\
**Replies:** 4\
**Last updated:** [March 2, 2020, 4:29pm UTC](https://forum.ansible.com/t/cannot-run-playbook-inside-awx/32269 "2020-03-02T16:29:49Z")

</div>

SUMMARY I am running AWX Docker setup and I just try to run a simple playbook: https://galaxy.ansible.com/dapiced/patch\_update\_yum/patch\_update\_yum Which from the command line it runs perfectly, it does what it should, …

---

## [script to scan projects for ansible 2.10 compatibility issues?](https://forum.ansible.com/t/script-to-scan-projects-for-ansible-2-10-compatibility-issues/32364)

<div class="topic-metadata">

**Author:** [@Richard\_Megginson](https://forum.ansible.com/u/Richard_Megginson)\
**Replies:** 0\
**Last updated:** [March 2, 2020, 4:16pm UTC](https://forum.ansible.com/t/script-to-scan-projects-for-ansible-2-10-compatibility-issues/32364 "2020-03-02T16:16:19Z")

</div>

Is there a script to scan projects for ansible 2.10 compatibility issues? For example: - use of non-core ansible modules - use of "bare" module/role name where FQCN will be needed I'd like to add something like that …

---

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

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

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