# Latest

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

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

**Page:** 951

---

## [How to install/use tweaked roles from ansible galaxy?](https://forum.ansible.com/t/how-to-install-use-tweaked-roles-from-ansible-galaxy/15805)

<div class="topic-metadata">

**Author:** [@Gabriel\_Birke](https://forum.ansible.com/u/Gabriel_Birke)\
**Replies:** 1\
**Last updated:** [July 29, 2014, 6:30pm UTC](https://forum.ansible.com/t/how-to-install-use-tweaked-roles-from-ansible-galaxy/15805 "2014-07-29T18:30:52Z")

</div>

I found many nice roles on Ansible Galaxy but most of them I’d like to tweak - removing an unneeded task here, adding another task there, splitting playbooks, removing/adding dependencies, etc. I don’t feel I’m contribut…

---

## [Adding a new module location](https://forum.ansible.com/t/adding-a-new-module-location/15801)

<div class="topic-metadata">

**Author:** [@Mzp45](https://forum.ansible.com/u/Mzp45)\
**Replies:** 6\
**Last updated:** [July 29, 2014, 3:39pm UTC](https://forum.ansible.com/t/adding-a-new-module-location/15801 "2014-07-29T15:39:58Z")

</div>

Hi, The default location for ansible modules is /usr/share/ansible. Is there a way to append another location to this one. In the .cfg I only see the option to replace the default. Thanks

---

## [vars in inventory overwrite each other](https://forum.ansible.com/t/vars-in-inventory-overwrite-each-other/15789)

<div class="topic-metadata">

**Author:** [@Christo\_Buschek](https://forum.ansible.com/u/Christo_Buschek)\
**Replies:** 4\
**Last updated:** [July 29, 2014, 1:50pm UTC](https://forum.ansible.com/t/vars-in-inventory-overwrite-each-other/15789 "2014-07-29T13:50:14Z")

</div>

I’m fairly new to Ansible, so maybe what I’m trying to do is bad anyway. I use ansible to deploy all of our web applications. I use a special deploy playbook for every app. Now every app can be deployed to staging or pr…

---

## [ping test from linux to windows](https://forum.ansible.com/t/ping-test-from-linux-to-windows/15798)

<div class="topic-metadata">

**Author:** [@Yvonne\_Tee](https://forum.ansible.com/u/Yvonne_Tee)\
**Replies:** 2\
**Last updated:** [July 29, 2014, 1:43pm UTC](https://forum.ansible.com/t/ping-test-from-linux-to-windows/15798 "2014-07-29T13:43:39Z")

</div>

Hi all, I am trying to setup a ping test from linux to windows. I have already setup the keypair exchange between these 2 servers. Have also setup the host in /etc/ansible/host Below is the playbook content. hosts: …

---

## [Problems with lookups in new versions 1.6.7+](https://forum.ansible.com/t/problems-with-lookups-in-new-versions-1-6-7/15799)

<div class="topic-metadata">

**Author:** [@micafer](https://forum.ansible.com/u/micafer)\
**Replies:** 1\
**Last updated:** [July 29, 2014, 1:34pm UTC](https://forum.ansible.com/t/problems-with-lookups-in-new-versions-1-6-7/15799 "2014-07-29T13:34:27Z")

</div>

Currently with the new ansible versions 1.6.7+ I have problems in some of my playbooks I get this error: A variable inserted a new parameter into the module args. Be sure to quote variables if they contain equal signs (…

---

## [include file through variable.](https://forum.ansible.com/t/include-file-through-variable/15787)

<div class="topic-metadata">

**Author:** [@Nico\_K](https://forum.ansible.com/u/Nico_K)\
**Replies:** 4\
**Last updated:** [July 29, 2014, 12:55pm UTC](https://forum.ansible.com/t/include-file-through-variable/15787 "2014-07-29T12:55:24Z")

</div>

Hi, I just updated to the latest and greatest revision and since the update I can no longer perform an include of a file defined through a variable. For instance: include: “{{ file }}.yml” when: file is defined now…

---

## [is it possible on remote as 'root' then 'su  -  uid' to run a few commands](https://forum.ansible.com/t/is-it-possible-on-remote-as-root-then-su-uid-to-run-a-few-commands/15792)

<div class="topic-metadata">

**Author:** [@weichi\_cheng](https://forum.ansible.com/u/weichi_cheng)\
**Replies:** 1\
**Last updated:** [July 29, 2014, 12:42am UTC](https://forum.ansible.com/t/is-it-possible-on-remote-as-root-then-su-uid-to-run-a-few-commands/15792 "2014-07-29T00:42:32Z")

</div>

Just go through a few tutorials of Ansible and am trying to see if I can use it to replace our ‘tcl expect’ template engine in house. We have an internal server inside a isolated domain that have ‘root’ access to most o…

---

## [how to always run code, regardless of tag](https://forum.ansible.com/t/how-to-always-run-code-regardless-of-tag/15225)

<div class="topic-metadata">

**Author:** [@chris\_snyder](https://forum.ansible.com/u/chris_snyder)\
**Replies:** 5\
**Last updated:** [July 29, 2014, 12:27am UTC](https://forum.ansible.com/t/how-to-always-run-code-regardless-of-tag/15225 "2014-07-29T00:27:48Z")

</div>

How do you always have a set of tasks run regardless of the tag being passed in on the command line? I’m getting to the point where I have a ‘core’ playbook that must be run before any other playbook I have. This does s…

---

## [Trailing white space policy](https://forum.ansible.com/t/trailing-white-space-policy/15784)

<div class="topic-metadata">

**Author:** [@Berend\_de\_Boer](https://forum.ansible.com/u/Berend_de_Boer)\
**Replies:** 8\
**Last updated:** [July 28, 2014, 10:59pm UTC](https://forum.ansible.com/t/trailing-white-space-policy/15784 "2014-07-28T22:59:46Z")

</div>

Hello All, Would it be a good idea to have a policy that files cannot have trailing white space? The problem is that some editors are set up to remove this automatically, and when changing a file introduce a patch with …

---

## [Conditional upon variable](https://forum.ansible.com/t/conditional-upon-variable/15794)

<div class="topic-metadata">

**Author:** [@John\_Oliver](https://forum.ansible.com/u/John_Oliver)\
**Replies:** 2\
**Last updated:** [July 28, 2014, 10:45pm UTC](https://forum.ansible.com/t/conditional-upon-variable/15794 "2014-07-28T22:45:15Z")

</div>

I tried to: command: /usr/sbin/setsebool -P httpd\_can\_network\_connect\_db 1 when: “{{rc\_db\_host}}” = “localhost” Ansible exploded in rage. I’ve never sent his much red text, even from python errors :slight\_smile: I tri…

---

## [Help organizing project and accessing paths](https://forum.ansible.com/t/help-organizing-project-and-accessing-paths/15786)

<div class="topic-metadata">

**Author:** [@Ryan\_VanGundy](https://forum.ansible.com/u/Ryan_VanGundy)\
**Replies:** 6\
**Last updated:** [July 28, 2014, 10:11pm UTC](https://forum.ansible.com/t/help-organizing-project-and-accessing-paths/15786 "2014-07-28T22:11:05Z")

</div>

I’m working on a small Ansible project that’s a little outside its primary use-case. I’m automating the generation of new web projects in a Mac OS X dev environment. There are two objectives: 1.) Install all development…

---

## [not able to reference fact for network interface in the template](https://forum.ansible.com/t/not-able-to-reference-fact-for-network-interface-in-the-template/15750)

<div class="topic-metadata">

**Author:** [@Greg\_M](https://forum.ansible.com/u/Greg_M)\
**Replies:** 3\
**Last updated:** [July 28, 2014, 9:26pm UTC](https://forum.ansible.com/t/not-able-to-reference-fact-for-network-interface-in-the-template/15750 "2014-07-28T21:26:48Z")

</div>

Helo all, I wonder if I can get some help with referencing facts in template. I ma not able to reference: every time I run my play, the file on the host shows: carp0\_ip=”” and the same line in my template: carp0\_ip…

---

## [lvg module issue in 1.6.6?](https://forum.ansible.com/t/lvg-module-issue-in-1-6-6/15793)

<div class="topic-metadata">

**Author:** [@Phil\_Siegrist](https://forum.ansible.com/u/Phil_Siegrist)\
**Replies:** 1\
**Last updated:** [July 28, 2014, 9:05pm UTC](https://forum.ansible.com/t/lvg-module-issue-in-1-6-6/15793 "2014-07-28T21:05:27Z")

</div>

After upgrading from 1.4 to 1.6 i’m having an issue creating a vg with multiple disks. It seems to be stripping the comma. Anyone else? name: create hdfs vol group lvg: vg=hdfs\_vg pvs=/dev/sdj,/dev/sdi vg\_options=“-p …

---

## [Server Side Module](https://forum.ansible.com/t/server-side-module/15755)

<div class="topic-metadata">

**Author:** [@Timothy\_Vandenbrande](https://forum.ansible.com/u/Timothy_Vandenbrande)\
**Replies:** 3\
**Last updated:** [July 28, 2014, 4:35pm UTC](https://forum.ansible.com/t/server-side-module/15755 "2014-07-28T16:35:13Z")

</div>

Hey, I tried making a win\_copy module for ansible, but misunderstood Mr De Haan a bit. (on GitHub: https://github.com/ansible/ansible/pull/8241) I thought with an action plugin he meant to convert it to a .ps1 script…

---

## [using 2 loops with\_first\_found and with\_items](https://forum.ansible.com/t/using-2-loops-with-first-found-and-with-items/15739)

<div class="topic-metadata">

**Author:** [@Hudec\_Peter](https://forum.ansible.com/u/Hudec_Peter)\
**Replies:** 3\
**Last updated:** [July 28, 2014, 2:13pm UTC](https://forum.ansible.com/t/using-2-loops-with-first-found-and-with-items/15739 "2014-07-28T14:13:52Z")

</div>

Hi, I’m trying to write role for configuration of the package management. In this role I following setup. — defaults/main.yml debain\_source\_list: - name: debian state: enabled - name: debian-backports state…

---

## [with\_items problem on https://github.com/RichardCao/logging-for-openstack](https://forum.ansible.com/t/with-items-problem-on-https-github-com-richardcao-logging-for-openstack/15785)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Replies:** 1\
**Last updated:** [July 27, 2014, 7:49pm UTC](https://forum.ansible.com/t/with-items-problem-on-https-github-com-richardcao-logging-for-openstack/15785 "2014-07-27T19:49:05Z")

</div>

This is a user-level question, can you please repost this on ansible-project instead? Thank you!

---

## [Update : stat upside down](https://forum.ansible.com/t/update-stat-upside-down/15764)

<div class="topic-metadata">

**Author:** [@Diogene\_Laerce](https://forum.ansible.com/u/Diogene_Laerce)\
**Replies:** 4\
**Last updated:** [July 27, 2014, 1:55pm UTC](https://forum.ansible.com/t/update-stat-upside-down/15764 "2014-07-27T13:55:22Z")

</div>

Hi, I have this strange issue. The following code was working fine (I think) as :

---

## [ansible 1.6.9 file contents eats spaces](https://forum.ansible.com/t/ansible-1-6-9-file-contents-eats-spaces/15781)

<div class="topic-metadata">

**Author:** [@anatoly\_techtonik](https://forum.ansible.com/u/anatoly_techtonik)\
**Replies:** 3\
**Last updated:** [July 26, 2014, 5:43am UTC](https://forum.ansible.com/t/ansible-1-6-9-file-contents-eats-spaces/15781 "2014-07-26T05:43:36Z")

</div>

\`

---

## [lib/ansible/module\_utils/known\_hosts.py requires hashlib](https://forum.ansible.com/t/lib-ansible-module-utils-known-hosts-py-requires-hashlib/15780)

<div class="topic-metadata">

**Author:** [@Josh\_Smift1](https://forum.ansible.com/u/Josh_Smift1)\
**Replies:** 3\
**Last updated:** [July 25, 2014, 10:03pm UTC](https://forum.ansible.com/t/lib-ansible-module-utils-known-hosts-py-requires-hashlib/15780 "2014-07-25T22:03:36Z")

</div>

Between Ansible 1.5.3 and 1.6.6, lib/ansible/module\_utils/known\_hosts.py added from hashlib import sha1 which doesn't work on target hosts who only have Python 2.4. The 'git' module uses this, and produces this stac…

---

## [Ansigenome: A tool to help you gather information and manage your roles](https://forum.ansible.com/t/ansigenome-a-tool-to-help-you-gather-information-and-manage-your-roles/15733)

<div class="topic-metadata">

**Author:** [@Nick\_Janetakis](https://forum.ansible.com/u/Nick_Janetakis)\
**Replies:** 11\
**Last updated:** [July 25, 2014, 10:02pm UTC](https://forum.ansible.com/t/ansigenome-a-tool-to-help-you-gather-information-and-manage-your-roles/15733 "2014-07-25T22:02:07Z")

</div>

What do you guys think about https://github.com/nickjj/ansigenome. I released it yesterday and would appreciate some feedback. Here’s a snippet from the readme: Ansigenome is a command line tool designed to help you m…

---

## [Ansible 1.6.10 Released](https://forum.ansible.com/t/ansible-1-6-10-released/15783)

<div class="topic-metadata">

**Author:** [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Replies:** 1\
**Last updated:** [July 25, 2014, 9:01pm UTC](https://forum.ansible.com/t/ansible-1-6-10-released/15783 "2014-07-25T21:01:49Z")

</div>

Hi everyone, We have released Ansible 1.6.10, which addresses some minor bugs and extended test coverage. This update is available via PyPi and releases.ansible.com now, and packages for distros will be available as so…

---

## [conditionals in meta includes](https://forum.ansible.com/t/conditionals-in-meta-includes/15782)

<div class="topic-metadata">

**Author:** [@Michael\_Dur](https://forum.ansible.com/u/Michael_Dur)\
**Replies:** 4\
**Last updated:** [July 25, 2014, 8:07pm UTC](https://forum.ansible.com/t/conditionals-in-meta-includes/15782 "2014-07-25T20:07:05Z")

</div>

I have a role which is just a meta playbook for installing many packages. I only want these to run once during an ansible run since interacting with the package manager is slow. I thought I’d register a variable and ch…

---

## [Unified inventory](https://forum.ansible.com/t/unified-inventory/15777)

<div class="topic-metadata">

**Author:** [@Josh\_Smift1](https://forum.ansible.com/u/Josh_Smift1)\
**Replies:** 2\
**Last updated:** [July 25, 2014, 7:26pm UTC](https://forum.ansible.com/t/unified-inventory/15777 "2014-07-25T19:26:49Z")

</div>

Our inventory comes from multiple sources, a couple dynamic and one static. Ansible itself can pull them all together into a unified inventory, but we'd like to transform the dynamic sources on the way in, without hav…

---

## [with\_items combined with with\_first\_file ?](https://forum.ansible.com/t/with-items-combined-with-with-first-file/14329)

<div class="topic-metadata">

**Author:** [@martin1](https://forum.ansible.com/u/martin1)\
**Replies:** 7\
**Last updated:** [July 25, 2014, 7:20pm UTC](https://forum.ansible.com/t/with-items-combined-with-with-first-file/14329 "2014-07-25T19:20:20Z")

</div>

I’ve been looking for a solutions for this, but I can’t seem to figure it out. Here is what I want to do: I’m writing a playbook to manage a number of DNS servers. I have a list of zones in my vars file, like so: list\_…

---

## [What is the best way of restarting services that are part of a cluster without taking the cluster down?](https://forum.ansible.com/t/what-is-the-best-way-of-restarting-services-that-are-part-of-a-cluster-without-taking-the-cluster-down/15751)

<div class="topic-metadata">

**Author:** [@David\_Reagan](https://forum.ansible.com/u/David_Reagan)\
**Replies:** 8\
**Last updated:** [July 25, 2014, 7:19pm UTC](https://forum.ansible.com/t/what-is-the-best-way-of-restarting-services-that-are-part-of-a-cluster-without-taking-the-cluster-down/15751 "2014-07-25T19:19:03Z")

</div>

Specifically, an elasticsearch cluster, but doing this the right way would also apply to other kinds of clusters, like RabbitMQ or Redis. I’m using https://github.com/LaneCommunityCollege/aspects\_elasticsearch to manage…

---

## [role name as variable](https://forum.ansible.com/t/role-name-as-variable/15776)

<div class="topic-metadata">

**Author:** [@jepper](https://forum.ansible.com/u/jepper)\
**Replies:** 1\
**Last updated:** [July 25, 2014, 7:17pm UTC](https://forum.ansible.com/t/role-name-as-variable/15776 "2014-07-25T19:17:33Z")

</div>

I’m sure this is dead simple, but googling seems hard since most posts contain the words “role” and “variable”! I have versioned playbooks. I would like to stick a file somewhere on the target system that explains what …

---

## [Module argument syntax styles?](https://forum.ansible.com/t/module-argument-syntax-styles/15775)

<div class="topic-metadata">

**Author:** [@Steffen\_Prince](https://forum.ansible.com/u/Steffen_Prince)\
**Replies:** 3\
**Last updated:** [July 25, 2014, 5:56pm UTC](https://forum.ansible.com/t/module-argument-syntax-styles/15775 "2014-07-25T17:56:22Z")

</div>

Pros and cons of module argument syntax styles? INI style \` module: \> key1=val1 key2=val2 key3=val3 key4=val4 \` yaml style \` module: key1: val1 key2: val2 key3: val3 key4: val4 \` Real world examples he…

---

## [Newby Requirements and missing workarounds](https://forum.ansible.com/t/newby-requirements-and-missing-workarounds/15769)

<div class="topic-metadata">

**Author:** [@Bastian\_Bringenberg](https://forum.ansible.com/u/Bastian_Bringenberg)\
**Replies:** 2\
**Last updated:** [July 25, 2014, 2:57pm UTC](https://forum.ansible.com/t/newby-requirements-and-missing-workarounds/15769 "2014-07-25T14:57:11Z")

</div>

Hey together, I am working with ansible for a few days now and it is perfect and really what I needed, but there are a few things I am not able to solute for myself and where I have ( in my opinion ) ugly workarounds th…

---

## [unable to update sudoers file on RH6u5 with validate option.](https://forum.ansible.com/t/unable-to-update-sudoers-file-on-rh6u5-with-validate-option/15761)

<div class="topic-metadata">

**Author:** [@Yasir\_Saleem](https://forum.ansible.com/u/Yasir_Saleem)\
**Replies:** 2\
**Last updated:** [July 25, 2014, 1:17pm UTC](https://forum.ansible.com/t/unable-to-update-sudoers-file-on-rh6u5-with-validate-option/15761 "2014-07-25T13:17:00Z")

</div>

Hi, I am not able to change ‘/etc/sudoers’ file successfully on RH 6.5 (Santiago) when using validate option. The same thing works fine on RH6u4 sever. Below is my playbook and response from the server. Note: When I r…

---

## [Can I set a variable on one host and use them on other hosts?](https://forum.ansible.com/t/can-i-set-a-variable-on-one-host-and-use-them-on-other-hosts/15742)

<div class="topic-metadata">

**Author:** [@Benjamin\_Bauer](https://forum.ansible.com/u/Benjamin_Bauer)\
**Replies:** 3\
**Last updated:** [July 25, 2014, 12:30pm UTC](https://forum.ansible.com/t/can-i-set-a-variable-on-one-host-and-use-them-on-other-hosts/15742 "2014-07-25T12:30:54Z")

</div>

I’m writing a playbook to restore the latest backup of my DB on all my Database servers. This is done in two main steps: figure out which backup is the latest (once) download that file to all DB servers …and run the re…

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

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