# Latest

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

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

**Page:** 853

---

## [unabel to use pipelining on centos 6.6 -\> amazon linux](https://forum.ansible.com/t/unabel-to-use-pipelining-on-centos-6-6-amazon-linux/18754)

<div class="topic-metadata">

**Author:** [@Alex\_Leonhardt](https://forum.ansible.com/u/Alex_Leonhardt)\
**Replies:** 1\
**Last updated:** [July 14, 2015, 12:31pm UTC](https://forum.ansible.com/t/unabel-to-use-pipelining-on-centos-6-6-amazon-linux/18754 "2015-07-14T12:31:24Z")

</div>

Hi guys, I’ve been trying to use pipelining to make use of ControlPersist etc. - however - ansible is failing to run the play due to asking for the sudo password (?) which I already gave (I verified it works): $ time a…

---

## [URL module can not use body from role task](https://forum.ansible.com/t/url-module-can-not-use-body-from-role-task/18750)

<div class="topic-metadata">

**Author:** [@Phill\_Pafford](https://forum.ansible.com/u/Phill_Pafford)\
**Replies:** 2\
**Last updated:** [July 14, 2015, 11:39am UTC](https://forum.ansible.com/t/url-module-can-not-use-body-from-role-task/18750 "2015-07-14T11:39:05Z")

</div>

How can I execute a REST call to an API from a role http://docs.ansible.com/uri\_module.html

---

## [Create directories based on inventory\_hostname with with\_items](https://forum.ansible.com/t/create-directories-based-on-inventory-hostname-with-with-items/18752)

<div class="topic-metadata">

**Author:** [@Tunghsiao\_Liu](https://forum.ansible.com/u/Tunghsiao_Liu)\
**Replies:** 1\
**Last updated:** [July 14, 2015, 11:20am UTC](https://forum.ansible.com/t/create-directories-based-on-inventory-hostname-with-with-items/18752 "2015-07-14T11:20:43Z")

</div>

Hello, I’m trying to creating directories based on different inventory\_hostname with with\_items but it seems doesn’t work: in hosts: \[website-static-pages\] server1 server2 in vars.yml: \` enabled\_sites: server1: w…

---

## [skip task check mode](https://forum.ansible.com/t/skip-task-check-mode/18753)

<div class="topic-metadata">

**Author:** [@Jose\_Coelho](https://forum.ansible.com/u/Jose_Coelho)\
**Replies:** 0\
**Last updated:** [July 14, 2015, 9:57am UTC](https://forum.ansible.com/t/skip-task-check-mode/18753 "2015-07-14T09:57:08Z")

</div>

Hello, I’m trying to run a playbook in the flags --check, however I’m having an issue: name: ntp - Configure ntp template: src=etc/ntp.conf.j2 dest=/etc/ntp.conf notify: ntp - restart ntp name: ntp - …

---

## [empty ansible.cfg in current directory changes the action of ansible-playbook ?](https://forum.ansible.com/t/empty-ansible-cfg-in-current-directory-changes-the-action-of-ansible-playbook/18739)

<div class="topic-metadata">

**Author:** [@Oliver\_markey](https://forum.ansible.com/u/Oliver_markey)\
**Replies:** 2\
**Last updated:** [July 14, 2015, 1:33am UTC](https://forum.ansible.com/t/empty-ansible-cfg-in-current-directory-changes-the-action-of-ansible-playbook/18739 "2015-07-14T01:33:11Z")

</div>

I create a simple playbook to restart rsyslog using service module.

---

## [AttributeError: 'str' object has no attribute 'set\_playbook\_basedir'.](https://forum.ansible.com/t/attributeerror-str-object-has-no-attribute-set-playbook-basedir/18749)

<div class="topic-metadata">

**Author:** [@ananth.vkg](https://forum.ansible.com/u/ananth.vkg)\
**Replies:** 1\
**Last updated:** [July 13, 2015, 10:11pm UTC](https://forum.ansible.com/t/attributeerror-str-object-has-no-attribute-set-playbook-basedir/18749 "2015-07-13T22:11:09Z")

</div>

Hi, I am trying to execute unusable playbook using unusable python API, but the execution call to playbook.PlayBook fails with …lib/python2.7/site-packages/ansible/playbook/init.py", line 173, in init inventory.set\_pla…

---

## [ansible wait\_for doesn't work for udp port](https://forum.ansible.com/t/ansible-wait-for-doesnt-work-for-udp-port/18747)

<div class="topic-metadata">

**Author:** [@Max1](https://forum.ansible.com/u/Max1)\
**Replies:** 1\
**Last updated:** [July 13, 2015, 8:11pm UTC](https://forum.ansible.com/t/ansible-wait-for-doesnt-work-for-udp-port/18747 "2015-07-13T20:11:24Z")

</div>

Hello I’ve a doubt regarding ansible wait\_form module. Can we use this to test reach-ability for UDP ports on remote host as well? Thanks !

---

## [Ansible - elasticache (ansible 1.9.2)](https://forum.ansible.com/t/ansible-elasticache-ansible-1-9-2/18746)

<div class="topic-metadata">

**Author:** [@Federico\_Aguirre](https://forum.ansible.com/u/Federico_Aguirre)\
**Replies:** 1\
**Last updated:** [July 13, 2015, 7:43pm UTC](https://forum.ansible.com/t/ansible-elasticache-ansible-1-9-2/18746 "2015-07-13T19:43:54Z")

</div>

Hi folks, I’m having a problem dealing with aws elasticache on VPC if I play without cache\_subnet\_group i got: failed: \[127.0.0.1\] =\> {"failed": true} msg: Subnet group \[default\] belongs to a different VPC \[vpc-405ac8…

---

## [IP whitelisting challenge](https://forum.ansible.com/t/ip-whitelisting-challenge/18744)

<div class="topic-metadata">

**Author:** [@Gary\_Malouf](https://forum.ansible.com/u/Gary_Malouf)\
**Replies:** 3\
**Last updated:** [July 13, 2015, 6:59pm UTC](https://forum.ansible.com/t/ip-whitelisting-challenge/18744 "2015-07-13T18:59:46Z")

</div>

We have used Ansible to automate all of our deployments to EC2 (via the EC2 packages included with Ansible) and custom roles for our own services. Our production instances run in a vpc within public subnets. In order to…

---

## [Failed linode server creation: The requested class does not exist](https://forum.ansible.com/t/failed-linode-server-creation-the-requested-class-does-not-exist/18745)

<div class="topic-metadata">

**Author:** [@Artur\_Martins](https://forum.ansible.com/u/Artur_Martins)\
**Replies:** 0\
**Last updated:** [July 13, 2015, 4:10pm UTC](https://forum.ansible.com/t/failed-linode-server-creation-the-requested-class-does-not-exist/18745 "2015-07-13T16:10:48Z")

</div>

Hello there, I am trying to understand why the linode creation does not work. I am using this ansible template: - hosts: localhost connection: local gather\_facts: false tasks: - name: Create linode server …

---

## [sg": "ERROR! ssh connection closed waiting for password prompt", Error](https://forum.ansible.com/t/sg-error-ssh-connection-closed-waiting-for-password-prompt-error/18740)

<div class="topic-metadata">

**Author:** [@Gaurav\_Suryagandh](https://forum.ansible.com/u/Gaurav_Suryagandh)\
**Replies:** 2\
**Last updated:** [July 13, 2015, 2:55pm UTC](https://forum.ansible.com/t/sg-error-ssh-connection-closed-waiting-for-password-prompt-error/18740 "2015-07-13T14:55:24Z")

</div>

Hello All, I am trying to use script module of ansible to execute my local script on the remote machine but i am facing below error. sg": “ERROR! ssh connection closed waiting for password prompt”, Below is debug trac…

---

## [Ansible Tower: Trying to understand Permission structure](https://forum.ansible.com/t/ansible-tower-trying-to-understand-permission-structure/18742)

<div class="topic-metadata">

**Author:** [@Markus\_Samlenski](https://forum.ansible.com/u/Markus_Samlenski)\
**Replies:** 2\
**Last updated:** [July 13, 2015, 1:46pm UTC](https://forum.ansible.com/t/ansible-tower-trying-to-understand-permission-structure/18742 "2015-07-13T13:46:18Z")

</div>

Hi all, I want to achieve a structure of permissions as following: Organizations are parted as: Developers,DevOps,System-administrators The Developer orga for example has Teams, which are working on different projects…

---

## [Ansible Augeas module](https://forum.ansible.com/t/ansible-augeas-module/18701)

<div class="topic-metadata">

**Author:** [@Dimitar\_Hristov](https://forum.ansible.com/u/Dimitar_Hristov)\
**Replies:** 2\
**Last updated:** [July 13, 2015, 11:08am UTC](https://forum.ansible.com/t/ansible-augeas-module/18701 "2015-07-13T11:08:36Z")

</div>

Hi Guys, I’m having some issues implementing the augeas module for ansible. I’m running it on CentOS 6.6 and I have the following packages installed: augeas.x86\_64 python-augeas.noarch augeas-libs.x86\_64 augeas-deve…

---

## [Passing variables to template file in template module](https://forum.ansible.com/t/passing-variables-to-template-file-in-template-module/18727)

<div class="topic-metadata">

**Author:** [@Jeremy\_Judeaux](https://forum.ansible.com/u/Jeremy_Judeaux)\
**Replies:** 2\
**Last updated:** [July 13, 2015, 8:12am UTC](https://forum.ansible.com/t/passing-variables-to-template-file-in-template-module/18727 "2015-07-13T08:12:02Z")

</div>

Hi, I have a template called in a loop. In order to improve readability and reusability, I’d like to avoid any {{item}}, {{item.0}} or {{item.1.something}} in my template file. According to issue #4546, this doesn’t se…

---

## [if defined for nested dict value](https://forum.ansible.com/t/if-defined-for-nested-dict-value/18738)

<div class="topic-metadata">

**Author:** [@rob3](https://forum.ansible.com/u/rob3)\
**Replies:** 0\
**Last updated:** [July 12, 2015, 8:19pm UTC](https://forum.ansible.com/t/if-defined-for-nested-dict-value/18738 "2015-07-12T20:19:19Z")

</div>

Hi I would like to check if nested dict value is defined, eg.: when: ansible\_local.resolver.resolver\_override is not defined But if ansible\_local (fact.d) is not exists I get error message: error while evaluating con…

---

## [Working with variables](https://forum.ansible.com/t/working-with-variables/18737)

<div class="topic-metadata">

**Author:** [@Alexander\_Popov1](https://forum.ansible.com/u/Alexander_Popov1)\
**Replies:** 0\
**Last updated:** [July 12, 2015, 5:59pm UTC](https://forum.ansible.com/t/working-with-variables/18737 "2015-07-12T17:59:41Z")

</div>

I not found answers in documentation, sorry if its lame, it’s my first day with ansible i’m creating vpc: ec2\_vpc: state: present cidr\_block: 172.30.0.0/16 subnets: cidr: 172.30.3.0/24 az: … resource\_tags: { “ta…

---

## [Ansible v2 syntax errors Python 2.6](https://forum.ansible.com/t/ansible-v2-syntax-errors-python-2-6/18734)

<div class="topic-metadata">

**Author:** [@Ken\_Mitchell](https://forum.ansible.com/u/Ken_Mitchell)\
**Replies:** 3\
**Last updated:** [July 11, 2015, 7:59pm UTC](https://forum.ansible.com/t/ansible-v2-syntax-errors-python-2-6/18734 "2015-07-11T19:59:46Z")

</div>

I’m scratching my head. This is the first I’ve worked on v2, and with a fresh install from source (following http://docs.ansible.com/intro\_installation.html), I get \` ken ~/projects/ansible\_dev/ansible2 # ansible -v \[…

---

## [Re; Ansible 2.0 extras / proxmox](https://forum.ansible.com/t/re-ansible-2-0-extras-proxmox/18733)

<div class="topic-metadata">

**Author:** [@Gareth\_Bult](https://forum.ansible.com/u/Gareth_Bult)\
**Replies:** 0\
**Last updated:** [July 11, 2015, 2:46pm UTC](https://forum.ansible.com/t/re-ansible-2-0-extras-proxmox/18733 "2015-07-11T14:46:04Z")

</div>

Hi, I have the proxmox code working with 2.0 - awesome. Is anyone doing any work in virtual instances in addition to just containers?

---

## [Reload inventory variables inside playbook execution](https://forum.ansible.com/t/reload-inventory-variables-inside-playbook-execution/18724)

<div class="topic-metadata">

**Author:** [@Bruno\_Galindro\_da\_Co](https://forum.ansible.com/u/Bruno_Galindro_da_Co)\
**Replies:** 1\
**Last updated:** [July 11, 2015, 7:55am UTC](https://forum.ansible.com/t/reload-inventory-variables-inside-playbook-execution/18724 "2015-07-11T07:55:21Z")

</div>

I need create an ec2 instance and execute many tasks on it. For accomplish this, I’ve build two playbooks: one for ec2 creation and other for configuration (package installation, application deploy, etc…). I’ve created a…

---

## [ec2\_group does not honor region or ec2\_url parameter](https://forum.ansible.com/t/ec2-group-does-not-honor-region-or-ec2-url-parameter/18732)

<div class="topic-metadata">

**Author:** [@Steven\_Truong](https://forum.ansible.com/u/Steven_Truong)\
**Replies:** 0\
**Last updated:** [July 11, 2015, 4:20am UTC](https://forum.ansible.com/t/ec2-group-does-not-honor-region-or-ec2-url-parameter/18732 "2015-07-11T04:20:40Z")

</div>

Hi all, I am using Ansible 1.9.2 and when I was in /usr/local/lib/python2.7/dist-packages/ansible/modules/core/cloud/amazon and grep for region or ec2\_url I did not see any real mention of either these in the codes. gr…

---

## [Why do these SELinux tasks report "changed" every time?](https://forum.ansible.com/t/why-do-these-selinux-tasks-report-changed-every-time/18721)

<div class="topic-metadata">

**Author:** [@Will\_Dennis](https://forum.ansible.com/u/Will_Dennis)\
**Replies:** 2\
**Last updated:** [July 11, 2015, 3:31am UTC](https://forum.ansible.com/t/why-do-these-selinux-tasks-report-changed-every-time/18721 "2015-07-11T03:31:40Z")

</div>

Hi all, I have two tasks in a playbook as follows: name: RHELFAM | Set SELinux to permissive selinux: policy=targeted state=permissive tags: secmods name: RHELFAM | Disable SELinux in conf file selinux: state=d…

---

## [yaml structures passed to roles that to\_json cannot use integers](https://forum.ansible.com/t/yaml-structures-passed-to-roles-that-to-json-cannot-use-integers/18370)

<div class="topic-metadata">

**Author:** [@Barry\_Kaplan](https://forum.ansible.com/u/Barry_Kaplan)\
**Replies:** 5\
**Last updated:** [July 11, 2015, 2:27am UTC](https://forum.ansible.com/t/yaml-structures-passed-to-roles-that-to-json-cannot-use-integers/18370 "2015-07-11T02:27:48Z")

</div>

I just got hit with https://github.com/ansible/ansible/issues/9362, where in the following ‘instances’ is a string when the role uses to\_json to pass the data to marathon: \` vars: vi\_instances: “{{instances | default(…

---

## [Ansible newby trying to do something very simple (unsuccessfully)](https://forum.ansible.com/t/ansible-newby-trying-to-do-something-very-simple-unsuccessfully/18722)

<div class="topic-metadata">

**Author:** [@Jane\_Mortimore](https://forum.ansible.com/u/Jane_Mortimore)\
**Replies:** 2\
**Last updated:** [July 11, 2015, 1:51am UTC](https://forum.ansible.com/t/ansible-newby-trying-to-do-something-very-simple-unsuccessfully/18722 "2015-07-11T01:51:06Z")

</div>

I’m am trying to write an ansible script that will generate thread dumps on java processes. Here is my playbook:

---

## [quoting a colon - I can't get it right](https://forum.ansible.com/t/quoting-a-colon-i-cant-get-it-right/18728)

<div class="topic-metadata">

**Author:** [@Ed\_Greenberg](https://forum.ansible.com/u/Ed_Greenberg)\
**Replies:** 1\
**Last updated:** [July 10, 2015, 10:41pm UTC](https://forum.ansible.com/t/quoting-a-colon-i-cant-get-it-right/18728 "2015-07-10T22:41:31Z")

</div>

Can somebody help me get this to work? The colon following NOPASSWD is causing me fits. name: add permission for nrpe to access vzlicview action: lineinfile dest=/etc/sudoers regexp=^nrpe line=“nrpe ALL=(ALL) NOPASSW…

---

## [win\_chocolatey missing/broken in Ansible 1.9.2?](https://forum.ansible.com/t/win-chocolatey-missing-broken-in-ansible-1-9-2/18718)

<div class="topic-metadata">

**Author:** [@Jason\_Levitt](https://forum.ansible.com/u/Jason_Levitt)\
**Replies:** 2\
**Last updated:** [July 10, 2015, 7:02pm UTC](https://forum.ansible.com/t/win-chocolatey-missing-broken-in-ansible-1-9-2/18718 "2015-07-10T19:02:58Z")

</div>

Ansible 1.9.2 on MacOSX. https://github.com/ansible/ansible/issues/11539 This code: \` tasks: name: Get Powershell remoting script win\_chocolatey: name: PSWindowsUpdate state: present \` responds with: ERROR: s…

---

## [win\_update missing/broken in Ansible 1.9.2?](https://forum.ansible.com/t/win-update-missing-broken-in-ansible-1-9-2/18719)

<div class="topic-metadata">

**Author:** [@Jason\_Levitt](https://forum.ansible.com/u/Jason_Levitt)\
**Replies:** 2\
**Last updated:** [July 10, 2015, 7:00pm UTC](https://forum.ansible.com/t/win-update-missing-broken-in-ansible-1-9-2/18719 "2015-07-10T19:00:20Z")

</div>

Running Ansible 1.9.2 This task: \` tasks: win\_updates: category: critical \` responds with: ERROR: category is not a legal parameter in an Ansible task or handler The documentation shows category as a valid para…

---

## [Multiple items and a long list of conditional tasks](https://forum.ansible.com/t/multiple-items-and-a-long-list-of-conditional-tasks/15514)

<div class="topic-metadata">

**Author:** [@Tom\_Cannaerts](https://forum.ansible.com/u/Tom_Cannaerts)\
**Replies:** 3\
**Last updated:** [July 10, 2015, 3:44pm UTC](https://forum.ansible.com/t/multiple-items-and-a-long-list-of-conditional-tasks/15514 "2015-07-10T15:44:10Z")

</div>

I’m writing a playbook to create a number of solr cores, but I’m running into some issues. I started with a task file that would be included, but appearantly include and with\_items isn’t supported. The idea was, that f…

---

## [Passing module params conditionally](https://forum.ansible.com/t/passing-module-params-conditionally/16255)

<div class="topic-metadata">

**Author:** [@Hagai\_Kariti](https://forum.ansible.com/u/Hagai_Kariti)\
**Replies:** 3\
**Last updated:** [July 10, 2015, 3:07pm UTC](https://forum.ansible.com/t/passing-module-params-conditionally/16255 "2015-07-10T15:07:34Z")

</div>

Hi I have a usecase in which I want to pass some parameters to a module only if I have a variable defined with value for them. If I don’t, I want the module to use its default value for these parameters. In ansible 1.5.…

---

## [Is Ansible the right tool for what I want to do?](https://forum.ansible.com/t/is-ansible-the-right-tool-for-what-i-want-to-do/18720)

<div class="topic-metadata">

**Author:** [@Tim\_Skoch](https://forum.ansible.com/u/Tim_Skoch)\
**Replies:** 2\
**Last updated:** [July 10, 2015, 2:41pm UTC](https://forum.ansible.com/t/is-ansible-the-right-tool-for-what-i-want-to-do/18720 "2015-07-10T14:41:09Z")

</div>

I’m setting up a lab with a bunch of VMs, and each of these VMs will serve one of a set of purposes (mostly servers). In setting up each one, I’m keeping detailed notes of exactly what I have installed, configuration cha…

---

## [Are roles analogous to modules/cookbooks in Puppet/Chef?](https://forum.ansible.com/t/are-roles-analogous-to-modules-cookbooks-in-puppet-chef/18712)

<div class="topic-metadata">

**Author:** [@Joaquin\_Menchaca](https://forum.ansible.com/u/Joaquin_Menchaca)\
**Replies:** 2\
**Last updated:** [July 10, 2015, 4:00am UTC](https://forum.ansible.com/t/are-roles-analogous-to-modules-cookbooks-in-puppet-chef/18712 "2015-07-10T04:00:29Z")

</div>

I was wondering how to organize configuration code into segments, such as nginx, mysql, redis, java, and so on. In Puppet they have modules, and Chef there are cookbooks with recipees. Some of the code I looked at, it se…

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

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