# Latest

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

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

**Page:** 889

---

## [Usage of local roles inside an include](https://forum.ansible.com/t/usage-of-local-roles-inside-an-include/17695)

<div class="topic-metadata">

**Author:** [@riemers](https://forum.ansible.com/u/riemers)\
**Replies:** 0\
**Last updated:** [March 8, 2015, 7:53pm UTC](https://forum.ansible.com/t/usage-of-local-roles-inside-an-include/17695 "2015-03-08T19:53:29Z")

</div>

All, So i am using roles now to run the “default” setup on \[all\].I’ve split it up so that at some point it runs an include playbook in my “configure” playbook. So i can run ansible-playbook configure.yml and it will do …

---

## [how to use distinct hosts files and dynamic inventory?](https://forum.ansible.com/t/how-to-use-distinct-hosts-files-and-dynamic-inventory/17694)

<div class="topic-metadata">

**Author:** [@Kesten\_Broughton2](https://forum.ansible.com/u/Kesten_Broughton2)\
**Replies:** 0\
**Last updated:** [March 8, 2015, 7:25pm UTC](https://forum.ansible.com/t/how-to-use-distinct-hosts-files-and-dynamic-inventory/17694 "2015-03-08T19:25:47Z")

</div>

We use ansible-galaxy for a lot of roles and dynamic inventory with multiple cloud providers. The following works if there is a single hosts file next to ec2.py. But if I want to have distinct hosts files for isolating …

---

## [privilege escalation refactoring](https://forum.ansible.com/t/privilege-escalation-refactoring/17693)

<div class="topic-metadata">

**Author:** [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Replies:** 0\
**Last updated:** [March 8, 2015, 12:16am UTC](https://forum.ansible.com/t/privilege-escalation-refactoring/17693 "2015-03-08T00:16:57Z")

</div>

Hi, I just pushed out https://github.com/ansible/ansible/pull/10411, which does a major refactor of sudo/su and adds pbrun (powerbroker) and pfexec to the mix. I hope to not break existing playbooks and at the same t…

---

## [TypeError: unsupported operand type(s) for +: 'int' and 'str'](https://forum.ansible.com/t/typeerror-unsupported-operand-type-s-for-int-and-str/17308)

<div class="topic-metadata">

**Author:** [@senorsmile](https://forum.ansible.com/u/senorsmile)\
**Replies:** 3\
**Last updated:** [March 7, 2015, 10:53pm UTC](https://forum.ansible.com/t/typeerror-unsupported-operand-type-s-for-int-and-str/17308 "2015-03-07T22:53:59Z")

</div>

I am getting some strange errors when trying to run ansible against some new ubuntu 14.04 boxes. I am using roles that I have already used before and had no issues. I have tried several different roles (including a simpl…

---

## [How do I run ansible command on non-win/lin host ?](https://forum.ansible.com/t/how-do-i-run-ansible-command-on-non-win-lin-host/17680)

<div class="topic-metadata">

**Author:** [@Irek\_Romaniuk](https://forum.ansible.com/u/Irek_Romaniuk)\
**Replies:** 1\
**Last updated:** [March 7, 2015, 4:37pm UTC](https://forum.ansible.com/t/how-do-i-run-ansible-command-on-non-win-lin-host/17680 "2015-03-07T16:37:15Z")

</div>

How do I run command without playbook on non-win/lin host ? \[irekr@nms02 ansible\]$ ansible cp11 -i hosts -c local -a “show software-version” Irek-11 | FAILED | rc=2 \>\> \[Errno 2\] No such file or directory see below …

---

## [Ansible 1.9 RC1 is coming...](https://forum.ansible.com/t/ansible-1-9-rc1-is-coming/17686)

<div class="topic-metadata">

**Author:** [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Replies:** 2\
**Last updated:** [March 7, 2015, 4:04am UTC](https://forum.ansible.com/t/ansible-1-9-rc1-is-coming/17686 "2015-03-07T04:04:27Z")

</div>

Hey all, Just wanted to announce that we’re going to be cutting the RC1 release for 1.9 next week (tentatively Monday). Once the release candidate is out, we’ll be in a feature freeze for one week, during which time we’…

---

## [Be comfident ask for the salary you deserve with a Degree](https://forum.ansible.com/t/be-comfident-ask-for-the-salary-you-deserve-with-a-degree/17692)

<div class="topic-metadata">

**Author:** [@ansible-project](https://forum.ansible.com/u/ansible-project)\
**Replies:** 0\
**Last updated:** [March 7, 2015, 3:38am UTC](https://forum.ansible.com/t/be-comfident-ask-for-the-salary-you-deserve-with-a-degree/17692 "2015-03-07T03:38:30Z")

</div>

Don't like the job you work at and you think about changing it for something better? You have a great chance to do it right now! Best diplomas in every field of knowledge are now available for your order. Hurry up to …

---

## [Improved ec2\_ami\_search module](https://forum.ansible.com/t/improved-ec2-ami-search-module/17691)

<div class="topic-metadata">

**Author:** [@Tom\_Bamford](https://forum.ansible.com/u/Tom_Bamford)\
**Replies:** 0\
**Last updated:** [March 7, 2015, 3:07am UTC](https://forum.ansible.com/t/improved-ec2-ami-search-module/17691 "2015-03-07T03:07:46Z")

</div>

Hi all I have written a new ec2\_ami\_search module and submitted a PR at https://github.com/ansible/ansible-modules-core/pull/905 I would welcome any discussion around this. Please note that this isn’t backwards compati…

---

## [Sharing variables defaults across roles](https://forum.ansible.com/t/sharing-variables-defaults-across-roles/16053)

<div class="topic-metadata">

**Author:** [@Daniele\_Varrazzo](https://forum.ansible.com/u/Daniele_Varrazzo)\
**Replies:** 11\
**Last updated:** [March 6, 2015, 11:27pm UTC](https://forum.ansible.com/t/sharing-variables-defaults-across-roles/16053 "2015-03-06T23:27:18Z")

</div>

Hello, first of all thank you very much for Ansible. I’m setting up the deployment of a complex system and splitting it across roles. I haven’t found yet a satisfactory way of sharing variables across the roles. A simpl…

---

## [script module](https://forum.ansible.com/t/script-module/17688)

<div class="topic-metadata">

**Author:** [@Craig\_White](https://forum.ansible.com/u/Craig_White)\
**Replies:** 9\
**Last updated:** [March 6, 2015, 10:26pm UTC](https://forum.ansible.com/t/script-module/17688 "2015-03-06T22:26:47Z")

</div>

Seems that the ‘script’ module wants a local file but I need the local file to be a template with variables ./templates/my\_script.sh Run script which removes the directory name: perform OpenLDAP setup and clean up scr…

---

## [Best Practice for Setting I/O Scheduler](https://forum.ansible.com/t/best-practice-for-setting-i-o-scheduler/17690)

<div class="topic-metadata">

**Author:** [@Chris\_Short](https://forum.ansible.com/u/Chris_Short)\
**Replies:** 0\
**Last updated:** [March 6, 2015, 9:21pm UTC](https://forum.ansible.com/t/best-practice-for-setting-i-o-scheduler/17690 "2015-03-06T21:21:41Z")

</div>

I’m trying to set the I/O scheduler for a block device (mysql tuning) with ansible. I’ve seen some examples but I’m curious what others are doing to persistently set this.

---

## [Help with Docker module](https://forum.ansible.com/t/help-with-docker-module/17687)

<div class="topic-metadata">

**Author:** [@Lars\_Sommer](https://forum.ansible.com/u/Lars_Sommer)\
**Replies:** 4\
**Last updated:** [March 6, 2015, 8:11pm UTC](https://forum.ansible.com/t/help-with-docker-module/17687 "2015-03-06T20:11:55Z")

</div>

Hello, I am trying to implement docker in my workplace and plan on using Ansible to orchestrate my containers on my hosts. I have a few questions: Is it possible to get the documentation the docker module page fleshed …

---

## [How to loop over list while pulling data from different list?](https://forum.ansible.com/t/how-to-loop-over-list-while-pulling-data-from-different-list/17668)

<div class="topic-metadata">

**Author:** [@jack.martin8912](https://forum.ansible.com/u/jack.martin8912)\
**Replies:** 5\
**Last updated:** [March 6, 2015, 4:49pm UTC](https://forum.ansible.com/t/how-to-loop-over-list-while-pulling-data-from-different-list/17668 "2015-03-06T16:49:16Z")

</div>

Hello, I’m encountering a loop issue that I’m unsure how to solve cleanly. Suppose I have a list of dictionaries: list\_of\_dict: { key: d01, value: ‘v1’ } { key: d02, value: ‘v2’ } … { key: d99, value: ‘v99’ } Somew…

---

## [Problem grouping inventory directory files](https://forum.ansible.com/t/problem-grouping-inventory-directory-files/17689)

<div class="topic-metadata">

**Author:** [@John\_McNulty](https://forum.ansible.com/u/John_McNulty)\
**Replies:** 3\
**Last updated:** [March 6, 2015, 2:20pm UTC](https://forum.ansible.com/t/problem-grouping-inventory-directory-files/17689 "2015-03-06T14:20:33Z")

</div>

By way of explanation here’s a simple reproducer. The Inventory is a directory containing two files - each one contains one group and one host inventory/poc-app \[poc-app\] host1 inventory/poc-db \[poc-db\] host2 A p…

---

## [ansible email and template](https://forum.ansible.com/t/ansible-email-and-template/17681)

<div class="topic-metadata">

**Author:** [@Antoine\_Voiry](https://forum.ansible.com/u/Antoine_Voiry)\
**Replies:** 1\
**Last updated:** [March 6, 2015, 1:17pm UTC](https://forum.ansible.com/t/ansible-email-and-template/17681 "2015-03-06T13:17:39Z")

</div>

All, I am trying to send email in html I keep getting TASK: \[pre\_install | send email\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* fatal: \[localhost → 127.0.0.1\] =\> A variable inserted a new parameter into the module args.…

---

## [email and ansible](https://forum.ansible.com/t/email-and-ansible/17684)

<div class="topic-metadata">

**Author:** [@Antoine\_Voiry](https://forum.ansible.com/u/Antoine_Voiry)\
**Replies:** 0\
**Last updated:** [March 5, 2015, 9:17pm UTC](https://forum.ansible.com/t/email-and-ansible/17684 "2015-03-05T21:17:35Z")

</div>

All, I am trying to get emails and html template. I get a message saying var are added in the replaced body text. Any idea of where that come from? name: delete temp dir local\_action: file path=./tmp state=absent …

---

## [replace a line in remote file](https://forum.ansible.com/t/replace-a-line-in-remote-file/17632)

<div class="topic-metadata">

**Author:** [@vinay.bhasker](https://forum.ansible.com/u/vinay.bhasker)\
**Replies:** 3\
**Last updated:** [March 5, 2015, 9:05pm UTC](https://forum.ansible.com/t/replace-a-line-in-remote-file/17632 "2015-03-05T21:05:25Z")

</div>

Question: Need some advice on how to do in ansible. We are fetching the archive from artifactory url and calling a script to deploy the application. The archive would be different for different release and we need to …

---

## [Invoking/aggregating modules - synchronize with sudo support](https://forum.ansible.com/t/invoking-aggregating-modules-synchronize-with-sudo-support/17683)

<div class="topic-metadata">

**Author:** [@Mirko\_Friedenhagen](https://forum.ansible.com/u/Mirko_Friedenhagen)\
**Replies:** 0\
**Last updated:** [March 5, 2015, 8:28pm UTC](https://forum.ansible.com/t/invoking-aggregating-modules-synchronize-with-sudo-support/17683 "2015-03-05T20:28:57Z")

</div>

Hello, I need to run a synchronize task as user root to copy some files while preserving permissions etc. My first solution was to create an exception so the ssh user is allowed to run rsync via a sudoers rule with N…

---

## [running ansible-playbook from a debugger](https://forum.ansible.com/t/running-ansible-playbook-from-a-debugger/17670)

<div class="topic-metadata">

**Author:** [@Kesten\_Broughton2](https://forum.ansible.com/u/Kesten_Broughton2)\
**Replies:** 1\
**Last updated:** [March 5, 2015, 7:29pm UTC](https://forum.ansible.com/t/running-ansible-playbook-from-a-debugger/17670 "2015-03-05T19:29:42Z")

</div>

Hi, I have multiple installs of ansible (brew, pip and git source) on my mac. I recently needed to debug some things and found it easy to do, with one exception. I’ve detailed it here. https://kestenbroughton2015.word…

---

## [single role across all hosts but with different vars based on group](https://forum.ansible.com/t/single-role-across-all-hosts-but-with-different-vars-based-on-group/17682)

<div class="topic-metadata">

**Author:** [@david.neudorfer](https://forum.ansible.com/u/david.neudorfer)\
**Replies:** 0\
**Last updated:** [March 5, 2015, 7:23pm UTC](https://forum.ansible.com/t/single-role-across-all-hosts-but-with-different-vars-based-on-group/17682 "2015-03-05T19:23:54Z")

</div>

Looking to speed up the runtime of our ansible playbook I’m looking to run a role called logstash-shipped across all hosts hosts: all roles: logstash-shipper but load it with different vars depending on what gr…

---

## [Setting ANSIBLE\_HOST\_KEY\_CHECKING per host](https://forum.ansible.com/t/setting-ansible-host-key-checking-per-host/17641)

<div class="topic-metadata">

**Author:** [@junkmailtrapenator](https://forum.ansible.com/u/junkmailtrapenator)\
**Replies:** 7\
**Last updated:** [March 5, 2015, 5:04pm UTC](https://forum.ansible.com/t/setting-ansible-host-key-checking-per-host/17641 "2015-03-05T17:04:13Z")

</div>

Is it possible to set ANSIBLE\_HOST\_KEY\_CHECKING on a per host or host group basis? This would help prevent my known\_hosts file from becoming cluttered with test boxes but still ensure when I talk to production hosts I ca…

---

## [Ansible trying to use "initctl" with CentOS 7](https://forum.ansible.com/t/ansible-trying-to-use-initctl-with-centos-7/17330)

<div class="topic-metadata">

**Author:** [@RJ\_Nowling](https://forum.ansible.com/u/RJ_Nowling)\
**Replies:** 6\
**Last updated:** [March 5, 2015, 4:31pm UTC](https://forum.ansible.com/t/ansible-trying-to-use-initctl-with-centos-7/17330 "2015-03-05T16:31:03Z")

</div>

Hi all, I’m using Ansible with CentOS 7 images in Vagrant. I have the following task: name: restart iptables action: service name=iptables state=restarted when: is\_centos When it is run on the images, I get: fail…

---

## [what am I missing here?? unarchive + folded scalar vs structured map](https://forum.ansible.com/t/what-am-i-missing-here-unarchive-folded-scalar-vs-structured-map/17679)

<div class="topic-metadata">

**Author:** [@himmel1992](https://forum.ansible.com/u/himmel1992)\
**Replies:** 0\
**Last updated:** [March 5, 2015, 4:13pm UTC](https://forum.ansible.com/t/what-am-i-missing-here-unarchive-folded-scalar-vs-structured-map/17679 "2015-03-05T16:13:20Z")

</div>

Hi - This is driving me crazy. If I run this, ansible honors the “creates” and properly skips if the specified directory exists. name: copy and unpack form2 unarchive: \> src={{ jdks\_available\[item.jdk\_ver\]\[‘java\_ar…

---

## [Collectd - manual install from source - only if a new package is not available](https://forum.ansible.com/t/collectd-manual-install-from-source-only-if-a-new-package-is-not-available/17675)

<div class="topic-metadata">

**Author:** [@Tzach\_Livyatan1](https://forum.ansible.com/u/Tzach_Livyatan1)\
**Replies:** 1\
**Last updated:** [March 5, 2015, 4:08pm UTC](https://forum.ansible.com/t/collectd-manual-install-from-source-only-if-a-new-package-is-not-available/17675 "2015-03-05T16:08:00Z")

</div>

Hello I have a role for installing Collectd agent. To get the Riemann plugin, I need version 5.4.0 or above. The following works fine on Ubuntu 14.x \` apt: pkg={{ item }} state=present update\_cache=yes cache\_valid\_…

---

## [How to set vars with python in ansible inventory?](https://forum.ansible.com/t/how-to-set-vars-with-python-in-ansible-inventory/17677)

<div class="topic-metadata">

**Author:** [@Valeriy\_Solovyov](https://forum.ansible.com/u/Valeriy_Solovyov)\
**Replies:** 2\
**Last updated:** [March 5, 2015, 3:22pm UTC](https://forum.ansible.com/t/how-to-set-vars-with-python-in-ansible-inventory/17677 "2015-03-05T15:22:58Z")

</div>

Hello, In playbook I’m using variable {{excluded\_service}}. I want to run ansible playbook from python and provide this variable. I can’t use external inventory script to provide this variable. (There is one workaround…

---

## [Using Ansible to make an /proc like mount for your environment](https://forum.ansible.com/t/using-ansible-to-make-an-proc-like-mount-for-your-environment/17673)

<div class="topic-metadata">

**Author:** [@Yoram\_Hekma](https://forum.ansible.com/u/Yoram_Hekma)\
**Replies:** 2\
**Last updated:** [March 5, 2015, 3:17pm UTC](https://forum.ansible.com/t/using-ansible-to-make-an-proc-like-mount-for-your-environment/17673 "2015-03-05T15:17:26Z")

</div>

All, I made 2 scripts I wanted to show to you guys. Maybe someone finds them useful, and maybe someone has some suggestions on improving them (I am an engineer, not a developer, and this is the first time I am doing stu…

---

## [best practice to assign conditional variables, depending on --extra-vars values](https://forum.ansible.com/t/best-practice-to-assign-conditional-variables-depending-on-extra-vars-values/17674)

<div class="topic-metadata">

**Author:** [@Torsten\_Reinhard](https://forum.ansible.com/u/Torsten_Reinhard)\
**Replies:** 0\
**Last updated:** [March 5, 2015, 10:30am UTC](https://forum.ansible.com/t/best-practice-to-assign-conditional-variables-depending-on-extra-vars-values/17674 "2015-03-05T10:30:53Z")

</div>

Hi, I´ve a “best practice” question of how to define conditional variables, depending on other variables: The requirement is: –extra-vars “extint\_filter=regEx” should filter instances –extra-vars “internalOnly=tr…

---

## [roles, when, hostvars and conditionals  || error while evaluating conditional: X==X](https://forum.ansible.com/t/roles-when-hostvars-and-conditionals-error-while-evaluating-conditional-x-x/17672)

<div class="topic-metadata">

**Author:** [@Jakub\_Muszynski](https://forum.ansible.com/u/Jakub_Muszynski)\
**Replies:** 0\
**Last updated:** [March 5, 2015, 8:49am UTC](https://forum.ansible.com/t/roles-when-hostvars-and-conditionals-error-while-evaluating-conditional-x-x/17672 "2015-03-05T08:49:09Z")

</div>

Hi I have faced a syntax/jinja/bug? issue while evalutating conditionals in ‘when’ {role: restart, action: restart, app: web, when: "{{ hostvars\[groups\['web'\]\[0\]\]\['result'\]\['state'\] }}" == 'SUSPENDED'\]} #Not working {r…

---

## [Galaxy Maintenance Tonight](https://forum.ansible.com/t/galaxy-maintenance-tonight/17664)

<div class="topic-metadata">

**Author:** [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Replies:** 1\
**Last updated:** [March 5, 2015, 7:27am UTC](https://forum.ansible.com/t/galaxy-maintenance-tonight/17664 "2015-03-05T07:27:42Z")

</div>

Hi all, just wanted to alert everyone to some Galaxy maintenance which will be occurring at approximately 1AM EST this evening. The site should be back up quickly, and we’ll send a follow-up email once the maintenance is…

---

## [ec2\_vpc default gw not working?](https://forum.ansible.com/t/ec2-vpc-default-gw-not-working/17613)

<div class="topic-metadata">

**Author:** [@Pablo\_Escobar](https://forum.ansible.com/u/Pablo_Escobar)\
**Replies:** 5\
**Last updated:** [March 5, 2015, 5:30am UTC](https://forum.ansible.com/t/ec2-vpc-default-gw-not-working/17613 "2015-03-05T05:30:46Z")

</div>

Hi, I have been doing some tests to deploy a ec2 vpc with ansible but I cannot manage to configure the default gw so the machines inside the vpc have no internet access. After doing some debugging in my playbook I just…

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

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