# Ansible Project

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

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

**Page:** 301

---

## [How to handle lists of files and avoid unnecessary changes](https://forum.ansible.com/t/how-to-handle-lists-of-files-and-avoid-unnecessary-changes/25964)

<div class="topic-metadata">

**Author:** [@Marc\_Haber](https://forum.ansible.com/u/Marc_Haber)\
**Replies:** 3\
**Last updated:** [November 9, 2017, 3:17pm UTC](https://forum.ansible.com/t/how-to-handle-lists-of-files-and-avoid-unnecessary-changes/25964 "2017-11-09T15:17:10Z")

</div>

Hi, on Debian systems, one can configure repositories in an /etc/apt/sources.list.d directory with multiple files. I usually name the files after the distribution, so that, in a simplyfied example, I might have a fil…

---

## [Add asnsible\_host for each member of a group.](https://forum.ansible.com/t/add-asnsible-host-for-each-member-of-a-group/25975)

<div class="topic-metadata">

**Author:** [@Federico\_Olivieri](https://forum.ansible.com/u/Federico_Olivieri)\
**Replies:** 1\
**Last updated:** [November 9, 2017, 3:15pm UTC](https://forum.ansible.com/t/add-asnsible-host-for-each-member-of-a-group/25975 "2017-11-09T15:15:29Z")

</div>

Hi all I have a group like this: \[webservers\] www\[01:50\].example.com I would like to understand if there is a way to assign ansible\_host variable for each member of the group like: www01.example.com ansible\_host=1.1.…

---

## [pytest arugment error](https://forum.ansible.com/t/pytest-arugment-error/25899)

<div class="topic-metadata">

**Author:** [@Jae\_Kim](https://forum.ansible.com/u/Jae_Kim)\
**Replies:** 5\
**Last updated:** [November 9, 2017, 1:58pm UTC](https://forum.ansible.com/t/pytest-arugment-error/25899 "2017-11-09T13:58:29Z")

</div>

Hi Following the command in this manual http://docs.ansible.com/ansible/latest/dev\_guide/developing\_modules\_general.html When I run the following command pytest -r a --cov=. --cov-report=html --fulltrace --color yes …

---

## [How to Install and Configure Ansible on Ubuntu 16.04 whithout Internet ?](https://forum.ansible.com/t/how-to-install-and-configure-ansible-on-ubuntu-16-04-whithout-internet/25968)

<div class="topic-metadata">

**Author:** [@user118](https://forum.ansible.com/u/user118)\
**Replies:** 1\
**Last updated:** [November 9, 2017, 7:10am UTC](https://forum.ansible.com/t/how-to-install-and-configure-ansible-on-ubuntu-16-04-whithout-internet/25968 "2017-11-09T07:10:50Z")

</div>

在 2017年11月9日星期四 UTC+8上午10:37:16，赵梦写道：

---

## [Getting authentication failed with simple playbook.](https://forum.ansible.com/t/getting-authentication-failed-with-simple-playbook/25942)

<div class="topic-metadata">

**Author:** [@Steve\_Madel](https://forum.ansible.com/u/Steve_Madel)\
**Replies:** 1\
**Last updated:** [November 9, 2017, 7:04am UTC](https://forum.ansible.com/t/getting-authentication-failed-with-simple-playbook/25942 "2017-11-09T07:04:33Z")

</div>

I am an ansible noob looking to manage cisco ACI with it. I have thrown together a simple playbook located at https://pastebin.com/LcGBEttc. When I run the playbook I get Permission denied (publickey,password), however i…

---

## [Inventory source (RH Satellite 6) Invalid Arguments](https://forum.ansible.com/t/inventory-source-rh-satellite-6-invalid-arguments/25970)

<div class="topic-metadata">

**Author:** [@Jason\_Firmino](https://forum.ansible.com/u/Jason_Firmino)\
**Replies:** 0\
**Last updated:** [November 9, 2017, 5:27am UTC](https://forum.ansible.com/t/inventory-source-rh-satellite-6-invalid-arguments/25970 "2017-11-09T05:27:32Z")

</div>

Hello Gents, I’m trying to setup n inventory using a RH Satellite 6 source. Added the credentials and the inventory source, however once I try to sync it it fails with this output: 2.579 INFO Updating inventory 2: NON…

---

## [Errativ behavior when looping over a fileglob](https://forum.ansible.com/t/errativ-behavior-when-looping-over-a-fileglob/25950)

<div class="topic-metadata">

**Author:** [@Marc\_Haber](https://forum.ansible.com/u/Marc_Haber)\
**Replies:** 2\
**Last updated:** [November 8, 2017, 7:15pm UTC](https://forum.ansible.com/t/errativ-behavior-when-looping-over-a-fileglob/25950 "2017-11-08T19:15:24Z")

</div>

Hi, I am trying to remove a bunch of files wiht the following code: $ cat site.yml

---

## [Running exe on windows from a batch file](https://forum.ansible.com/t/running-exe-on-windows-from-a-batch-file/25963)

<div class="topic-metadata">

**Author:** [@Zimidar\_Boy](https://forum.ansible.com/u/Zimidar_Boy)\
**Replies:** 0\
**Last updated:** [November 8, 2017, 6:53pm UTC](https://forum.ansible.com/t/running-exe-on-windows-from-a-batch-file/25963 "2017-11-08T18:53:53Z")

</div>

Also try this batch file. \_\_\*https://gist.github.com/wjrogers/1016065\*\_\_

---

## [Running exe on windows from a batch file](https://forum.ansible.com/t/running-exe-on-windows-from-a-batch-file/25962)

<div class="topic-metadata">

**Author:** [@Zimidar\_Boy](https://forum.ansible.com/u/Zimidar_Boy)\
**Replies:** 0\
**Last updated:** [November 8, 2017, 6:49pm UTC](https://forum.ansible.com/t/running-exe-on-windows-from-a-batch-file/25962 "2017-11-08T18:49:50Z")

</div>

Can you please run playbook by using -vvv verbose mode. It will give more clarity of error.

---

## [scanning the newly added disc](https://forum.ansible.com/t/scanning-the-newly-added-disc/25961)

<div class="topic-metadata">

**Author:** [@kanna3k6](https://forum.ansible.com/u/kanna3k6)\
**Replies:** 0\
**Last updated:** [November 8, 2017, 5:46pm UTC](https://forum.ansible.com/t/scanning-the-newly-added-disc/25961 "2017-11-08T17:46:01Z")

</div>

Hi Team, Whenever we get new luns from storage team., how to scan the newly added lun which module will be more suitable to scan the lun

---

## [os\_server shade problem](https://forum.ansible.com/t/os-server-shade-problem/25958)

<div class="topic-metadata">

**Author:** [@asadrajput.pk](https://forum.ansible.com/u/asadrajput.pk)\
**Replies:** 0\
**Last updated:** [November 8, 2017, 11:22am UTC](https://forum.ansible.com/t/os-server-shade-problem/25958 "2017-11-08T11:22:12Z")

</div>

Hey Guys, I have tried all the modules of shade to automate my openstack using os\_etc. I found only one error which i would like share for resolving the issue. The script is as under. name: Deploy on OpenStack hos…

---

## [wait\_for module](https://forum.ansible.com/t/wait-for-module/25933)

<div class="topic-metadata">

**Author:** [@coach.rhca](https://forum.ansible.com/u/coach.rhca)\
**Replies:** 6\
**Last updated:** [November 8, 2017, 9:09am UTC](https://forum.ansible.com/t/wait-for-module/25933 "2017-11-08T09:09:59Z")

</div>

Hi, After rebooting the host and need to check if that process is back online. Is there a way in ansible (or “wait\_for module” ) to check the service or process to be running after a reboot. could you please share your…

---

## [passing --ask-become-pass to task within playbook](https://forum.ansible.com/t/passing-ask-become-pass-to-task-within-playbook/25953)

<div class="topic-metadata">

**Author:** [@Stephen\_Tyler](https://forum.ansible.com/u/Stephen_Tyler)\
**Replies:** 1\
**Last updated:** [November 8, 2017, 6:18am UTC](https://forum.ansible.com/t/passing-ask-become-pass-to-task-within-playbook/25953 "2017-11-08T06:18:53Z")

</div>

Hello. If I have a playbook with -b --become-user=root --ask-become-pass CLI arguments… and a script/task that cannot be started with root (so I can’t use become on a task level) but later asks to sudo, to be able to pa…

---

## [How do you register variables from imported playbooks?](https://forum.ansible.com/t/how-do-you-register-variables-from-imported-playbooks/25915)

<div class="topic-metadata">

**Author:** [@ddrake2012](https://forum.ansible.com/u/ddrake2012)\
**Replies:** 1\
**Last updated:** [November 8, 2017, 3:12am UTC](https://forum.ansible.com/t/how-do-you-register-variables-from-imported-playbooks/25915 "2017-11-08T03:12:51Z")

</div>

Hello, I’m new to ansible and am trying to use import\_playbook and register but it is not working. I have a playbook called vpc.yml: hosts: localhost tasks: import\_role: name: vpc vars: aws\_region: “{{aws\_region}}…

---

## [Modifying local files while targeting a remote system](https://forum.ansible.com/t/modifying-local-files-while-targeting-a-remote-system/25951)

<div class="topic-metadata">

**Author:** [@EspressoBeanies](https://forum.ansible.com/u/EspressoBeanies)\
**Replies:** 2\
**Last updated:** [November 7, 2017, 10:23pm UTC](https://forum.ansible.com/t/modifying-local-files-while-targeting-a-remote-system/25951 "2017-11-07T22:23:22Z")

</div>

Is it possible to modify local files while targeting a remote system in an Ansible YAML file? I’m trying to run an Ansible script on a remote machine, but when everything finishes on that remote machine, I’d like to move…

---

## [regexp multiline](https://forum.ansible.com/t/regexp-multiline/25952)

<div class="topic-metadata">

**Author:** [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Replies:** 0\
**Last updated:** [November 7, 2017, 9:18pm UTC](https://forum.ansible.com/t/regexp-multiline/25952 "2017-11-07T21:18:43Z")

</div>

There are currently only two flags available for use in regular expression filters in ansible, which appear to be 'ignorecase' and 'multiline': https://github.com/ansible/ansible/blob/devel/lib/ansible/plugins/filter/…

---

## [fatal: \[localhost\]: FAILED! when installing IIS on Windows Server 2016 ec2](https://forum.ansible.com/t/fatal-localhost-failed-when-installing-iis-on-windows-server-2016-ec2/25902)

<div class="topic-metadata">

**Author:** [@Akim\_Grudzitsky](https://forum.ansible.com/u/Akim_Grudzitsky)\
**Replies:** 5\
**Last updated:** [November 7, 2017, 8:08pm UTC](https://forum.ansible.com/t/fatal-localhost-failed-when-installing-iis-on-windows-server-2016-ec2/25902 "2017-11-07T20:08:38Z")

</div>

I’m trying to install IIS server on the ec2 instance with Windows in AWS. But getting an error: fatal: \[localhost\]: FAILED! =\> { "changed": false, "failed": true, "module\_stderr": "", "module\_stdout"…

---

## [how to get only and only command output in ansible playbook](https://forum.ansible.com/t/how-to-get-only-and-only-command-output-in-ansible-playbook/25949)

<div class="topic-metadata">

**Author:** [@Sameer\_Modak](https://forum.ansible.com/u/Sameer_Modak)\
**Replies:** 0\
**Last updated:** [November 7, 2017, 4:24pm UTC](https://forum.ansible.com/t/how-to-get-only-and-only-command-output-in-ansible-playbook/25949 "2017-11-07T16:24:10Z")

</div>

Hello Team, Whenever i run my playbook, it gives me below output which i do not want i just want standard output or standard error.

---

## [tower surveys / how to enter a per host variable value](https://forum.ansible.com/t/tower-surveys-how-to-enter-a-per-host-variable-value/25944)

<div class="topic-metadata">

**Author:** [@Ulises\_Alonso](https://forum.ansible.com/u/Ulises_Alonso)\
**Replies:** 2\
**Last updated:** [November 7, 2017, 1:59pm UTC](https://forum.ansible.com/t/tower-surveys-how-to-enter-a-per-host-variable-value/25944 "2017-11-07T13:59:53Z")

</div>

Hi all again I don’t see it is possible to enter a variable value different for each host when using ansible tower surveys Is it not possible? Thanks Ulises

---

## [Maximum Failure Percentage - global setting](https://forum.ansible.com/t/maximum-failure-percentage-global-setting/25946)

<div class="topic-metadata">

**Author:** [@Jonathan\_Nunez\_Aguin](https://forum.ansible.com/u/Jonathan_Nunez_Aguin)\
**Replies:** 1\
**Last updated:** [November 7, 2017, 11:54am UTC](https://forum.ansible.com/t/maximum-failure-percentage-global-setting/25946 "2017-11-07T11:54:38Z")

</div>

Hello, I have multiple plays where we need to fail when one of the host has a failure, behaviour that we can configure by using “max\_fail\_percentage: 0” but we need to add this setting in each play which is really verbo…

---

## [Hi, can someone help me please ? it's about docker\_image is not pushing to docker hub](https://forum.ansible.com/t/hi-can-someone-help-me-please-its-about-docker-image-is-not-pushing-to-docker-hub/25945)

<div class="topic-metadata">

**Author:** [@Arkan\_M\_Gerges\_Anabi](https://forum.ansible.com/u/Arkan_M_Gerges_Anabi)\
**Replies:** 0\
**Last updated:** [November 7, 2017, 9:41am UTC](https://forum.ansible.com/t/hi-can-someone-help-me-please-its-about-docker-image-is-not-pushing-to-docker-hub/25945 "2017-11-07T09:41:31Z")

</div>

Hi guys, I’m trying for more than 2 days to make this work, I’m using jenkins with ansible. My ansible role is like this: name: Login into docker hub docker\_login: username: “username” password: “pass” email: “me…

---

## [Win\_command module adds an additional slash to the windows path.](https://forum.ansible.com/t/win-command-module-adds-an-additional-slash-to-the-windows-path/25936)

<div class="topic-metadata">

**Author:** [@anoop\_vc](https://forum.ansible.com/u/anoop_vc)\
**Replies:** 1\
**Last updated:** [November 7, 2017, 9:16am UTC](https://forum.ansible.com/t/win-command-module-adds-an-additional-slash-to-the-windows-path/25936 "2017-11-07T09:16:16Z")

</div>

Please find my YAML below

---

## [tower surveys / how to enter a dictionary variable](https://forum.ansible.com/t/tower-surveys-how-to-enter-a-dictionary-variable/25943)

<div class="topic-metadata">

**Author:** [@Ulises\_Alonso](https://forum.ansible.com/u/Ulises_Alonso)\
**Replies:** 0\
**Last updated:** [November 7, 2017, 9:03am UTC](https://forum.ansible.com/t/tower-surveys-how-to-enter-a-dictionary-variable/25943 "2017-11-07T09:03:41Z")

</div>

Hi all I’m just trying ansible tower first time. I’m not finding any way of entering a dictionary variable with the GUI. For example, I would like to be able to set the values of a cluster\_member variable which has an i…

---

## [Get user details](https://forum.ansible.com/t/get-user-details/25897)

<div class="topic-metadata">

**Author:** [@Ravikumar\_Wagh](https://forum.ansible.com/u/Ravikumar_Wagh)\
**Replies:** 1\
**Last updated:** [November 7, 2017, 8:16am UTC](https://forum.ansible.com/t/get-user-details/25897 "2017-11-07T08:16:49Z")

</div>

Is there any way to get available users in system or an spcific user details.

---

## [How to write cobbler.ini for multiple cobbler servers](https://forum.ansible.com/t/how-to-write-cobbler-ini-for-multiple-cobbler-servers/25908)

<div class="topic-metadata">

**Author:** [@jdelaporte](https://forum.ansible.com/u/jdelaporte)\
**Replies:** 1\
**Last updated:** [November 7, 2017, 7:29am UTC](https://forum.ansible.com/t/how-to-write-cobbler-ini-for-multiple-cobbler-servers/25908 "2017-11-07T07:29:45Z")

</div>

I want to set up multiple cobbler servers' hosts in my cobbler.ini to use their inventory...how do I do that?

---

## [regexp failing .... not sure why](https://forum.ansible.com/t/regexp-failing-not-sure-why/25941)

<div class="topic-metadata">

**Author:** [@Renald\_Casagraude](https://forum.ansible.com/u/Renald_Casagraude)\
**Replies:** 0\
**Last updated:** [November 6, 2017, 11:10pm UTC](https://forum.ansible.com/t/regexp-failing-not-sure-why/25941 "2017-11-06T23:10:01Z")

</div>

Maybe you can try to proceed by inclusion, knowing the format of a limits.conf : ^\\s\*\[\*a-z\]+\\s+soft\\s+nofile R.

---

## [Dynamodb autoscaling policy](https://forum.ansible.com/t/dynamodb-autoscaling-policy/25940)

<div class="topic-metadata">

**Author:** [@Gerald\_Spencer1](https://forum.ansible.com/u/Gerald_Spencer1)\
**Replies:** 0\
**Last updated:** [November 6, 2017, 9:56pm UTC](https://forum.ansible.com/t/dynamodb-autoscaling-policy/25940 "2017-11-06T21:56:17Z")

</div>

Can a dynamodb table’s autoscaling policy be set via ansible? I have not been able to find an example of this being done… Cheers.

---

## [Delegate to a group with\_items or another way?](https://forum.ansible.com/t/delegate-to-a-group-with-items-or-another-way/25939)

<div class="topic-metadata">

**Author:** [@mark.haney](https://forum.ansible.com/u/mark.haney)\
**Replies:** 0\
**Last updated:** [November 6, 2017, 7:00pm UTC](https://forum.ansible.com/t/delegate-to-a-group-with-items-or-another-way/25939 "2017-11-06T19:00:43Z")

</div>

I’ve got a case where I need to run a command on a specific group of hosts when a certain file exists. The playbook is being run on two host groups (a and b). I’m trying to figure out the best way to create the logic to …

---

## [2.4 inventory example?](https://forum.ansible.com/t/2-4-inventory-example/25886)

<div class="topic-metadata">

**Author:** [@Brantley\_West](https://forum.ansible.com/u/Brantley_West)\
**Replies:** 2\
**Last updated:** [November 6, 2017, 6:37pm UTC](https://forum.ansible.com/t/2-4-inventory-example/25886 "2017-11-06T18:37:01Z")

</div>

Hello, It seems the developing\_api.rst page (https://github.com/ansible/ansible/blob/v2.4.1.0-1/docs/docsite/rst/dev\_guide/developing\_api.rst) is outdated due to the 2.4 inventory changes. Are there any tips for doing s…

---

## [Dynamic Groups In Custom Dynamic Inventory](https://forum.ansible.com/t/dynamic-groups-in-custom-dynamic-inventory/25921)

<div class="topic-metadata">

**Author:** [@gforster](https://forum.ansible.com/u/gforster)\
**Replies:** 2\
**Last updated:** [November 6, 2017, 5:27pm UTC](https://forum.ansible.com/t/dynamic-groups-in-custom-dynamic-inventory/25921 "2017-11-06T17:27:20Z")

</div>

I have a custom dynamic inventory whose source data is basically a custom flat-file database that consists of a hostname and a bunch of key=value pairs. In the dynamic inventory, I’m using those key=value pairs as hostva…

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

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