# Ansible Project

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

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

**Page:** 183

---

## [Weird Windows Path Problem](https://forum.ansible.com/t/weird-windows-path-problem/30636)

<div class="topic-metadata">

**Author:** [@dmartin](https://forum.ansible.com/u/dmartin)\
**Replies:** 1\
**Last updated:** [June 23, 2019, 7:29pm UTC](https://forum.ansible.com/t/weird-windows-path-problem/30636 "2019-06-23T19:29:26Z")

</div>

Hi, I’m using Ansible 2.8 on Ubuntu and I’m trying to make a directory to a windows box. But wait! I hear you say, what about https://docs.ansible.com/ansible/latest/user\_guide/windows\_usage.html#path-formatting-for-win…

---

## [defaults files per os and release](https://forum.ansible.com/t/defaults-files-per-os-and-release/24086)

<div class="topic-metadata">

**Author:** [@Mike\_Ray](https://forum.ansible.com/u/Mike_Ray)\
**Replies:** 2\
**Last updated:** [June 23, 2019, 9:01am UTC](https://forum.ansible.com/t/defaults-files-per-os-and-release/24086 "2019-06-23T09:01:21Z")

</div>

In the current Ansible setup, you can have 1 file in defaults (i.e. defaults/main.yml) and it is used for all hosts that run that task, no matter what the host. In our use case, we have found it would be highly advantag…

---

## [How to convert a text area to list of disks for vmware\_guest](https://forum.ansible.com/t/how-to-convert-a-text-area-to-list-of-disks-for-vmware-guest/30633)

<div class="topic-metadata">

**Author:** [@Angel\_Rengifo\_Cancin](https://forum.ansible.com/u/Angel_Rengifo_Cancin)\
**Replies:** 2\
**Last updated:** [June 22, 2019, 7:42pm UTC](https://forum.ansible.com/t/how-to-convert-a-text-area-to-list-of-disks-for-vmware-guest/30633 "2019-06-22T19:42:52Z")

</div>

Hello guys: There’s something I’ve been struggling with for some hours without knowing exactly how to solve it. Through AWX, I want users to enter the size of disks for a virtual machine using a text area in a survey, …

---

## [Not getting desired o/p Help required](https://forum.ansible.com/t/not-getting-desired-o-p-help-required/30623)

<div class="topic-metadata">

**Author:** [@Rakesh\_Parida](https://forum.ansible.com/u/Rakesh_Parida)\
**Replies:** 3\
**Last updated:** [June 21, 2019, 11:34pm UTC](https://forum.ansible.com/t/not-getting-desired-o-p-help-required/30623 "2019-06-21T23:34:59Z")

</div>

I have a config file : \[ansible-master .ssh\]# cat ~/.ssh/config Host \* StrictHostKeyChecking no RAKA Host node1 Hostname 10.160.0.7 IdentityFile ~/.ssh/RAKA Host node2 Hostname 10.128.0.11 IdentityFile ~/.ssh/RA…

---

## [Need playbook to run commands on checkpoint firewall](https://forum.ansible.com/t/need-playbook-to-run-commands-on-checkpoint-firewall/30631)

<div class="topic-metadata">

**Author:** [@Kethan\_R](https://forum.ansible.com/u/Kethan_R)\
**Replies:** 2\
**Last updated:** [June 21, 2019, 3:54pm UTC](https://forum.ansible.com/t/need-playbook-to-run-commands-on-checkpoint-firewall/30631 "2019-06-21T15:54:24Z")

</div>

Can someone help with running some basic show commands on checkpoint firewall from AWX. I tried many possibilities by googling,but no luck Need full play. hosts: all connection: network\_cli tasks: name: Get confi…

---

## [Ansible playbook breaks while mounting /home on remote](https://forum.ansible.com/t/ansible-playbook-breaks-while-mounting-home-on-remote/30628)

<div class="topic-metadata">

**Author:** [@Raj\_Shah](https://forum.ansible.com/u/Raj_Shah)\
**Replies:** 0\
**Last updated:** [June 21, 2019, 1:22pm UTC](https://forum.ansible.com/t/ansible-playbook-breaks-while-mounting-home-on-remote/30628 "2019-06-21T13:22:20Z")

</div>

Hi All I have a requirement , where in I have to mount /home to a separate data disk on remote servers . I use ssh keys for executing ansible playbook from my control-node to towards remote server. Below is the small co…

---

## [is the use of ssh keys GDPR compliant in every EU country?](https://forum.ansible.com/t/is-the-use-of-ssh-keys-gdpr-compliant-in-every-eu-country/30627)

<div class="topic-metadata">

**Author:** [@Fabrizio\_Lombardozzi](https://forum.ansible.com/u/Fabrizio_Lombardozzi)\
**Replies:** 0\
**Last updated:** [June 21, 2019, 11:04am UTC](https://forum.ansible.com/t/is-the-use-of-ssh-keys-gdpr-compliant-in-every-eu-country/30627 "2019-06-21T11:04:42Z")

</div>

Hi all, by law in Italy almost every kind of system access must be protected by a physical device or username/password or similar credential. As far as I know, even securing private key with “passphrase”, that secret c…

---

## [ISE 2.4 : Ansible Tower and ERS : header issue](https://forum.ansible.com/t/ise-2-4-ansible-tower-and-ers-header-issue/30485)

<div class="topic-metadata">

**Author:** [@Gilles](https://forum.ansible.com/u/Gilles)\
**Replies:** 1\
**Last updated:** [June 21, 2019, 7:51am UTC](https://forum.ansible.com/t/ise-2-4-ansible-tower-and-ers-header-issue/30485 "2019-06-21T07:51:36Z")

</div>

Has anyone worked with Ansible Tower and the ISE Tacacs server to query or add a network device ? It works using the ERS, but it failed when I use a playbook. It seems that it is a header issue. FYI: the same http comma…

---

## [merge dicts](https://forum.ansible.com/t/merge-dicts/30616)

<div class="topic-metadata">

**Author:** [@Punit\_Jain](https://forum.ansible.com/u/Punit_Jain)\
**Replies:** 5\
**Last updated:** [June 21, 2019, 6:43am UTC](https://forum.ansible.com/t/merge-dicts/30616 "2019-06-21T06:43:08Z")

</div>

Hi, Seems I am missing something really simple. ldap\_data: | {% set ldapdata = {} -%} {% if ldap\_content is defined -%} {{ ldapdata | combine({‘a’:10}, recursive=‘True’) }} {%- endif -%} {{ldapdata}} populates ld…

---

## [Starting filebeat issue from ansible for RHL6](https://forum.ansible.com/t/starting-filebeat-issue-from-ansible-for-rhl6/27835)

<div class="topic-metadata">

**Author:** [@Daastan\_Pradhan](https://forum.ansible.com/u/Daastan_Pradhan)\
**Replies:** 4\
**Last updated:** [June 21, 2019, 1:34am UTC](https://forum.ansible.com/t/starting-filebeat-issue-from-ansible-for-rhl6/27835 "2019-06-21T01:34:25Z")

</div>

I am running this task in ansible playbook. - name: Start filebeat service shell: /fisc/uts/bin/sudo filebeat start This doesnot start the filebeat agent. But I have checked manually running that command on the test…

---

## [nomail](https://forum.ansible.com/t/nomail/30620)

<div class="topic-metadata">

**Author:** [@S\_P\_Arif\_Sahari\_Wibo](https://forum.ansible.com/u/S_P_Arif_Sahari_Wibo)\
**Replies:** 0\
**Last updated:** [June 20, 2019, 8:35pm UTC](https://forum.ansible.com/t/nomail/30620 "2019-06-20T20:35:25Z")

</div>

nomail

---

## [Use ansible to allow AD authentication](https://forum.ansible.com/t/use-ansible-to-allow-ad-authentication/30619)

<div class="topic-metadata">

**Author:** [@Dave\_McPherson](https://forum.ansible.com/u/Dave_McPherson)\
**Replies:** 3\
**Last updated:** [June 20, 2019, 7:52pm UTC](https://forum.ansible.com/t/use-ansible-to-allow-ad-authentication/30619 "2019-06-20T19:52:55Z")

</div>

I am trying to push AD authentication out to a series of Oracle Linux machines. The command is: realm join --verbose “domain.local” --user “domain\_service”

---

## [lineinfile:  replacing line instead of appending the line](https://forum.ansible.com/t/lineinfile-replacing-line-instead-of-appending-the-line/30618)

<div class="topic-metadata">

**Author:** [@Dave\_McPherson](https://forum.ansible.com/u/Dave_McPherson)\
**Replies:** 4\
**Last updated:** [June 20, 2019, 7:49pm UTC](https://forum.ansible.com/t/lineinfile-replacing-line-instead-of-appending-the-line/30618 "2019-06-20T19:49:38Z")

</div>

I am attempting to add a group to the sudoers file after the line %wheel ALL=(ALL) ALL example Allows people in group wheel to run all commands %wheel ALL=(ALL) ALL doman\\vm\_admins ALL-(ALL) ALL name: add vm\_admins…

---

## [multiple tasks\_from in a single include\_role](https://forum.ansible.com/t/multiple-tasks-from-in-a-single-include-role/30613)

<div class="topic-metadata">

**Author:** [@Punit\_Jain](https://forum.ansible.com/u/Punit_Jain)\
**Replies:** 1\
**Last updated:** [June 20, 2019, 2:37pm UTC](https://forum.ansible.com/t/multiple-tasks-from-in-a-single-include-role/30613 "2019-06-20T14:37:03Z")

</div>

Hi, I have a role with multiple task files and I include only few of them in my different playbook I did below but it gives an error: tasks: name: check configuration include\_role: name: config\_check tasks\_from: …

---

## [Using results from a loop](https://forum.ansible.com/t/using-results-from-a-loop/30609)

<div class="topic-metadata">

**Author:** [@Adam](https://forum.ansible.com/u/Adam)\
**Replies:** 2\
**Last updated:** [June 20, 2019, 12:20pm UTC](https://forum.ansible.com/t/using-results-from-a-loop/30609 "2019-06-20T12:20:19Z")

</div>

Hi - I’m trying to use the results from the find module while also using with\_items. I can’t figure out how to extract just the paths from the first task to be able to use as input for the second task. Has anyone else d…

---

## [Merge lists](https://forum.ansible.com/t/merge-lists/30612)

<div class="topic-metadata">

**Author:** [@Punit\_Jain](https://forum.ansible.com/u/Punit_Jain)\
**Replies:** 3\
**Last updated:** [June 20, 2019, 11:04am UTC](https://forum.ansible.com/t/merge-lists/30612 "2019-06-20T11:04:11Z")

</div>

Hi, I have a fact as below: “dns\_parsed”: \[ “10.4.3.2” \] and another fact as: “actual\_config”: { “dns”: { “domains”: \[‘test.com’\], “servers”: } } I want to update actual\_config to make it: “actual\_config”: …

---

## [User Data](https://forum.ansible.com/t/user-data/30599)

<div class="topic-metadata">

**Author:** [@Jayant\_Kaushal](https://forum.ansible.com/u/Jayant_Kaushal)\
**Replies:** 1\
**Last updated:** [June 20, 2019, 6:55am UTC](https://forum.ansible.com/t/user-data/30599 "2019-06-20T06:55:10Z")

</div>

I am looking at using user\_data during my aws/azure provisioning, looking at the APIs, i am able to pass a script and execute it. is the user data wrapped in cdata sections automatically, would complex scripts be valid…

---

## [Failed to copy repo to /etc/yum.repos.d](https://forum.ansible.com/t/failed-to-copy-repo-to-etc-yum-repos-d/30603)

<div class="topic-metadata">

**Author:** [@Annam\_Rafi1](https://forum.ansible.com/u/Annam_Rafi1)\
**Replies:** 5\
**Last updated:** [June 19, 2019, 9:03pm UTC](https://forum.ansible.com/t/failed-to-copy-repo-to-etc-yum-repos-d/30603 "2019-06-19T21:03:48Z")

</div>

I tried to use the yum\_repository module to create a custom repo but I am failing to do so. I was getting a permission denied so I evaluated the permissions.

---

## [Us congress hearing of maan alsaan Money laundry قضية الكونغجرس لغسيل الأموال للمليادير معن الصانع](https://forum.ansible.com/t/us-congress-hearing-of-maan-alsaan-money-laundry/30608)

<div class="topic-metadata">

**Author:** [@fafa\_al](https://forum.ansible.com/u/fafa_al)\
**Replies:** 0\
**Last updated:** [June 19, 2019, 7:44pm UTC](https://forum.ansible.com/t/us-congress-hearing-of-maan-alsaan-money-laundry/30608 "2019-06-19T19:44:22Z")

</div>

YouTube videos of U.S. Congress money laundering hearing of Saudi Billionaire " Maan Al sanea" with bank of America and The owner of Saad Hospital and Schools in the Eastern Province in Saudi Arabia and the Chairm…

---

## [Inputs on a big project powered by ansible](https://forum.ansible.com/t/inputs-on-a-big-project-powered-by-ansible/30606)

<div class="topic-metadata">

**Author:** [@Fabien\_Culpo](https://forum.ansible.com/u/Fabien_Culpo)\
**Replies:** 3\
**Last updated:** [June 19, 2019, 7:22pm UTC](https://forum.ansible.com/t/inputs-on-a-big-project-powered-by-ansible/30606 "2019-06-19T19:22:06Z")

</div>

Hi, I'm in charge of deploying a software as a service to our customers. This software requires multiple vms per instance, mostly windows (ad, sql, the software application servers...) This will be hosted on VMware vS…

---

## [Timeout property not working on Monit Module](https://forum.ansible.com/t/timeout-property-not-working-on-monit-module/30607)

<div class="topic-metadata">

**Author:** [@Jourdan\_West](https://forum.ansible.com/u/Jourdan_West)\
**Replies:** 0\
**Last updated:** [June 19, 2019, 6:56pm UTC](https://forum.ansible.com/t/timeout-property-not-working-on-monit-module/30607 "2019-06-19T18:56:36Z")

</div>

Hello, I’m using Ansible’s Monit module, to restart a service like so: \` name: restart resque-x (monit) monit: name: resque-x state: restarted \` The issue is that it doesn’t wait for the process to restart (needs…

---

## [Running specific tasks depending on subnet](https://forum.ansible.com/t/running-specific-tasks-depending-on-subnet/30605)

<div class="topic-metadata">

**Author:** [@Chris\_Bidwell](https://forum.ansible.com/u/Chris_Bidwell)\
**Replies:** 1\
**Last updated:** [June 19, 2019, 6:02pm UTC](https://forum.ansible.com/t/running-specific-tasks-depending-on-subnet/30605 "2019-06-19T18:02:41Z")

</div>

Does anyone know how I can run a task based off the subnet I'm in? For example, We've got an internal network that needs to pull packages through yum, but within that subnet, we need to go through a proxy to get out. …

---

## [Create multiple vmware\_ tags](https://forum.ansible.com/t/create-multiple-vmware-tags/30604)

<div class="topic-metadata">

**Author:** [@LeDOC\_CODEL](https://forum.ansible.com/u/LeDOC_CODEL)\
**Replies:** 0\
**Last updated:** [June 19, 2019, 4:01pm UTC](https://forum.ansible.com/t/create-multiple-vmware-tags/30604 "2019-06-19T16:01:56Z")

</div>

Hello everyone, I would like to show you a case I don’t understand. I want create multiple vmware tags on vSphere with vmware\_tag module. Tag list is based on my Inventory I have 2 use case: First case working: ---…

---

## [variable sub dict output shows undefined](https://forum.ansible.com/t/variable-sub-dict-output-shows-undefined/30597)

<div class="topic-metadata">

**Author:** [@Punit\_Jain](https://forum.ansible.com/u/Punit_Jain)\
**Replies:** 3\
**Last updated:** [June 19, 2019, 3:21pm UTC](https://forum.ansible.com/t/variable-sub-dict-output-shows-undefined/30597 "2019-06-19T15:21:49Z")

</div>

Hi, I have a part of playbook task as below: name: get url data uri: uri: method: GET user: username password: password register: dns\_result no\_log: true set\_fact: dns\_content: “{{ dns\_result.content.reco…

---

## [azure\_rm\_devtestlabvirtualmachnie VM Tags not functioning](https://forum.ansible.com/t/azure-rm-devtestlabvirtualmachnie-vm-tags-not-functioning/30602)

<div class="topic-metadata">

**Author:** [@Robert\_Williams](https://forum.ansible.com/u/Robert_Williams)\
**Replies:** 0\
**Last updated:** [June 19, 2019, 3:19pm UTC](https://forum.ansible.com/t/azure-rm-devtestlabvirtualmachnie-vm-tags-not-functioning/30602 "2019-06-19T15:19:03Z")

</div>

Ansible 2.8.0 Python 3.6.8 azure-mgmt-devtestlabs 3.0.0 https://docs.ansible.com/ansible/latest/modules/azure\_rm\_devtestlabvirtualmachine\_module.html I am seeing behavior for azure\_rm\_devtestlabvirtualmachine where a…

---

## [Dynamically change the order of hosts ansible runs on](https://forum.ansible.com/t/dynamically-change-the-order-of-hosts-ansible-runs-on/15144)

<div class="topic-metadata">

**Author:** [@Andy\_Wang](https://forum.ansible.com/u/Andy_Wang)\
**Replies:** 4\
**Last updated:** [June 19, 2019, 1:35pm UTC](https://forum.ansible.com/t/dynamically-change-the-order-of-hosts-ansible-runs-on/15144 "2019-06-19T13:35:23Z")

</div>

This might be a newbie question, but I can’t figure out how to without writing a wrapper around ansible, or invoking ansible multiple times Let’s say this is my inventory: \[some\_service\] A B C Some\_service runs in …

---

## [Join two variables and store in new variable in playbook](https://forum.ansible.com/t/join-two-variables-and-store-in-new-variable-in-playbook/30592)

<div class="topic-metadata">

**Author:** [@Shruthilaya\_Gunda](https://forum.ansible.com/u/Shruthilaya_Gunda)\
**Replies:** 2\
**Last updated:** [June 19, 2019, 11:18am UTC](https://forum.ansible.com/t/join-two-variables-and-store-in-new-variable-in-playbook/30592 "2019-06-19T11:18:20Z")

</div>

I want to join two variables in ansible playbook to store in another variable to use it further in the code. I tried as below, but encountering errors debug: msg = “{{ ver1 ~ ver2 }}” set\_fact: version{{msg}} ERROR…

---

## [Uninstall software using win\_package, with uninstall.exe file and without product\_id](https://forum.ansible.com/t/uninstall-software-using-win-package-with-uninstall-exe-file-and-without-product-id/30598)

<div class="topic-metadata">

**Author:** [@Cindy](https://forum.ansible.com/u/Cindy)\
**Replies:** 0\
**Last updated:** [June 19, 2019, 9:29am UTC](https://forum.ansible.com/t/uninstall-software-using-win-package-with-uninstall-exe-file-and-without-product-id/30598 "2019-06-19T09:29:54Z")

</div>

Good day to All. Hoping someone can help me solve my uninstall issue in my playbook. Sample Playbook: name: Uninstall existing Collabnet Auto Update win\_package: path: "C:\\Program Files\\CollabNet\\Subversion Client\\…

---

## [Install Windows Identity Extensions with ansible/Chocolatey](https://forum.ansible.com/t/install-windows-identity-extensions-with-ansible-chocolatey/30585)

<div class="topic-metadata">

**Author:** [@Yue](https://forum.ansible.com/u/Yue)\
**Replies:** 2\
**Last updated:** [June 18, 2019, 6:38pm UTC](https://forum.ansible.com/t/install-windows-identity-extensions-with-ansible-chocolatey/30585 "2019-06-18T18:38:14Z")

</div>

Hello I hit a problem when trying to install Windows Identity Extensions with ansible/chocolatey. (ansible 2.8.1) I created an package for Windows Identity extensions: The .nuspec \<?xml version="1.0"?\> MicrosoftIde…

---

## [ansible syntax to use "if-else" and "set"](https://forum.ansible.com/t/ansible-syntax-to-use-if-else-and-set/30470)

<div class="topic-metadata">

**Author:** [@sahitansar](https://forum.ansible.com/u/sahitansar)\
**Replies:** 11\
**Last updated:** [June 18, 2019, 6:25pm UTC](https://forum.ansible.com/t/ansible-syntax-to-use-if-else-and-set/30470 "2019-06-18T18:25:20Z")

</div>

Hi All, Im trying to choose ansible inventory host group conditionally. name: Set group set\_fact: group: | {% if c == 1 %} {% set group = ‘grp1’ %} {% elif c == 2 %} {% set group == ‘grp3’ %} {% else %} {% gr…

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

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