# Latest

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

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

**Page:** 882

---

## [apt-get update fails](https://forum.ansible.com/t/apt-get-update-fails/17898)

<div class="topic-metadata">

**Author:** [@Tom\_Gertin](https://forum.ansible.com/u/Tom_Gertin)\
**Replies:** 1\
**Last updated:** [April 3, 2015, 1:23am UTC](https://forum.ansible.com/t/apt-get-update-fails/17898 "2015-04-03T01:23:23Z")

</div>

I am trying to run an 'apt-get update' command in my Ansible playbook but it is failing everytime. I am using the 'apt: update\_cache=yes' command found here: \[http://docs.ansible.com/apt\_module.html\](http://docs.ansibl…

---

## [(Derived) variable resolution bug?](https://forum.ansible.com/t/derived-variable-resolution-bug/17725)

<div class="topic-metadata">

**Author:** [@Ananda\_Debnath](https://forum.ansible.com/u/Ananda_Debnath)\
**Replies:** 3\
**Last updated:** [April 2, 2015, 7:55pm UTC](https://forum.ansible.com/t/derived-variable-resolution-bug/17725 "2015-04-02T19:55:31Z")

</div>

Is this a bug or am I misunderstanding how variables are resolved based on precedence? According to http://docs.ansible.com/playbooks\_variables.html, \* extra vars (-e in the command line) always win \* then comes connec…

---

## [Ansible + EC2 & Quoting.](https://forum.ansible.com/t/ansible-ec2-quoting/17891)

<div class="topic-metadata">

**Author:** [@Nico\_K](https://forum.ansible.com/u/Nico_K)\
**Replies:** 3\
**Last updated:** [April 2, 2015, 7:55pm UTC](https://forum.ansible.com/t/ansible-ec2-quoting/17891 "2015-04-02T19:55:09Z")

</div>

Hi, I’m trying to spawn an EC2 instance through a role. However, I can’t get “instance\_tags” to work when I try to pass in the value through a parameter. group\_vars/all: ec2\_instance\_tags: ‘{“name”:“test”}’ roles/ec…

---

## [Ansible 1.9 Using Sudo on an Include?](https://forum.ansible.com/t/ansible-1-9-using-sudo-on-an-include/17893)

<div class="topic-metadata">

**Author:** [@Greg\_Peterson](https://forum.ansible.com/u/Greg_Peterson)\
**Replies:** 1\
**Last updated:** [April 2, 2015, 7:38pm UTC](https://forum.ansible.com/t/ansible-1-9-using-sudo-on-an-include/17893 "2015-04-02T19:38:42Z")

</div>

Didn’t see anything mentioned in changes notes for 1.9 about changing the way sudo worked with includes, so wanted to post this: In the below example, sudo is no longer seeming to apply to the tasks in the included file…

---

## [Dictionary keys and global variable namespace clash?](https://forum.ansible.com/t/dictionary-keys-and-global-variable-namespace-clash/17895)

<div class="topic-metadata">

**Author:** [@Jameel\_Al-Aziz1](https://forum.ansible.com/u/Jameel_Al-Aziz1)\
**Replies:** 2\
**Last updated:** [April 2, 2015, 7:30pm UTC](https://forum.ansible.com/t/dictionary-keys-and-global-variable-namespace-clash/17895 "2015-04-02T19:30:47Z")

</div>

I’m not sure if this is a bug or intended behavior. If I have the following playbook (the database\_url variable actually lives in a separate var file): \`

---

## [postgres\_priv module to alter schema public owner possible?](https://forum.ansible.com/t/postgres-priv-module-to-alter-schema-public-owner-possible/17894)

<div class="topic-metadata">

**Author:** [@david.neudorfer](https://forum.ansible.com/u/david.neudorfer)\
**Replies:** 0\
**Last updated:** [April 2, 2015, 6:24pm UTC](https://forum.ansible.com/t/postgres-priv-module-to-alter-schema-public-owner-possible/17894 "2015-04-02T18:24:29Z")

</div>

Currently, we’re running this command to alter the owner of the public schema /usr/bin/psql -d {{ item.db }} -c "alter schema public owner to {{ item.user }}" Is this possible to do with the postgresql\_privs or postgre…

---

## [How can I have a Task always executed on localhost at the end of a Playbook even if the hosts all fail?](https://forum.ansible.com/t/how-can-i-have-a-task-always-executed-on-localhost-at-the-end-of-a-playbook-even-if-the-hosts-all-fail/17877)

<div class="topic-metadata">

**Author:** [@Larry\_Fast](https://forum.ansible.com/u/Larry_Fast)\
**Replies:** 4\
**Last updated:** [April 2, 2015, 4:54pm UTC](https://forum.ansible.com/t/how-can-i-have-a-task-always-executed-on-localhost-at-the-end-of-a-playbook-even-if-the-hosts-all-fail/17877 "2015-04-02T16:54:19Z")

</div>

I have a diagnostic task that dumps the Ansible dictionaries at the end of a run. However if the hosts fail the Playbook stops and my task doesn’t get executed. But of course that’s when it’s most important. How can I ar…

---

## [Ansible Windows Connections - 4 second initialization? Pipelining?](https://forum.ansible.com/t/ansible-windows-connections-4-second-initialization-pipelining/17890)

<div class="topic-metadata">

**Author:** [@Amir\_Luzon](https://forum.ansible.com/u/Amir_Luzon)\
**Replies:** 1\
**Last updated:** [April 2, 2015, 1:22pm UTC](https://forum.ansible.com/t/ansible-windows-connections-4-second-initialization-pipelining/17890 "2015-04-02T13:22:11Z")

</div>

Hi guys, I’m doing a POC of Ansible for my company. We have a mixture of Linux and Windows servers.While playing around with windows i found that just running a simple powershell script which does “exit 0” will take abo…

---

## [Ansible and Python versions](https://forum.ansible.com/t/ansible-and-python-versions/17889)

<div class="topic-metadata">

**Author:** [@Sebin](https://forum.ansible.com/u/Sebin)\
**Replies:** 1\
**Last updated:** [April 2, 2015, 12:51am UTC](https://forum.ansible.com/t/ansible-and-python-versions/17889 "2015-04-02T00:51:40Z")

</div>

Hi All, I am trying to find out how ansible can manage an infrastructure which have different python versions I have a collection of boxes and I am planning to install ansible on a box with Python 2.6 The pool of boxe…

---

## [need explaination](https://forum.ansible.com/t/need-explaination/17886)

<div class="topic-metadata">

**Author:** [@system](https://forum.ansible.com/u/system)\
**Replies:** 1\
**Last updated:** [April 1, 2015, 5:43pm UTC](https://forum.ansible.com/t/need-explaination/17886 "2015-04-01T17:43:11Z")

</div>

I know this is really really basic question, but I really want the explanation of this: repos: name: ‘EPEL’ url: ‘http://download.fedoraproject.org/pub/epel/6/x86\_64/epel-release-6-8.noarch.rpm’ key: ‘http://ftp.rik…

---

## [ec2\_tag existing instances](https://forum.ansible.com/t/ec2-tag-existing-instances/17882)

<div class="topic-metadata">

**Author:** [@Kegan\_Holtzhausen](https://forum.ansible.com/u/Kegan_Holtzhausen)\
**Replies:** 3\
**Last updated:** [April 1, 2015, 5:25pm UTC](https://forum.ansible.com/t/ec2-tag-existing-instances/17882 "2015-04-01T17:25:29Z")

</div>

Hi, Sorry for a bit of a noobish question, but I am provisioning some instances in ec2, and I can successfully create and tag the instances in my provision playbook. However, later I try and add a tag to exiting hosts …

---

## [How to unarchive a tar file locally and extract a deb package locally](https://forum.ansible.com/t/how-to-unarchive-a-tar-file-locally-and-extract-a-deb-package-locally/17883)

<div class="topic-metadata">

**Author:** [@txavier](https://forum.ansible.com/u/txavier)\
**Replies:** 1\
**Last updated:** [April 1, 2015, 5:22pm UTC](https://forum.ansible.com/t/how-to-unarchive-a-tar-file-locally-and-extract-a-deb-package-locally/17883 "2015-04-01T17:22:57Z")

</div>

Hi Team, Can you please help me out to extract a tar file locally which contains a .deb file and then need to extract the .deb file and then copy to destiny(remote machine). ansimanager@ip-10-157-85-102:/var/lib/awx/pr…

---

## [yum module: state=present vs state=installed](https://forum.ansible.com/t/yum-module-state-present-vs-state-installed/17885)

<div class="topic-metadata">

**Author:** [@david.neudorfer](https://forum.ansible.com/u/david.neudorfer)\
**Replies:** 1\
**Last updated:** [April 1, 2015, 3:26pm UTC](https://forum.ansible.com/t/yum-module-state-present-vs-state-installed/17885 "2015-04-01T15:26:37Z")

</div>

Whats the difference between state=present vs state=installed in the yum module. state=installed seems to be much faster then state=present.

---

## [Minimal Python need for the "agent"](https://forum.ansible.com/t/minimal-python-need-for-the-agent/17873)

<div class="topic-metadata">

**Author:** [@Ronaldo\_Afonso](https://forum.ansible.com/u/Ronaldo_Afonso)\
**Replies:** 9\
**Last updated:** [April 1, 2015, 3:21pm UTC](https://forum.ansible.com/t/minimal-python-need-for-the-agent/17873 "2015-04-01T15:21:26Z")

</div>

Hi all, I’m new to Ansible and I’d like to know what is the really Minimal Python, and modules, needed for the “agent”? I’m planning on running Ansible against an OpenWRT router that usually has very low flash memory (…

---

## [No-op or dry-run mode ?](https://forum.ansible.com/t/no-op-or-dry-run-mode/12011)

<div class="topic-metadata">

**Author:** [@Amar\_Sanakal](https://forum.ansible.com/u/Amar_Sanakal)\
**Replies:** 29\
**Last updated:** [April 1, 2015, 8:12am UTC](https://forum.ansible.com/t/no-op-or-dry-run-mode/12011 "2015-04-01T08:12:04Z")

</div>

Does Ansible support a no-op mode to see what changes will be applied without actually applying them? I couldn’t find anything in the available documentation or did I miss something? Regards, Amar

---

## [Regression in Docker module for 1.9?](https://forum.ansible.com/t/regression-in-docker-module-for-1-9/17884)

<div class="topic-metadata">

**Author:** [@Lyle\_Dietz](https://forum.ansible.com/u/Lyle_Dietz)\
**Replies:** 2\
**Last updated:** [April 1, 2015, 2:13am UTC](https://forum.ansible.com/t/regression-in-docker-module-for-1-9/17884 "2015-04-01T02:13:18Z")

</div>

Hi, One of my playbooks stopped working with the upgrade to 1.9. It appears that ansible\_facts has been removed from the result of running the docker module. I was using this to feed an IP address in to wait\_for so I kn…

---

## [Share variables between roles running on different hosts](https://forum.ansible.com/t/share-variables-between-roles-running-on-different-hosts/17881)

<div class="topic-metadata">

**Author:** [@Adrian\_Paraschiv](https://forum.ansible.com/u/Adrian_Paraschiv)\
**Replies:** 6\
**Last updated:** [March 31, 2015, 6:16pm UTC](https://forum.ansible.com/t/share-variables-between-roles-running-on-different-hosts/17881 "2015-03-31T18:16:33Z")

</div>

Hello all, I have a playbook that runs different roles on different hosts. Is it possible to pass a variable from one role running on one host to another role on another host running within the same playbook run? Or an…

---

## [Automatically importing new tags from Github](https://forum.ansible.com/t/automatically-importing-new-tags-from-github/16424)

<div class="topic-metadata">

**Author:** [@Jesse\_Szwedko1](https://forum.ansible.com/u/Jesse_Szwedko1)\
**Replies:** 2\
**Last updated:** [March 31, 2015, 2:49pm UTC](https://forum.ansible.com/t/automatically-importing-new-tags-from-github/16424 "2015-03-31T14:49:39Z")

</div>

Has anyone had any success with automatically “re-importing” a role when they push a tag to Github (or via Release mechanism)? It would be nice to not have to take manual action to import new tags each time.

---

## [register ec2 instance id and use it in ec2\_ami module](https://forum.ansible.com/t/register-ec2-instance-id-and-use-it-in-ec2-ami-module/17025)

<div class="topic-metadata">

**Author:** [@Navid\_Paya](https://forum.ansible.com/u/Navid_Paya)\
**Replies:** 4\
**Last updated:** [March 31, 2015, 1:55pm UTC](https://forum.ansible.com/t/register-ec2-instance-id-and-use-it-in-ec2-ami-module/17025 "2015-03-31T13:55:45Z")

</div>

Hi all I’m trying to make some kind of automation to create an AMI out of an EC2 instance. So I have this chunk that creates the instance: \` name: Launch an Ubuntu 14.04 EC2 instance hosts: localhost connection: lo…

---

## [Copy files from host to host](https://forum.ansible.com/t/copy-files-from-host-to-host/17878)

<div class="topic-metadata">

**Author:** [@yaniv\_refael](https://forum.ansible.com/u/yaniv_refael)\
**Replies:** 1\
**Last updated:** [March 31, 2015, 12:56pm UTC](https://forum.ansible.com/t/copy-files-from-host-to-host/17878 "2015-03-31T12:56:01Z")

</div>

Hi, I need some help with copy files from host to host The hosts are win 2012 r2 servers. I am running the ansible on windows with cygen. thanks

---

## [matching a string with search pattern having dots](https://forum.ansible.com/t/matching-a-string-with-search-pattern-having-dots/17833)

<div class="topic-metadata">

**Author:** [@Max1](https://forum.ansible.com/u/Max1)\
**Replies:** 2\
**Last updated:** [March 31, 2015, 12:53pm UTC](https://forum.ansible.com/t/matching-a-string-with-search-pattern-having-dots/17833 "2015-03-31T12:53:41Z")

</div>

Hello Here are the two scenarios: This one works: when: ansible\_hostname | search(“test1-1-xx-1”) 2)This one is not able to match the string probably because of dots when: ansible\_hostname | search(“test1-1-xx-1.to…

---

## [Disable privilege escalation (become) and password in playbook](https://forum.ansible.com/t/disable-privilege-escalation-become-and-password-in-playbook/17880)

<div class="topic-metadata">

**Author:** [@Edgars](https://forum.ansible.com/u/Edgars)\
**Replies:** 1\
**Last updated:** [March 31, 2015, 12:46pm UTC](https://forum.ansible.com/t/disable-privilege-escalation-become-and-password-in-playbook/17880 "2015-03-31T12:46:57Z")

</div>

Hi I have enabled privilege escalation in ansible.cfg file: \[privilege\_escalation\] become = True become\_ask\_pass = True become\_user = root become\_method = su But now I have one playbook which must run on localhost wit…

---

## [Stop verbose in ansible.playbook.PlayBook](https://forum.ansible.com/t/stop-verbose-in-ansible-playbook-playbook/17868)

<div class="topic-metadata">

**Author:** [@Valeriy\_Solovyov](https://forum.ansible.com/u/Valeriy_Solovyov)\
**Replies:** 1\
**Last updated:** [March 31, 2015, 9:43am UTC](https://forum.ansible.com/t/stop-verbose-in-ansible-playbook-playbook/17868 "2015-03-31T09:43:27Z")

</div>

Hello, I use ansible-playbook as source for my flow. Now I see a lot of verbose stuff. I want hide it but I couldn’t find: playbook = params\[“playbook”\] inventory = ansible.inventory.Inventory(hosts) inventory.set\_pl…

---

## [best way to set ansible constants when using executing ansible playbook from python script](https://forum.ansible.com/t/best-way-to-set-ansible-constants-when-using-executing-ansible-playbook-from-python-script/17876)

<div class="topic-metadata">

**Author:** [@Stanley\_Karunditu](https://forum.ansible.com/u/Stanley_Karunditu)\
**Replies:** 0\
**Last updated:** [March 31, 2015, 3:15am UTC](https://forum.ansible.com/t/best-way-to-set-ansible-constants-when-using-executing-ansible-playbook-from-python-script/17876 "2015-03-31T03:15:46Z")

</div>

Working on LXC post-provisioning setup where ansible is used to setup a LXC after initial creation. Wondering if this is the best way to set ansible constants. In this case the ANSIBLE\_HOST\_CHECKING variable.

---

## [Docker module choose random port if we didn't pass ports variable.](https://forum.ansible.com/t/docker-module-choose-random-port-if-we-didnt-pass-ports-variable/17875)

<div class="topic-metadata">

**Author:** [@Khoa\_Nguyen](https://forum.ansible.com/u/Khoa_Nguyen)\
**Replies:** 0\
**Last updated:** [March 31, 2015, 12:56am UTC](https://forum.ansible.com/t/docker-module-choose-random-port-if-we-didnt-pass-ports-variable/17875 "2015-03-31T00:56:29Z")

</div>

In 1.8.0 version, If I didn’t pass “ports” variable, Docker module will not bind any port to the Docker Host. It worked correctly. However, In 1.9.0.1, Docker module choose a random ports, and bind to Docker Host. I thi…

---

## [extra scaling events with ec2\_asg module](https://forum.ansible.com/t/extra-scaling-events-with-ec2-asg-module/17834)

<div class="topic-metadata">

**Author:** [@robb](https://forum.ansible.com/u/robb)\
**Replies:** 3\
**Last updated:** [March 30, 2015, 8:44pm UTC](https://forum.ansible.com/t/extra-scaling-events-with-ec2-asg-module/17834 "2015-03-30T20:44:25Z")

</div>

For Ansible 1.9-develop Pull request 601 had the fix for Issue 383, which does affect our production ASG about every two weeks or so. We use the ec2\_asg module to refresh our ASG instances 3 times a day. I was eager to …

---

## [Using Ansible to update Windows servers](https://forum.ansible.com/t/using-ansible-to-update-windows-servers/17849)

<div class="topic-metadata">

**Author:** [@dyioulos](https://forum.ansible.com/u/dyioulos)\
**Replies:** 4\
**Last updated:** [March 30, 2015, 4:06pm UTC](https://forum.ansible.com/t/using-ansible-to-update-windows-servers/17849 "2015-03-30T16:06:32Z")

</div>

All, I’ve got Ansible working on a few Windows 2008 servers. The Ansible command server runs CentOS 6. I’m trying to get the module “win\_updates” working, but am not having much success. I’d like to be able to run this …

---

## [Passing a list on the command line](https://forum.ansible.com/t/passing-a-list-on-the-command-line/17854)

<div class="topic-metadata">

**Author:** [@Rob\_White](https://forum.ansible.com/u/Rob_White)\
**Replies:** 5\
**Last updated:** [March 30, 2015, 3:40pm UTC](https://forum.ansible.com/t/passing-a-list-on-the-command-line/17854 "2015-03-30T15:40:59Z")

</div>

Is it possible to pass a list as an extra-vars variable on the command line? I have tried various syntax but it doesn’t work. E.g. ansible-playbook my\_playbook.yml -i local --extra-vars roles\_to\_deploy=role1,role2 an…

---

## [Looking up vars from files](https://forum.ansible.com/t/looking-up-vars-from-files/17871)

<div class="topic-metadata">

**Author:** [@Neil\_Saunders](https://forum.ansible.com/u/Neil_Saunders)\
**Replies:** 4\
**Last updated:** [March 30, 2015, 2:13pm UTC](https://forum.ansible.com/t/looking-up-vars-from-files/17871 "2015-03-30T14:13:48Z")

</div>

Hi All - I’m trying iterate over a list of dicts stored in an external file. My variables file (vpc.yml) is as follows: \`

---

## [Variable change if condition is not met !!! Register "skipped" ?](https://forum.ansible.com/t/variable-change-if-condition-is-not-met-register-skipped/17869)

<div class="topic-metadata">

**Author:** [@Adrian\_Paraschiv](https://forum.ansible.com/u/Adrian_Paraschiv)\
**Replies:** 3\
**Last updated:** [March 30, 2015, 7:41am UTC](https://forum.ansible.com/t/variable-change-if-condition-is-not-met-register-skipped/17869 "2015-03-30T07:41:00Z")

</div>

I have a role that I need to use for more values. For each task within the role I register a variable: checkdeps (it’s the same for all tasks within this role - during a run it always has at least one value/output - I ne…

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

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