# Ansible Project

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

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

**Page:** 217

---

## [Ansible delete files under a specific directory is failing](https://forum.ansible.com/t/ansible-delete-files-under-a-specific-directory-is-failing/29298)

<div class="topic-metadata">

**Author:** [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Replies:** 2\
**Last updated:** [December 19, 2018, 10:57am UTC](https://forum.ansible.com/t/ansible-delete-files-under-a-specific-directory-is-failing/29298 "2018-12-19T10:57:58Z")

</div>

This is expected as the ‘dest’ Parameter that you want to be absent is the webapps directory I.E. it gets deleted

---

## [Using variable in "hosts" definition](https://forum.ansible.com/t/using-variable-in-hosts-definition/29274)

<div class="topic-metadata">

**Author:** [@Ilya\_Ulis](https://forum.ansible.com/u/Ilya_Ulis)\
**Replies:** 4\
**Last updated:** [December 19, 2018, 1:47am UTC](https://forum.ansible.com/t/using-variable-in-hosts-definition/29274 "2018-12-19T01:47:14Z")

</div>

I have a role with the following yaml: \` \[root@ansible playbooks\]# head -n 4 roles/upgrade\_couchbase/tasks/main.yml hosts: COUCHBASE-cluster-{{ couchbase\_environment }} serial: 1 become: yes tasks: \` and a playb…

---

## [gcp\_dns\_resource\_record\_set - for subdomains](https://forum.ansible.com/t/gcp-dns-resource-record-set-for-subdomains/29293)

<div class="topic-metadata">

**Author:** [@katja.loeffler](https://forum.ansible.com/u/katja.loeffler)\
**Replies:** 0\
**Last updated:** [December 18, 2018, 8:34pm UTC](https://forum.ansible.com/t/gcp-dns-resource-record-set-for-subdomains/29293 "2018-12-18T20:34:01Z")

</div>

Hi, I’m using ansible 2.7. I am trying to set a bunch of dns records for my project using the gcp\_dns\_resource\_record\_set module. This works just fine: name: create a resource record set for {{env}} gcp\_dns\_resourc…

---

## [Explain dynamic inventory](https://forum.ansible.com/t/explain-dynamic-inventory/29290)

<div class="topic-metadata">

**Author:** [@Jimmy\_Htor](https://forum.ansible.com/u/Jimmy_Htor)\
**Replies:** 2\
**Last updated:** [December 18, 2018, 7:26pm UTC](https://forum.ansible.com/t/explain-dynamic-inventory/29290 "2018-12-18T19:26:52Z")

</div>

Hey, I don’t get how dynamic inventory is actually working. Or in my case, why it’s working. So I’ve tried setting up the vmware\_vm\_inventory plugin. I’ve put a vcenter.yml into /etc/ansible and “ansible-inventory -i …

---

## [This topic needs a title](https://forum.ansible.com/t/this-topic-needs-a-title/29292)

<div class="topic-metadata">

**Author:** [@Christian\_Marquardt](https://forum.ansible.com/u/Christian_Marquardt)\
**Replies:** 0\
**Last updated:** [December 18, 2018, 6:59pm UTC](https://forum.ansible.com/t/this-topic-needs-a-title/29292 "2018-12-18T18:59:45Z")

</div>

... via Mobile Mail

---

## [WinRM http\_status\_code: 500 with Basic authentication](https://forum.ansible.com/t/winrm-http-status-code-500-with-basic-authentication/29291)

<div class="topic-metadata">

**Author:** [@Aneil\_Younis](https://forum.ansible.com/u/Aneil_Younis)\
**Replies:** 0\
**Last updated:** [December 18, 2018, 6:48pm UTC](https://forum.ansible.com/t/winrm-http-status-code-500-with-basic-authentication/29291 "2018-12-18T18:48:06Z")

</div>

I have a very odd situation, I have a new installation of CentOS7 on a free version of VSphere and I’m trying to test out Ansible to configure Windows computers but I am getting the dreaded Code 500 when trying to do the…

---

## [Removing the variables(which are seperated by ";" in the output of the previous command) one by one for cisco ASA device](https://forum.ansible.com/t/removing-the-variables-which-are-seperated-by-in-the-output-of-the-previous-command-one-by-one-for-cisco-asa-device/29289)

<div class="topic-metadata">

**Author:** [@Sahar](https://forum.ansible.com/u/Sahar)\
**Replies:** 1\
**Last updated:** [December 18, 2018, 5:20pm UTC](https://forum.ansible.com/t/removing-the-variables-which-are-seperated-by-in-the-output-of-the-previous-command-one-by-one-for-cisco-asa-device/29289 "2018-12-18T17:20:24Z")

</div>

Hi there, I have a question. I’m writing an ansible playbook for my cisco ASA device. As part of the playbook, I need to reset the “Current BOOT variable” in below output. sec/stby/Fw4Script(config)# show bootvar BOO…

---

## [Any way to include\_vars on output of a filter?](https://forum.ansible.com/t/any-way-to-include-vars-on-output-of-a-filter/29287)

<div class="topic-metadata">

**Author:** [@Kelley\_Spoon](https://forum.ansible.com/u/Kelley_Spoon)\
**Replies:** 0\
**Last updated:** [December 18, 2018, 4:05pm UTC](https://forum.ansible.com/t/any-way-to-include-vars-on-output-of-a-filter/29287 "2018-12-18T16:05:13Z")

</div>

Howdy folks, I’m looking for some advice to see if there’s a more elegant way to do an “include\_vars” on the output of a filter rather than a file. I’m using the “passwordstore” module to get secrets out of ‘pass’. T…

---

## [Removing empty strings from a list](https://forum.ansible.com/t/removing-empty-strings-from-a-list/29281)

<div class="topic-metadata">

**Author:** [@Karl\_Auer](https://forum.ansible.com/u/Karl_Auer)\
**Replies:** 2\
**Last updated:** [December 18, 2018, 10:45am UTC](https://forum.ansible.com/t/removing-empty-strings-from-a-list/29281 "2018-12-18T10:45:49Z")

</div>

I am trying to build a list of names from a list of objects. It works fine, but some of the objects don’t have a name. No problem, I use the default() filter to set those elements of my list to empty strings, like this: …

---

## [Mail Module: "Connection unexpectedly closed: timed out"](https://forum.ansible.com/t/mail-module-connection-unexpectedly-closed-timed-out/29279)

<div class="topic-metadata">

**Author:** [@Bharath\_Kumar2](https://forum.ansible.com/u/Bharath_Kumar2)\
**Replies:** 0\
**Last updated:** [December 17, 2018, 10:33pm UTC](https://forum.ansible.com/t/mail-module-connection-unexpectedly-closed-timed-out/29279 "2018-12-17T22:33:36Z")

</div>

Hello Ansible Team/Users, I have a Playbook which is expected to send an email, as below. When run, it errors out with “Unable to Connect mailer.domain.com:25: Connection unexpectedly closed: timed out”. \`

---

## [failure to parse \`environment\`](https://forum.ansible.com/t/failure-to-parse-environment/29278)

<div class="topic-metadata">

**Author:** [@Barry\_Kaplan](https://forum.ansible.com/u/Barry_Kaplan)\
**Replies:** 0\
**Last updated:** [December 17, 2018, 9:01pm UTC](https://forum.ansible.com/t/failure-to-parse-environment/29278 "2018-12-17T21:01:38Z")

</div>

I am running \` name: Install logstash {{ logstash\_apt\_version }} apt: pkg: “logstash={{ logstash\_apt\_version }}” state: present force: “{{ logstash\_apt\_force | default(false) }}” environment: “{{ logstash\_environ…

---

## [Ansible : Deploy task in round robin fashion](https://forum.ansible.com/t/ansible-deploy-task-in-round-robin-fashion/29228)

<div class="topic-metadata">

**Author:** [@Tejas\_Gadaria1](https://forum.ansible.com/u/Tejas_Gadaria1)\
**Replies:** 2\
**Last updated:** [December 17, 2018, 7:05pm UTC](https://forum.ansible.com/t/ansible-deploy-task-in-round-robin-fashion/29228 "2018-12-17T19:05:41Z")

</div>

Hello all, I have group tgt-cluster includes 3 hosts. I have written down role to deploy container which is executing on tgt-cluster group. I am controlling the number of containers to deploy with with\_sequence. My task…

---

## [vmware\_guest module Ansible 2.7.4 on latest RHEL 7u6](https://forum.ansible.com/t/vmware-guest-module-ansible-2-7-4-on-latest-rhel-7u6/29276)

<div class="topic-metadata">

**Author:** [@Tuyen\_Nguyen](https://forum.ansible.com/u/Tuyen_Nguyen)\
**Replies:** 3\
**Last updated:** [December 17, 2018, 6:22pm UTC](https://forum.ansible.com/t/vmware-guest-module-ansible-2-7-4-on-latest-rhel-7u6/29276 "2018-12-17T18:22:57Z")

</div>

Hi I am getting the following error when I try running a playbook to create a new VM from a template. It worked before I did yum update on the control server. The full traceback is: Traceback (most recent call last): …

---

## [module postgres\_privs unexpected behaviour with default privs](https://forum.ansible.com/t/module-postgres-privs-unexpected-behaviour-with-default-privs/29273)

<div class="topic-metadata">

**Author:** [@Giannis\_Sialmas](https://forum.ansible.com/u/Giannis_Sialmas)\
**Replies:** 0\
**Last updated:** [December 17, 2018, 2:41am UTC](https://forum.ansible.com/t/module-postgres-privs-unexpected-behaviour-with-default-privs/29273 "2018-12-17T02:41:26Z")

</div>

Some details \` ansible 2.7.4 python version = 2.7.15rc1 (default, Nov 12 2018, 14:31:15) \[GCC 7.3.0\] postgres version: PostgreSQL 10.6 (Ubuntu 10.6-1.pgdg16.04+1) on x86\_64-pc-linux-gnu, compiled by gcc (Ubuntu 5.4.0…

---

## [how-to split file group\_vars ?](https://forum.ansible.com/t/how-to-split-file-group-vars/29271)

<div class="topic-metadata">

**Author:** [@Michele\_Salerno](https://forum.ansible.com/u/Michele_Salerno)\
**Replies:** 0\
**Last updated:** [December 15, 2018, 9:40pm UTC](https://forum.ansible.com/t/how-to-split-file-group-vars/29271 "2018-12-15T21:40:11Z")

</div>

I have this file for config zones bind dns. Ho-to split this file for single zone? https://github.com/mikysal78/nnxx-bind-server/blob/master/group\_vars/dns-server/bind Thanks.

---

## [How to run a localhost python script in a play defined for a different host group?](https://forum.ansible.com/t/how-to-run-a-localhost-python-script-in-a-play-defined-for-a-different-host-group/29269)

<div class="topic-metadata">

**Author:** [@Ankit2](https://forum.ansible.com/u/Ankit2)\
**Replies:** 8\
**Last updated:** [December 15, 2018, 8:00pm UTC](https://forum.ansible.com/t/how-to-run-a-localhost-python-script-in-a-play-defined-for-a-different-host-group/29269 "2018-12-15T20:00:47Z")

</div>

I have got the following playbook: \`

---

## [My playbook is not running](https://forum.ansible.com/t/my-playbook-is-not-running/29235)

<div class="topic-metadata">

**Author:** [@Fernando\_William](https://forum.ansible.com/u/Fernando_William)\
**Replies:** 2\
**Last updated:** [December 15, 2018, 1:59am UTC](https://forum.ansible.com/t/my-playbook-is-not-running/29235 "2018-12-15T01:59:00Z")

</div>

Hi, when i try to run a playbok in a docker role, i´m advised about syntax erro. someone could help me with my yml? the /roles/docker/tasks/main.yml is: #start tasks file for docker name: Grant Docker Instalation …

---

## [AWX x GITLAB Integration](https://forum.ansible.com/t/awx-x-gitlab-integration/29249)

<div class="topic-metadata">

**Author:** [@Ricardo\_Augusto\_Sant](https://forum.ansible.com/u/Ricardo_Augusto_Sant)\
**Replies:** 1\
**Last updated:** [December 14, 2018, 11:04pm UTC](https://forum.ansible.com/t/awx-x-gitlab-integration/29249 "2018-12-14T23:04:14Z")

</div>

Hello everyone! I’m trying to integrate AWX x GITLAB and I receiving below issue: “msg”: “ssh: Could not resolve hostname gitlabserver.local: Name or service not known\\r\\nfatal: Could not read from remote repository.\\n…

---

## [win\_chocolatey using unc path in source](https://forum.ansible.com/t/win-chocolatey-using-unc-path-in-source/29264)

<div class="topic-metadata">

**Author:** [@Serge\_Zajac](https://forum.ansible.com/u/Serge_Zajac)\
**Replies:** 1\
**Last updated:** [December 14, 2018, 9:48pm UTC](https://forum.ansible.com/t/win-chocolatey-using-unc-path-in-source/29264 "2018-12-14T21:48:18Z")

</div>

Hi cheers, I’m not able to use a share or unc path in the source parameter of win\_chocolatey module The same is running if you use choco directly with cinst -y myPack --source “\\myserver\\myshare” I’ve opened an issue …

---

## [Need to extrapolate variable listed in host\_vars that is pulled form another variable file.](https://forum.ansible.com/t/need-to-extrapolate-variable-listed-in-host-vars-that-is-pulled-form-another-variable-file/29267)

<div class="topic-metadata">

**Author:** [@Eric\_Brewer](https://forum.ansible.com/u/Eric_Brewer)\
**Replies:** 1\
**Last updated:** [December 14, 2018, 7:22pm UTC](https://forum.ansible.com/t/need-to-extrapolate-variable-listed-in-host-vars-that-is-pulled-form-another-variable-file/29267 "2018-12-14T19:22:56Z")

</div>

I am working on a project where we need to be able to hand out a yml file that will be filled in, and that will be the input for the server specific and custom information. In this configuration, we need to configure pie…

---

## [AWS Dynamic Inventory ec2.py cache doesn't work?](https://forum.ansible.com/t/aws-dynamic-inventory-ec2-py-cache-doesnt-work/29258)

<div class="topic-metadata">

**Author:** [@Alb0t](https://forum.ansible.com/u/Alb0t)\
**Replies:** 2\
**Last updated:** [December 14, 2018, 5:46pm UTC](https://forum.ansible.com/t/aws-dynamic-inventory-ec2-py-cache-doesnt-work/29258 "2018-12-14T17:46:43Z")

</div>

Every time I run this plugin, it takes at least a minute to get anything back. Each time it is execute I can see a new cache being built inside ~/.ansible/tmp. Has anyone else had this problem? $ time ./ec2.py --refresh…

---

## [Copy with\_fileglob Regex doesn't work](https://forum.ansible.com/t/copy-with-fileglob-regex-doesnt-work/29263)

<div class="topic-metadata">

**Author:** [@Phillip](https://forum.ansible.com/u/Phillip)\
**Replies:** 2\
**Last updated:** [December 14, 2018, 3:56pm UTC](https://forum.ansible.com/t/copy-with-fileglob-regex-doesnt-work/29263 "2018-12-14T15:56:37Z")

</div>

Hi All I searched for a solution but everything I found didn’t helped. We catch up all pub.key files from servers when we connect and then we would like to deploy them to the correct enviroment. Here the config: nam…

---

## [using regex in replace module](https://forum.ansible.com/t/using-regex-in-replace-module/29256)

<div class="topic-metadata">

**Author:** [@danish09](https://forum.ansible.com/u/danish09)\
**Replies:** 4\
**Last updated:** [December 14, 2018, 10:13am UTC](https://forum.ansible.com/t/using-regex-in-replace-module/29256 "2018-12-14T10:13:07Z")

</div>

Hey there, I am using ansible 2.6.4. In on the projects I was working on, I had to search for 2 different words in the same file and replace them as necessary. Used replace module 2 times for this. Below is the playbook…

---

## [best practice to sync a lot of file in different server](https://forum.ansible.com/t/best-practice-to-sync-a-lot-of-file-in-different-server/29116)

<div class="topic-metadata">

**Author:** [@cava\_cavamagie](https://forum.ansible.com/u/cava_cavamagie)\
**Replies:** 4\
**Last updated:** [December 14, 2018, 9:30am UTC](https://forum.ansible.com/t/best-practice-to-sync-a-lot-of-file-in-different-server/29116 "2018-12-14T09:30:40Z")

</div>

i have the necessity to copy a large number of file in a large number of server and to check periodically now i use a task like this name: Synchronization of src on the control machine to dest on the remote hosts usr/…

---

## [Inventory folder structure verification](https://forum.ansible.com/t/inventory-folder-structure-verification/25783)

<div class="topic-metadata">

**Author:** [@john.laham](https://forum.ansible.com/u/john.laham)\
**Replies:** 3\
**Last updated:** [December 14, 2018, 4:54am UTC](https://forum.ansible.com/t/inventory-folder-structure-verification/25783 "2018-12-14T04:54:00Z")

</div>

Hi all, first time posting, so apologies if I miss something. I’m working on organizing an inventory folder for a multistage environment and would like verification on whether the way I expect to work is true, or if I’m…

---

## [Become root using become\_exe such as sesu](https://forum.ansible.com/t/become-root-using-become-exe-such-as-sesu/29260)

<div class="topic-metadata">

**Author:** [@Mitch\_Resch](https://forum.ansible.com/u/Mitch_Resch)\
**Replies:** 0\
**Last updated:** [December 13, 2018, 11:02pm UTC](https://forum.ansible.com/t/become-root-using-become-exe-such-as-sesu/29260 "2018-12-13T23:02:12Z")

</div>

Hi, I’m working on a job template in Tower that needs to be run as root. On our target hosts, we have it setup so you must use the command “sesu” to become root. Currently, I’m using become\_exe in the ansible.cfg file t…

---

## [Ansible 2.5.14, 2.6.11, and 2.7.5 are available](https://forum.ansible.com/t/ansible-2-5-14-2-6-11-and-2-7-5-are-available/29259)

<div class="topic-metadata">

**Author:** [@tkuratom](https://forum.ansible.com/u/tkuratom)\
**Replies:** 0\
**Last updated:** [December 13, 2018, 10:35pm UTC](https://forum.ansible.com/t/ansible-2-5-14-2-6-11-and-2-7-5-are-available/29259 "2018-12-13T22:35:32Z")

</div>

Hi all, Ansible 2.5.14, 2.6.11, and 2.7.5 were released today. These releases include a fix for a reported security vulnerability, CVE-2018-16876 https://bugzilla.redhat.com/show\_bug.cgi?id=1657330 as well as other g…

---

## [how can pass nohup log print to target server for jar/java process using playbook?](https://forum.ansible.com/t/how-can-pass-nohup-log-print-to-target-server-for-jar-java-process-using-playbook/29243)

<div class="topic-metadata">

**Author:** [@4Register\_Tony](https://forum.ansible.com/u/4Register_Tony)\
**Replies:** 2\
**Last updated:** [December 13, 2018, 5:11pm UTC](https://forum.ansible.com/t/how-can-pass-nohup-log-print-to-target-server-for-jar-java-process-using-playbook/29243 "2018-12-13T17:11:56Z")

</div>

when i was trying to pass nohup command via playbook, the target servers would not print nohup log. is here any tips to solve it? thanks in advance.

---

## [High memory usage when running multiple ansible playbooks on localhost](https://forum.ansible.com/t/high-memory-usage-when-running-multiple-ansible-playbooks-on-localhost/29244)

<div class="topic-metadata">

**Author:** [@pradeep.hk](https://forum.ansible.com/u/pradeep.hk)\
**Replies:** 10\
**Last updated:** [December 13, 2018, 11:45am UTC](https://forum.ansible.com/t/high-memory-usage-when-running-multiple-ansible-playbooks-on-localhost/29244 "2018-12-13T11:45:46Z")

</div>

I have a requirement to run lots of playbooks parallely on localhost. When I run 100 playbooks parallely (a simple one that executes the a shell command - date) , I see that it consumes lot of resources (memory ~ 7GiB …

---

## [vmware\_guest - Modify Multiple VM's](https://forum.ansible.com/t/vmware-guest-modify-multiple-vms/29255)

<div class="topic-metadata">

**Author:** [@Shaun\_Glass](https://forum.ansible.com/u/Shaun_Glass)\
**Replies:** 0\
**Last updated:** [December 13, 2018, 9:40am UTC](https://forum.ansible.com/t/vmware-guest-modify-multiple-vms/29255 "2018-12-13T09:40:14Z")

</div>

Good Day, How would one compose a list of VM’s to make changes against. I have the following which works for a single machine : - hosts: 127.0.0.1 tasks: - name: Change NIC Configuration delegate\_to: localhost vmwa…

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

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