# Ansible Project

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

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

**Page:** 138

---

## [How mount the volume without changing the mount options](https://forum.ansible.com/t/how-mount-the-volume-without-changing-the-mount-options/32458)

<div class="topic-metadata">

**Author:** [@Suresh\_Karpurapu](https://forum.ansible.com/u/Suresh_Karpurapu)\
**Replies:** 1\
**Last updated:** [March 14, 2020, 3:52pm UTC](https://forum.ansible.com/t/how-mount-the-volume-without-changing-the-mount-options/32458 "2020-03-14T15:52:20Z")

</div>

we have the multiple nfs volumes which have different mount options. Hence, I don’t want to change the mount options when we are doing the nfs volume migration. Can you please suggest if there any option to ignore to cha…

---

## [Warning while running an ansible ping against the windows hosts](https://forum.ansible.com/t/warning-while-running-an-ansible-ping-against-the-windows-hosts/32459)

<div class="topic-metadata">

**Author:** [@Raj5](https://forum.ansible.com/u/Raj5)\
**Replies:** 0\
**Last updated:** [March 13, 2020, 9:43pm UTC](https://forum.ansible.com/t/warning-while-running-an-ansible-ping-against-the-windows-hosts/32459 "2020-03-13T21:43:37Z")

</div>

Hello, I received an error earlier that my Ansible master unable to connect to windows hosts by throwing below error. \` msg": “winrm or requests is not installed: cannot import name UnrewindableBodyError” \` by runni…

---

## [ansible windows](https://forum.ansible.com/t/ansible-windows/32456)

<div class="topic-metadata">

**Author:** [@Andrew\_Meyer1](https://forum.ansible.com/u/Andrew_Meyer1)\
**Replies:** 4\
**Last updated:** [March 13, 2020, 9:21pm UTC](https://forum.ansible.com/t/ansible-windows/32456 "2020-03-13T21:21:12Z")

</div>

Getting the following error when trying to install the ansible windows collection. I am running Ansible 2.9.6 from pip3 on CentOS 8. $ ansible-galaxy collection install ansible.windows Process install dependency map ER…

---

## [Ansible password\_hash issue](https://forum.ansible.com/t/ansible-password-hash-issue/32428)

<div class="topic-metadata">

**Author:** [@Bala\_Mutyam](https://forum.ansible.com/u/Bala_Mutyam)\
**Replies:** 15\
**Last updated:** [March 13, 2020, 3:40pm UTC](https://forum.ansible.com/t/ansible-password-hash-issue/32428 "2020-03-13T15:40:06Z")

</div>

Hi Everyone, I’m trying to create a task for below command but it’s not working, can you help me how to make it work please? Command: update users set crypted\_password = '$2a$12$uCkkXmhW5ThVK8mpBvnXOOJRLd64LJeHTeCkSuB…

---

## [rescue block does not print message despite being invoked](https://forum.ansible.com/t/rescue-block-does-not-print-message-despite-being-invoked/32451)

<div class="topic-metadata">

**Author:** [@Shifa\_Shaikh](https://forum.ansible.com/u/Shifa_Shaikh)\
**Replies:** 4\
**Last updated:** [March 13, 2020, 8:05am UTC](https://forum.ansible.com/t/rescue-block-does-not-print-message-despite-being-invoked/32451 "2020-03-13T08:05:07Z")

</div>

Hi, I have a playbook with a task that greps for a string in a file. If the string is found the block should fail which is the case. However, in the fail module it fails to print the message. Here is my playbook: Here…

---

## [ansible with\_sequence result message hide](https://forum.ansible.com/t/ansible-with-sequence-result-message-hide/32452)

<div class="topic-metadata">

**Author:** [@SeungJoon](https://forum.ansible.com/u/SeungJoon)\
**Replies:** 0\
**Last updated:** [March 13, 2020, 4:12am UTC](https://forum.ansible.com/t/ansible-with-sequence-result-message-hide/32452 "2020-03-13T04:12:33Z")

</div>

I want to hide the result message of with\_sequence

---

## [Logging to readable format](https://forum.ansible.com/t/logging-to-readable-format/32449)

<div class="topic-metadata">

**Author:** [@RayO1](https://forum.ansible.com/u/RayO1)\
**Replies:** 4\
**Last updated:** [March 12, 2020, 9:20pm UTC](https://forum.ansible.com/t/logging-to-readable-format/32449 "2020-03-12T21:20:20Z")

</div>

Hi. I have a very basic cisco IOS playbook i’m working on and when I log the output to a file I cannot read the format. I read a few threads that mention enabling a callback option in the ansible.cfg but that does not se…

---

## [gcp\_compute\_\* modules: trying to link using selfLink](https://forum.ansible.com/t/gcp-compute-modules-trying-to-link-using-selflink/31891)

<div class="topic-metadata">

**Author:** [@Lujaina\_Abu\_Erban](https://forum.ansible.com/u/Lujaina_Abu_Erban)\
**Replies:** 4\
**Last updated:** [March 12, 2020, 3:30pm UTC](https://forum.ansible.com/t/gcp-compute-modules-trying-to-link-using-selflink/31891 "2020-03-12T15:30:27Z")

</div>

I am new to using Ansible and the gcp\_\* modules. This is in relation to making use of Google Cloud Platform and Ansible. Let us say that I have two projects: HOST\_PROJECT and SERVICE\_PROJECT. They are both part of the …

---

## [no hosts matched](https://forum.ansible.com/t/no-hosts-matched/32443)

<div class="topic-metadata">

**Author:** [@sandy.hung](https://forum.ansible.com/u/sandy.hung)\
**Replies:** 5\
**Last updated:** [March 12, 2020, 12:01pm UTC](https://forum.ansible.com/t/no-hosts-matched/32443 "2020-03-12T12:01:29Z")

</div>

Dear all: I have been normal before but this error message appeared in a few week can you help me. thanks. sandy@test-VirtualBox:~$ sudo ansible-playbook nfsclient.yml -i myinventory \[WARNING\]: Unable to parse /home…

---

## [Inventory gathering including docker version](https://forum.ansible.com/t/inventory-gathering-including-docker-version/32439)

<div class="topic-metadata">

**Author:** [@Kuber\_User](https://forum.ansible.com/u/Kuber_User)\
**Replies:** 2\
**Last updated:** [March 12, 2020, 9:11am UTC](https://forum.ansible.com/t/inventory-gathering-including-docker-version/32439 "2020-03-12T09:11:36Z")

</div>

HI, I am doing a similar script to gather inventory of remote systems. I have the input list in my inventory file as the list of remote IPs. I need to extract the fields like CPU, RAM, Kernel version, and the docker v…

---

## [json\_query/jmespath filtering question](https://forum.ansible.com/t/json-query-jmespath-filtering-question/32437)

<div class="topic-metadata">

**Author:** [@nschende](https://forum.ansible.com/u/nschende)\
**Replies:** 7\
**Last updated:** [March 11, 2020, 11:39pm UTC](https://forum.ansible.com/t/json-query-jmespath-filtering-question/32437 "2020-03-11T23:39:44Z")

</div>

Trying to wrap my head about how to query json results from a URI call & could use some guidance. I am guessing there are plenty in this group which this will be an easy question for. I am registering the json response …

---

## [Register variable not capturing](https://forum.ansible.com/t/register-variable-not-capturing/32442)

<div class="topic-metadata">

**Author:** [@Sivaraman\_P](https://forum.ansible.com/u/Sivaraman_P)\
**Replies:** 4\
**Last updated:** [March 11, 2020, 4:56pm UTC](https://forum.ansible.com/t/register-variable-not-capturing/32442 "2020-03-11T16:56:38Z")

</div>

Hi I have the below playbook to stop and start the service using the script present in the the target machine, tasks: - name : stop command: ./coconf.sh -stop & register: stop\_details - debug: var=stop\_d…

---

## [How to use the playbooks and tasks folders in a Collection](https://forum.ansible.com/t/how-to-use-the-playbooks-and-tasks-folders-in-a-collection/32444)

<div class="topic-metadata">

**Author:** [@Andrew\_Garner](https://forum.ansible.com/u/Andrew_Garner)\
**Replies:** 1\
**Last updated:** [March 11, 2020, 4:54pm UTC](https://forum.ansible.com/t/how-to-use-the-playbooks-and-tasks-folders-in-a-collection/32444 "2020-03-11T16:54:49Z")

</div>

Hi, I see on the documentation for Developing Collections (https://docs.ansible.com/ansible/latest/dev\_guide/developing\_collections.html#playbooks-directory) there is a section for playbooks, but there are no details th…

---

## [Testing Authentication with Ansible](https://forum.ansible.com/t/testing-authentication-with-ansible/31762)

<div class="topic-metadata">

**Author:** [@Cade\_Lambert](https://forum.ansible.com/u/Cade_Lambert)\
**Replies:** 5\
**Last updated:** [March 11, 2020, 12:16pm UTC](https://forum.ansible.com/t/testing-authentication-with-ansible/31762 "2020-03-11T12:16:12Z")

</div>

We have a CMS web application that we’d like to ensure is up and accessible. I was using the URI module to check the login page for a proper response code, but I’d like to go a step further and test that a set of credent…

---

## [docker\_secret module does not behave the same as docker recommended approach](https://forum.ansible.com/t/docker-secret-module-does-not-behave-the-same-as-docker-recommended-approach/32436)

<div class="topic-metadata">

**Author:** [@Matthew\_Wimpelberg](https://forum.ansible.com/u/Matthew_Wimpelberg)\
**Replies:** 1\
**Last updated:** [March 11, 2020, 10:10am UTC](https://forum.ansible.com/t/docker-secret-module-does-not-behave-the-same-as-docker-recommended-approach/32436 "2020-03-11T10:10:36Z")

</div>

I recently moved my Docker Swarm setup to Ansible and found an issue with the docker\_secret module. In each container my code runs cat /run/secrets/\* \> all\_secrets to concatenate all of the secrets into a file where each…

---

## [Updating list of dictionary values from another list](https://forum.ansible.com/t/updating-list-of-dictionary-values-from-another-list/32440)

<div class="topic-metadata">

**Author:** [@soumya\_dutta](https://forum.ansible.com/u/soumya_dutta)\
**Replies:** 0\
**Last updated:** [March 11, 2020, 3:50am UTC](https://forum.ansible.com/t/updating-list-of-dictionary-values-from-another-list/32440 "2020-03-11T03:50:18Z")

</div>

Hi all, I have a list of dictionaries where I need to update a value sequentially from another list. 1st dictionary: Xyz: 1: Name: abc State: 2: Name: cdf State: Now I have a list as below: …

---

## [Weird Kerberos Issues with WinRM and a new host spun up from vmware\_guest](https://forum.ansible.com/t/weird-kerberos-issues-with-winrm-and-a-new-host-spun-up-from-vmware-guest/32435)

<div class="topic-metadata">

**Author:** [@Dave\_York](https://forum.ansible.com/u/Dave_York)\
**Replies:** 4\
**Last updated:** [March 10, 2020, 9:53pm UTC](https://forum.ansible.com/t/weird-kerberos-issues-with-winrm-and-a-new-host-spun-up-from-vmware-guest/32435 "2020-03-10T21:53:57Z")

</div>

Hi Ansible Community. I’ve been struggling with an issue I’ve actually posted about here before. It’s more of an annoyance than anything but I’d really love to get past it, as I’m trying to demo Infrastructure-as-code to…

---

## [Module nxos\_user not recognizing fails saying role is invalid](https://forum.ansible.com/t/module-nxos-user-not-recognizing-fails-saying-role-is-invalid/29642)

<div class="topic-metadata">

**Author:** [@Eliezer\_Rodriguez](https://forum.ansible.com/u/Eliezer_Rodriguez)\
**Replies:** 2\
**Last updated:** [March 10, 2020, 6:06pm UTC](https://forum.ansible.com/t/module-nxos-user-not-recognizing-fails-saying-role-is-invalid/29642 "2020-03-10T18:06:55Z")

</div>

Hi everybody, I wrote this playbook to create a new role in Nexus OS and then create a new user to use that role. The role gets created but when it’s time for the second task to create the role it fails with a non-exis…

---

## [ansible to create multiple security groups with os\_security\_group module](https://forum.ansible.com/t/ansible-to-create-multiple-security-groups-with-os-security-group-module/32430)

<div class="topic-metadata">

**Author:** [@Robert2](https://forum.ansible.com/u/Robert2)\
**Replies:** 0\
**Last updated:** [March 10, 2020, 3:03pm UTC](https://forum.ansible.com/t/ansible-to-create-multiple-security-groups-with-os-security-group-module/32430 "2020-03-10T15:03:35Z")

</div>

Hey everyone, Has anyone been successful in using the openstack module os\_security\_group to create a list of security groups? Here is what I have: — - hosts: localhost gather\_facts: no vars\_prompt: - name: usernam…

---

## [Is a file level group possible for multiple inventory files in directory?](https://forum.ansible.com/t/is-a-file-level-group-possible-for-multiple-inventory-files-in-directory/32426)

<div class="topic-metadata">

**Author:** [@Josef\_Fortier](https://forum.ansible.com/u/Josef_Fortier)\
**Replies:** 0\
**Last updated:** [March 9, 2020, 8:48pm UTC](https://forum.ansible.com/t/is-a-file-level-group-possible-for-multiple-inventory-files-in-directory/32426 "2020-03-09T20:48:53Z")

</div>

I have two different organizations managed in two separate files, with some overlap in roles. I’m currently manually creating groups within each file target hosts in that file (conceptually “organization”). I’d like to…

---

## [apt-add-repository ppa:ansible/ansible timeout?](https://forum.ansible.com/t/apt-add-repository-ppa-ansible-ansible-timeout/32425)

<div class="topic-metadata">

**Author:** [@Joshua\_Goldman](https://forum.ansible.com/u/Joshua_Goldman)\
**Replies:** 1\
**Last updated:** [March 9, 2020, 7:26pm UTC](https://forum.ansible.com/t/apt-add-repository-ppa-ansible-ansible-timeout/32425 "2020-03-09T19:26:21Z")

</div>

Is adding the repository timing out for anyone else?

---

## [Unexpected parameter type in new Ansible role](https://forum.ansible.com/t/unexpected-parameter-type-in-new-ansible-role/32424)

<div class="topic-metadata">

**Author:** [@harry\_devine](https://forum.ansible.com/u/harry_devine)\
**Replies:** 1\
**Last updated:** [March 9, 2020, 7:23pm UTC](https://forum.ansible.com/t/unexpected-parameter-type-in-new-ansible-role/32424 "2020-03-09T19:23:15Z")

</div>

I’m trying to create a role that will update Satellite content views using the Foreman/Katello modules. Here’s what the role tree looks like: \[root@server1 /etc/ansible/roles/foreman\_content\_views\]#tree . ├── defaults …

---

## [Unable to substitute variable inside variable](https://forum.ansible.com/t/unable-to-substitute-variable-inside-variable/32420)

<div class="topic-metadata">

**Author:** [@Sanjay1](https://forum.ansible.com/u/Sanjay1)\
**Replies:** 2\
**Last updated:** [March 9, 2020, 2:00pm UTC](https://forum.ansible.com/t/unable-to-substitute-variable-inside-variable/32420 "2020-03-09T14:00:04Z")

</div>

Any idea/comments why this doesn’t work? Installed aversion - 2.9.0 Playbook : test.yml

---

## [Jinja2 iterate over strings and lists](https://forum.ansible.com/t/jinja2-iterate-over-strings-and-lists/32409)

<div class="topic-metadata">

**Author:** [@Quentin\_Aveno](https://forum.ansible.com/u/Quentin_Aveno)\
**Replies:** 2\
**Last updated:** [March 9, 2020, 12:54pm UTC](https://forum.ansible.com/t/jinja2-iterate-over-strings-and-lists/32409 "2020-03-09T12:54:30Z")

</div>

Hi guys, I got a question concerning list of lists and strings. I have something like : - name: test vars: test1: "test1" test2: - "test21" - "test22" test3: - "{{ test1 }}" …

---

## [using ansible facts in key value](https://forum.ansible.com/t/using-ansible-facts-in-key-value/32417)

<div class="topic-metadata">

**Author:** [@Azir\_Guleroglu](https://forum.ansible.com/u/Azir_Guleroglu)\
**Replies:** 2\
**Last updated:** [March 8, 2020, 2:08pm UTC](https://forum.ansible.com/t/using-ansible-facts-in-key-value/32417 "2020-03-08T14:08:58Z")

</div>

Hello, I try to use ansible facts in variable file but i get below error. Anyone how any idea how can i use my variable in to the playbook fatal: \[ANSIBLET01\]: FAILED! =\> {“ansible\_facts”: {}, “ansible\_included\_var\_fil…

---

## [Help on Ansible gcp\_compute\_snapshot module](https://forum.ansible.com/t/help-on-ansible-gcp-compute-snapshot-module/32407)

<div class="topic-metadata">

**Author:** [@FRANK\_L](https://forum.ansible.com/u/FRANK_L)\
**Replies:** 1\
**Last updated:** [March 8, 2020, 1:55pm UTC](https://forum.ansible.com/t/help-on-ansible-gcp-compute-snapshot-module/32407 "2020-03-08T13:55:37Z")

</div>

Hi Ansible helpers, Could someone help on how to use the Ansible gcp\_compute\_snapshot module? I created an Ansible playbook as bollow but ran into one error during the snapshot on SUSE 12.3. The error was "fatal: \[patc…

---

## [ansible-galaxy git clone failures](https://forum.ansible.com/t/ansible-galaxy-git-clone-failures/25231)

<div class="topic-metadata">

**Author:** [@Prasoon\_Majumdar](https://forum.ansible.com/u/Prasoon_Majumdar)\
**Replies:** 5\
**Last updated:** [March 8, 2020, 1:09pm UTC](https://forum.ansible.com/t/ansible-galaxy-git-clone-failures/25231 "2020-03-08T13:09:02Z")

</div>

Hello, I was trying to clone roles using ansible-galaxy cli from private repo, requirements file : working.yml src: git+https://git@git.xxxxxx.com/devops/ansible-role-fpm.git name: watever.fpm version: master ansi…

---

## [ansible variable in number](https://forum.ansible.com/t/ansible-variable-in-number/32416)

<div class="topic-metadata">

**Author:** [@SeungJoon](https://forum.ansible.com/u/SeungJoon)\
**Replies:** 4\
**Last updated:** [March 8, 2020, 7:17am UTC](https://forum.ansible.com/t/ansible-variable-in-number/32416 "2020-03-08T07:17:38Z")

</div>

I want to put the numbers 1 to 10 in the {{}} variable but it fails How to put numbers from 1 to 10 in a variable The condition does not use with\_item playbook example : name: Alarm check when: ‘“{{ }} alarms curre…

---

## [How to specify foldername with wildcard inside a jinja template](https://forum.ansible.com/t/how-to-specify-foldername-with-wildcard-inside-a-jinja-template/32414)

<div class="topic-metadata">

**Author:** [@Shifa\_Shaikh](https://forum.ansible.com/u/Shifa_Shaikh)\
**Replies:** 1\
**Last updated:** [March 7, 2020, 5:34pm UTC](https://forum.ansible.com/t/how-to-specify-foldername-with-wildcard-inside-a-jinja-template/32414 "2020-03-07T17:34:27Z")

</div>

I wish to check using if condition inside a jinja template where any of the folders starting with the name “dump\_” has any file starting with the name bad For for single folder the below jinja template works as suggeste…

---

## [Cloud formation - minimum BOTO version](https://forum.ansible.com/t/cloud-formation-minimum-boto-version/32413)

<div class="topic-metadata">

**Author:** [@Harish\_S](https://forum.ansible.com/u/Harish_S)\
**Replies:** 0\
**Last updated:** [March 7, 2020, 2:19am UTC](https://forum.ansible.com/t/cloud-formation-minimum-boto-version/32413 "2020-03-07T02:19:14Z")

</div>

Hi, The cloud formation documentation indicates both BOTO & BOTO3 as a requirement. It seems a bit ambiguous as they are two different versions - is it BOTO or BOTO3 to be exact? From amazon.aws.cloudformation module –…

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

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