# Ansible Project

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

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

**Page:** 255

---

## [Trouble with output from script module task](https://forum.ansible.com/t/trouble-with-output-from-script-module-task/27760)

<div class="topic-metadata">

**Author:** [@Ab\_Generette](https://forum.ansible.com/u/Ab_Generette)\
**Replies:** 0\
**Last updated:** [June 10, 2018, 1:22pm UTC](https://forum.ansible.com/t/trouble-with-output-from-script-module-task/27760 "2018-06-10T13:22:58Z")

</div>

Hi, I have a python script “expect\_again.py” that is meant to support a minimal amount of operator input, when that script in turn runs an expect script, “run\_primary.exp”. I’m not seeing all of the output, though, from…

---

## [Nested variables inside templates](https://forum.ansible.com/t/nested-variables-inside-templates/27750)

<div class="topic-metadata">

**Author:** [@Varun\_Chopra](https://forum.ansible.com/u/Varun_Chopra)\
**Replies:** 2\
**Last updated:** [June 9, 2018, 7:34pm UTC](https://forum.ansible.com/t/nested-variables-inside-templates/27750 "2018-06-09T19:34:04Z")

</div>

Interfaces are different for every server I’m working with, so to print details of each interface, let’s say I’m using the following code in a template: interfaces: {% for a\_value in ansible\_interfaces %}{{ a\_value }} {…

---

## [ansible xml; setting child element based on node attribute value](https://forum.ansible.com/t/ansible-xml-setting-child-element-based-on-node-attribute-value/27756)

<div class="topic-metadata">

**Author:** [@Ali\_Khawaja](https://forum.ansible.com/u/Ali_Khawaja)\
**Replies:** 1\
**Last updated:** [June 9, 2018, 2:59pm UTC](https://forum.ansible.com/t/ansible-xml-setting-child-element-based-on-node-attribute-value/27756 "2018-06-09T14:59:35Z")

</div>

Hi, i have multiple xml node which multiple child elements. each node differs from other based on the value of its attribute. i want to set the value of child elements based on the value of the parent node’s attribute.…

---

## [How to send email with content from .yml file\[Ansible\]](https://forum.ansible.com/t/how-to-send-email-with-content-from-yml-file-ansible/27757)

<div class="topic-metadata">

**Author:** [@devopsram2012](https://forum.ansible.com/u/devopsram2012)\
**Replies:** 0\
**Last updated:** [June 9, 2018, 1:03pm UTC](https://forum.ansible.com/t/how-to-send-email-with-content-from-yml-file-ansible/27757 "2018-06-09T13:03:48Z")

</div>

Dear All, I want to send email with content from .yml file output . I’ve created Jenkins job using groovy script and Inside groovy I’m using shell script to call .yml file and inside I’m checking urls health check usin…

---

## [Error While nesting the with\_item](https://forum.ansible.com/t/error-while-nesting-the-with-item/27747)

<div class="topic-metadata">

**Author:** [@devopsram2012](https://forum.ansible.com/u/devopsram2012)\
**Replies:** 3\
**Last updated:** [June 9, 2018, 12:35pm UTC](https://forum.ansible.com/t/error-while-nesting-the-with-item/27747 "2018-06-09T12:35:51Z")

</div>

Dear All, I want to get output message of the log using ansible debug . \[Case-1\] If I know the no of results and I want too print then I can use below code CODE\[start\] name: Display all Endpoints Health\_Check test …

---

## [Format to specify two regex in contains parameter in find module](https://forum.ansible.com/t/format-to-specify-two-regex-in-contains-parameter-in-find-module/27739)

<div class="topic-metadata">

**Author:** [@Saranya\_N](https://forum.ansible.com/u/Saranya_N)\
**Replies:** 3\
**Last updated:** [June 9, 2018, 6:18am UTC](https://forum.ansible.com/t/format-to-specify-two-regex-in-contains-parameter-in-find-module/27739 "2018-06-09T06:18:40Z")

</div>

I want to grep for two words in contains attribute. It doesn't work if I give like this to search for patterns scm.com and DD: Contains: .\*scm\\.com.\* , dd\\:

---

## [How to make -vvvv the default for ansible-playbook in ansible.cfg](https://forum.ansible.com/t/how-to-make-vvvv-the-default-for-ansible-playbook-in-ansible-cfg/26145)

<div class="topic-metadata">

**Author:** [@Tchia04](https://forum.ansible.com/u/Tchia04)\
**Replies:** 2\
**Last updated:** [June 8, 2018, 8:40pm UTC](https://forum.ansible.com/t/how-to-make-vvvv-the-default-for-ansible-playbook-in-ansible-cfg/26145 "2018-06-08T20:40:42Z")

</div>

I read through the document at http://docs.ansible.com/ansible/latest/intro\_configuration.html, and I didn’t find any setting that can make -vvvv the default if ansible-playbook is ran outout -vvvv. For example, ansible…

---

## [Ansible yum module unable to find certain packages](https://forum.ansible.com/t/ansible-yum-module-unable-to-find-certain-packages/23076)

<div class="topic-metadata">

**Author:** [@Jeffrey\_Wen](https://forum.ansible.com/u/Jeffrey_Wen)\
**Replies:** 9\
**Last updated:** [June 8, 2018, 4:20pm UTC](https://forum.ansible.com/t/ansible-yum-module-unable-to-find-certain-packages/23076 "2018-06-08T16:20:09Z")

</div>

My playbook that installs some generic applications on all of my servers: \` name: Install base applications yum: name={{ item }} state=present with\_items: epel-release vim-enhanced gcc wget libsemanage-python policy…

---

## [Ansible and Active Directory DNS updates](https://forum.ansible.com/t/ansible-and-active-directory-dns-updates/27552)

<div class="topic-metadata">

**Author:** [@ADB101](https://forum.ansible.com/u/ADB101)\
**Replies:** 1\
**Last updated:** [June 8, 2018, 2:02pm UTC](https://forum.ansible.com/t/ansible-and-active-directory-dns-updates/27552 "2018-06-08T14:02:16Z")

</div>

Hi We’re using MS Active Directory to provide DNS resolution. I need to be able to add DNS entries to Active Directory but, not being a MS-techie, I’m not sure about the technicalities of doing so…The nsupdate module se…

---

## [Appending Hostname to a File](https://forum.ansible.com/t/appending-hostname-to-a-file/27737)

<div class="topic-metadata">

**Author:** [@marcalfa1](https://forum.ansible.com/u/marcalfa1)\
**Replies:** 2\
**Last updated:** [June 7, 2018, 8:32pm UTC](https://forum.ansible.com/t/appending-hostname-to-a-file/27737 "2018-06-07T20:32:43Z")

</div>

I have playbook that search for file in specific folder then fetch the files to my ansible host. During the fetch process, is there a way to append the hostname of the server the file came from for each file that’s being…

---

## [ansible-playbook using -i inventory on a playbook fails on pyVmomi not found](https://forum.ansible.com/t/ansible-playbook-using-i-inventory-on-a-playbook-fails-on-pyvmomi-not-found/27704)

<div class="topic-metadata">

**Author:** [@Wendell\_MacKenzie](https://forum.ansible.com/u/Wendell_MacKenzie)\
**Replies:** 17\
**Last updated:** [June 7, 2018, 7:55pm UTC](https://forum.ansible.com/t/ansible-playbook-using-i-inventory-on-a-playbook-fails-on-pyvmomi-not-found/27704 "2018-06-07T19:55:59Z")

</div>

Hi: I have a playbook that uses vmware\_guest module to create a new VM on an esxi server. The inventory specified on the command line does not have localhost defined. I DO specify delegate\_to: localhost in the task def…

---

## [Retrieving file names/sizes in dir](https://forum.ansible.com/t/retrieving-file-names-sizes-in-dir/27740)

<div class="topic-metadata">

**Author:** [@John\_Harmon](https://forum.ansible.com/u/John_Harmon)\
**Replies:** 4\
**Last updated:** [June 7, 2018, 7:51pm UTC](https://forum.ansible.com/t/retrieving-file-names-sizes-in-dir/27740 "2018-06-07T19:51:56Z")

</div>

I wish to be able to get the name and filesize of all files under /var/spool/mail. I was trying to do this with the following: \` name: Stat mail dir stat: path: “{{ item }}” with\_fileglob: “/var/spool/mail/\*” regi…

---

## [MySQLdb dependency in mysql module](https://forum.ansible.com/t/mysqldb-dependency-in-mysql-module/27741)

<div class="topic-metadata">

**Author:** [@Josef\_Fortier](https://forum.ansible.com/u/Josef_Fortier)\
**Replies:** 1\
**Last updated:** [June 7, 2018, 7:50pm UTC](https://forum.ansible.com/t/mysqldb-dependency-in-mysql-module/27741 "2018-06-07T19:50:13Z")

</div>

I’ve been working with the newly released Opensuse Leap 15 which no longer packages python MySQLdb. Suspicious that this was intentional, I googled a bit and found this on the saltstack Github issues pages: https://git…

---

## [revert changes in specific file using ansible.](https://forum.ansible.com/t/revert-changes-in-specific-file-using-ansible/27738)

<div class="topic-metadata">

**Author:** [@Hasan\_Syed](https://forum.ansible.com/u/Hasan_Syed)\
**Replies:** 3\
**Last updated:** [June 7, 2018, 4:44pm UTC](https://forum.ansible.com/t/revert-changes-in-specific-file-using-ansible/27738 "2018-06-07T16:44:31Z")

</div>

Team, Could you please guide me how we can revert changes of a remote server file using ansible? like I have a file on server 1 abc.txt and someone have changed it my requirement is to make the abc.txt file in previous …

---

## [include\_role with different user is not working](https://forum.ansible.com/t/include-role-with-different-user-is-not-working/27732)

<div class="topic-metadata">

**Author:** [@SS1](https://forum.ansible.com/u/SS1)\
**Replies:** 2\
**Last updated:** [June 7, 2018, 2:23pm UTC](https://forum.ansible.com/t/include-role-with-different-user-is-not-working/27732 "2018-06-07T14:23:01Z")

</div>

Ansible Version 2.5.4 I have a playbook which include two different role. Playbook run on localhost as root using ansible-pull role1. rpm installation require root access. role2. Application Configuration need to run …

---

## [replacing second word/string in file using replace module](https://forum.ansible.com/t/replacing-second-word-string-in-file-using-replace-module/27735)

<div class="topic-metadata">

**Author:** [@dkishore.unix](https://forum.ansible.com/u/dkishore.unix)\
**Replies:** 0\
**Last updated:** [June 7, 2018, 2:04pm UTC](https://forum.ansible.com/t/replacing-second-word-string-in-file-using-replace-module/27735 "2018-06-07T14:04:02Z")

</div>

I am trying to replace a second occurrence string or word in particular file using replace module but its replace all the strings/words matched in file. Ansible playbook:

---

## [how to call website through ansible](https://forum.ansible.com/t/how-to-call-website-through-ansible/27734)

<div class="topic-metadata">

**Author:** [@Anshoo\_Verma](https://forum.ansible.com/u/Anshoo_Verma)\
**Replies:** 0\
**Last updated:** [June 7, 2018, 11:53am UTC](https://forum.ansible.com/t/how-to-call-website-through-ansible/27734 "2018-06-07T11:53:52Z")

</div>

How to access website domain with ssh key user and password.

---

## [Ansible Supported OS](https://forum.ansible.com/t/ansible-supported-os/27724)

<div class="topic-metadata">

**Author:** [@Mohd\_Aftab](https://forum.ansible.com/u/Mohd_Aftab)\
**Replies:** 3\
**Last updated:** [June 7, 2018, 9:37am UTC](https://forum.ansible.com/t/ansible-supported-os/27724 "2018-06-07T09:37:27Z")

</div>

Hi Guys Can anybody let me know which all OS and version supported by ansible 2.\* . I mean which all OS/Version i cam manage from Ansible. Regards Aftab

---

## [Run ansible playbook on vagrant machines](https://forum.ansible.com/t/run-ansible-playbook-on-vagrant-machines/27636)

<div class="topic-metadata">

**Author:** [@Ravikumar\_Wagh](https://forum.ansible.com/u/Ravikumar_Wagh)\
**Replies:** 2\
**Last updated:** [June 7, 2018, 3:06am UTC](https://forum.ansible.com/t/run-ansible-playbook-on-vagrant-machines/27636 "2018-06-07T03:06:15Z")

</div>

Hello, I wish to run a ansible playbook on vagrant machines. I know vagrant provisioning, but scenario how I wish to run is as below:

---

## [GUI automation using ansible](https://forum.ansible.com/t/gui-automation-using-ansible/27729)

<div class="topic-metadata">

**Author:** [@Chiranjeevi\_Reddy](https://forum.ansible.com/u/Chiranjeevi_Reddy)\
**Replies:** 0\
**Last updated:** [June 7, 2018, 12:38am UTC](https://forum.ansible.com/t/gui-automation-using-ansible/27729 "2018-06-07T00:38:01Z")

</div>

Hi , am looking some GUI automation stuff for F5s, A10s, FWs using ansible, i saw the F5 modules that is CLI validation or it will be doing GUI validation ? can some one explain how ansible handles GUI automation ? -ch…

---

## [Best practice for global handlers?](https://forum.ansible.com/t/best-practice-for-global-handlers/22518)

<div class="topic-metadata">

**Author:** [@Brendan\_Jurd](https://forum.ansible.com/u/Brendan_Jurd)\
**Replies:** 1\
**Last updated:** [June 6, 2018, 10:06pm UTC](https://forum.ansible.com/t/best-practice-for-global-handlers/22518 "2018-06-06T22:06:20Z")

</div>

Hi folks, I’ve got a handler that I want to make available globally; that is, I want any host to be able to notify it, from within any role. Specifically, many of my various roles are installing custom NRPE commands fo…

---

## [Extracting items from list within another list](https://forum.ansible.com/t/extracting-items-from-list-within-another-list/27723)

<div class="topic-metadata">

**Author:** [@John\_Kane](https://forum.ansible.com/u/John_Kane)\
**Replies:** 2\
**Last updated:** [June 6, 2018, 9:54pm UTC](https://forum.ansible.com/t/extracting-items-from-list-within-another-list/27723 "2018-06-06T21:54:10Z")

</div>

Newbie when it comes to ansible and jinja. Were porting our installation and maintenance python scripts to ansible. We have large variable list (xml files, 4000+ lines) which I ran through an xml-\>yml converter. The outp…

---

## [Help: Ansible using find module with stat variables for conditionals. xxx.results\[x\].stat.exists == false](https://forum.ansible.com/t/help-ansible-using-find-module-with-stat-variables-for-conditionals-xxx-results-x-stat-exists-false/27728)

<div class="topic-metadata">

**Author:** [@Steve6](https://forum.ansible.com/u/Steve6)\
**Replies:** 0\
**Last updated:** [June 6, 2018, 8:28pm UTC](https://forum.ansible.com/t/help-ansible-using-find-module-with-stat-variables-for-conditionals-xxx-results-x-stat-exists-false/27728 "2018-06-06T20:28:36Z")

</div>

Hello! My goal is to be able to find a list of directories on each remote machine and if they exist then skip all follow up tasks if they exist. The issue I am running into is I am not exactly sure how to use this in a …

---

## [snow\_record module](https://forum.ansible.com/t/snow-record-module/27727)

<div class="topic-metadata">

**Author:** [@Kallu\_Srikanth](https://forum.ansible.com/u/Kallu_Srikanth)\
**Replies:** 0\
**Last updated:** [June 6, 2018, 6:59pm UTC](https://forum.ansible.com/t/snow-record-module/27727 "2018-06-06T18:59:38Z")

</div>

If anybody used the snow\_record module, How do I create a change ? and how to create a CI This is how I create an incident - name: Create an incident ( got from ansible documentation ) snow\_record: username: ansible\_…

---

## [Uninstall Visual Studio 2015](https://forum.ansible.com/t/uninstall-visual-studio-2015/27722)

<div class="topic-metadata">

**Author:** [@lpescatore](https://forum.ansible.com/u/lpescatore)\
**Replies:** 0\
**Last updated:** [June 6, 2018, 4:47pm UTC](https://forum.ansible.com/t/uninstall-visual-studio-2015/27722 "2018-06-06T16:47:03Z")

</div>

Hi all, I’m trying to automate an uninstall of Microsoft Visual Studio 2015. IN my playbook I have: name: VS2015 | Uninstall Visual Studio Professional With Updates 2015 win\_command: path: ‘C:\\ProgramData\\Package C…

---

## [Xpath does not reference a node!](https://forum.ansible.com/t/xpath-does-not-reference-a-node/27721)

<div class="topic-metadata">

**Author:** [@Ali\_Khawaja](https://forum.ansible.com/u/Ali_Khawaja)\
**Replies:** 1\
**Last updated:** [June 6, 2018, 2:38pm UTC](https://forum.ansible.com/t/xpath-does-not-reference-a-node/27721 "2018-06-06T14:38:14Z")

</div>

My xml file is below: \<?xml version="1.0" ?\> and i am doing the following in my playbook: name: update sharepoint version xml: path: “AutoSPInstaller/AutoSPInstallerInput.1.xml” xpath: “/Configuration/Install/@S…

---

## [Checking if a variable is defined in included tasks](https://forum.ansible.com/t/checking-if-a-variable-is-defined-in-included-tasks/27709)

<div class="topic-metadata">

**Author:** [@bozho](https://forum.ansible.com/u/bozho)\
**Replies:** 1\
**Last updated:** [June 6, 2018, 10:08am UTC](https://forum.ansible.com/t/checking-if-a-variable-is-defined-in-included-tasks/27709 "2018-06-06T10:08:25Z")

</div>

Hi all, I’ve just started learning Ansible and I have a question about checking for defined variables in included tasks. I’m writing an infrastructure role as a part of my test project configuration. Currently, the role…

---

## [Running Prallel Plays in Single Playbook](https://forum.ansible.com/t/running-prallel-plays-in-single-playbook/27718)

<div class="topic-metadata">

**Author:** [@Gowtham\_Nakulan](https://forum.ansible.com/u/Gowtham_Nakulan)\
**Replies:** 1\
**Last updated:** [June 6, 2018, 9:47am UTC](https://forum.ansible.com/t/running-prallel-plays-in-single-playbook/27718 "2018-06-06T09:47:34Z")

</div>

Hi Team, I have written lines for multiple plays in a playbook. But the plays are executing sequential I want the plays to run parallel. is there any option for the same Regards, Gowtham

---

## [Copy Module Question](https://forum.ansible.com/t/copy-module-question/27714)

<div class="topic-metadata">

**Author:** [@Carlton\_Patterson1](https://forum.ansible.com/u/Carlton_Patterson1)\
**Replies:** 1\
**Last updated:** [June 5, 2018, 11:29pm UTC](https://forum.ansible.com/t/copy-module-question/27714 "2018-06-05T23:29:53Z")

</div>

Hello Community, I’m learning Ansible and I’m looking at the Copy module. While the copy module is pretty straightforward the module doesn’t show how to specify the source machine and destination. For example, the foll…

---

## [Ansible Task Arguments](https://forum.ansible.com/t/ansible-task-arguments/27696)

<div class="topic-metadata">

**Author:** [@Carlton\_Patterson1](https://forum.ansible.com/u/Carlton_Patterson1)\
**Replies:** 2\
**Last updated:** [June 5, 2018, 9:23pm UTC](https://forum.ansible.com/t/ansible-task-arguments/27696 "2018-06-05T21:23:11Z")

</div>

Hello Community, I have crreated my own Module (pattersonsmod) with my own set of arguments, see image. Can someone let me know if the order of arguments is important? In the image the notify argument is at the beginnin…

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

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