# Archives

**URL:** https://forum.ansible.com/c/archives/31.md?page=571

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

**Page:** 572

---

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

---

## [variables passed to modules getting escaped](https://forum.ansible.com/t/variables-passed-to-modules-getting-escaped/22028)

<div class="topic-metadata">

**Author:** [@Philippe\_Kueck](https://forum.ansible.com/u/Philippe_Kueck)\
**Replies:** 0\
**Last updated:** [July 15, 2016, 9:48am UTC](https://forum.ansible.com/t/variables-passed-to-modules-getting-escaped/22028 "2016-07-15T09:48:38Z")

</div>

Hi, I'm writing some modules/libraries for ansible (2.1.0.0) and was wondering why variables are getting escaped and whether or not this is an intended behaviour. Let's have a simple example: # testmodule #!/bin/s…

---

## [Feature Request: Option "gid" for user module](https://forum.ansible.com/t/feature-request-option-gid-for-user-module/22027)

<div class="topic-metadata">

**Author:** [@Jorg\_Kastning](https://forum.ansible.com/u/Jorg_Kastning)\
**Replies:** 0\
**Last updated:** [July 15, 2016, 8:22am UTC](https://forum.ansible.com/t/feature-request-option-gid-for-user-module/22027 "2016-07-15T08:22:37Z")

</div>

Hi, in the core module user I could specify the user id with the option “uid”. The primary group instead could only be set by name. I like to have the option to specify the primary group by “gid” as well. The possibill…

---

## [Do no send .git directory with git module](https://forum.ansible.com/t/do-no-send-git-directory-with-git-module/15433)

<div class="topic-metadata">

**Author:** [@Renan\_Aguiar](https://forum.ansible.com/u/Renan_Aguiar)\
**Replies:** 3\
**Last updated:** [July 15, 2016, 5:58am UTC](https://forum.ansible.com/t/do-no-send-git-directory-with-git-module/15433 "2016-07-15T05:58:24Z")

</div>

i’m new to ansible and I’m doing a simple test deployment. Everything works fine. My problem is related to git module deploying the .git directory to server. I don’t want this. My playbook is simple

---

## [Very simple task works on Ansible 2.0, but not on Ansible 2.1.](https://forum.ansible.com/t/very-simple-task-works-on-ansible-2-0-but-not-on-ansible-2-1/22022)

<div class="topic-metadata">

**Author:** [@Thiago\_Martins](https://forum.ansible.com/u/Thiago_Martins)\
**Replies:** 1\
**Last updated:** [July 15, 2016, 2:54am UTC](https://forum.ansible.com/t/very-simple-task-works-on-ansible-2-0-but-not-on-ansible-2-1/22022 "2016-07-15T02:54:57Z")

</div>

Guys, I have a very simple task that works on Ansible 2.0 (both first and subsequent runs) but, doesn’t work on Ansible 2.1 (only subsequent runs fails, first run also works on 2.1), as follows: My group\_vars/all have: …

---

## [Role directory path variable](https://forum.ansible.com/t/role-directory-path-variable/22010)

<div class="topic-metadata">

**Author:** [@neubyr](https://forum.ansible.com/u/neubyr)\
**Replies:** 4\
**Last updated:** [July 14, 2016, 9:20pm UTC](https://forum.ansible.com/t/role-directory-path-variable/22010 "2016-07-14T21:20:04Z")

</div>

I am wondering if there is any recommended approach for passing filename paths across roles. As an example, take a look at https://bitbucket.org/neubyr/ansible-example/src repository. There are two roles myapp and webse…

---

## [dynamically generated inventory (add\_host) and playbook failures](https://forum.ansible.com/t/dynamically-generated-inventory-add-host-and-playbook-failures/22018)

<div class="topic-metadata">

**Author:** [@Dimon](https://forum.ansible.com/u/Dimon)\
**Replies:** 2\
**Last updated:** [July 14, 2016, 9:06pm UTC](https://forum.ansible.com/t/dynamically-generated-inventory-add-host-and-playbook-failures/22018 "2016-07-14T21:06:09Z")

</div>

I’m building a playbook for patching our servers, however I keep on getting 2016-07-14 09:30:29,186 p=55840 u=dimon | PLAY \[report\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* 2016-07-14 09:30:2…

---

## [Cannot specify volume\_size together with id or snapshot (ec2\_vol) - How to increase size while creating volume from snapshot?](https://forum.ansible.com/t/cannot-specify-volume-size-together-with-id-or-snapshot-ec2-vol-how-to-increase-size-while-creating-volume-from-snapshot/22021)

<div class="topic-metadata">

**Author:** [@jdelaporte](https://forum.ansible.com/u/jdelaporte)\
**Replies:** 0\
**Last updated:** [July 14, 2016, 8:22pm UTC](https://forum.ansible.com/t/cannot-specify-volume-size-together-with-id-or-snapshot-ec2-vol-how-to-increase-size-while-creating-volume-from-snapshot/22021 "2016-07-14T20:22:40Z")

</div>

I have the use case where I want to create a snapshot, make a new volume from that snapshot, but larger, and then attach the new volume to an instance. So far, I have the snapshot creation working, but the ec2\_vol modul…

---

## [EC2 slow cloud-init, Ansible SSH connection fails due to race condition (wait\_for is not good enough)](https://forum.ansible.com/t/ec2-slow-cloud-init-ansible-ssh-connection-fails-due-to-race-condition-wait-for-is-not-good-enough/20345)

<div class="topic-metadata">

**Author:** [@James\_Cuzella](https://forum.ansible.com/u/James_Cuzella)\
**Replies:** 4\
**Last updated:** [July 14, 2016, 8:16pm UTC](https://forum.ansible.com/t/ec2-slow-cloud-init-ansible-ssh-connection-fails-due-to-race-condition-wait-for-is-not-good-enough/20345 "2016-07-14T20:16:53Z")

</div>

Hello, I believe I’ve found an interesting race condition during EC2 instance creation due to a slow-running cloud-init process. The issue is that cloud-init appears to create the initial login user & installs the publi…

---

## [ec2\_snapshot module - how to get snapshot id of newly created snapshot?](https://forum.ansible.com/t/ec2-snapshot-module-how-to-get-snapshot-id-of-newly-created-snapshot/22019)

<div class="topic-metadata">

**Author:** [@jdelaporte](https://forum.ansible.com/u/jdelaporte)\
**Replies:** 2\
**Last updated:** [July 14, 2016, 7:46pm UTC](https://forum.ansible.com/t/ec2-snapshot-module-how-to-get-snapshot-id-of-newly-created-snapshot/22019 "2016-07-14T19:46:02Z")

</div>

I am using the ec2\_snapshot module to make a snapshot of a volume. In the next task, I want to use that new snapshot to create a new volume for a different server. How do I get the new snapshot volume id from the ec2\_sna…

---

## [Core mount module Solaris support](https://forum.ansible.com/t/core-mount-module-solaris-support/22020)

<div class="topic-metadata">

**Author:** [@Clint\_Allen](https://forum.ansible.com/u/Clint_Allen)\
**Replies:** 0\
**Last updated:** [July 14, 2016, 7:45pm UTC](https://forum.ansible.com/t/core-mount-module-solaris-support/22020 "2016-07-14T19:45:17Z")

</div>

I have added Solaris support to the core mount module: https://github.com/clallen/ansible-modules-core/blob/devel/system/mount.py I have used it in my own playbooks and ran the module test. I would like to submit a pul…

---

## [Local repo in CentOs7 using Ansible](https://forum.ansible.com/t/local-repo-in-centos7-using-ansible/22001)

<div class="topic-metadata">

**Author:** [@Hariprasad\_S](https://forum.ansible.com/u/Hariprasad_S)\
**Replies:** 1\
**Last updated:** [July 14, 2016, 7:31pm UTC](https://forum.ansible.com/t/local-repo-in-centos7-using-ansible/22001 "2016-07-14T19:31:51Z")

</div>

Hi All, I’m pretty new to Ansible. Have started working on Ansible about a week back. I have given a task to create a local repo using ansible in CentOs system. This is my yaml file:

---

## [Cant ping nodes via ssh](https://forum.ansible.com/t/cant-ping-nodes-via-ssh/21994)

<div class="topic-metadata">

**Author:** [@Jorgen\_Hoyer](https://forum.ansible.com/u/Jorgen_Hoyer)\
**Replies:** 2\
**Last updated:** [July 14, 2016, 7:29pm UTC](https://forum.ansible.com/t/cant-ping-nodes-via-ssh/21994 "2016-07-14T19:29:48Z")

</div>

I’m trying to set upp ansible for a project with multiple Raspberry Pi’s. I created sshkey’s and copied them to my test node. I also made a host list. When i try to ping (ansible all -m ping) the node i keep getting the …

---

## [Roles search path in 2.1 vs 1.9.4](https://forum.ansible.com/t/roles-search-path-in-2-1-vs-1-9-4/22009)

<div class="topic-metadata">

**Author:** [@jpeacock](https://forum.ansible.com/u/jpeacock)\
**Replies:** 1\
**Last updated:** [July 14, 2016, 7:23pm UTC](https://forum.ansible.com/t/roles-search-path-in-2-1-vs-1-9-4/22009 "2016-07-14T19:23:26Z")

</div>

I have an environment where we have multiple roles with the same name that vary depending on the environment they install in (don’t bother complaining about this). Some roles are common no matter which environment they a…

[Previous page](https://forum.ansible.com/c/archives/31.md?page=570)

[Next page](https://forum.ansible.com/c/archives/31.md?page=572)
