# Latest

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

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

**Page:** 787

---

## [Ansible breaking in the middle of exploding tarballs](https://forum.ansible.com/t/ansible-breaking-in-the-middle-of-exploding-tarballs/20726)

<div class="topic-metadata">

**Author:** [@Niche\_Meister](https://forum.ansible.com/u/Niche_Meister)\
**Replies:** 0\
**Last updated:** [March 1, 2016, 4:39pm UTC](https://forum.ansible.com/t/ansible-breaking-in-the-middle-of-exploding-tarballs/20726 "2016-03-01T16:39:04Z")

</div>

there are several tarballs that we are downloading and installing on an amazon ec2 instance. The first few tarballs installed without a glitch, but now i’m getting the below error. i tried to move what seemed to be the …

---

## [upgrade to a specific centos version](https://forum.ansible.com/t/upgrade-to-a-specific-centos-version/20725)

<div class="topic-metadata">

**Author:** [@J\_M](https://forum.ansible.com/u/J_M)\
**Replies:** 0\
**Last updated:** [March 1, 2016, 4:32pm UTC](https://forum.ansible.com/t/upgrade-to-a-specific-centos-version/20725 "2016-03-01T16:32:25Z")

</div>

Hello, I’m trying to use Ansible to upgrade my image from 6.5 to 6.6 using the following line. It’s ignoring the enable/disable lines and trying to upgrade to 6.7 is there a way to get the “latest” 6.6? yum: name=\* dis…

---

## [sudo and telnet](https://forum.ansible.com/t/sudo-and-telnet/20722)

<div class="topic-metadata">

**Author:** [@jhnworks](https://forum.ansible.com/u/jhnworks)\
**Replies:** 0\
**Last updated:** [March 1, 2016, 2:56pm UTC](https://forum.ansible.com/t/sudo-and-telnet/20722 "2016-03-01T14:56:25Z")

</div>

Looking to translate this to a playbook : In your SSH Client (Putty), Log into the server using your an account Become the LDAP User sudo -u dbuser -i (this prompts for the remote\_user’s credentails run an command ec…

---

## [Where's branch for Ansible 2.0.1.0 ?](https://forum.ansible.com/t/wheres-branch-for-ansible-2-0-1-0/20718)

<div class="topic-metadata">

**Author:** [@alexk4work](https://forum.ansible.com/u/alexk4work)\
**Replies:** 2\
**Last updated:** [March 1, 2016, 2:09pm UTC](https://forum.ansible.com/t/wheres-branch-for-ansible-2-0-1-0/20718 "2016-03-01T14:09:14Z")

</div>

Hi all, I don’t find a branch named after Ansible 2.0.1.0 on github… where this version was released from? I’d like to merge 2.0.1.0 changes to my own tree…

---

## [Copy to local](https://forum.ansible.com/t/copy-to-local/20716)

<div class="topic-metadata">

**Author:** [@larry.singer](https://forum.ansible.com/u/larry.singer)\
**Replies:** 1\
**Last updated:** [March 1, 2016, 1:38pm UTC](https://forum.ansible.com/t/copy-to-local/20716 "2016-03-01T13:38:20Z")

</div>

I am trying to write a file to my local machine with a dynamic inventory. I am running the following script in Ansible Tower:

---

## [unable to run playbook](https://forum.ansible.com/t/unable-to-run-playbook/20721)

<div class="topic-metadata">

**Author:** [@Ali\_Warrich](https://forum.ansible.com/u/Ali_Warrich)\
**Replies:** 0\
**Last updated:** [March 1, 2016, 12:07pm UTC](https://forum.ansible.com/t/unable-to-run-playbook/20721 "2016-03-01T12:07:06Z")

</div>

Hi guys, I am trying to run a playbook but that is not working for me. I am encountering by the same error again and again. my ansible.cfg looks like: \[defaults\] some basic default values… inventory = /etc/ansible/ho…

---

## [ansible is not connecting with servers](https://forum.ansible.com/t/ansible-is-not-connecting-with-servers/20720)

<div class="topic-metadata">

**Author:** [@Ali\_Warrich](https://forum.ansible.com/u/Ali_Warrich)\
**Replies:** 0\
**Last updated:** [March 1, 2016, 12:05pm UTC](https://forum.ansible.com/t/ansible-is-not-connecting-with-servers/20720 "2016-03-01T12:05:26Z")

</div>

Hi guys, I am trying to run a playbook but that is not working for me. I am encountering by the same error again and again. my ansible.cfg looks like: \[defaults\] some basic default values… inventory = /etc/ansible/ho…

---

## [using cs\_instance](https://forum.ansible.com/t/using-cs-instance/20687)

<div class="topic-metadata">

**Author:** [@Daan\_Hoogland](https://forum.ansible.com/u/Daan_Hoogland)\
**Replies:** 2\
**Last updated:** [March 1, 2016, 10:27am UTC](https://forum.ansible.com/t/using-cs-instance/20687 "2016-03-01T10:27:12Z")

</div>

LS, I am trying to use the cloudstack set of modules with ansible 2.0 host file: \[vms\] vm01 end of host file stip.yaml: hosts: all gather\_facts: no tasks: name: stop vm local\_action: cs\_instance name=“{{ invent…

---

## [ec2 ami permissions](https://forum.ansible.com/t/ec2-ami-permissions/18935)

<div class="topic-metadata">

**Author:** [@KSS](https://forum.ansible.com/u/KSS)\
**Replies:** 1\
**Last updated:** [March 1, 2016, 10:10am UTC](https://forum.ansible.com/t/ec2-ami-permissions/18935 "2016-03-01T10:10:26Z")

</div>

Hi, Does anyone have any custom modules (or patches to ec2\_ami module) that would allow setting sharing permissions for an AMI? I would prefer to stick to ansible to provide the functionality through a module rather th…

---

## [Ansible API : Expand variables](https://forum.ansible.com/t/ansible-api-expand-variables/20699)

<div class="topic-metadata">

**Author:** [@amit\_bhagat](https://forum.ansible.com/u/amit_bhagat)\
**Replies:** 1\
**Last updated:** [March 1, 2016, 7:36am UTC](https://forum.ansible.com/t/ansible-api-expand-variables/20699 "2016-03-01T07:36:14Z")

</div>

I have written a custom module “filter\_prefix” that accepts “host” and “prefixes”. I have a dictionary that looks like this - d2 = {‘4.4.4.4’:‘10.0.0.0/8’,‘11.0.0.0/8’, ‘5.5.5.5’:‘10.0.0.0/8’} In the API script, I hav…

---

## [Update to ansible 2.0.0.1, broken, cannot run ansible-playbook anymore](https://forum.ansible.com/t/update-to-ansible-2-0-0-1-broken-cannot-run-ansible-playbook-anymore/20715)

<div class="topic-metadata">

**Author:** [@hce](https://forum.ansible.com/u/hce)\
**Replies:** 2\
**Last updated:** [March 1, 2016, 6:16am UTC](https://forum.ansible.com/t/update-to-ansible-2-0-0-1-broken-cannot-run-ansible-playbook-anymore/20715 "2016-03-01T06:16:20Z")

</div>

Hi, I was running ansible 1.9 fine until updating to ansible-2.0.0.1.tar.gz, now I got following error: ERROR! A malformed block was encountered. The error appears to have been in ‘/tmp/debug.yml’: line 1, column 3, b…

---

## [Use requirements.yml in a lookup?](https://forum.ansible.com/t/use-requirements-yml-in-a-lookup/20700)

<div class="topic-metadata">

**Author:** [@Johan2](https://forum.ansible.com/u/Johan2)\
**Replies:** 1\
**Last updated:** [March 1, 2016, 5:28am UTC](https://forum.ansible.com/t/use-requirements-yml-in-a-lookup/20700 "2016-03-01T05:28:17Z")

</div>

Hello! I would like to take my requirements.yml and make a config for https://github.com/beefsack/git-mirror Any idea for how to accomplish this? I thought about using a lookup somehow, but with requirements.yml alread…

---

## [Docker module giving error after image is pulled](https://forum.ansible.com/t/docker-module-giving-error-after-image-is-pulled/20710)

<div class="topic-metadata">

**Author:** [@Guy\_Knights](https://forum.ansible.com/u/Guy_Knights)\
**Replies:** 2\
**Last updated:** [February 29, 2016, 11:48pm UTC](https://forum.ansible.com/t/docker-module-giving-error-after-image-is-pulled/20710 "2016-02-29T23:48:45Z")

</div>

I have a role that runs nginx in a docker container using the official nginx image from docker hub. The docker task returns the following error after it pulls the image: “failed”: true, “msg”: “Unrecognized status from …

---

## [selinux-python and ansible 'identification'](https://forum.ansible.com/t/selinux-python-and-ansible-identification/20707)

<div class="topic-metadata">

**Author:** [@richard\_kappler](https://forum.ansible.com/u/richard_kappler)\
**Replies:** 5\
**Last updated:** [February 29, 2016, 9:19pm UTC](https://forum.ansible.com/t/selinux-python-and-ansible-identification/20707 "2016-02-29T21:19:18Z")

</div>

We will be making changes to nearly a hundred client machines using ansible. We’ve used ansible before, albeit we’re still pretty new at it, but have a pretty good handle on it and have done before what we want to do now…

---

## [Community Working Group meeting, 29 Feburary 2016](https://forum.ansible.com/t/community-working-group-meeting-29-feburary-2016/20709)

<div class="topic-metadata">

**Author:** [@Greg\_DeKoenigsberg1](https://forum.ansible.com/u/Greg_DeKoenigsberg1)\
**Replies:** 0\
**Last updated:** [February 29, 2016, 8:09pm UTC](https://forum.ansible.com/t/community-working-group-meeting-29-feburary-2016/20709 "2016-02-29T20:09:28Z")

</div>

The Community Working Group is now a thing. :slight\_smile: For right now, it's just externalizing the work that Robyn and I do every day. So for now, it will be a daily meeting at 2pm Eastern US time, because that's w…

---

## [Variable Inheritance?](https://forum.ansible.com/t/variable-inheritance/20708)

<div class="topic-metadata">

**Author:** [@strowi](https://forum.ansible.com/u/strowi)\
**Replies:** 0\
**Last updated:** [February 29, 2016, 7:12pm UTC](https://forum.ansible.com/t/variable-inheritance/20708 "2016-02-29T19:12:48Z")

</div>

Hi everyone, i am searching the docs but couldn’t find a good reference… Is ther a way to inherit/extend variables from group\_vars → host\_vars? E.g.: group\_vars/develop.yml groups: web: gid: 1002 state: present h…

---

## [How to use --extra-vars option to pass host variables in ansible-playbook](https://forum.ansible.com/t/how-to-use-extra-vars-option-to-pass-host-variables-in-ansible-playbook/20678)

<div class="topic-metadata">

**Author:** [@DINESH\_S](https://forum.ansible.com/u/DINESH_S)\
**Replies:** 6\
**Last updated:** [February 29, 2016, 4:14pm UTC](https://forum.ansible.com/t/how-to-use-extra-vars-option-to-pass-host-variables-in-ansible-playbook/20678 "2016-02-29T16:14:22Z")

</div>

We have an requirement to pass the host variables defined in a file under host\_vars directory as an argument to the ansible playbook. So we have planned to use –extra-vars option to pass additional variables as key value…

---

## [NameError: global name 'ssh\_common\_args' is not defined](https://forum.ansible.com/t/nameerror-global-name-ssh-common-args-is-not-defined/20702)

<div class="topic-metadata">

**Author:** [@Krishna\_Kishore\_Bona](https://forum.ansible.com/u/Krishna_Kishore_Bona)\
**Replies:** 1\
**Last updated:** [February 29, 2016, 4:12pm UTC](https://forum.ansible.com/t/nameerror-global-name-ssh-common-args-is-not-defined/20702 "2016-02-29T16:12:51Z")

</div>

Hi, I recently installed Ansible from github and was trying to start with the ping command, “ansible all -m ping -vvv” but it is throwing this error. I could not find the reason, can someone please give a hint on why is…

---

## [Prevent caching when calling ansible 2.0 from Python API](https://forum.ansible.com/t/prevent-caching-when-calling-ansible-2-0-from-python-api/20706)

<div class="topic-metadata">

**Author:** [@max.wiegand82](https://forum.ansible.com/u/max.wiegand82)\
**Replies:** 0\
**Last updated:** [February 29, 2016, 3:59pm UTC](https://forum.ansible.com/t/prevent-caching-when-calling-ansible-2-0-from-python-api/20706 "2016-02-29T15:59:08Z")

</div>

Hi all, our general setup is based on the idea to have an ansible environment with roles and vars and everything, that can be used both by command line and also programatically from python. It was quite easy with ansib…

---

## [Ansible 2.0.1 OpenStack network module issue with static IP's](https://forum.ansible.com/t/ansible-2-0-1-openstack-network-module-issue-with-static-ips/20694)

<div class="topic-metadata">

**Author:** [@spankthespam](https://forum.ansible.com/u/spankthespam)\
**Replies:** 1\
**Last updated:** [February 29, 2016, 3:49pm UTC](https://forum.ansible.com/t/ansible-2-0-1-openstack-network-module-issue-with-static-ips/20694 "2016-02-29T15:49:55Z")

</div>

Apparently the latest 2.0.1 modules for OpenStack doesn’t have a way to set static IP’s (that arent floating IP’s) during VM creation - this is critical functionality for OpenStack installations that do not provide autom…

---

## [Ansible networking preview update 2.0.0-0.2 is available](https://forum.ansible.com/t/ansible-networking-preview-update-2-0-0-0-2-is-available/20705)

<div class="topic-metadata">

**Author:** [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Replies:** 0\
**Last updated:** [February 29, 2016, 3:42pm UTC](https://forum.ansible.com/t/ansible-networking-preview-update-2-0-0-0-2-is-available/20705 "2016-02-29T15:42:14Z")

</div>

Hi Everyone, As you undoubtedly heard we released the first version of Ansible 2.0 with networking support as a technology preview at AnsibleFest London. In case you missed the announcement, details can be found here (h…

---

## [Galaxy 2.0.1 Release](https://forum.ansible.com/t/galaxy-2-0-1-release/20660)

<div class="topic-metadata">

**Author:** [@Chris\_Houseknecht](https://forum.ansible.com/u/Chris_Houseknecht)\
**Replies:** 4\
**Last updated:** [February 29, 2016, 12:53pm UTC](https://forum.ansible.com/t/galaxy-2-0-1-release/20660 "2016-02-29T12:53:27Z")

</div>

We will be releasing Galaxy 2.0.1 this Friday 2/26 starting at 7:30AM EST and ending at 8:00AM EST. During this window access to Galaxy may be interrupted, so please plan accordingly. –Chris Chris Houseknecht Lead Gal…

---

## [delegate\_to not working after fix released](https://forum.ansible.com/t/delegate-to-not-working-after-fix-released/20701)

<div class="topic-metadata">

**Author:** [@zoltan.sandor](https://forum.ansible.com/u/zoltan.sandor)\
**Replies:** 0\
**Last updated:** [February 29, 2016, 8:25am UTC](https://forum.ansible.com/t/delegate-to-not-working-after-fix-released/20701 "2016-02-29T08:25:25Z")

</div>

Hello, Experiencing issues with delegate\_to in ansible 2.0, after some research I found the ticket https://github.com/ansible/ansible/issues/12127 where my issues is described exactly. I noticed today that the fix was …

---

## [strange behaviour with block statement in ansible 2.0](https://forum.ansible.com/t/strange-behaviour-with-block-statement-in-ansible-2-0/20697)

<div class="topic-metadata">

**Author:** [@Ulrich\_Hochholdinger](https://forum.ansible.com/u/Ulrich_Hochholdinger)\
**Replies:** 1\
**Last updated:** [February 27, 2016, 7:29pm UTC](https://forum.ansible.com/t/strange-behaviour-with-block-statement-in-ansible-2-0/20697 "2016-02-27T19:29:24Z")

</div>

Hi, I’m experiencing a strange phenomenon with the block statement. If I rearrange a when statement I get syntax error. But the data-structure of both playbooks is the same: Play that works:

---

## [Docker Connector for use with remote hosts](https://forum.ansible.com/t/docker-connector-for-use-with-remote-hosts/20695)

<div class="topic-metadata">

**Author:** [@Thomas\_Steinbach](https://forum.ansible.com/u/Thomas_Steinbach)\
**Replies:** 2\
**Last updated:** [February 27, 2016, 6:36pm UTC](https://forum.ansible.com/t/docker-connector-for-use-with-remote-hosts/20695 "2016-02-27T18:36:27Z")

</div>

Hey, I know a lot of people, including me, using Ansible for ‘fine tuning’ Docker containers. First you build a universal base image, then run the container with Ansible and furthermore providing project specific config…

---

## [Ansible does not run the role locally after the remote roles finished](https://forum.ansible.com/t/ansible-does-not-run-the-role-locally-after-the-remote-roles-finished/20696)

<div class="topic-metadata">

**Author:** [@Busra\_Koken](https://forum.ansible.com/u/Busra_Koken)\
**Replies:** 1\
**Last updated:** [February 27, 2016, 4:28pm UTC](https://forum.ansible.com/t/ansible-does-not-run-the-role-locally-after-the-remote-roles-finished/20696 "2016-02-27T16:28:41Z")

</div>

I am using ansible 2.0. I have different roles which run on local or remote hosts. My site.yml is following: - name: Droplets \<b\> hosts: localhost connection: local\</b\> roles: - create\_cluster tags: - creat…

---

## [Appending to fact provided by module, and use aggregated fact in module function](https://forum.ansible.com/t/appending-to-fact-provided-by-module-and-use-aggregated-fact-in-module-function/20605)

<div class="topic-metadata">

**Author:** [@Tim\_Saeteroy](https://forum.ansible.com/u/Tim_Saeteroy)\
**Replies:** 2\
**Last updated:** [February 26, 2016, 9:43pm UTC](https://forum.ansible.com/t/appending-to-fact-provided-by-module-and-use-aggregated-fact-in-module-function/20605 "2016-02-26T21:43:44Z")

</div>

Hi, How would you append to a dict or list fact using ansible\_facts spanning multiple module calls? How can the result be used internally in another function of the module? Let’s say we have a module that is designed …

---

## [How to skip the task by checking the file exists or not using when](https://forum.ansible.com/t/how-to-skip-the-task-by-checking-the-file-exists-or-not-using-when/20688)

<div class="topic-metadata">

**Author:** [@Dinesh\_E](https://forum.ansible.com/u/Dinesh_E)\
**Replies:** 1\
**Last updated:** [February 26, 2016, 8:53pm UTC](https://forum.ansible.com/t/how-to-skip-the-task-by-checking-the-file-exists-or-not-using-when/20688 "2016-02-26T20:53:25Z")

</div>

I have to check whether a file exists or not in /etc/. If the file exists then I have to skip the task otherwise the task should be run. Below is the code name: check whether the file exists command: touch /etc/file.t…

---

## [Using custom message when a task fails](https://forum.ansible.com/t/using-custom-message-when-a-task-fails/20690)

<div class="topic-metadata">

**Author:** [@abraham\_johnson](https://forum.ansible.com/u/abraham_johnson)\
**Replies:** 1\
**Last updated:** [February 26, 2016, 7:55pm UTC](https://forum.ansible.com/t/using-custom-message-when-a-task-fails/20690 "2016-02-26T19:55:25Z")

</div>

Hello I am using ansible version 1.8.2. I would like to know if its possible to add a custom message when a task fails. I understand that one way to do is name: Run Shell Command shell: ./script.sh register: resu…

---

## [Ho do I unset/remove/delete a variable in Ansible?](https://forum.ansible.com/t/ho-do-i-unset-remove-delete-a-variable-in-ansible/20691)

<div class="topic-metadata">

**Author:** [@Thomas\_Steinbach](https://forum.ansible.com/u/Thomas_Steinbach)\
**Replies:** 1\
**Last updated:** [February 26, 2016, 7:45pm UTC](https://forum.ansible.com/t/ho-do-i-unset-remove-delete-a-variable-in-ansible/20691 "2016-02-26T19:45:40Z")

</div>

Hi, does anybody know how I can unset a variable in Ansible so that it becomes ‘undefined’?

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

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