# Latest

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

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

**Page:** 630

---

## [Iterating over with\_items failing within blockinfile](https://forum.ansible.com/t/iterating-over-with-items-failing-within-blockinfile/25338)

<div class="topic-metadata">

**Author:** [@John\_Harmon](https://forum.ansible.com/u/John_Harmon)\
**Replies:** 2\
**Last updated:** [August 28, 2017, 2:37pm UTC](https://forum.ansible.com/t/iterating-over-with-items-failing-within-blockinfile/25338 "2017-08-28T14:37:48Z")

</div>

I have the following task/main.yml part of my playbook. Everything works fine except for the last section with the blockinfile. I assume I have some sort of a syntax issue. \` Enter code here…— name: Dependency resol…

---

## [Conditionally running a filter in a chain](https://forum.ansible.com/t/conditionally-running-a-filter-in-a-chain/25322)

<div class="topic-metadata">

**Author:** [@Jean-Francois\_Bibeau](https://forum.ansible.com/u/Jean-Francois_Bibeau)\
**Replies:** 5\
**Last updated:** [August 28, 2017, 1:49pm UTC](https://forum.ansible.com/t/conditionally-running-a-filter-in-a-chain/25322 "2017-08-28T13:49:29Z")

</div>

Hi, Trying to do the following, and struggling to find a way to do this. I build a list of strings, and want to conditionally append a string at the end of the list, but only if the variable is defined. This works fin…

---

## [Linux command inside ansible playbook](https://forum.ansible.com/t/linux-command-inside-ansible-playbook/25343)

<div class="topic-metadata">

**Author:** [@Juraj\_Papic1](https://forum.ansible.com/u/Juraj_Papic1)\
**Replies:** 10\
**Last updated:** [August 28, 2017, 1:26pm UTC](https://forum.ansible.com/t/linux-command-inside-ansible-playbook/25343 "2017-08-28T13:26:28Z")

</div>

Hi all, can I run a command inside a playbook when finished the tasks? .

---

## [How to make use of Ansible Tower Rest API](https://forum.ansible.com/t/how-to-make-use-of-ansible-tower-rest-api/25336)

<div class="topic-metadata">

**Author:** [@callmeshawn](https://forum.ansible.com/u/callmeshawn)\
**Replies:** 2\
**Last updated:** [August 28, 2017, 1:17pm UTC](https://forum.ansible.com/t/how-to-make-use-of-ansible-tower-rest-api/25336 "2017-08-28T13:17:31Z")

</div>

Hello, I’m fairly new to working with Ansible and Ansible Tower. So far I’ve written some playbooks and can execute them. I have taken some of the playbooks and put them in Tower and can run them from Tower. Now I’m …

---

## [Pass Ansible variable to remote host](https://forum.ansible.com/t/pass-ansible-variable-to-remote-host/25307)

<div class="topic-metadata">

**Author:** [@Mladen\_Stankovic](https://forum.ansible.com/u/Mladen_Stankovic)\
**Replies:** 2\
**Last updated:** [August 28, 2017, 12:46pm UTC](https://forum.ansible.com/t/pass-ansible-variable-to-remote-host/25307 "2017-08-28T12:46:30Z")

</div>

Hi, I am trying to pass a variable defined in Ansible host to a remote host, using lookup plugin native hashi\_vault, but play returns an error that variable is not defined. The same variable returns expected value on t…

---

## [issues with task not working](https://forum.ansible.com/t/issues-with-task-not-working/25341)

<div class="topic-metadata">

**Author:** [@Frank\_Dias](https://forum.ansible.com/u/Frank_Dias)\
**Replies:** 2\
**Last updated:** [August 27, 2017, 9:03pm UTC](https://forum.ansible.com/t/issues-with-task-not-working/25341 "2017-08-27T21:03:19Z")

</div>

why does this not work? this is my play; name: install PG HA hosts: dbs6 gather\_facts: True any\_errors\_fatal: True vars: postgres\_ha\_cluster\_master\_host: dbs03.prodea-int.net postgres\_ha\_cluster\_vip: 172.24.2.24…

---

## [Ansible Inventory](https://forum.ansible.com/t/ansible-inventory/25342)

<div class="topic-metadata">

**Author:** [@Sanju](https://forum.ansible.com/u/Sanju)\
**Replies:** 1\
**Last updated:** [August 27, 2017, 4:42pm UTC](https://forum.ansible.com/t/ansible-inventory/25342 "2017-08-27T16:42:38Z")

</div>

Hello Folks, My Inventory has a mix of Linux and windows hosts. Under every group i dont want to pass the connection information like ansible\_connection=winrm, ansible\_port=5986 etc… I want to have a standard location f…

---

## [win\_package - missing product id error](https://forum.ansible.com/t/win-package-missing-product-id-error/22329)

<div class="topic-metadata">

**Author:** [@Anfield](https://forum.ansible.com/u/Anfield)\
**Replies:** 8\
**Last updated:** [August 25, 2017, 10:37pm UTC](https://forum.ansible.com/t/win-package-missing-product-id-error/22329 "2017-08-25T22:37:51Z")

</div>

Trying to install notepad onto a windows 2012 server and getting an error “Missing required arguement: product\_id” Do I have to go lookup a product id for every .exe I want to install? Where do I get this? -notepad.ym…

---

## [if one package fails all other non dependent packages installation fails in ansible](https://forum.ansible.com/t/if-one-package-fails-all-other-non-dependent-packages-installation-fails-in-ansible/25295)

<div class="topic-metadata">

**Author:** [@Sameer\_Modak](https://forum.ansible.com/u/Sameer_Modak)\
**Replies:** 1\
**Last updated:** [August 25, 2017, 8:53pm UTC](https://forum.ansible.com/t/if-one-package-fails-all-other-non-dependent-packages-installation-fails-in-ansible/25295 "2017-08-25T20:53:16Z")

</div>

TASK \[get python-yum and python-curl\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* …ignoring failed: \[192.168.211.131\] (item=\[u’p…

---

## [Filtering on a Template variable](https://forum.ansible.com/t/filtering-on-a-template-variable/25327)

<div class="topic-metadata">

**Author:** [@Anfield](https://forum.ansible.com/u/Anfield)\
**Replies:** 2\
**Last updated:** [August 25, 2017, 7:50pm UTC](https://forum.ansible.com/t/filtering-on-a-template-variable/25327 "2017-08-25T19:50:38Z")

</div>

How can I filter a variable in a template so that I can extract a fact Trying to get the default ipv4 address from a template template.j2 ipv4 address ((ansible\_default\_ipv4 | grep address}} A similar format will wor…

---

## [add user via adhoc](https://forum.ansible.com/t/add-user-via-adhoc/25318)

<div class="topic-metadata">

**Author:** [@Juraj\_Papic1](https://forum.ansible.com/u/Juraj_Papic1)\
**Replies:** 19\
**Last updated:** [August 25, 2017, 6:06pm UTC](https://forum.ansible.com/t/add-user-via-adhoc/25318 "2017-08-25T18:06:48Z")

</div>

Hi all I want to add users via commands all - user -a “name=test password=test” -s -K is not workingplease help. .

---

## [How to get all available inventory options?](https://forum.ansible.com/t/how-to-get-all-available-inventory-options/25335)

<div class="topic-metadata">

**Author:** [@Justin3](https://forum.ansible.com/u/Justin3)\
**Replies:** 1\
**Last updated:** [August 25, 2017, 4:38pm UTC](https://forum.ansible.com/t/how-to-get-all-available-inventory-options/25335 "2017-08-25T16:38:38Z")

</div>

I’ve searched quick a bit, and either I don’t know the right terms or it’s not been answered :-p How can I find all available options when setting a host in inventory? I have some heavily loaded windows guests that take…

---

## [iosxr\_config - config change via template file touching multiple sections](https://forum.ansible.com/t/iosxr-config-config-change-via-template-file-touching-multiple-sections/25334)

<div class="topic-metadata">

**Author:** [@Tim\_Nothnagel](https://forum.ansible.com/u/Tim_Nothnagel)\
**Replies:** 0\
**Last updated:** [August 25, 2017, 3:31pm UTC](https://forum.ansible.com/t/iosxr-config-config-change-via-template-file-touching-multiple-sections/25334 "2017-08-25T15:31:02Z")

</div>

Hi all, I have created a template file, which touches multiple sections, among others includes physical interfaces as well as other protocols like BGP. I tried to apply this via ‘src:’, but it seems to replace the enti…

---

## [Parsing output](https://forum.ansible.com/t/parsing-output/25333)

<div class="topic-metadata">

**Author:** [@John\_Harmon](https://forum.ansible.com/u/John_Harmon)\
**Replies:** 2\
**Last updated:** [August 25, 2017, 3:23pm UTC](https://forum.ansible.com/t/parsing-output/25333 "2017-08-25T15:23:14Z")

</div>

I have the following output from my debug (using “find”, and the debug output for “files”) \` { “atime”: 1503588437.3974097, “ctime”: 1503588433.7234097, “dev”: 2051, “gid”: 0, “inode”: 21408, “isblk”: false, “is…

---

## [union option for combine filter](https://forum.ansible.com/t/union-option-for-combine-filter/25332)

<div class="topic-metadata">

**Author:** [@Fabrizio\_Lungo](https://forum.ansible.com/u/Fabrizio_Lungo)\
**Replies:** 0\
**Last updated:** [August 25, 2017, 2:52pm UTC](https://forum.ansible.com/t/union-option-for-combine-filter/25332 "2017-08-25T14:52:29Z")

</div>

Hi, I am proposing additional functionality be added to the combine filter which would allow for hashes containing lists and sets to be more effectively merged under certain use cases. This change would add a kwargs opt…

---

## [Vagrant next release will fully support inventory changes introduced by Ansible 2.0](https://forum.ansible.com/t/vagrant-next-release-will-fully-support-inventory-changes-introduced-by-ansible-2-0/25331)

<div class="topic-metadata">

**Author:** [@Gilles\_Cornu](https://forum.ansible.com/u/Gilles_Cornu)\
**Replies:** 0\
**Last updated:** [August 25, 2017, 2:48pm UTC](https://forum.ansible.com/t/vagrant-next-release-will-fully-support-inventory-changes-introduced-by-ansible-2-0/25331 "2017-08-25T14:48:14Z")

</div>

Dear Ansiblers! I’m very happy to announce you that the next Vagrant release will fully support Ansible 2.x inventory variables (e.g. ansible\_host instead of ansible\_ssh\_host) and also allow to get rid of deprecation me…

---

## [No logs being sent to Logstash](https://forum.ansible.com/t/no-logs-being-sent-to-logstash/25330)

<div class="topic-metadata">

**Author:** [@Ash\_Powell](https://forum.ansible.com/u/Ash_Powell)\
**Replies:** 1\
**Last updated:** [August 25, 2017, 1:56pm UTC](https://forum.ansible.com/t/no-logs-being-sent-to-logstash/25330 "2017-08-25T13:56:46Z")

</div>

We’ve recently upgraded to Ansible 2.3.2 and Tower 3.1.4 I wanted to get the logs out of Ansible, using the logging aggregator in Tower (following this: http://docs.ansible.com/ansible-tower/latest/html/administration/l…

---

## [Parsing log files with timestamp Ansible](https://forum.ansible.com/t/parsing-log-files-with-timestamp-ansible/25308)

<div class="topic-metadata">

**Author:** [@SARANYA\_devotional\_R](https://forum.ansible.com/u/SARANYA_devotional_R)\
**Replies:** 3\
**Last updated:** [August 25, 2017, 4:25am UTC](https://forum.ansible.com/t/parsing-log-files-with-timestamp-ansible/25308 "2017-08-25T04:25:51Z")

</div>

I would like to search/wait for a string in a recently created file(test\_build\_201708211712.log) which has timestamp. -rw-rw-r-- 1 test test 579 Aug 21 16:00 test\_build\_201708211559.log -rw-rw-r-- 1 test test 579 Aug 2…

---

## [nesting of inventory file and include mechanisms](https://forum.ansible.com/t/nesting-of-inventory-file-and-include-mechanisms/25310)

<div class="topic-metadata">

**Author:** [@Narahari\_n\_Savitha](https://forum.ansible.com/u/Narahari_n_Savitha)\
**Replies:** 5\
**Last updated:** [August 25, 2017, 3:31am UTC](https://forum.ansible.com/t/nesting-of-inventory-file-and-include-mechanisms/25310 "2017-08-25T03:31:28Z")

</div>

Friends: This is my first post, so kindly excuse me if anything I post is not a correct understanding. Thank your for your time and attention to begin with. Consider this folder and file structure the\_env/ ├── ce │…

---

## [Find files starting with \<string\> -- Frustration](https://forum.ansible.com/t/find-files-starting-with-string-frustration/25324)

<div class="topic-metadata">

**Author:** [@John\_Harmon](https://forum.ansible.com/u/John_Harmon)\
**Replies:** 1\
**Last updated:** [August 24, 2017, 10:57pm UTC](https://forum.ansible.com/t/find-files-starting-with-string-frustration/25324 "2017-08-24T22:57:11Z")

</div>

Although my current playbook doesn’t look for ifcfg files directly, I am just trying to grab a list of files and it is failing. I can’t, for the life of me, figure out why. If I change the find: to a command: and then ru…

---

## [Find files starting with \<string\> -- Frustration](https://forum.ansible.com/t/find-files-starting-with-string-frustration/25325)

<div class="topic-metadata">

**Author:** [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Replies:** 0\
**Last updated:** [August 24, 2017, 10:48pm UTC](https://forum.ansible.com/t/find-files-starting-with-string-frustration/25325 "2017-08-24T22:48:49Z")

</div>

Side question: Where can I find a list of debug output types for my vars (ie. stdout, stdout\_lines, etc)? Each module return different ting, best is to check documentation or just run - debug: var=\<variable name in…

---

## [Win custom modules don't work after update to 2.3.1/2.3.2. How to proceed?](https://forum.ansible.com/t/win-custom-modules-dont-work-after-update-to-2-3-1-2-3-2-how-to-proceed/25303)

<div class="topic-metadata">

**Author:** [@bernard.landon](https://forum.ansible.com/u/bernard.landon)\
**Replies:** 3\
**Last updated:** [August 24, 2017, 9:55pm UTC](https://forum.ansible.com/t/win-custom-modules-dont-work-after-update-to-2-3-1-2-3-2-how-to-proceed/25303 "2017-08-24T21:55:08Z")

</div>

Hi there! I have a number of custom windows modules for Ansible working fine in 2.2. I updated today from 2.3.2. and none of these are working anymore… I saw the same behavior in 2.3.1. I’m thinking the new “windows p…

---

## [adhoc only in local server](https://forum.ansible.com/t/adhoc-only-in-local-server/25323)

<div class="topic-metadata">

**Author:** [@Juraj\_Papic1](https://forum.ansible.com/u/Juraj_Papic1)\
**Replies:** 2\
**Last updated:** [August 24, 2017, 5:30pm UTC](https://forum.ansible.com/t/adhoc-only-in-local-server/25323 "2017-08-24T17:30:52Z")

</div>

Hi all, Im working with adhoc commands but I can see that is only working in my local server not doing the task in the remote server. Any ideas? thanks

---

## [flush\_handlers do not... flush handlers?](https://forum.ansible.com/t/flush-handlers-do-not-flush-handlers/25321)

<div class="topic-metadata">

**Author:** [@Tom\_De\_Blende](https://forum.ansible.com/u/Tom_De_Blende)\
**Replies:** 1\
**Last updated:** [August 24, 2017, 1:44pm UTC](https://forum.ansible.com/t/flush-handlers-do-not-flush-handlers/25321 "2017-08-24T13:44:50Z")

</div>

Hi all, I have a playbook with different role sections. Each section runs the same role, but with different variables. Now if one role signals a handler to restart a service with a variable name, only the first service …

---

## [Ansible-container build is failing with Permissions error](https://forum.ansible.com/t/ansible-container-build-is-failing-with-permissions-error/25320)

<div class="topic-metadata">

**Author:** [@ManiGandan\_T](https://forum.ansible.com/u/ManiGandan_T)\
**Replies:** 1\
**Last updated:** [August 24, 2017, 12:49pm UTC](https://forum.ansible.com/t/ansible-container-build-is-failing-with-permissions-error/25320 "2017-08-24T12:49:56Z")

</div>

Hi Team, I have been working on nodejs application installation through ansible-container. I have configured all the code in container and main.yml. While i test run the ansible-container --debug build command , i am fa…

---

## [Install and use Ansible with a non-root account](https://forum.ansible.com/t/install-and-use-ansible-with-a-non-root-account/25316)

<div class="topic-metadata">

**Author:** [@Joaquin\_Tejada](https://forum.ansible.com/u/Joaquin_Tejada)\
**Replies:** 2\
**Last updated:** [August 24, 2017, 9:59am UTC](https://forum.ansible.com/t/install-and-use-ansible-with-a-non-root-account/25316 "2017-08-24T09:59:23Z")

</div>

Hello everyone. I need a little help. I’ve been looking for a document that states or indicates what type of user access is required to install and use Ansible. Can anyone point me to that direction? Bottom line, I want…

---

## [debugging nested list](https://forum.ansible.com/t/debugging-nested-list/25317)

<div class="topic-metadata">

**Author:** [@Henry\_Medina](https://forum.ansible.com/u/Henry_Medina)\
**Replies:** 1\
**Last updated:** [August 24, 2017, 8:04am UTC](https://forum.ansible.com/t/debugging-nested-list/25317 "2017-08-24T08:04:41Z")

</div>

Hello Folks, I have a debugging question that has left me scratching my head. I have a vars file with the following vars (using ansible 2.3.2.0): packages1: one: version: “one-ish” two: version: “two-ish”

---

## [sudoers.d file with template and validate is failing](https://forum.ansible.com/t/sudoers-d-file-with-template-and-validate-is-failing/25319)

<div class="topic-metadata">

**Author:** [@Tyler\_K](https://forum.ansible.com/u/Tyler_K)\
**Replies:** 1\
**Last updated:** [August 24, 2017, 6:33am UTC](https://forum.ansible.com/t/sudoers-d-file-with-template-and-validate-is-failing/25319 "2017-08-24T06:33:37Z")

</div>

I have a task that is supposed to use a template to create a sudoers.d file and validate it. When the play runs it fails because of the validation. But when I create the file without validation and then validate the file…

---

## [Ansible facts from command line - drill down](https://forum.ansible.com/t/ansible-facts-from-command-line-drill-down/25315)

<div class="topic-metadata">

**Author:** [@Anfield](https://forum.ansible.com/u/Anfield)\
**Replies:** 1\
**Last updated:** [August 23, 2017, 7:34pm UTC](https://forum.ansible.com/t/ansible-facts-from-command-line-drill-down/25315 "2017-08-23T19:34:44Z")

</div>

Running this from command link - ansible all -m setup -a ‘filter=ansible\_default\_ipv4\*’ The output is 127.0.0.1 | SUCCESS =\> { “ansible\_facts”: { “ansible\_default\_ipv4”: { “address”: “192.168.150.129”, “alias”: “e…

---

## [Referencing roles within a module?](https://forum.ansible.com/t/referencing-roles-within-a-module/25314)

<div class="topic-metadata">

**Author:** [@josphill](https://forum.ansible.com/u/josphill)\
**Replies:** 2\
**Last updated:** [August 23, 2017, 6:26pm UTC](https://forum.ansible.com/t/referencing-roles-within-a-module/25314 "2017-08-23T18:26:46Z")

</div>

First off, I am pretty new to Ansible roles, so please bear with me. There is a set of roles in a module (GitHub - redhat-cop/casl-ansible: Ansible automation for Managing OpenShift Container Platform clusters), and I wa…

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

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