# Ansible Project

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

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

**Page:** 176

---

## [ansible find with\_items register results](https://forum.ansible.com/t/ansible-find-with-items-register-results/30916)

<div class="topic-metadata">

**Author:** [@Adam](https://forum.ansible.com/u/Adam)\
**Replies:** 0\
**Last updated:** [July 31, 2019, 12:46pm UTC](https://forum.ansible.com/t/ansible-find-with-items-register-results/30916 "2019-07-31T12:46:20Z")

</div>

I’m documenting this here for posterity because I’ve been struggling with a solution off & on for months. Of course, the solution was staring me in the face the whole time, but I couldn’t see it. When using with\_items/l…

---

## [Ansible for Openstack](https://forum.ansible.com/t/ansible-for-openstack/30915)

<div class="topic-metadata">

**Author:** [@Rahul\_Kumar1](https://forum.ansible.com/u/Rahul_Kumar1)\
**Replies:** 0\
**Last updated:** [July 31, 2019, 10:04am UTC](https://forum.ansible.com/t/ansible-for-openstack/30915 "2019-07-31T10:04:55Z")

</div>

Hi All, I am trying to create complete stack of Openstack as below snippet: os\_server: name: “{{ prefix }}-{{ item.name }}” state: present key\_name: “{{ item.key }}” availability\_zone: “{{ item.availability\_zone }}…

---

## [import\_role from another directory](https://forum.ansible.com/t/import-role-from-another-directory/30912)

<div class="topic-metadata">

**Author:** [@user89](https://forum.ansible.com/u/user89)\
**Replies:** 4\
**Last updated:** [July 31, 2019, 8:25am UTC](https://forum.ansible.com/t/import-role-from-another-directory/30912 "2019-07-31T08:25:43Z")

</div>

Hello team! My directory ansible-repo follow: ├── base │ ├── group\_vars │ │ └── all │ ├── roles │ │ └── common │ │ ├── handlers │ │ │ └── main.yml │ │ ├── tasks │ │ │ └── main.yml │ │ └── templates │ │ └── nt…

---

## [not able to echo value of hostvars in another host](https://forum.ansible.com/t/not-able-to-echo-value-of-hostvars-in-another-host/30905)

<div class="topic-metadata">

**Author:** [@Kunalsing\_Thakur](https://forum.ansible.com/u/Kunalsing_Thakur)\
**Replies:** 2\
**Last updated:** [July 31, 2019, 4:28am UTC](https://forum.ansible.com/t/not-able-to-echo-value-of-hostvars-in-another-host/30905 "2019-07-31T04:28:59Z")

</div>

---

## [Isn't password declared in plain text under vars  when using kerberos ?](https://forum.ansible.com/t/isnt-password-declared-in-plain-text-under-vars-when-using-kerberos/30908)

<div class="topic-metadata">

**Author:** [@Neeraj\_Shah](https://forum.ansible.com/u/Neeraj_Shah)\
**Replies:** 2\
**Last updated:** [July 31, 2019, 12:03am UTC](https://forum.ansible.com/t/isnt-password-declared-in-plain-text-under-vars-when-using-kerberos/30908 "2019-07-31T00:03:59Z")

</div>

Hi All, As per official docs, using ansible to manage windows hosts requires us to specify the password in plain text for ansible\_winrm\_transport variable in the hosts file or the group\_vars file. My question or confusi…

---

## [Cannot reach newly created Windows VM](https://forum.ansible.com/t/cannot-reach-newly-created-windows-vm/30896)

<div class="topic-metadata">

**Author:** [@Walter\_Kessler](https://forum.ansible.com/u/Walter_Kessler)\
**Replies:** 3\
**Last updated:** [July 30, 2019, 11:49pm UTC](https://forum.ansible.com/t/cannot-reach-newly-created-windows-vm/30896 "2019-07-30T23:49:15Z")

</div>

I currently have a Workflow in Tower that does what I want, but it is doing so via a cumbersome method: First playbook creates a VM VMware Inventory sync Run additional playbooks (that may now be targeting alrea…

---

## [How do i respond to a same response with different input using ansible expect module](https://forum.ansible.com/t/how-do-i-respond-to-a-same-response-with-different-input-using-ansible-expect-module/30899)

<div class="topic-metadata">

**Author:** [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Replies:** 3\
**Last updated:** [July 30, 2019, 9:46pm UTC](https://forum.ansible.com/t/how-do-i-respond-to-a-same-response-with-different-input-using-ansible-expect-module/30899 "2019-07-30T21:46:44Z")

</div>

You use a list responses: Enter one: "A" Enter next: - "B" - "c"

---

## [Issue with nmcli command](https://forum.ansible.com/t/issue-with-nmcli-command/30909)

<div class="topic-metadata">

**Author:** [@harry\_devine](https://forum.ansible.com/u/harry_devine)\
**Replies:** 0\
**Last updated:** [July 30, 2019, 8:08pm UTC](https://forum.ansible.com/t/issue-with-nmcli-command/30909 "2019-07-30T20:08:29Z")

</div>

We have a playbook where we are trying to create a bonded interface between 2 physical interfaces. We are specifying the connection name (conn\_name) but we get errors stating that the interface file could not be found. F…

---

## [Yet another dynamic variable problem](https://forum.ansible.com/t/yet-another-dynamic-variable-problem/30851)

<div class="topic-metadata">

**Author:** [@mark.tovey](https://forum.ansible.com/u/mark.tovey)\
**Replies:** 6\
**Last updated:** [July 30, 2019, 4:28pm UTC](https://forum.ansible.com/t/yet-another-dynamic-variable-problem/30851 "2019-07-30T16:28:27Z")

</div>

I am trying to generate a variable name dynamically, but so far I have been stymied. I have lists whose names are based upon the OS name: myos7: os7package1 os7package2 os7package3 myos8: os8package1 os8package…

---

## [/etc/ntp.conf settings...?](https://forum.ansible.com/t/etc-ntp-conf-settings/30893)

<div class="topic-metadata">

**Author:** [@Mike\_Eggleston](https://forum.ansible.com/u/Mike_Eggleston)\
**Replies:** 3\
**Last updated:** [July 30, 2019, 12:37pm UTC](https://forum.ansible.com/t/etc-ntp-conf-settings/30893 "2019-07-30T12:37:42Z")

</div>

I haven’t figured (yet) how to search the forum if this has been answered (must have been; this is a common file). Is there a common playbook or module for setting NTP settings? Mike

---

## [Library Packages/Perl Modules](https://forum.ansible.com/t/library-packages-perl-modules/30903)

<div class="topic-metadata">

**Author:** [@Keith\_Mills](https://forum.ansible.com/u/Keith_Mills)\
**Replies:** 0\
**Last updated:** [July 30, 2019, 12:22pm UTC](https://forum.ansible.com/t/library-packages-perl-modules/30903 "2019-07-30T12:22:41Z")

</div>

I am installing required packages (and some Perl modules) with\_items using default package manager. I receive the following error: failed: \[abldeb7ex6401\] (item=libssl-dev) =\> {“ansible\_loop\_var”: “item”, “cache\_update\_…

---

## [Ansible for Openstack](https://forum.ansible.com/t/ansible-for-openstack/30900)

<div class="topic-metadata">

**Author:** [@Rahul\_Kumar1](https://forum.ansible.com/u/Rahul_Kumar1)\
**Replies:** 1\
**Last updated:** [July 30, 2019, 11:36am UTC](https://forum.ansible.com/t/ansible-for-openstack/30900 "2019-07-30T11:36:33Z")

</div>

Hi Team, Currently I am trying to provision Openstack resources using Ansible with sample template snippet as below: os\_server: state: present cloud: smscrhosp name: test-instance image: CentOS-7-x86\_64-GenericClou…

---

## [What would be the checkpoint firewall ansible\_network\_os](https://forum.ansible.com/t/what-would-be-the-checkpoint-firewall-ansible-network-os/30886)

<div class="topic-metadata">

**Author:** [@Tribhuvan\_Yadav](https://forum.ansible.com/u/Tribhuvan_Yadav)\
**Replies:** 6\
**Last updated:** [July 30, 2019, 2:20am UTC](https://forum.ansible.com/t/what-would-be-the-checkpoint-firewall-ansible-network-os/30886 "2019-07-30T02:20:35Z")

</div>

any idea what should be the ansible\_network\_os for checkpoint. I am getting below error while running my playbook TASK \[SHOW COMMAND\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [Ansible Authentication or permission failure](https://forum.ansible.com/t/ansible-authentication-or-permission-failure/30897)

<div class="topic-metadata">

**Author:** [@kamran\_taherpour](https://forum.ansible.com/u/kamran_taherpour)\
**Replies:** 1\
**Last updated:** [July 29, 2019, 11:20pm UTC](https://forum.ansible.com/t/ansible-authentication-or-permission-failure/30897 "2019-07-29T23:20:35Z")

</div>

Hi, I’m receiving following error for Ansible ping command \<10.26.64.67\> Failed to connect to the host via ssh: OpenSSH\_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017 debug1: Reading configuration data /etc/ssh/ssh\_config de…

---

## [The destination directory (/sys/module/nvme\_core/parameters) is not writable by the current user](https://forum.ansible.com/t/the-destination-directory-sys-module-nvme-core-parameters-is-not-writable-by-the-current-user/30895)

<div class="topic-metadata">

**Author:** [@CaptainBrewing](https://forum.ansible.com/u/CaptainBrewing)\
**Replies:** 3\
**Last updated:** [July 29, 2019, 9:58pm UTC](https://forum.ansible.com/t/the-destination-directory-sys-module-nvme-core-parameters-is-not-writable-by-the-current-user/30895 "2019-07-29T21:58:52Z")

</div>

Hello, I am using an Ansible Role to copy a template file. It is not allowing me saying… “The destination directory (/sys/module/nvme\_core/parameters) is not writable by the current user” Here is the execution of the p…

---

## [CPAN Modules](https://forum.ansible.com/t/cpan-modules/30862)

<div class="topic-metadata">

**Author:** [@Keith\_Mills](https://forum.ansible.com/u/Keith_Mills)\
**Replies:** 8\
**Last updated:** [July 29, 2019, 6:50pm UTC](https://forum.ansible.com/t/cpan-modules/30862 "2019-07-29T18:50:46Z")

</div>

I have my playbook for CPAN. Right now it only works for Debian. I need it to work for SLES/RHEL/UBUNTU also but I don’t know how to add them into the playbook. Can someone please help! What I have: cpan-modules.yaml …

---

## [Getting vault ID passwords in playbook](https://forum.ansible.com/t/getting-vault-id-passwords-in-playbook/30894)

<div class="topic-metadata">

**Author:** [@Igor\_Gnatenko](https://forum.ansible.com/u/Igor_Gnatenko)\
**Replies:** 0\
**Last updated:** [July 29, 2019, 6:44pm UTC](https://forum.ansible.com/t/getting-vault-id-passwords-in-playbook/30894 "2019-07-29T18:44:31Z")

</div>

Hello, I would like to set up one host to run ansible-pull, however since credentials are encrypted with ansible-vault I need some way to deliver those credentials to that host. Is there way to get passed passwords from…

---

## [Am new to Ansible and i need a coach](https://forum.ansible.com/t/am-new-to-ansible-and-i-need-a-coach/30716)

<div class="topic-metadata">

**Author:** [@Chukwu\_Gabriel](https://forum.ansible.com/u/Chukwu_Gabriel)\
**Replies:** 1\
**Last updated:** [July 29, 2019, 5:05pm UTC](https://forum.ansible.com/t/am-new-to-ansible-and-i-need-a-coach/30716 "2019-07-29T17:05:36Z")

</div>

Good Afternoon Sir, my name is a Gabriel Chukwu an undergraduate of Electrical Electronics Engineering. am new to ansible and I have a task I have been working on, I would like you to be my private mentor and tutor to he…

---

## [Module synchronize in Ansible](https://forum.ansible.com/t/module-synchronize-in-ansible/30892)

<div class="topic-metadata">

**Author:** [@Karther](https://forum.ansible.com/u/Karther)\
**Replies:** 1\
**Last updated:** [July 29, 2019, 3:03pm UTC](https://forum.ansible.com/t/module-synchronize-in-ansible/30892 "2019-07-29T15:03:59Z")

</div>

Hey guy !! I have on problem, i want synchronize two repertory who are in destination host (source and destination), my task is : name: “Copie de la partie front-office” synchronize: src: /var/apps/hospitalis-fronto…

---

## [Converting a multi-lines string into a list](https://forum.ansible.com/t/converting-a-multi-lines-string-into-a-list/30889)

<div class="topic-metadata">

**Author:** [@actionmystique](https://forum.ansible.com/u/actionmystique)\
**Replies:** 2\
**Last updated:** [July 29, 2019, 12:22pm UTC](https://forum.ansible.com/t/converting-a-multi-lines-string-into-a-list/30889 "2019-07-29T12:22:33Z")

</div>

A call to ansible uri module returns a multi-line string: \` set\_fact: fact: “{{ return\_uri\_json.body }}” ok: \[target\] =\> { “ansible\_facts”: { “fact”: “line\_1\\nline\_2\\nline\_3\\nline\_4\\n” }, “changed”: false } \` …

---

## [Get VMWare Hypervisor Maintenance Mode state](https://forum.ansible.com/t/get-vmware-hypervisor-maintenance-mode-state/30881)

<div class="topic-metadata">

**Author:** [@MKPhil](https://forum.ansible.com/u/MKPhil)\
**Replies:** 3\
**Last updated:** [July 29, 2019, 7:40am UTC](https://forum.ansible.com/t/get-vmware-hypervisor-maintenance-mode-state/30881 "2019-07-29T07:40:05Z")

</div>

I want to check if a VMWare Hypervisor (ESXi Host) is in Maintenance Mode or not. I’ve been through the docs for the various vmware\_\* modules but I can’t see any which will return this value. Have I missed it or isn’t th…

---

## [It there any difference of using Tags on Linux server Playbook and Windows server Playbook ?](https://forum.ansible.com/t/it-there-any-difference-of-using-tags-on-linux-server-playbook-and-windows-server-playbook/30891)

<div class="topic-metadata">

**Author:** [@Muhammad\_Chughtai](https://forum.ansible.com/u/Muhammad_Chughtai)\
**Replies:** 1\
**Last updated:** [July 29, 2019, 5:09am UTC](https://forum.ansible.com/t/it-there-any-difference-of-using-tags-on-linux-server-playbook-and-windows-server-playbook/30891 "2019-07-29T05:09:19Z")

</div>

I am using 2 tags in a playbook to manage Linux server and I want to use same tags in a Playbook to manage Windows server. Is there be any difference in mentioning Tags in Window playbook i.e -Package = Yes -Configurat…

---

## [Looping through a dictionary to create links](https://forum.ansible.com/t/looping-through-a-dictionary-to-create-links/30876)

<div class="topic-metadata">

**Author:** [@Aaron\_Hicks](https://forum.ansible.com/u/Aaron_Hicks)\
**Replies:** 2\
**Last updated:** [July 29, 2019, 2:33am UTC](https://forum.ansible.com/t/looping-through-a-dictionary-to-create-links/30876 "2019-07-29T02:33:15Z")

</div>

Hello the list, I have a bunch of machines with some shared file systems. Some of the file systems are not mounted on all the machines. For the filesystems that are mounted, I’d like to check/create a bunch of symbolic …

---

## [ansible\_facts\['ansible\_os\_family'\] vs. ansible\_facts\['os\_family'\]](https://forum.ansible.com/t/ansible-facts-ansible-os-family-vs-ansible-facts-os-family/30890)

<div class="topic-metadata">

**Author:** [@user89](https://forum.ansible.com/u/user89)\
**Replies:** 2\
**Last updated:** [July 28, 2019, 8:32pm UTC](https://forum.ansible.com/t/ansible-facts-ansible-os-family-vs-ansible-facts-os-family/30890 "2019-07-28T20:32:41Z")

</div>

Hello community! To determine how to reference variable which store OS family type i ran:ansible node1 -m setup Which throw a lot of output but there was: 192.168.24.24 | SUCCESS =\> { “ansible\_facts”: { …, “ansible…

---

## [Assign additional ip address to a nic in windows server](https://forum.ansible.com/t/assign-additional-ip-address-to-a-nic-in-windows-server/30888)

<div class="topic-metadata">

**Author:** [@Jems-APB](https://forum.ansible.com/u/Jems-APB)\
**Replies:** 2\
**Last updated:** [July 28, 2019, 2:47pm UTC](https://forum.ansible.com/t/assign-additional-ip-address-to-a-nic-in-windows-server/30888 "2019-07-28T14:47:42Z")

</div>

I am new to Ansible , need to assign additional ip address to nic on windows server, please share which module i should use

---

## [How do I reduce the debug output to just the message with this playbook ?](https://forum.ansible.com/t/how-do-i-reduce-the-debug-output-to-just-the-message-with-this-playbook/30887)

<div class="topic-metadata">

**Author:** [@ryan\_prihoda](https://forum.ansible.com/u/ryan_prihoda)\
**Replies:** 5\
**Last updated:** [July 28, 2019, 1:59pm UTC](https://forum.ansible.com/t/how-do-i-reduce-the-debug-output-to-just-the-message-with-this-playbook/30887 "2019-07-28T13:59:27Z")

</div>

\` catalina-inspect.yml name: find tomcat logs size hosts: tomcat become: no tasks: name: finding files task find: path: . file\_type: directory patterns: “tomcat-\*” register: find changed\_when: False nam…

---

## [Remote custom facts not working](https://forum.ansible.com/t/remote-custom-facts-not-working/30884)

<div class="topic-metadata">

**Author:** [@Kernel\_Panic](https://forum.ansible.com/u/Kernel_Panic)\
**Replies:** 8\
**Last updated:** [July 27, 2019, 6:18pm UTC](https://forum.ansible.com/t/remote-custom-facts-not-working/30884 "2019-07-27T18:18:09Z")

</div>

Hello guys Im having an issue with custom remote facts that are not working, only local on the ansible server , this is what I have. Querying remote server: ansible mdo -m setup -a “filter=ansible\_local” mdo | SUCCES…

---

## [Check if file exists on any remote](https://forum.ansible.com/t/check-if-file-exists-on-any-remote/30714)

<div class="topic-metadata">

**Author:** [@Martin\_Wittwer](https://forum.ansible.com/u/Martin_Wittwer)\
**Replies:** 1\
**Last updated:** [July 27, 2019, 3:45pm UTC](https://forum.ansible.com/t/check-if-file-exists-on-any-remote/30714 "2019-07-27T15:45:36Z")

</div>

Hi! I wonder if it is possible to check if for example a file exists on any in a group. My use case: I want to create an MD raid over 2 LUNs for a ServiceGuard cluster. This must only happen on one of the cluster node…

---

## [selectattr() returns everything when attribute is 'update'?](https://forum.ansible.com/t/selectattr-returns-everything-when-attribute-is-update/30808)

<div class="topic-metadata">

**Author:** [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Replies:** 2\
**Last updated:** [July 27, 2019, 3:19pm UTC](https://forum.ansible.com/t/selectattr-returns-everything-when-attribute-is-update/30808 "2019-07-27T15:19:33Z")

</div>

Hi I'm seeing some weird behaviour trying to use selectattr() on a list of dicts, when the attribute name I am using is the literal string 'update'. Anything else works fine. Example playbook:

---

## [ACI - Using CSV import to map out variables to be consumed by playbook.](https://forum.ansible.com/t/aci-using-csv-import-to-map-out-variables-to-be-consumed-by-playbook/30874)

<div class="topic-metadata">

**Author:** [@Tariq\_Iqbal](https://forum.ansible.com/u/Tariq_Iqbal)\
**Replies:** 1\
**Last updated:** [July 26, 2019, 5:05pm UTC](https://forum.ansible.com/t/aci-using-csv-import-to-map-out-variables-to-be-consumed-by-playbook/30874 "2019-07-26T17:05:22Z")

</div>

Hello All, I am using a module CSV to FACTS that takes in a CSV and converts it to dictionary. I am trying to iterate over the dictionary and map them to variables and these variables will be used in the playbook. Ques…

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

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