# Latest

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

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

**Page:** 743

---

## [wait\_for stopped working in 2.1.0.0 ?](https://forum.ansible.com/t/wait-for-stopped-working-in-2-1-0-0/22057)

<div class="topic-metadata">

**Author:** [@Kai1](https://forum.ansible.com/u/Kai1)\
**Replies:** 0\
**Last updated:** [July 20, 2016, 1:12pm UTC](https://forum.ansible.com/t/wait-for-stopped-working-in-2-1-0-0/22057 "2016-07-20T13:12:35Z")

</div>

Hello! I have a playbook which worked well in ansbile 2.0 . After upgrading to 2.1.0.0 a wait\_for (port) times out although the port is up and even returns nice HTML pages. Does anyone know of any changes to wait\_for…

---

## [Content low error message](https://forum.ansible.com/t/content-low-error-message/22053)

<div class="topic-metadata">

**Author:** [@Barry\_Kaplan](https://forum.ansible.com/u/Barry_Kaplan)\
**Replies:** 1\
**Last updated:** [July 20, 2016, 1:32am UTC](https://forum.ansible.com/t/content-low-error-message/22053 "2016-07-20T01:32:29Z")

</div>

I am getting these errors. This is the output with -vvv. Would really be helpful the variable that is not defined was identified. Anybody have idea how to debug this? (ansible 2.2.RC3) TASK \[setup\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [ansible 2.1.0 failures](https://forum.ansible.com/t/ansible-2-1-0-failures/22052)

<div class="topic-metadata">

**Author:** [@Dimon](https://forum.ansible.com/u/Dimon)\
**Replies:** 0\
**Last updated:** [July 19, 2016, 10:27pm UTC](https://forum.ansible.com/t/ansible-2-1-0-failures/22052 "2016-07-19T22:27:07Z")

</div>

I keep on stepping on the same issue that I do not believe I’ve ever had in pre-2.1.0 versions (mind you I’ve had long gap since list I’ve built playbooks… so my references could go as far back as 1.9) Here’s the issue: …

---

## [Trying to copy a directories contents but not the other directories with in. Any help is appreciated](https://forum.ansible.com/t/trying-to-copy-a-directories-contents-but-not-the-other-directories-with-in-any-help-is-appreciated/22048)

<div class="topic-metadata">

**Author:** [@Alan\_Harkleroad1](https://forum.ansible.com/u/Alan_Harkleroad1)\
**Replies:** 3\
**Last updated:** [July 19, 2016, 7:28pm UTC](https://forum.ansible.com/t/trying-to-copy-a-directories-contents-but-not-the-other-directories-with-in-any-help-is-appreciated/22048 "2016-07-19T19:28:42Z")

</div>

I am currently trying to copy a directories contents to a new directory so we can do our SHA-384 and TLS upgrades to the system. When I have to copy the variable list results to the new folder is where I am confusing my …

---

## [replace a word in a file with o/p of command](https://forum.ansible.com/t/replace-a-word-in-a-file-with-o-p-of-command/21733)

<div class="topic-metadata">

**Author:** [@pallaveet](https://forum.ansible.com/u/pallaveet)\
**Replies:** 2\
**Last updated:** [July 19, 2016, 5:58pm UTC](https://forum.ansible.com/t/replace-a-word-in-a-file-with-o-p-of-command/21733 "2016-07-19T17:58:35Z")

</div>

Hi, I have a file in which i need to replace worrd with hostname of my machine. I am trying below code and getting error. Pls let me know ho can i do this … i am new to ansible name: hostame shell: hostname regi…

---

## [Deprecation warning when using variable that is a list](https://forum.ansible.com/t/deprecation-warning-when-using-variable-that-is-a-list/22050)

<div class="topic-metadata">

**Author:** [@Eric\_Secrist](https://forum.ansible.com/u/Eric_Secrist)\
**Replies:** 0\
**Last updated:** [July 19, 2016, 5:15pm UTC](https://forum.ansible.com/t/deprecation-warning-when-using-variable-that-is-a-list/22050 "2016-07-19T17:15:59Z")

</div>

Hello, This is my first post in this group. Please bear with my newbieness. I am trying to clean up a deprecation warning in my ansible code, related to a variable I am using called ‘netgroups’, which is a list. The c…

---

## [Handling (delta) changes/updates after initially provisioning](https://forum.ansible.com/t/handling-delta-changes-updates-after-initially-provisioning/22049)

<div class="topic-metadata">

**Author:** [@James6](https://forum.ansible.com/u/James6)\
**Replies:** 0\
**Last updated:** [July 19, 2016, 5:05pm UTC](https://forum.ansible.com/t/handling-delta-changes-updates-after-initially-provisioning/22049 "2016-07-19T17:05:59Z")

</div>

Hello… So I have a semi-elaborate set of Ansible roles that provision a handful of different system types based on variable configuration and all is working well. In total provisioning a new system may take ~400 tasks. …

---

## [AWS dynamic inventory and filter out unreachable host](https://forum.ansible.com/t/aws-dynamic-inventory-and-filter-out-unreachable-host/22045)

<div class="topic-metadata">

**Author:** [@Anthony\_Cheng](https://forum.ansible.com/u/Anthony_Cheng)\
**Replies:** 2\
**Last updated:** [July 19, 2016, 12:48pm UTC](https://forum.ansible.com/t/aws-dynamic-inventory-and-filter-out-unreachable-host/22045 "2016-07-19T12:48:45Z")

</div>

I want to use the ec2\_facts module to gather info, e.g. \` hosts: all gather\_facts: false become: no tasks: name: Get instance ec2 facts action: ec2\_facts register: ec2\_facts \` Is there a way to filter out the S…

---

## [Lost item in hash when call it in include task file....](https://forum.ansible.com/t/lost-item-in-hash-when-call-it-in-include-task-file/22047)

<div class="topic-metadata">

**Author:** [@Clement\_VALENTIN](https://forum.ansible.com/u/Clement_VALENTIN)\
**Replies:** 0\
**Last updated:** [July 19, 2016, 12:36pm UTC](https://forum.ansible.com/t/lost-item-in-hash-when-call-it-in-include-task-file/22047 "2016-07-19T12:36:06Z")

</div>

Hi, I lost all hash variable & data when i call hash var in include file (with\_items only)… Exemple: host\_vars : mysql\_instances: port: ‘XXXX’ mysql\_databases: database: “XXXX” encoding: “utf8” mysql\_user: name:…

---

## [Need playbook values from mysql (or other external source)](https://forum.ansible.com/t/need-playbook-values-from-mysql-or-other-external-source/22046)

<div class="topic-metadata">

**Author:** [@gforster](https://forum.ansible.com/u/gforster)\
**Replies:** 0\
**Last updated:** [July 19, 2016, 11:24am UTC](https://forum.ansible.com/t/need-playbook-values-from-mysql-or-other-external-source/22046 "2016-07-19T11:24:37Z")

</div>

I have a set of servers to migrate to new hosts. We want to keep a specific nfs mounted volume from the old host and apply the same volume with the same IP to the new host. These values are stored in mysql as well as, ob…

---

## [Stdout processing](https://forum.ansible.com/t/stdout-processing/22040)

<div class="topic-metadata">

**Author:** [@Eric\_Marquez](https://forum.ansible.com/u/Eric_Marquez)\
**Replies:** 1\
**Last updated:** [July 19, 2016, 10:42am UTC](https://forum.ansible.com/t/stdout-processing/22040 "2016-07-19T10:42:40Z")

</div>

Simple question, what’s the best way to capture stdout from a task that is performed? For example I want to run a command to gather some telemetry from a switch but is using the debug the best way to get the stdout data?…

---

## [Why is package management so convoluted with Ansible and Windows?](https://forum.ansible.com/t/why-is-package-management-so-convoluted-with-ansible-and-windows/22036)

<div class="topic-metadata">

**Author:** [@Bob\_Tanner](https://forum.ansible.com/u/Bob_Tanner)\
**Replies:** 2\
**Last updated:** [July 19, 2016, 9:32am UTC](https://forum.ansible.com/t/why-is-package-management-so-convoluted-with-ansible-and-windows/22036 "2016-07-19T09:32:43Z")

</div>

Can someone send me some links about why it’s so convoluted to get Ansible manage of software packages on Windows? Even with all the flavors of package managers on the Linux side of things Ansible does a great job. Mov…

---

## [Ansible 2.1.1 RC3 is ready for testing](https://forum.ansible.com/t/ansible-2-1-1-rc3-is-ready-for-testing/22042)

<div class="topic-metadata">

**Author:** [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Replies:** 0\
**Last updated:** [July 18, 2016, 8:29pm UTC](https://forum.ansible.com/t/ansible-2-1-1-rc3-is-ready-for-testing/22042 "2016-07-18T20:29:42Z")

</div>

Hi all, we’re happy to announce that RC3 for 2.1.1 is now available for testing. This release candidate fixes several more bugs since the RC2 release: Fix for Azure modules to work with most recent Azure python librar…

---

## [Execute python programs on remote Machines](https://forum.ansible.com/t/execute-python-programs-on-remote-machines/22041)

<div class="topic-metadata">

**Author:** [@Amrit\_Bhandari](https://forum.ansible.com/u/Amrit_Bhandari)\
**Replies:** 0\
**Last updated:** [July 18, 2016, 8:24pm UTC](https://forum.ansible.com/t/execute-python-programs-on-remote-machines/22041 "2016-07-18T20:24:45Z")

</div>

Hello everyone, I am new to Ansible and have been trying to use it to execute certain tasks(python tasks) in remote machines and collect the data from the machines to the controlling machine.So, primarily my major tasks…

---

## [Run local dynamic inventory script against remote Fuel server](https://forum.ansible.com/t/run-local-dynamic-inventory-script-against-remote-fuel-server/21976)

<div class="topic-metadata">

**Author:** [@iamroddo](https://forum.ansible.com/u/iamroddo)\
**Replies:** 3\
**Last updated:** [July 18, 2016, 2:54pm UTC](https://forum.ansible.com/t/run-local-dynamic-inventory-script-against-remote-fuel-server/21976 "2016-07-18T14:54:36Z")

</div>

I have found a dynamic inventory script (https://github.com/martineg/ansible-fuel-inventory) for Mirantis Fuel that runs just fine on the Fuel host itself. In my case I can’t install Ansible on the Fuel server so need to…

---

## [add\_host](https://forum.ansible.com/t/add-host/22035)

<div class="topic-metadata">

**Author:** [@Patrick\_van\_Haren](https://forum.ansible.com/u/Patrick_van_Haren)\
**Replies:** 1\
**Last updated:** [July 18, 2016, 2:49pm UTC](https://forum.ansible.com/t/add-host/22035 "2016-07-18T14:49:07Z")

</div>

I try to add a hos to my inventory with the command below: ansible localhost -m add\_host -a “name=demo groups=containers” This is the output: localhost | SUCCESS =\> { “add\_host”: { “groups”: \[ “containers” \], “ho…

---

## [Need some help](https://forum.ansible.com/t/need-some-help/22011)

<div class="topic-metadata">

**Author:** [@niraj\_pandey](https://forum.ansible.com/u/niraj_pandey)\
**Replies:** 3\
**Last updated:** [July 18, 2016, 1:26pm UTC](https://forum.ansible.com/t/need-some-help/22011 "2016-07-18T13:26:16Z")

</div>

Hi, I have just started to learn Ansible and facing some issue while executing a simple ping command: ansible webserver -m ping wllog | FAILED! =\> { “changed”: false, “failed”: true, “module\_stderr”: “”, “module\_s…

---

## [Pass complex variables into roles](https://forum.ansible.com/t/pass-complex-variables-into-roles/21985)

<div class="topic-metadata">

**Author:** [@Eric\_Bruno](https://forum.ansible.com/u/Eric_Bruno)\
**Replies:** 1\
**Last updated:** [July 18, 2016, 9:14am UTC](https://forum.ansible.com/t/pass-complex-variables-into-roles/21985 "2016-07-18T09:14:54Z")

</div>

Hi folks, I’m facing an issue with roles call in plays when passing complex var. I want to find a way to pass variable by reference like so: \` #group\_vars/python-app/fooapi.yml fooapi: uno: 1 dos: 2 \` #group\_vars/…

---

## [mysql\_user errors when using with\_items](https://forum.ansible.com/t/mysql-user-errors-when-using-with-items/21987)

<div class="topic-metadata">

**Author:** [@Jeff\_Sault](https://forum.ansible.com/u/Jeff_Sault)\
**Replies:** 1\
**Last updated:** [July 18, 2016, 8:35am UTC](https://forum.ansible.com/t/mysql-user-errors-when-using-with-items/21987 "2016-07-18T08:35:12Z")

</div>

Hi All, Does anyone know why the below ansible code is failing? name: Add permissions to heeservers to connect to SQL mysql\_user: name={{ mu\_db\_user }} password={{ mu\_db\_pass }} host=“{{ item }}” priv={{ mu\_db\_name }…

---

## [Configure Scheduled Ansible Playbook Runs with Cron](https://forum.ansible.com/t/configure-scheduled-ansible-playbook-runs-with-cron/22038)

<div class="topic-metadata">

**Author:** [@Benjamin\_Sohn](https://forum.ansible.com/u/Benjamin_Sohn)\
**Replies:** 0\
**Last updated:** [July 18, 2016, 3:19am UTC](https://forum.ansible.com/t/configure-scheduled-ansible-playbook-runs-with-cron/22038 "2016-07-18T03:19:00Z")

</div>

Hello, I am new to Linux/CentOS. Does anyone have any steps on how to configure Cron to run an Ansible playbook on a daily basis? Thanks.

---

## [Which Cisco module to configure interfaces?](https://forum.ansible.com/t/which-cisco-module-to-configure-interfaces/21999)

<div class="topic-metadata">

**Author:** [@Kyle\_White](https://forum.ansible.com/u/Kyle_White)\
**Replies:** 1\
**Last updated:** [July 18, 2016, 2:39am UTC](https://forum.ansible.com/t/which-cisco-module-to-configure-interfaces/21999 "2016-07-18T02:39:17Z")

</div>

Hello all! I have been trying to modify my VTY interfaces on all the devices in my district, but do not know which module will be the best for this? I tried the ios\_command and ios\_config modules with no success (I thin…

---

## [Problem: blockinfile with create=yes creates a file with no ending newline](https://forum.ansible.com/t/problem-blockinfile-with-create-yes-creates-a-file-with-no-ending-newline/22037)

<div class="topic-metadata">

**Author:** [@Kayvan\_Sylvan](https://forum.ansible.com/u/Kayvan_Sylvan)\
**Replies:** 0\
**Last updated:** [July 18, 2016, 12:08am UTC](https://forum.ansible.com/t/problem-blockinfile-with-create-yes-creates-a-file-with-no-ending-newline/22037 "2016-07-18T00:08:26Z")

</div>

Hi everyone, This snippet: Test blockinfle create name: Testing /tmp/foo blockinfile: dest=/tmp/foo create=yes block=‘My Content’ become: false Creates /tmp/foo with no ending newline after the END marker: $ cat …

---

## [Variable of variable doesn't work in ansible 1.4](https://forum.ansible.com/t/variable-of-variable-doesnt-work-in-ansible-1-4/14051)

<div class="topic-metadata">

**Author:** [@Giorgio\_Crivellari](https://forum.ansible.com/u/Giorgio_Crivellari)\
**Replies:** 9\
**Last updated:** [July 16, 2016, 9:02am UTC](https://forum.ansible.com/t/variable-of-variable-doesnt-work-in-ansible-1-4/14051 "2016-07-16T09:02:46Z")

</div>

I used to use “hosts” property, in ansible playbook, dinamically for example: hosts: ${$jobprofile.hosts} where $jobprofile was an external variable that allow me to change hosts based on profile. Since last 1.4 ver…

---

## [Successful patterns for relationships - server to PDU](https://forum.ansible.com/t/successful-patterns-for-relationships-server-to-pdu/22031)

<div class="topic-metadata">

**Author:** [@Matt\_Smith1](https://forum.ansible.com/u/Matt_Smith1)\
**Replies:** 0\
**Last updated:** [July 15, 2016, 8:33pm UTC](https://forum.ansible.com/t/successful-patterns-for-relationships-server-to-pdu/22031 "2016-07-15T20:33:13Z")

</div>

I’m looking to write a playbook that powers on my servers. I need to do the following things: For each server, first connect to two PDUs and turn on the outlet for each of the server’s PSU (each server has 2 PSUs, conn…

---

## [launch executable on remote node](https://forum.ansible.com/t/launch-executable-on-remote-node/21410)

<div class="topic-metadata">

**Author:** [@Jonathan\_Anderson](https://forum.ansible.com/u/Jonathan_Anderson)\
**Replies:** 16\
**Last updated:** [July 15, 2016, 8:21pm UTC](https://forum.ansible.com/t/launch-executable-on-remote-node/21410 "2016-07-15T20:21:41Z")

</div>

Management Node: CentOs 7.1Ansible 2.1 Remote Node: Windows 7 Powershell 3.0 How do I launch an executable on a remote node running Windows 7? As I understand win\_scheduled\_task only works with Windows Server 2012 a…

---

## [What is the correct format to use filters parameter in Ansible ad-hoc mode](https://forum.ansible.com/t/what-is-the-correct-format-to-use-filters-parameter-in-ansible-ad-hoc-mode/21989)

<div class="topic-metadata">

**Author:** [@Henry\_Huang](https://forum.ansible.com/u/Henry_Huang)\
**Replies:** 1\
**Last updated:** [July 15, 2016, 6:58pm UTC](https://forum.ansible.com/t/what-is-the-correct-format-to-use-filters-parameter-in-ansible-ad-hoc-mode/21989 "2016-07-15T18:58:04Z")

</div>

I am trying to test the filter result using the ansible command in ad-hoc mode for ec2\_vpc\_subnet\_facts module. I can’t seem to get the “filters” parameter to work in the ad-hoc mode somehow. It keeps giving me back key …

---

## [Multiple role default variable files: dynamic includes and variable precedence](https://forum.ansible.com/t/multiple-role-default-variable-files-dynamic-includes-and-variable-precedence/22017)

<div class="topic-metadata">

**Author:** [@Patrick\_Fink](https://forum.ansible.com/u/Patrick_Fink)\
**Replies:** 3\
**Last updated:** [July 15, 2016, 4:43pm UTC](https://forum.ansible.com/t/multiple-role-default-variable-files-dynamic-includes-and-variable-precedence/22017 "2016-07-15T16:43:50Z")

</div>

Hi all, I have a question regarding role default variables. First, this is my use case: I want to develop reusable, redistributable and configurable roles supporting different operating systems. Some variables differ on…

---

## [serial:1 only gathers facts from one host at a time](https://forum.ansible.com/t/serial-1-only-gathers-facts-from-one-host-at-a-time/22030)

<div class="topic-metadata">

**Author:** [@jpeacock](https://forum.ansible.com/u/jpeacock)\
**Replies:** 0\
**Last updated:** [July 15, 2016, 3:33pm UTC](https://forum.ansible.com/t/serial-1-only-gathers-facts-from-one-host-at-a-time/22030 "2016-07-15T15:33:21Z")

</div>

I have a playbook that I need to execute serially on a set of hosts, but 2.1 no longer gathers facts from all of the matching hosts and only gathers the current host. For example, this breaks templates that require facts…

---

## [Include none python files to module](https://forum.ansible.com/t/include-none-python-files-to-module/22029)

<div class="topic-metadata">

**Author:** [@Simon\_Lindgren](https://forum.ansible.com/u/Simon_Lindgren)\
**Replies:** 0\
**Last updated:** [July 15, 2016, 1:07pm UTC](https://forum.ansible.com/t/include-none-python-files-to-module/22029 "2016-07-15T13:07:12Z")

</div>

I’m writing my own module to ansible and part of the code can’t be in python as the software i’m working against does not have a python api. It does support groovy so I included a groovy script but in the module director…

---

## [Ansible Jinja indentation bug ?](https://forum.ansible.com/t/ansible-jinja-indentation-bug/18637)

<div class="topic-metadata">

**Author:** [@Nicolas\_G](https://forum.ansible.com/u/Nicolas_G)\
**Replies:** 2\
**Last updated:** [July 15, 2016, 1:03pm UTC](https://forum.ansible.com/t/ansible-jinja-indentation-bug/18637 "2016-07-15T13:03:37Z")

</div>

Hi, I have the bellow vars to populate a template , it works almost fine but the final file result you can see there is some indentation problem : vars : datadog\_http\_checks: name : mycheck url : http://localhost:90…

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

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