# Latest

**URL:** https://forum.ansible.com/latest.md?page=598

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

**Page:** 599

---

## [Cleanup activity stream fails](https://forum.ansible.com/t/cleanup-activity-stream-fails/26284)

<div class="topic-metadata">

**Author:** [@dmitry.makovey](https://forum.ansible.com/u/dmitry.makovey)\
**Replies:** 2\
**Last updated:** [December 13, 2017, 9:23pm UTC](https://forum.ansible.com/t/cleanup-activity-stream-fails/26284 "2017-12-13T21:23:17Z")

</div>

I’ve got Ansible Tower instance that’s been running for over a year now. I’m trying to “cleanup activity stream” which ultimately fails every time I try launching it. CLI invocaition was: tower-manage cleanup\_activity…

---

## [AWX installed on AWS- ERROR with aws inventory.](https://forum.ansible.com/t/awx-installed-on-aws-error-with-aws-inventory/26270)

<div class="topic-metadata">

**Author:** [@Ravi\_Gavde](https://forum.ansible.com/u/Ravi_Gavde)\
**Replies:** 8\
**Last updated:** [December 13, 2017, 8:37pm UTC](https://forum.ansible.com/t/awx-installed-on-aws-error-with-aws-inventory/26270 "2017-12-13T20:37:46Z")

</div>

2017-12-12 22:45:08,761 INFO awx.main.commands.inventory\_import Updating inventory 3: AWS HorizontalDev 2017-12-12 22:45:08,776 DEBUG awx.main.commands.inventory\_import Using system install of ansible-inventory CLI: /usr…

---

## [AWX on RHEL VM](https://forum.ansible.com/t/awx-on-rhel-vm/26233)

<div class="topic-metadata">

**Author:** [@Sammic30](https://forum.ansible.com/u/Sammic30)\
**Replies:** 15\
**Last updated:** [December 13, 2017, 7:24pm UTC](https://forum.ansible.com/t/awx-on-rhel-vm/26233 "2017-12-13T19:24:38Z")

</div>

Hi, I’m new to AWX and need some help. Anyone tired to install AWX directly in the RHEL VM? Is there any other option available instead of Docker or Openshift? Any help is appreciated!! Regards Sammi

---

## [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…

---

## [looking to help out with import\_playbook bugs/features](https://forum.ansible.com/t/looking-to-help-out-with-import-playbook-bugs-features/26234)

<div class="topic-metadata">

**Author:** [@Wayne\_Warren](https://forum.ansible.com/u/Wayne_Warren)\
**Replies:** 3\
**Last updated:** [December 13, 2017, 6:38pm UTC](https://forum.ansible.com/t/looking-to-help-out-with-import-playbook-bugs-features/26234 "2017-12-13T18:38:17Z")

</div>

Howdy folks! So I am relatively new to ansible as a user, but I think I’ve found some bugs I would like to try my hand at hacking this weekend: https://github.com/ansible/ansible/issues/29008 https://github.com/ansibl…

---

## [Copy module: move directories recursively](https://forum.ansible.com/t/copy-module-move-directories-recursively/26168)

<div class="topic-metadata">

**Author:** [@Willian\_Paixao](https://forum.ansible.com/u/Willian_Paixao)\
**Replies:** 1\
**Last updated:** [December 13, 2017, 3:17pm UTC](https://forum.ansible.com/t/copy-module-move-directories-recursively/26168 "2017-12-13T15:17:24Z")

</div>

Hello, I’ve been trying to move a folder and its contents to another path, after a few tries and a couple of googles, I found that it can’t be done just using file or copy modules, rather command or synchronize module…

---

## [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 …

---

## [Not able to install AWX](https://forum.ansible.com/t/not-able-to-install-awx/26012)

<div class="topic-metadata">

**Author:** [@iamlightsocialxen](https://forum.ansible.com/u/iamlightsocialxen)\
**Replies:** 12\
**Last updated:** [December 13, 2017, 7:48am UTC](https://forum.ansible.com/t/not-able-to-install-awx/26012 "2017-12-13T07:48:42Z")

</div>

Hello Everyone, I am just new to Ansible and AWX, so please have some patience with my questions and I am really thankful to you. I am trying to install AWX but it fails with below error Version info

---

## [RPM Packaging of AWX](https://forum.ansible.com/t/rpm-packaging-of-awx/26226)

<div class="topic-metadata">

**Author:** [@Martin\_Juhl](https://forum.ansible.com/u/Martin_Juhl)\
**Replies:** 4\
**Last updated:** [December 13, 2017, 7:43am UTC](https://forum.ansible.com/t/rpm-packaging-of-awx/26226 "2017-12-13T07:43:19Z")

</div>

Hi guys… I have tried to package AWX in RPMs, so that it can be installed without using docker… I have an installationguide here: https://github.com/MrMEEE/awx-build/blob/master/installguide… it’s not throughly tested …

---

## [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…

---

## [Ansible AWS EC2 create scripts gives this error:: "Timeout when waiting for 172.31.25.6:22"}](https://forum.ansible.com/t/ansible-aws-ec2-create-scripts-gives-this-error-timeout-when-waiting-for-172-31-25-6-22/26271)

<div class="topic-metadata">

**Author:** [@Ajay\_Sharma1](https://forum.ansible.com/u/Ajay_Sharma1)\
**Replies:** 0\
**Last updated:** [December 12, 2017, 11:53pm UTC](https://forum.ansible.com/t/ansible-aws-ec2-create-scripts-gives-this-error-timeout-when-waiting-for-172-31-25-6-22/26271 "2017-12-12T23:53:59Z")

</div>

My Ansible AWS EC2 instance creation script gives this error. “Timeout when waiting for 172.31.25.6:22”} to retry, use: --limit @/root/instance/provision-ec2.retry this code is causing problem, Please let me know, how…

---

## [Schedule a job with "Prompt on launch" values](https://forum.ansible.com/t/schedule-a-job-with-prompt-on-launch-values/26266)

<div class="topic-metadata">

**Author:** [@Cody\_John](https://forum.ansible.com/u/Cody_John)\
**Replies:** 1\
**Last updated:** [December 12, 2017, 10:09pm UTC](https://forum.ansible.com/t/schedule-a-job-with-prompt-on-launch-values/26266 "2017-12-12T22:09:29Z")

</div>

If I create a template with one or more “Prompt on launch” values, is there any way to schedule it and supply those values? For example, I would like to create a template that prompts for a “–limit” flag, and create seve…

---

## [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.

---

## [Is "System Tracking" supported by AWX?](https://forum.ansible.com/t/is-system-tracking-supported-by-awx/26252)

<div class="topic-metadata">

**Author:** [@Tchia04](https://forum.ansible.com/u/Tchia04)\
**Replies:** 1\
**Last updated:** [December 12, 2017, 2:56am UTC](https://forum.ansible.com/t/is-system-tracking-supported-by-awx/26252 "2017-12-12T02:56:56Z")

</div>

I read some articles and view some video on how to use the “System tracking” feature to compare a host over time and compare host A to host B, but I tried to follow the same steps, i.e select an inventory, select a 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 …

[Previous page](https://forum.ansible.com/latest.md?page=597)

[Next page](https://forum.ansible.com/latest.md?page=599)
