# Ansible Project

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

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

**Page:** 293

---

## [Trying to duplicate a Bash script into ansible -- Not sure how to best handle alternatives with Slaves](https://forum.ansible.com/t/trying-to-duplicate-a-bash-script-into-ansible-not-sure-how-to-best-handle-alternatives-with-slaves/26282)

<div class="topic-metadata">

**Author:** [@Justin2](https://forum.ansible.com/u/Justin2)\
**Replies:** 3\
**Last updated:** [December 14, 2017, 2:52pm UTC](https://forum.ansible.com/t/trying-to-duplicate-a-bash-script-into-ansible-not-sure-how-to-best-handle-alternatives-with-slaves/26282 "2017-12-14T14:52:13Z")

</div>

I see there was a feature request for this, but they do not note how they actually worked around it. In a nutshell, we download a groovy archive, unzip it, and create slaves for every file in the archive that is not the …

---

## [Ansible reporting](https://forum.ansible.com/t/ansible-reporting/26292)

<div class="topic-metadata">

**Author:** [@devopsforall](https://forum.ansible.com/u/devopsforall)\
**Replies:** 0\
**Last updated:** [December 14, 2017, 12:32pm UTC](https://forum.ansible.com/t/ansible-reporting/26292 "2017-12-14T12:32:29Z")

</div>

Has anyone done ansible reporting log to splunk, or forwarding its event logs?

---

## [Mount Point Size](https://forum.ansible.com/t/mount-point-size/26290)

<div class="topic-metadata">

**Author:** [@Ravikumar\_Wagh](https://forum.ansible.com/u/Ravikumar_Wagh)\
**Replies:** 2\
**Last updated:** [December 14, 2017, 11:26am UTC](https://forum.ansible.com/t/mount-point-size/26290 "2017-12-14T11:26:45Z")

</div>

Hello, I was trying to get details of mout points but found that df and ansible setup module not returns same size or block count. This is case even I specify bloc size for df command checkout below : ravikumar:~ # d…

---

## [os\_router module doubt](https://forum.ansible.com/t/os-router-module-doubt/26289)

<div class="topic-metadata">

**Author:** [@Carlos\_Tolon](https://forum.ansible.com/u/Carlos_Tolon)\
**Replies:** 0\
**Last updated:** [December 14, 2017, 9:32am UTC](https://forum.ansible.com/t/os-router-module-doubt/26289 "2017-12-14T09:32:23Z")

</div>

Hi there, I am working with openstack modules (os\_network, os\_router, os\_subnet, …) The point is that I am trying to remove a router, a subnet and a network with this modules but I am getting an error when trying to do…

---

## [debugging ansible internals](https://forum.ansible.com/t/debugging-ansible-internals/26287)

<div class="topic-metadata">

**Author:** [@vartika\_darshana](https://forum.ansible.com/u/vartika_darshana)\
**Replies:** 0\
**Last updated:** [December 14, 2017, 4:03am UTC](https://forum.ansible.com/t/debugging-ansible-internals/26287 "2017-12-14T04:03:50Z")

</div>

hi all, it looks like we are running into an odd, internal ansible bug, we are getting: module\_stdout: "/usr/bin/python: can’t open file ‘/root/.ansible/tmp/ansible-tmp-1513221896.59-46487435467258/my\_module’ it doesn…

---

## [Add conditional logic to variable files?](https://forum.ansible.com/t/add-conditional-logic-to-variable-files/26267)

<div class="topic-metadata">

**Author:** [@Robert\_F](https://forum.ansible.com/u/Robert_F)\
**Replies:** 1\
**Last updated:** [December 14, 2017, 3:29am UTC](https://forum.ansible.com/t/add-conditional-logic-to-variable-files/26267 "2017-12-14T03:29:48Z")

</div>

I’ve been using Ansible Galaxy roles from Jeff Geerling. In his Github READMEs he seems to say that you can override variable settings in his default/main.yml and vars/\*.yml files by reproducing the desired settings in a…

---

## [Starting nrpe client using ansible task](https://forum.ansible.com/t/starting-nrpe-client-using-ansible-task/26263)

<div class="topic-metadata">

**Author:** [@Varun\_Raj\_c\_v](https://forum.ansible.com/u/Varun_Raj_c_v)\
**Replies:** 1\
**Last updated:** [December 14, 2017, 2:46am UTC](https://forum.ansible.com/t/starting-nrpe-client-using-ansible-task/26263 "2017-12-14T02:46:28Z")

</div>

I have written an ansible playbook to automate setup of nrpe 2.12 client which we use. The last step of the task is to start nrpe client as nagios user. ############### starting nrpe ################ name: go…

---

## [Variable precedence and why to over rule ?](https://forum.ansible.com/t/variable-precedence-and-why-to-over-rule/26262)

<div class="topic-metadata">

**Author:** [@akazia.info](https://forum.ansible.com/u/akazia.info)\
**Replies:** 3\
**Last updated:** [December 14, 2017, 2:32am UTC](https://forum.ansible.com/t/variable-precedence-and-why-to-over-rule/26262 "2017-12-14T02:32:44Z")

</div>

Hello, there is a quite simple setup I am sure many of us came across this: you have lean, slim and dedicate Roles every role has its own role vars playbooks include the roles Up to this point nothing spezial Now: l…

---

## [Templete statement that can qualify mulitiple inventory\_hostname](https://forum.ansible.com/t/templete-statement-that-can-qualify-mulitiple-inventory-hostname/26269)

<div class="topic-metadata">

**Author:** [@Mike\_Johnston](https://forum.ansible.com/u/Mike_Johnston)\
**Replies:** 2\
**Last updated:** [December 13, 2017, 7:13pm UTC](https://forum.ansible.com/t/templete-statement-that-can-qualify-mulitiple-inventory-hostname/26269 "2017-12-13T19:13:35Z")

</div>

I’m trying to figure out how to pass statement that will match multiple hostnames instead of just one. I know how to do it with a group in the hosts file, but I need it to be something I set in the defaults part of the r…

---

## [Play aborted if one host is unreachable](https://forum.ansible.com/t/play-aborted-if-one-host-is-unreachable/26279)

<div class="topic-metadata">

**Author:** [@Iryna\_Oliinykova](https://forum.ansible.com/u/Iryna_Oliinykova)\
**Replies:** 0\
**Last updated:** [December 13, 2017, 11:33am UTC](https://forum.ansible.com/t/play-aborted-if-one-host-is-unreachable/26279 "2017-12-13T11:33:57Z")

</div>

Hello, I have a play with a “serial” defined in it. This play fails if one of the hosts in the inventory is unreachable and is not executed on the rest of the hosts. I have found the exact same problem that was reporte…

---

## [Microsoft SQL server play](https://forum.ansible.com/t/microsoft-sql-server-play/26278)

<div class="topic-metadata">

**Author:** [@area0](https://forum.ansible.com/u/area0)\
**Replies:** 0\
**Last updated:** [December 13, 2017, 11:05am UTC](https://forum.ansible.com/t/microsoft-sql-server-play/26278 "2017-12-13T11:05:09Z")

</div>

Hi guys, Just wondering what’s the best way to run an SQL UPDATE on a remote Microsoft SQL database; the idea is that, once a machine runs through the win\_updates module, a field in the SQL database called ‘last patched…

---

## [Ansible 2.4 gathering facts stuck](https://forum.ansible.com/t/ansible-2-4-gathering-facts-stuck/26274)

<div class="topic-metadata">

**Author:** [@Mona\_Gopal](https://forum.ansible.com/u/Mona_Gopal)\
**Replies:** 1\
**Last updated:** [December 13, 2017, 8:39am UTC](https://forum.ansible.com/t/ansible-2-4-gathering-facts-stuck/26274 "2017-12-13T08:39:34Z")

</div>

Hi, Ansible2.4 is setup on CentOS7.4. The playbook execution gets stuck(for more than 5 mins) at gathering facts at times and few of the times it runs smoothly. What could be the reason for it? Regards, Mona G

---

## [How will you deal with this problem? \[extra-variable problem\]](https://forum.ansible.com/t/how-will-you-deal-with-this-problem-extra-variable-problem/26275)

<div class="topic-metadata">

**Author:** [@user45](https://forum.ansible.com/u/user45)\
**Replies:** 0\
**Last updated:** [December 13, 2017, 8:26am UTC](https://forum.ansible.com/t/how-will-you-deal-with-this-problem-extra-variable-problem/26275 "2017-12-13T08:26:19Z")

</div>

Currently I am using citirx’s L4 switch. I need to create 1 to 10 servers for each L4 switch. To do this I need extra\_variables. ( The extra variable below was used to create only two servers. ) When I have to make 10 …

---

## [reading from files](https://forum.ansible.com/t/reading-from-files/26258)

<div class="topic-metadata">

**Author:** [@coach.rhca](https://forum.ansible.com/u/coach.rhca)\
**Replies:** 4\
**Last updated:** [December 13, 2017, 7:42am UTC](https://forum.ansible.com/t/reading-from-files/26258 "2017-12-13T07:42:18Z")

</div>

Hi, Trying to read the values from flat files and to use it as a variables in the ansible playbook , for example the flatfile is #cat output example.com/development/testcaseone:v99 I want to use above values as a va…

---

## [WinRM configuration script](https://forum.ansible.com/t/winrm-configuration-script/15612)

<div class="topic-metadata">

**Author:** [@Trond\_Hindenes](https://forum.ansible.com/u/Trond_Hindenes)\
**Replies:** 6\
**Last updated:** [December 13, 2017, 3:45am UTC](https://forum.ansible.com/t/winrm-configuration-script/15612 "2017-12-13T03:45:31Z")

</div>

If anyone else in here are interested in Windows support, I’ve published an updated version of the winrm configuration script which basically performs a fire-and-forget setup of WinRM for https. I’m trying to be as smar…

---

## [Not repeatable login error with winrm](https://forum.ansible.com/t/not-repeatable-login-error-with-winrm/26268)

<div class="topic-metadata">

**Author:** [@Justin\_M](https://forum.ansible.com/u/Justin_M)\
**Replies:** 2\
**Last updated:** [December 13, 2017, 2:07am UTC](https://forum.ansible.com/t/not-repeatable-login-error-with-winrm/26268 "2017-12-13T02:07:59Z")

</div>

New to Ansbile and trying to do a POC and learn at the same time. I’m using centos for my ansbile server and using the local admin account on windows when running my remote tasks. I’m able to run a bunch of tasks like re…

---

## [Is there a way to print a report at the end of an ansible run?](https://forum.ansible.com/t/is-there-a-way-to-print-a-report-at-the-end-of-an-ansible-run/26265)

<div class="topic-metadata">

**Author:** [@burton](https://forum.ansible.com/u/burton)\
**Replies:** 1\
**Last updated:** [December 12, 2017, 9:50pm UTC](https://forum.ansible.com/t/is-there-a-way-to-print-a-report-at-the-end-of-an-ansible-run/26265 "2017-12-12T21:50:11Z")

</div>

I have an ansible setup that generates a set of clusters and their configuration. I want to print (locally) a report showing which services were deployed, what their credentials were, etc. debug won’t work because the …

---

## [End ansible](https://forum.ansible.com/t/end-ansible/26257)

<div class="topic-metadata">

**Author:** [@venkatesh\_rasipuram](https://forum.ansible.com/u/venkatesh_rasipuram)\
**Replies:** 1\
**Last updated:** [December 12, 2017, 2:48pm UTC](https://forum.ansible.com/t/end-ansible/26257 "2017-12-12T14:48:12Z")

</div>

HI team, I have my ansible play book. where I am running the yaml scripting sequentially (which mean run one after another host serial -1) As soon as I find the right host to set, I wanted to exit from the playbook and…

---

## [archive module does not add all the matched files to destination archive file](https://forum.ansible.com/t/archive-module-does-not-add-all-the-matched-files-to-destination-archive-file/26261)

<div class="topic-metadata">

**Author:** [@Lokesh](https://forum.ansible.com/u/Lokesh)\
**Replies:** 0\
**Last updated:** [December 12, 2017, 2:00pm UTC](https://forum.ansible.com/t/archive-module-does-not-add-all-the-matched-files-to-destination-archive-file/26261 "2017-12-12T14:00:06Z")

</div>

I want to search for files modified last 1day and add them to archive. I dont see all the matched files added to the destination zip file but see only the last file in the zip ansible --version ansible 2.3.1.0 config …

---

## [Ansible power shell script failing on Ansible but completing on target machine](https://forum.ansible.com/t/ansible-power-shell-script-failing-on-ansible-but-completing-on-target-machine/26260)

<div class="topic-metadata">

**Author:** [@Josh\_B](https://forum.ansible.com/u/Josh_B)\
**Replies:** 0\
**Last updated:** [December 12, 2017, 1:00pm UTC](https://forum.ansible.com/t/ansible-power-shell-script-failing-on-ansible-but-completing-on-target-machine/26260 "2017-12-12T13:00:55Z")

</div>

Hello, I have just started to use Ansible to complete some automation aspects on the Windows platform. My first task was to run our power shell script to install out Anti Virus software. I was able to achieve this by c…

---

## [Jinja2 Templating Example](https://forum.ansible.com/t/jinja2-templating-example/26241)

<div class="topic-metadata">

**Author:** [@Saurabh](https://forum.ansible.com/u/Saurabh)\
**Replies:** 1\
**Last updated:** [December 12, 2017, 9:51am UTC](https://forum.ansible.com/t/jinja2-templating-example/26241 "2017-12-12T09:51:22Z")

</div>

Hi All, Could you please share the best example or Github path for how to use Jinja2 template example? I have gone through Ansible Docs and Ansible GitHub path, But I need more example which can clear my concept and to…

---

## [How to include startup script in  instance template through ansible playbook](https://forum.ansible.com/t/how-to-include-startup-script-in-instance-template-through-ansible-playbook/26256)

<div class="topic-metadata">

**Author:** [@aashish.mishra](https://forum.ansible.com/u/aashish.mishra)\
**Replies:** 0\
**Last updated:** [December 12, 2017, 5:44am UTC](https://forum.ansible.com/t/how-to-include-startup-script-in-instance-template-through-ansible-playbook/26256 "2017-12-12T05:44:50Z")

</div>

Hi, Please help me for how to include startup script in instance\_template through ansible playbook. Regards Aashish

---

## [host variables in hosts file versus host variables in files within host\_vars inventory directory](https://forum.ansible.com/t/host-variables-in-hosts-file-versus-host-variables-in-files-within-host-vars-inventory-directory/26254)

<div class="topic-metadata">

**Author:** [@Jason\_S](https://forum.ansible.com/u/Jason_S)\
**Replies:** 5\
**Last updated:** [December 12, 2017, 3:19am UTC](https://forum.ansible.com/t/host-variables-in-hosts-file-versus-host-variables-in-files-within-host-vars-inventory-directory/26254 "2017-12-12T03:19:24Z")

</div>

The inventory documentation describes setting some variables for a single host in a hosts file http://docs.ansible.com/ansible/latest/intro\_inventory.html#host-variables \[atlanta\] host1 http\_port=80 maxRequestsPerChild…

---

## [INFO: Does each ansible task ssh before performing the task](https://forum.ansible.com/t/info-does-each-ansible-task-ssh-before-performing-the-task/26213)

<div class="topic-metadata">

**Author:** [@Chandan\_Javaregowda](https://forum.ansible.com/u/Chandan_Javaregowda)\
**Replies:** 1\
**Last updated:** [December 12, 2017, 2:58am UTC](https://forum.ansible.com/t/info-does-each-ansible-task-ssh-before-performing-the-task/26213 "2017-12-12T02:58:00Z")

</div>

Each task in my playbook is taking longer. That is because the remote host is in a different DC. I want to understand if each ansible task ssh’es to the remote host.

---

## [Email & Jinja2 templates](https://forum.ansible.com/t/email-jinja2-templates/26255)

<div class="topic-metadata">

**Author:** [@system](https://forum.ansible.com/u/system)\
**Replies:** 0\
**Last updated:** [December 12, 2017, 2:11am UTC](https://forum.ansible.com/t/email-jinja2-templates/26255 "2017-12-12T02:11:05Z")

</div>

there is a template lookup http://docs.ansible.com/ansible/devel/plugins/lookup/template.html

---

## [winrm or requests is not installed: No module named winrm](https://forum.ansible.com/t/winrm-or-requests-is-not-installed-no-module-named-winrm/26249)

<div class="topic-metadata">

**Author:** [@marcalfa1](https://forum.ansible.com/u/marcalfa1)\
**Replies:** 1\
**Last updated:** [December 11, 2017, 9:05pm UTC](https://forum.ansible.com/t/winrm-or-requests-is-not-installed-no-module-named-winrm/26249 "2017-12-11T21:05:56Z")

</div>

Has anyone properly documented the correct packages that needs to be installed to manage a windows host? ansible 2.4.1.0 config file = /etc/ansible/ansible.cfg configured module search path = \[u’/home/vagrant/.ansible…

---

## [Change credentials between hosts](https://forum.ansible.com/t/change-credentials-between-hosts/26251)

<div class="topic-metadata">

**Author:** [@Kevin\_Phillips](https://forum.ansible.com/u/Kevin_Phillips)\
**Replies:** 0\
**Last updated:** [December 11, 2017, 7:36pm UTC](https://forum.ansible.com/t/change-credentials-between-hosts/26251 "2017-12-11T19:36:03Z")

</div>

I have another unique use case I’m trying to work through with Ansible that I just can’t seem to get working. I’ve got a play that configures a service on a system which depends on a change being made to another server …

---

## [Win\_reg\_stat - set\_fact problem with missing dict key](https://forum.ansible.com/t/win-reg-stat-set-fact-problem-with-missing-dict-key/26247)

<div class="topic-metadata">

**Author:** [@Gareth\_Stockdale](https://forum.ansible.com/u/Gareth_Stockdale)\
**Replies:** 2\
**Last updated:** [December 11, 2017, 5:40pm UTC](https://forum.ansible.com/t/win-reg-stat-set-fact-problem-with-missing-dict-key/26247 "2017-12-11T17:40:13Z")

</div>

Hi So new to ansible. I am using win\_reg\_stat to lookup registry keys to ultimately uninstall some software. If the reg entry is found, myvar.value ( after defining "register: myvar") contains the registry value. If …

---

## [Run once with when statement causes only skipped action to run](https://forum.ansible.com/t/run-once-with-when-statement-causes-only-skipped-action-to-run/26230)

<div class="topic-metadata">

**Author:** [@ddrake2012](https://forum.ansible.com/u/ddrake2012)\
**Replies:** 8\
**Last updated:** [December 11, 2017, 4:47pm UTC](https://forum.ansible.com/t/run-once-with-when-statement-causes-only-skipped-action-to-run/26230 "2017-12-11T16:47:57Z")

</div>

Hey, I’m seeing some weird behavior that does not seem intuitive when trying to use run\_once with when. Intuitively I think this should run an action one time when the conditional is met, however what I’m seeing is that…

---

## [Slack Callback Plugin Usage](https://forum.ansible.com/t/slack-callback-plugin-usage/26243)

<div class="topic-metadata">

**Author:** [@andrew.sumner](https://forum.ansible.com/u/andrew.sumner)\
**Replies:** 1\
**Last updated:** [December 11, 2017, 3:32pm UTC](https://forum.ansible.com/t/slack-callback-plugin-usage/26243 "2017-12-11T15:32:27Z")

</div>

I’m trying to use the Slack callback plugin (https://docs.ansible.com/ansible/devel/plugins/callback/slack.html) in the hopes that it will send notifications as a playbook is executed and when it completes successfully o…

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

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