# Ansible Project

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

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

**Page:** 230

---

## [Ansible playbook for host rebooted and started unexpectedly and send an alert](https://forum.ansible.com/t/ansible-playbook-for-host-rebooted-and-started-unexpectedly-and-send-an-alert/28785)

<div class="topic-metadata">

**Author:** [@akhtar.riaz](https://forum.ansible.com/u/akhtar.riaz)\
**Replies:** 1\
**Last updated:** [October 15, 2018, 10:24am UTC](https://forum.ansible.com/t/ansible-playbook-for-host-rebooted-and-started-unexpectedly-and-send-an-alert/28785 "2018-10-15T10:24:15Z")

</div>

Hi All, I am looking for ansible play book example to send alert to premetheus after a host has rebooted and re-started unexpeditly. Any help would be greatly appreciate it. Thanks Riaz

---

## [ERROR! 'win\_updates' is not a valid attribute for a Play. Pls suggest](https://forum.ansible.com/t/error-win-updates-is-not-a-valid-attribute-for-a-play-pls-suggest/28782)

<div class="topic-metadata">

**Author:** [@Abhishek\_Mishra](https://forum.ansible.com/u/Abhishek_Mishra)\
**Replies:** 4\
**Last updated:** [October 14, 2018, 10:14pm UTC](https://forum.ansible.com/t/error-win-updates-is-not-a-valid-attribute-for-a-play-pls-suggest/28782 "2018-10-14T22:14:52Z")

</div>

ERROR! ‘win\_updates’ is not a valid attribute for a Play My yaml file

---

## [What is the meaning behind Playbooks Names!](https://forum.ansible.com/t/what-is-the-meaning-behind-playbooks-names/28784)

<div class="topic-metadata">

**Author:** [@harishreddy2992](https://forum.ansible.com/u/harishreddy2992)\
**Replies:** 1\
**Last updated:** [October 14, 2018, 8:03pm UTC](https://forum.ansible.com/t/what-is-the-meaning-behind-playbooks-names/28784 "2018-10-14T20:03:56Z")

</div>

Hi All, Have a doubt regarding giving a name to the playbook. Is there any specific reason for naming playbooks as following: 0.0-playbook-name.yml 0.1-playbook-name.yml 0.2-playbook-name.yml In the above names, wh…

---

## [How to check exit status of an application in windows ?](https://forum.ansible.com/t/how-to-check-exit-status-of-an-application-in-windows/28783)

<div class="topic-metadata">

**Author:** [@Shyam](https://forum.ansible.com/u/Shyam)\
**Replies:** 0\
**Last updated:** [October 14, 2018, 2:05pm UTC](https://forum.ansible.com/t/how-to-check-exit-status-of-an-application-in-windows/28783 "2018-10-14T14:05:04Z")

</div>

Hi, Is it possible to check the exit status of an application in windows through playbook like Linux ? Thanks and regards, Shyam.

---

## [Packer to automate windows builds with Ansible](https://forum.ansible.com/t/packer-to-automate-windows-builds-with-ansible/28780)

<div class="topic-metadata">

**Author:** [@Rahamath](https://forum.ansible.com/u/Rahamath)\
**Replies:** 0\
**Last updated:** [October 13, 2018, 4:18pm UTC](https://forum.ansible.com/t/packer-to-automate-windows-builds-with-ansible/28780 "2018-10-13T16:18:11Z")

</div>

Hello, i am trying to autonate windiws server build with Packer and virtual box. While using ansible provisioner in packer, how amd where to mention the ip address of newly launched VM in virtual box. I read that ansible…

---

## [WINRM CONNECTION ERROR: the specified credentials were rejected by the server](https://forum.ansible.com/t/winrm-connection-error-the-specified-credentials-were-rejected-by-the-server/28761)

<div class="topic-metadata">

**Author:** [@Johar\_K\_Kwan](https://forum.ansible.com/u/Johar_K_Kwan)\
**Replies:** 2\
**Last updated:** [October 13, 2018, 8:54am UTC](https://forum.ansible.com/t/winrm-connection-error-the-specified-credentials-were-rejected-by-the-server/28761 "2018-10-13T08:54:33Z")

</div>

Hi All, I faced below error on 1 of my windows machine. this windows machine is joined domain. ansible -i inventory winoct -m win\_ping -vvvvvvv ansible 2.6.1 config file = /etc/ansible/ansible.cfg configured module s…

---

## [ansible sudo example in docs fails](https://forum.ansible.com/t/ansible-sudo-example-in-docs-fails/28778)

<div class="topic-metadata">

**Author:** [@Dean\_Schulze](https://forum.ansible.com/u/Dean_Schulze)\
**Replies:** 1\
**Last updated:** [October 13, 2018, 5:48am UTC](https://forum.ansible.com/t/ansible-sudo-example-in-docs-fails/28778 "2018-10-13T05:48:21Z")

</div>

I’m new to Ansible and working through the Getting Started in the docs. It shows to use sudo mode just add --sudo flag, but that fails: ansible tv -m ping (works) ansible tv -m ping --sudo (fails with sudo: a password …

---

## [Using ansible on Windows through ssh](https://forum.ansible.com/t/using-ansible-on-windows-through-ssh/28766)

<div class="topic-metadata">

**Author:** [@aaldi](https://forum.ansible.com/u/aaldi)\
**Replies:** 3\
**Last updated:** [October 12, 2018, 8:25pm UTC](https://forum.ansible.com/t/using-ansible-on-windows-through-ssh/28766 "2018-10-12T20:25:56Z")

</div>

I’ve noticed some posts from a year ago (here, and here) about using OpenSSH on windows and avoiding WinRM. Are there any updates to this? Has this been implemented yet?

---

## [Ending summary of a playbook](https://forum.ansible.com/t/ending-summary-of-a-playbook/28776)

<div class="topic-metadata">

**Author:** [@Chris\_Bidwell](https://forum.ansible.com/u/Chris_Bidwell)\
**Replies:** 1\
**Last updated:** [October 12, 2018, 3:10pm UTC](https://forum.ansible.com/t/ending-summary-of-a-playbook/28776 "2018-10-12T15:10:08Z")

</div>

Hey all, Is there any way to write out where I would get a summary of a playbook, other than what is already given with the passes, fails, changed, etc. Let’s say I write a playbook listing all servers/workstations that…

---

## [ios\_facts failing to populate all interfaces (edit and running-config) #44463](https://forum.ansible.com/t/ios-facts-failing-to-populate-all-interfaces-edit-and-running-config-44463/28754)

<div class="topic-metadata">

**Author:** [@bill\_paxton](https://forum.ansible.com/u/bill_paxton)\
**Replies:** 3\
**Last updated:** [October 12, 2018, 2:54pm UTC](https://forum.ansible.com/t/ios-facts-failing-to-populate-all-interfaces-edit-and-running-config-44463/28754 "2018-10-12T14:54:48Z")

</div>

\[ios\_facts failing to populate all interfaces #44463\](http://ios\_facts failing to populate all interfaces #44463) Any chance this issue is being addressed? Its been over a month since OP. Thanks Bill

---

## [Specifying WIndows systems in a mixed host environment](https://forum.ansible.com/t/specifying-windows-systems-in-a-mixed-host-environment/28771)

<div class="topic-metadata">

**Author:** [@Hunter\_Tom](https://forum.ansible.com/u/Hunter_Tom)\
**Replies:** 2\
**Last updated:** [October 12, 2018, 1:26pm UTC](https://forum.ansible.com/t/specifying-windows-systems-in-a-mixed-host-environment/28771 "2018-10-12T13:26:23Z")

</div>

Hello All: Please help! Problem - I have a hosts file separated out with different branches of an organization as such: \[branch01\] server01 server02 server03 \[branch02\] server04 server05 …etc The problem is t…

---

## [Getting error when trying to install IIS on Windows server.](https://forum.ansible.com/t/getting-error-when-trying-to-install-iis-on-windows-server/28772)

<div class="topic-metadata">

**Author:** [@Ameya\_Agashe](https://forum.ansible.com/u/Ameya_Agashe)\
**Replies:** 2\
**Last updated:** [October 12, 2018, 4:28am UTC](https://forum.ansible.com/t/getting-error-when-trying-to-install-iis-on-windows-server/28772 "2018-10-12T04:28:38Z")

</div>

Hi All, I need your assistance to resolve this issue. Error details when I run in -vvv option: Using module file /opt/ansible/local/lib/python2.7/site-packages/ansible/modules/windows/win\_feature.py \<127.0.0.1\> PUT /…

---

## [with\_subelements works where loop with subelements filter fails](https://forum.ansible.com/t/with-subelements-works-where-loop-with-subelements-filter-fails/28770)

<div class="topic-metadata">

**Author:** [@Guy\_Knights1](https://forum.ansible.com/u/Guy_Knights1)\
**Replies:** 1\
**Last updated:** [October 11, 2018, 9:23pm UTC](https://forum.ansible.com/t/with-subelements-works-where-loop-with-subelements-filter-fails/28770 "2018-10-11T21:23:40Z")

</div>

I have the following tasks in a block, which I’ve modified to use the new ‘loop’ structure: \` name: process ipv6 rules if they exist block: name: create all ipv6 firewall log statements from ‘firewall’ variable ipta…

---

## [Want to access the server information from CSV file.](https://forum.ansible.com/t/want-to-access-the-server-information-from-csv-file/28763)

<div class="topic-metadata">

**Author:** [@Shyam](https://forum.ansible.com/u/Shyam)\
**Replies:** 4\
**Last updated:** [October 11, 2018, 7:25pm UTC](https://forum.ansible.com/t/want-to-access-the-server-information-from-csv-file/28763 "2018-10-11T19:25:45Z")

</div>

Hi all, Im trying to access the server information from CSV file. Based on this information, I want to target the host. The CSV file contains the following information. based on this CSV file, when ever we pass the ins…

---

## [user is not allowed to execute '/bin/sh -c echo BECOME-SUCCESS](https://forum.ansible.com/t/user-is-not-allowed-to-execute-bin-sh-c-echo-become-success/28679)

<div class="topic-metadata">

**Author:** [@Riahi\_Mohamed-Amine](https://forum.ansible.com/u/Riahi_Mohamed-Amine)\
**Replies:** 1\
**Last updated:** [October 11, 2018, 7:04pm UTC](https://forum.ansible.com/t/user-is-not-allowed-to-execute-bin-sh-c-echo-become-success/28679 "2018-10-11T19:04:54Z")

</div>

Hi i’m trying to run may first playbook with become\_user : cftadmin and i got this error msg : fatal: \[ANS\_IAWGAP01\]: FAILED! =\> {“changed”: false, “module\_stderr”: “Failed to add the host to the list of known hosts (/…

---

## [Ansible nested dictionary seems to do weird stuff with identical sub-groups](https://forum.ansible.com/t/ansible-nested-dictionary-seems-to-do-weird-stuff-with-identical-sub-groups/28764)

<div class="topic-metadata">

**Author:** [@I\_Viridis](https://forum.ansible.com/u/I_Viridis)\
**Replies:** 1\
**Last updated:** [October 11, 2018, 6:57pm UTC](https://forum.ansible.com/t/ansible-nested-dictionary-seems-to-do-weird-stuff-with-identical-sub-groups/28764 "2018-10-11T18:57:36Z")

</div>

\` inventory.yml europe: children: germany: children: on-premise: hosts: 127.0.0.1: datacenter: hosts: 127.0.0.2: france: children: on-premise: hosts: 127.0.0.3: datacenter: hosts: 127.0.0.4: \` Running…

---

## [host-specific ansible.cfg?](https://forum.ansible.com/t/host-specific-ansible-cfg/28768)

<div class="topic-metadata">

**Author:** [@erichymowitz](https://forum.ansible.com/u/erichymowitz)\
**Replies:** 4\
**Last updated:** [October 11, 2018, 6:08pm UTC](https://forum.ansible.com/t/host-specific-ansible-cfg/28768 "2018-10-11T18:08:35Z")

</div>

Greetings. Short question – Where/how can I set configuration settings (not variables) based on the target host? Long question – My standard ansible.cfg includes: \[privilege\_escalation\] #become=True #become\_method=…

---

## [How to filter data from ansible json format output for a specific element](https://forum.ansible.com/t/how-to-filter-data-from-ansible-json-format-output-for-a-specific-element/28765)

<div class="topic-metadata">

**Author:** [@abhijith.devaraju](https://forum.ansible.com/u/abhijith.devaraju)\
**Replies:** 2\
**Last updated:** [October 11, 2018, 10:06am UTC](https://forum.ansible.com/t/how-to-filter-data-from-ansible-json-format-output-for-a-specific-element/28765 "2018-10-11T10:06:24Z")

</div>

Hello All, I am using API call to fetch some data in json format. I would like to use/filter only part of data for my further tasks. Can someone help me out in filtering the json format for the element ? API call respo…

---

## [Ansible 2.7 - changes to python library look-up ?](https://forum.ansible.com/t/ansible-2-7-changes-to-python-library-look-up/28751)

<div class="topic-metadata">

**Author:** [@ajfogg](https://forum.ansible.com/u/ajfogg)\
**Replies:** 4\
**Last updated:** [October 11, 2018, 9:27am UTC](https://forum.ansible.com/t/ansible-2-7-changes-to-python-library-look-up/28751 "2018-10-11T09:27:35Z")

</div>

Hi all, A quick question as I’m slightly knee-deep in troubleshooting an upgrade to Ansible 2.7, but did the way searching for python libraries / site-package directories change, specifically with regard to the Azure cl…

---

## [Ansible Reboot Check](https://forum.ansible.com/t/ansible-reboot-check/28760)

<div class="topic-metadata">

**Author:** [@Chris\_Bidwell](https://forum.ansible.com/u/Chris_Bidwell)\
**Replies:** 2\
**Last updated:** [October 10, 2018, 10:40pm UTC](https://forum.ansible.com/t/ansible-reboot-check/28760 "2018-10-10T22:40:38Z")

</div>

Hey all, take a look at this and lemme know where I’m hosed at. The errors are a bit misleading:

---

## [how to use an pipe like \< \< in ansible ?](https://forum.ansible.com/t/how-to-use-an-pipe-like-in-ansible/28388)

<div class="topic-metadata">

**Author:** [@Henrik\_Schuetze](https://forum.ansible.com/u/Henrik_Schuetze)\
**Replies:** 4\
**Last updated:** [October 10, 2018, 7:20pm UTC](https://forum.ansible.com/t/how-to-use-an-pipe-like-in-ansible/28388 "2018-10-10T19:20:30Z")

</div>

i want to use a command like: read CURRENT\_LOG CURRENT\_POS \< \<( mysql -BNe “SHOW MASTER STATUS”); echo CURRENT\_LOG=$CURRENT\_LOG CURRENT\_POS=$CURRENT\_POS (credits: https://dba.stackexchange.com/questions/34934/how-to-re…

---

## [Ansible win\_robocopy gives error as "No Destination Directory Specified"](https://forum.ansible.com/t/ansible-win-robocopy-gives-error-as-no-destination-directory-specified/28756)

<div class="topic-metadata">

**Author:** [@Abhijeet\_Kamble](https://forum.ansible.com/u/Abhijeet_Kamble)\
**Replies:** 0\
**Last updated:** [October 10, 2018, 9:01am UTC](https://forum.ansible.com/t/ansible-win-robocopy-gives-error-as-no-destination-directory-specified/28756 "2018-10-10T09:01:40Z")

</div>

Hi, I am facing issues while using ansible with win\_robocopy , I face this issue when I specify any path with some space. { “\_ansible\_parsed”: true, “src”: “C:\\We bs\\Service\\”, “changed”: false, “\_ansible\_no\_log”: …

---

## [copy files from remote linux host to another remote linux host with one to one mapping of hosts.](https://forum.ansible.com/t/copy-files-from-remote-linux-host-to-another-remote-linux-host-with-one-to-one-mapping-of-hosts/28755)

<div class="topic-metadata">

**Author:** [@abhizersaifee03](https://forum.ansible.com/u/abhizersaifee03)\
**Replies:** 0\
**Last updated:** [October 10, 2018, 8:59am UTC](https://forum.ansible.com/t/copy-files-from-remote-linux-host-to-another-remote-linux-host-with-one-to-one-mapping-of-hosts/28755 "2018-10-10T08:59:31Z")

</div>

I have 100 old servers having some different applications and 100 new servers as old’s replacement. I want to copy the log files of old servers to its respective new server using Ansible. How can I do it. It looks someth…

---

## [strange error message from file lookup plugin](https://forum.ansible.com/t/strange-error-message-from-file-lookup-plugin/28740)

<div class="topic-metadata">

**Author:** [@christian.tremel](https://forum.ansible.com/u/christian.tremel)\
**Replies:** 2\
**Last updated:** [October 10, 2018, 7:35am UTC](https://forum.ansible.com/t/strange-error-message-from-file-lookup-plugin/28740 "2018-10-10T07:35:51Z")

</div>

until now i believed that the file lookup only bites when the file is available (ssh key in this example), but instead it fails if it not exists. any hints on the reason of this strange behaviour? error message: \` TAS…

---

## [cannot find ansible.cfg and /etc/ansible on Mac Mojave](https://forum.ansible.com/t/cannot-find-ansible-cfg-and-etc-ansible-on-mac-mojave/28718)

<div class="topic-metadata">

**Author:** [@Ronnie10](https://forum.ansible.com/u/Ronnie10)\
**Replies:** 3\
**Last updated:** [October 10, 2018, 1:09am UTC](https://forum.ansible.com/t/cannot-find-ansible-cfg-and-etc-ansible-on-mac-mojave/28718 "2018-10-10T01:09:40Z")

</div>

Hi there, I installed ansible 2.6.5 using pip, however I could find ansible.cfg and /etc/ansible folder in my macbook, I tried to create my own /etc/ansible but it doesn’t work. Any other way to get that fixed? Thank y…

---

## [Continuous patching for large build pool](https://forum.ansible.com/t/continuous-patching-for-large-build-pool/28735)

<div class="topic-metadata">

**Author:** [@bglowacki](https://forum.ansible.com/u/bglowacki)\
**Replies:** 5\
**Last updated:** [October 9, 2018, 2:17pm UTC](https://forum.ansible.com/t/continuous-patching-for-large-build-pool/28735 "2018-10-09T14:17:25Z")

</div>

I’m working on a project to perform windows patching across a large pool of 450 Windows build agents. The build agents need to be patched monthly. Once a month, each agent needs to be offlined as a build agent, patched u…

---

## [become or sudo](https://forum.ansible.com/t/become-or-sudo/28716)

<div class="topic-metadata">

**Author:** [@rajendra.rawat17](https://forum.ansible.com/u/rajendra.rawat17)\
**Replies:** 9\
**Last updated:** [October 9, 2018, 12:06pm UTC](https://forum.ansible.com/t/become-or-sudo/28716 "2018-10-09T12:06:32Z")

</div>

Hi All, I am facing issue while installing httpd into remote server from ansible control server. I have a control machine and a webserver machine. My playbook is given below

---

## [Ansible nagios module, command action with parameters](https://forum.ansible.com/t/ansible-nagios-module-command-action-with-parameters/28747)

<div class="topic-metadata">

**Author:** [@Willem\_D\_Haese](https://forum.ansible.com/u/Willem_D_Haese)\
**Replies:** 1\
**Last updated:** [October 9, 2018, 11:59am UTC](https://forum.ansible.com/t/ansible-nagios-module-command-action-with-parameters/28747 "2018-10-09T11:59:33Z")

</div>

Hello, I need to schedule a forced service check for all services on a Nagios host. This is possible with the ‘SCHEDULE\_FORCED\_HOST\_SVC\_CHECKS’ command. https://assets.nagios.com/downloads/nagioscore/docs/externalcmds/…

---

## [Ability to create Azure automation account via Ansible](https://forum.ansible.com/t/ability-to-create-azure-automation-account-via-ansible/28729)

<div class="topic-metadata">

**Author:** [@Ameya\_Agashe](https://forum.ansible.com/u/Ameya_Agashe)\
**Replies:** 5\
**Last updated:** [October 9, 2018, 11:39am UTC](https://forum.ansible.com/t/ability-to-create-azure-automation-account-via-ansible/28729 "2018-10-09T11:39:42Z")

</div>

Hi Guys, Are we not able to create an Azure automation account with Ansible? Seems a simple request but I am not able to figure it out. Would appreciate your guidance. Thank you very much. Kind regards Ameya Agashe …

---

## [using rule\_desc with ec2\_group will always clear the rules on the first run](https://forum.ansible.com/t/using-rule-desc-with-ec2-group-will-always-clear-the-rules-on-the-first-run/28744)

<div class="topic-metadata">

**Author:** [@Barry\_Kaplan](https://forum.ansible.com/u/Barry_Kaplan)\
**Replies:** 1\
**Last updated:** [October 9, 2018, 2:00am UTC](https://forum.ansible.com/t/using-rule-desc-with-ec2-group-will-always-clear-the-rules-on-the-first-run/28744 "2018-10-09T02:00:51Z")

</div>

I just recently discovered rule\_desc. So upon adding the description to some plays I am seeing the behavior that the first time ec2\_group is executed with the rule description, all rules (or at least the rules with the d…

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

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