# Latest

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

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

**Page:** 828

---

## [Ansible Failed to Run because of SSH](https://forum.ansible.com/t/ansible-failed-to-run-because-of-ssh/19496)

<div class="topic-metadata">

**Author:** [@GBANE\_FETIGUE](https://forum.ansible.com/u/GBANE_FETIGUE)\
**Replies:** 3\
**Last updated:** [October 13, 2015, 7:10pm UTC](https://forum.ansible.com/t/ansible-failed-to-run-because-of-ssh/19496 "2015-10-13T19:10:06Z")

</div>

Hey Guys I am trying to run that playbook but for some reason it’s not running root@ip-172-16-20-180:/var/ lib/jenkins/jobs/build-cs-utils/workspace/playbooks# ansible-playbook -i inventory/prod deploy\_system\_status.ym…

---

## [Adding dict key + value](https://forum.ansible.com/t/adding-dict-key-value/19476)

<div class="topic-metadata">

**Author:** [@Guy\_Knights](https://forum.ansible.com/u/Guy_Knights)\
**Replies:** 1\
**Last updated:** [October 13, 2015, 5:32pm UTC](https://forum.ansible.com/t/adding-dict-key-value/19476 "2015-10-13T17:32:39Z")

</div>

I’m trying to add a new key to an existing dictionary but I’m having some trouble. I have this set\_fact task: \` set\_fact: ha.listeners.backends\[item.key\].servers=“{{ groups\[item.key\] }}” with\_dict: ha.listeners.back…

---

## [DIFFERENCES BETWEEN ANSIBLE 1.9.X and 2.X](https://forum.ansible.com/t/differences-between-ansible-1-9-x-and-2-x/19497)

<div class="topic-metadata">

**Author:** [@Alejandro\_Comisario](https://forum.ansible.com/u/Alejandro_Comisario)\
**Replies:** 1\
**Last updated:** [October 13, 2015, 4:39pm UTC](https://forum.ansible.com/t/differences-between-ansible-1-9-x-and-2-x/19497 "2015-10-13T16:39:12Z")

</div>

Hi, despite trying to look for them, i wanted to know from a : people who uses it people who developed it what are the most important differences ( and why should i make all my roles/playbooks to work ) between ansibl…

---

## [Something like include\_vars but for playbooks](https://forum.ansible.com/t/something-like-include-vars-but-for-playbooks/19495)

<div class="topic-metadata">

**Author:** [@Diego\_Lagos](https://forum.ansible.com/u/Diego_Lagos)\
**Replies:** 0\
**Last updated:** [October 13, 2015, 2:19pm UTC](https://forum.ansible.com/t/something-like-include-vars-but-for-playbooks/19495 "2015-10-13T14:19:59Z")

</div>

Hello to all, I need to choose between two variables file depending on an external parameter. E.g in a task file \` - include\_vars: jboss\_5.yml when: "{{ my\_app\_version | version\_compare('8', '=') }}" - include\_var…

---

## [Dynamic inventory from Active Directory?](https://forum.ansible.com/t/dynamic-inventory-from-active-directory/19319)

<div class="topic-metadata">

**Author:** [@Bob\_Tanner](https://forum.ansible.com/u/Bob_Tanner)\
**Replies:** 6\
**Last updated:** [October 13, 2015, 12:10pm UTC](https://forum.ansible.com/t/dynamic-inventory-from-active-directory/19319 "2015-10-13T12:10:48Z")

</div>

Is there a way to build a dynamic inventory from Active Directory? Given you cannot use Windows as a control host fun things like pyad and py32win aren’t going to work to pull stuff out of Active Directory. Is this a s…

---

## [workaround for using a variable list of vars with include](https://forum.ansible.com/t/workaround-for-using-a-variable-list-of-vars-with-include/19343)

<div class="topic-metadata">

**Author:** [@Javeria\_Khan](https://forum.ansible.com/u/Javeria_Khan)\
**Replies:** 3\
**Last updated:** [October 13, 2015, 9:43am UTC](https://forum.ansible.com/t/workaround-for-using-a-variable-list-of-vars-with-include/19343 "2015-10-13T09:43:34Z")

</div>

Hi everyone, I need to include a playbook which essentially contains a set of initialisation tasks for any set of variables passed to it. Like so: include: upstart\_common\_init.yml vars: program\_name: “{{ item.…

---

## [Ansible](https://forum.ansible.com/t/ansible/19489)

<div class="topic-metadata">

**Author:** [@GBANE\_FETIGUE](https://forum.ansible.com/u/GBANE_FETIGUE)\
**Replies:** 1\
**Last updated:** [October 12, 2015, 10:07pm UTC](https://forum.ansible.com/t/ansible/19489 "2015-10-12T22:07:43Z")

</div>

Is anybody has any idea about that error ERROR: Invalid ini entry: ansible - need more than 1 value to unpack Build step 'Execute shell' marked build as failure Finished: FAILURE what's does it mean ???

---

## [ansible lxc module](https://forum.ansible.com/t/ansible-lxc-module/18925)

<div class="topic-metadata">

**Author:** [@Vinit\_Khandagle](https://forum.ansible.com/u/Vinit_Khandagle)\
**Replies:** 2\
**Last updated:** [October 12, 2015, 8:17pm UTC](https://forum.ansible.com/t/ansible-lxc-module/18925 "2015-10-12T20:17:20Z")

</div>

I am on ubuntu 15.04 and using ansible 1.9 I keep getting this following error. Has anybody come across the issue issue, I am using the “download” template to create lxc containers

---

## [Trouble with basic conditional](https://forum.ansible.com/t/trouble-with-basic-conditional/19461)

<div class="topic-metadata">

**Author:** [@Tom\_Vernon](https://forum.ansible.com/u/Tom_Vernon)\
**Replies:** 3\
**Last updated:** [October 12, 2015, 7:01pm UTC](https://forum.ansible.com/t/trouble-with-basic-conditional/19461 "2015-10-12T19:01:16Z")

</div>

Hi there, slowly learning ansible here and having issues with a simple conditional. I want to run something against all hosts in group “webservers” that end in “01”. The following doesnt seem to match any hosts (they get…

---

## [hostvars with variables for different hosts](https://forum.ansible.com/t/hostvars-with-variables-for-different-hosts/19413)

<div class="topic-metadata">

**Author:** [@Roman\_Belyakovsky](https://forum.ansible.com/u/Roman_Belyakovsky)\
**Replies:** 1\
**Last updated:** [October 12, 2015, 6:19pm UTC](https://forum.ansible.com/t/hostvars-with-variables-for-different-hosts/19413 "2015-10-12T18:19:32Z")

</div>

Hello! Let’s say I have a simple dictionary in host\_vars or group\_vars: host\_presets: hostname: "{{ inventory\_hostname.split('.')\[0\] }} domain: "{{ inventory\_hostname| regex\_replace('^' + inventory\_hostname.split('.')\[…

---

## [Debug Script task](https://forum.ansible.com/t/debug-script-task/19482)

<div class="topic-metadata">

**Author:** [@Doron\_Shai](https://forum.ansible.com/u/Doron_Shai)\
**Replies:** 2\
**Last updated:** [October 12, 2015, 5:52pm UTC](https://forum.ansible.com/t/debug-script-task/19482 "2015-10-12T17:52:35Z")

</div>

Hi All, I am new to ansible, and i have a script which i use on many hosts. The command i execute is ansible-playbook main.yml -i hosts here is my code in the main.yml — - hosts: group sudo: true …

---

## [Getting error while copying file from local mechine to Remote.](https://forum.ansible.com/t/getting-error-while-copying-file-from-local-mechine-to-remote/19486)

<div class="topic-metadata">

**Author:** [@suneel\_kumar](https://forum.ansible.com/u/suneel_kumar)\
**Replies:** 1\
**Last updated:** [October 12, 2015, 12:57pm UTC](https://forum.ansible.com/t/getting-error-while-copying-file-from-local-mechine-to-remote/19486 "2015-10-12T12:57:38Z")

</div>

Hi I am new to Ansible. I am trying to copy file from my local machine to remote using ansible i am getting the fallowing error. 172.22.1.75 | FAILED \>\> { “failed”: true, “msg”: “src (or content) and dest are require…

---

## [Windows domain account using Kerberos](https://forum.ansible.com/t/windows-domain-account-using-kerberos/19487)

<div class="topic-metadata">

**Author:** [@Jugal\_Porwal](https://forum.ansible.com/u/Jugal_Porwal)\
**Replies:** 1\
**Last updated:** [October 12, 2015, 12:55pm UTC](https://forum.ansible.com/t/windows-domain-account-using-kerberos/19487 "2015-10-12T12:55:19Z")

</div>

Hi, I want to access my windows machine using the domain account. I installed kerberos on my control node (centos) . And configured the krb5.conf as follows : \` \[realms\] MYDOMAIN.COM = { kdc = my-domain-controller.c…

---

## [Playbooks issue.](https://forum.ansible.com/t/playbooks-issue/19458)

<div class="topic-metadata">

**Author:** [@rm\_czuga](https://forum.ansible.com/u/rm_czuga)\
**Replies:** 4\
**Last updated:** [October 12, 2015, 11:43am UTC](https://forum.ansible.com/t/playbooks-issue/19458 "2015-10-12T11:43:48Z")

</div>

Hi there, after changing my linux distribution from debian to arch i’ve got little issue to run playbooks. When ansbile was installed by pacman i have error like: Traceback (most recent call last): File “/usr/bin/ansib…

---

## [Multiple instances of the same software on a machine](https://forum.ansible.com/t/multiple-instances-of-the-same-software-on-a-machine/19421)

<div class="topic-metadata">

**Author:** [@Dale1](https://forum.ansible.com/u/Dale1)\
**Replies:** 1\
**Last updated:** [October 12, 2015, 11:23am UTC](https://forum.ansible.com/t/multiple-instances-of-the-same-software-on-a-machine/19421 "2015-10-12T11:23:16Z")

</div>

Hi Im working on an ansible role that allows an application with a distributed architecture to be installed on a set of machines. The architecture consists of N independent nodes, which operate within their own address …

---

## [my post about DEBUG isn't approved yet - can someone assist?](https://forum.ansible.com/t/my-post-about-debug-isnt-approved-yet-can-someone-assist/19488)

<div class="topic-metadata">

**Author:** [@Doron\_Shai](https://forum.ansible.com/u/Doron_Shai)\
**Replies:** 0\
**Last updated:** [October 12, 2015, 8:23am UTC](https://forum.ansible.com/t/my-post-about-debug-isnt-approved-yet-can-someone-assist/19488 "2015-10-12T08:23:46Z")

</div>

my post about DEBUG isn’t approved yet - can someone assist?

---

## [Best practices when downloading files in a role.](https://forum.ansible.com/t/best-practices-when-downloading-files-in-a-role/19484)

<div class="topic-metadata">

**Author:** [@Alex\_Speaks](https://forum.ansible.com/u/Alex_Speaks)\
**Replies:** 0\
**Last updated:** [October 12, 2015, 12:10am UTC](https://forum.ansible.com/t/best-practices-when-downloading-files-in-a-role/19484 "2015-10-12T00:10:56Z")

</div>

I like my roles to be as turnkey as possible. Consequently, I configure them to download the software components they need using a combination of local\_action: get\_url and run\_once=yes. name: “download archiva if we do…

---

## [install ansible and submodules in the same specific version](https://forum.ansible.com/t/install-ansible-and-submodules-in-the-same-specific-version/19481)

<div class="topic-metadata">

**Author:** [@Alex1](https://forum.ansible.com/u/Alex1)\
**Replies:** 0\
**Last updated:** [October 11, 2015, 10:31am UTC](https://forum.ansible.com/t/install-ansible-and-submodules-in-the-same-specific-version/19481 "2015-10-11T10:31:46Z")

</div>

Hi, Is there a way both ansible and submodules in the same specific version to install via git? We deliver playbooks and ansible to our customers and want to deliver the same version (ansible with submodules) that we u…

---

## [delegate\_to and ansible\_python\_interpreter](https://forum.ansible.com/t/delegate-to-and-ansible-python-interpreter/19478)

<div class="topic-metadata">

**Author:** [@Andrew\_DeMaria](https://forum.ansible.com/u/Andrew_DeMaria)\
**Replies:** 0\
**Last updated:** [October 11, 2015, 4:25am UTC](https://forum.ansible.com/t/delegate-to-and-ansible-python-interpreter/19478 "2015-10-11T04:25:30Z")

</div>

Hi! I am not having luck defining which python to use when using local\_action or delegate\_to: localhost. I am on devel at this commit (6292520c45905a01da4de9aaf0c5ce30bbd195a0). Since my project is fairly complex, I tri…

---

## [Slow fact gathering or slow winrm on windows hosts](https://forum.ansible.com/t/slow-fact-gathering-or-slow-winrm-on-windows-hosts/19471)

<div class="topic-metadata">

**Author:** [@Michael\_Baydoun](https://forum.ansible.com/u/Michael_Baydoun)\
**Replies:** 4\
**Last updated:** [October 9, 2015, 8:15pm UTC](https://forum.ansible.com/t/slow-fact-gathering-or-slow-winrm-on-windows-hosts/19471 "2015-10-09T20:15:23Z")

</div>

A few of our windows hosts take 20-30 seconds to gather facts, and that’s the good news. The other hosts take \> 1 minute just to gather facts. When run with -vvvv, it appears to me that every winrm step just takes a lon…

---

## [Memory usage and requirements - oom-kill victim](https://forum.ansible.com/t/memory-usage-and-requirements-oom-kill-victim/19469)

<div class="topic-metadata">

**Author:** [@Robert\_Lupinek](https://forum.ansible.com/u/Robert_Lupinek)\
**Replies:** 7\
**Last updated:** [October 9, 2015, 6:34pm UTC](https://forum.ansible.com/t/memory-usage-and-requirements-oom-kill-victim/19469 "2015-10-09T18:34:29Z")

</div>

Hey guys, I have a pretty simple question. What is the expected memory usage for a simple playbook that performs a yum install or an rpm and pushes a config file? Ansible Host Data: Architecture type: VMware Memory: …

---

## [Include unexisting files](https://forum.ansible.com/t/include-unexisting-files/19466)

<div class="topic-metadata">

**Author:** [@dcodix](https://forum.ansible.com/u/dcodix)\
**Replies:** 3\
**Last updated:** [October 9, 2015, 6:33pm UTC](https://forum.ansible.com/t/include-unexisting-files/19466 "2015-10-09T18:33:08Z")

</div>

Hi, Does someone know if and how to include plays that does not exist at the execution time? For example. main.yml \` include: download.yml include: /this/file/does/not/exist/yet/configure.yml \` I would like…

---

## [Disable Nagios Alerts](https://forum.ansible.com/t/disable-nagios-alerts/19415)

<div class="topic-metadata">

**Author:** [@veera\_kumar1](https://forum.ansible.com/u/veera_kumar1)\
**Replies:** 2\
**Last updated:** [October 9, 2015, 6:29pm UTC](https://forum.ansible.com/t/disable-nagios-alerts/19415 "2015-10-09T18:29:07Z")

</div>

Hi All, Can anyone tell me how to automatically disable nagios and new relic alerts using ansible playbook. If possible please provide some samples. Thanks in advance. Regards, Veera

---

## [Configuration error: No MPM loaded when using validate in apache role](https://forum.ansible.com/t/configuration-error-no-mpm-loaded-when-using-validate-in-apache-role/19473)

<div class="topic-metadata">

**Author:** [@Joseph\_DJOMEDA](https://forum.ansible.com/u/Joseph_DJOMEDA)\
**Replies:** 4\
**Last updated:** [October 9, 2015, 6:10pm UTC](https://forum.ansible.com/t/configuration-error-no-mpm-loaded-when-using-validate-in-apache-role/19473 "2015-10-09T18:10:35Z")

</div>

Hello Guys, I am sure this is a little issue many of you have already solve but I seem stuck about this rc:1 error:AH00534: apache2: Configuration error: No MPM loaded when I use validate in tempate module of my apache …

---

## [1.9.3 broken service on Ubuntu 14.04.2 LTS](https://forum.ansible.com/t/1-9-3-broken-service-on-ubuntu-14-04-2-lts/19475)

<div class="topic-metadata">

**Author:** [@razvan](https://forum.ansible.com/u/razvan)\
**Replies:** 0\
**Last updated:** [October 9, 2015, 5:57pm UTC](https://forum.ansible.com/t/1-9-3-broken-service-on-ubuntu-14-04-2-lts/19475 "2015-10-09T17:57:51Z")

</div>

Hi, It seems this bug reappear in 1.9.3: name: restart php5-fpm service: name=php5-fpm state=restarted does not works anymore, again, I need it to temporary fix with: - name: restart PHP-FPM service: name=php5-f…

---

## [Playbook organization with var files](https://forum.ansible.com/t/playbook-organization-with-var-files/19472)

<div class="topic-metadata">

**Author:** [@Mike\_Biancaniello](https://forum.ansible.com/u/Mike_Biancaniello)\
**Replies:** 1\
**Last updated:** [October 9, 2015, 5:05pm UTC](https://forum.ansible.com/t/playbook-organization-with-var-files/19472 "2015-10-09T17:05:31Z")

</div>

I have the same issues trying to manage a ton of playbooks that all use the same resources (which is how I stumbled upon this). However, after reading the comments, I think I better understand where Ansible is coming fro…

---

## [group name from variable](https://forum.ansible.com/t/group-name-from-variable/19474)

<div class="topic-metadata">

**Author:** [@francesco.savignago](https://forum.ansible.com/u/francesco.savignago)\
**Replies:** 1\
**Last updated:** [October 9, 2015, 5:04pm UTC](https://forum.ansible.com/t/group-name-from-variable/19474 "2015-10-09T17:04:27Z")

</div>

Hi! I would like to run a role something like name: debug role debug: msg=“{{ hostvars\[item\].ansible\_host }}” with\_items: groups\[ {{ALLOWED\_HOSTS\_GROUP}} \] however the syntax groups\[ {{ALLOWED\_HOSTS\_GROUP}} \] is no…

---

## [List of Ansible default variables](https://forum.ansible.com/t/list-of-ansible-default-variables/14235)

<div class="topic-metadata">

**Author:** [@9devmail](https://forum.ansible.com/u/9devmail)\
**Replies:** 19\
**Last updated:** [October 9, 2015, 4:55pm UTC](https://forum.ansible.com/t/list-of-ansible-default-variables/14235 "2015-10-09T16:55:31Z")

</div>

Does Ansible provide predefined variables to use in scripts? I am looking for variables like: current host current group current user current task current role etc. I have not found these variables among these from “…

---

## [module to release floating ips in openstack?](https://forum.ansible.com/t/module-to-release-floating-ips-in-openstack/19470)

<div class="topic-metadata">

**Author:** [@Tim1](https://forum.ansible.com/u/Tim1)\
**Replies:** 0\
**Last updated:** [October 9, 2015, 4:58am UTC](https://forum.ansible.com/t/module-to-release-floating-ips-in-openstack/19470 "2015-10-09T04:58:32Z")

</div>

Hey folks, Is anyone aware of a module that can be used to release floating ip addresses allocated to a project? There is an os\_floating\_ip module, but it only looks like it handles attaching and detaching them. I speci…

---

## [when: a file contains this regexp](https://forum.ansible.com/t/when-a-file-contains-this-regexp/15129)

<div class="topic-metadata">

**Author:** [@Peter\_Leggett](https://forum.ansible.com/u/Peter_Leggett)\
**Replies:** 4\
**Last updated:** [October 9, 2015, 12:38am UTC](https://forum.ansible.com/t/when-a-file-contains-this-regexp/15129 "2015-10-09T00:38:52Z")

</div>

Hi, how can i execute a ansible task only if a file contains a specfic regexp ? I was hoping to use the when: statement as follows :- name: do this task only if file contains fred command: some command when: file c…

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

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