# Archives

**URL:** https://forum.ansible.com/c/archives/31.md?page=556

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

**Page:** 557

---

## [Unarchive Module Failing with Return Code 11](https://forum.ansible.com/t/unarchive-module-failing-with-return-code-11/22004)

<div class="topic-metadata">

**Author:** [@Stephen\_Barton](https://forum.ansible.com/u/Stephen_Barton)\
**Replies:** 1\
**Last updated:** [September 6, 2016, 4:04am UTC](https://forum.ansible.com/t/unarchive-module-failing-with-return-code-11/22004 "2016-09-06T04:04:32Z")

</div>

Hi, Version: 2.1.0.0 After a recent upgrade to the above version, I noticed that the unarchive module was failing with a return code of 11 (no matching files were found). So the line looked like this: name: Decompres…

---

## [NO SLEEP 'TIL (ANSIBLE CONTRIBUTOR SUMMIT) BROOKLYN!](https://forum.ansible.com/t/no-sleep-til-ansible-contributor-summit-brooklyn/22489)

<div class="topic-metadata">

**Author:** [@Greg\_DeKoenigsberg1](https://forum.ansible.com/u/Greg_DeKoenigsberg1)\
**Replies:** 1\
**Last updated:** [September 5, 2016, 9:40pm UTC](https://forum.ansible.com/t/no-sleep-til-ansible-contributor-summit-brooklyn/22489 "2016-09-05T21:40:09Z")

</div>

Are you a contributor to Ansible, or interested in becoming a contributor to Ansible? Ansible's third Contributor Summit is coming soon, offering contributors the opportunity to participate in and shape the future of …

---

## [Create remotly server and still on it to other installations.](https://forum.ansible.com/t/create-remotly-server-and-still-on-it-to-other-installations/22491)

<div class="topic-metadata">

**Author:** [@weslley.azevedo](https://forum.ansible.com/u/weslley.azevedo)\
**Replies:** 0\
**Last updated:** [September 5, 2016, 5:48pm UTC](https://forum.ansible.com/t/create-remotly-server-and-still-on-it-to-other-installations/22491 "2016-09-05T17:48:53Z")

</div>

Hello, I have been working to create a server on Linode via ansible, and i can do it by a playbook but when I try to use it with the best practices(Roles) I am not getting well. Can anyone help me ? Basically it creat…

---

## [Python not found](https://forum.ansible.com/t/python-not-found/22490)

<div class="topic-metadata">

**Author:** [@Javier\_Palacios](https://forum.ansible.com/u/Javier_Palacios)\
**Replies:** 1\
**Last updated:** [September 5, 2016, 4:27pm UTC](https://forum.ansible.com/t/python-not-found/22490 "2016-09-05T16:27:21Z")

</div>

Apart from installing python 2.7, you need to manually symlink: ln -s /usr/bin/python2.7 /usr/bin/python At least ansible 1.9, searchs for exactly ‘/usr/bin/python’ path. Javier Palacios

---

## [Fact Caching doesn't appear to save all facts](https://forum.ansible.com/t/fact-caching-doesnt-appear-to-save-all-facts/22488)

<div class="topic-metadata">

**Author:** [@Adam\_Copley](https://forum.ansible.com/u/Adam_Copley)\
**Replies:** 0\
**Last updated:** [September 5, 2016, 2:15pm UTC](https://forum.ansible.com/t/fact-caching-doesnt-appear-to-save-all-facts/22488 "2016-09-05T14:15:11Z")

</div>

I wrote a custom fact which sits on a server and pulls out an array of supervisord programs: \` #!/usr/bin/env python2.7 import os import sys import json Config to read supervisord\_config = ‘/etc/supervisord.conf’; …

---

## [copy module wildcards](https://forum.ansible.com/t/copy-module-wildcards/22483)

<div class="topic-metadata">

**Author:** [@Alix\_Ak](https://forum.ansible.com/u/Alix_Ak)\
**Replies:** 1\
**Last updated:** [September 5, 2016, 12:29pm UTC](https://forum.ansible.com/t/copy-module-wildcards/22483 "2016-09-05T12:29:50Z")

</div>

Example : name: copying only .conf files copy: src={{ item.0 }} dest={{ item.1 }} with\_together: \[ ‘/file1/foo/.conf’, /file1/foo/.txt’ \] \[ ‘/etc/boo/’, ‘/etc/goo’ \] I have a folder with a lot of conf files or other…

---

## [Ansible RDS module "boto required for this module" (but other AWS modules can find boto)](https://forum.ansible.com/t/ansible-rds-module-boto-required-for-this-module-but-other-aws-modules-can-find-boto/22487)

<div class="topic-metadata">

**Author:** [@Edd\_Grant](https://forum.ansible.com/u/Edd_Grant)\
**Replies:** 0\
**Last updated:** [September 5, 2016, 10:40am UTC](https://forum.ansible.com/t/ansible-rds-module-boto-required-for-this-module-but-other-aws-modules-can-find-boto/22487 "2016-09-05T10:40:29Z")

</div>

Hi all, I’m using Ansible 2.1.1.0 in a virtualenv. I have been using the ‘ec2’ and ‘cloudformation’ modules in a Playbook with success. I am now trying to do some RDS stuff but I get the error “boto required for this mo…

---

## [How can i override variable value only for a host via extra-vars supplied through command line](https://forum.ansible.com/t/how-can-i-override-variable-value-only-for-a-host-via-extra-vars-supplied-through-command-line/22486)

<div class="topic-metadata">

**Author:** [@ishan\_jain](https://forum.ansible.com/u/ishan_jain)\
**Replies:** 0\
**Last updated:** [September 5, 2016, 10:02am UTC](https://forum.ansible.com/t/how-can-i-override-variable-value-only-for-a-host-via-extra-vars-supplied-through-command-line/22486 "2016-09-05T10:02:18Z")

</div>

Suppose i have this var defined in my inventory file: \[group10 host1 host2 host3 \[group1:vars\] source=/opt/config/ And my target hosts are a group of 3 or more servers. Now while invoking the playbook, i would lik…

---

## [Python not found](https://forum.ansible.com/t/python-not-found/22484)

<div class="topic-metadata">

**Author:** [@ZigDuDim](https://forum.ansible.com/u/ZigDuDim)\
**Replies:** 0\
**Last updated:** [September 5, 2016, 9:07am UTC](https://forum.ansible.com/t/python-not-found/22484 "2016-09-05T09:07:16Z")

</div>

Hi everyone, I have 2 servers, both under the lastest version of ubuntu server 16.04.1 LTS. One of them is my Ansible remote controler, and the other is my future DHCP server. I followed the instruction on this web si…

---

## [listing JSON first level keys name](https://forum.ansible.com/t/listing-json-first-level-keys-name/22482)

<div class="topic-metadata">

**Author:** [@Alix\_Ak](https://forum.ansible.com/u/Alix_Ak)\
**Replies:** 0\
**Last updated:** [September 5, 2016, 8:34am UTC](https://forum.ansible.com/t/listing-json-first-level-keys-name/22482 "2016-09-05T08:34:34Z")

</div>

Hallo, Example : { “fw1”: { “ipv4”: { “rtr”: { “ip”: “1.2.3.4”, “net”: “1.2.3.4”, } } }, “fw2”: { “ipv4”: { “rtr”: { “ip”: “4.3.2.1”, “net”: “4.3.2.1”, } } } } I need to parse the first level keys of …

---

## [including a pre\_tasks](https://forum.ansible.com/t/including-a-pre-tasks/22443)

<div class="topic-metadata">

**Author:** [@fanvalt](https://forum.ansible.com/u/fanvalt)\
**Replies:** 2\
**Last updated:** [September 5, 2016, 8:18am UTC](https://forum.ansible.com/t/including-a-pre-tasks/22443 "2016-09-05T08:18:28Z")

</div>

Hello, I want to set variables with set\_fact in a pre\_tasks section. This is working well, but it is 50 lines long and I want to have these lines to be set in all my playbooks. Is there a way to include a pre\_tasks ? …

---

## [change SSH Port](https://forum.ansible.com/t/change-ssh-port/22479)

<div class="topic-metadata">

**Author:** [@Janis\_Heller](https://forum.ansible.com/u/Janis_Heller)\
**Replies:** 0\
**Last updated:** [September 4, 2016, 12:22pm UTC](https://forum.ansible.com/t/change-ssh-port/22479 "2016-09-04T12:22:22Z")

</div>

I would like to use ansible to change some things, when I setup a new server. For this I would need to change for example SSH port. Using ansible to change the SSH port from default isn’t hard:

---

## [hostvars behavior different version 1.9 -\>2.1](https://forum.ansible.com/t/hostvars-behavior-different-version-1-9-2-1/22477)

<div class="topic-metadata">

**Author:** [@George\_Hunt](https://forum.ansible.com/u/George_Hunt)\
**Replies:** 1\
**Last updated:** [September 4, 2016, 7:46am UTC](https://forum.ansible.com/t/hostvars-behavior-different-version-1-9-2-1/22477 "2016-09-04T07:46:18Z")

</div>

We have a template to create ifcfg files with the following partial snippet: (second line commented out for test with 2.1) HWADDR={{ ansible\_wlp2s0.macaddress }} {#HWADDR={{ hostvars\[inventory\_hostname\]\[‘ansible\_’ + xs…

---

## [Running a task only when tag defined](https://forum.ansible.com/t/running-a-task-only-when-tag-defined/22476)

<div class="topic-metadata">

**Author:** [@Jon\_Langemak](https://forum.ansible.com/u/Jon_Langemak)\
**Replies:** 1\
**Last updated:** [September 3, 2016, 11:02pm UTC](https://forum.ansible.com/t/running-a-task-only-when-tag-defined/22476 "2016-09-03T23:02:01Z")

</div>

I want to be able to run a task only when I pass a tag to the playbook. Namely, I want to have a tag that allows for decoming a user and one would normally never run that as part of normal playbook run. I found the cond…

---

## [Condititionals](https://forum.ansible.com/t/condititionals/22478)

<div class="topic-metadata">

**Author:** [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Replies:** 0\
**Last updated:** [September 3, 2016, 10:29pm UTC](https://forum.ansible.com/t/condititionals/22478 "2016-09-03T22:29:11Z")

</div>

Never use curly brackets in when, they are implied. And since latest is a string use qoutes, if not latest will be treated as a variable, so this should work: when: ImageTag == "latest"

---

## [arrays/loops/dict mixed. Confused. Did research](https://forum.ansible.com/t/arrays-loops-dict-mixed-confused-did-research/22474)

<div class="topic-metadata">

**Author:** [@AnsiNoob](https://forum.ansible.com/u/AnsiNoob)\
**Replies:** 0\
**Last updated:** [September 3, 2016, 5:01pm UTC](https://forum.ansible.com/t/arrays-loops-dict-mixed-confused-did-research/22474 "2016-09-03T17:01:54Z")

</div>

Hi I have means to generate a variables file which will look like:

---

## [synchronization among nodes in a group](https://forum.ansible.com/t/synchronization-among-nodes-in-a-group/14119)

<div class="topic-metadata">

**Author:** [@Xu\_Chen](https://forum.ansible.com/u/Xu_Chen)\
**Replies:** 7\
**Last updated:** [September 3, 2016, 4:31pm UTC](https://forum.ansible.com/t/synchronization-among-nodes-in-a-group/14119 "2016-09-03T16:31:05Z")

</div>

I am curious if there is any mechanism to perform synchronous tasks among a group of nodes (or nodes in a role, etc.) There is one example online to perform rolling updates to a group of web servers, one at a time. This…

---

## [How can I configure an “all or nothing” Ansible playbook?](https://forum.ansible.com/t/how-can-i-configure-an-all-or-nothing-ansible-playbook/22470)

<div class="topic-metadata">

**Author:** [@Amir\_Samary](https://forum.ansible.com/u/Amir_Samary)\
**Replies:** 1\
**Last updated:** [September 3, 2016, 4:08pm UTC](https://forum.ansible.com/t/how-can-i-configure-an-all-or-nothing-ansible-playbook/22470 "2016-09-03T16:08:07Z")

</div>

Hi everyone! I have a bunch of servers that need will be need frequent patching. I am planning on using Ansible to coordinate the patching process. The keep point here is that it must be an “all or nothing” patching. Ei…

---

## [Weer](https://forum.ansible.com/t/weer/22473)

<div class="topic-metadata">

**Author:** [@Peter\_Smallegange](https://forum.ansible.com/u/Peter_Smallegange)\
**Replies:** 0\
**Last updated:** [September 3, 2016, 7:52am UTC](https://forum.ansible.com/t/weer/22473 "2016-09-03T07:52:21Z")

</div>

---

## [ansible module for aws ec2 alb on the way?](https://forum.ansible.com/t/ansible-module-for-aws-ec2-alb-on-the-way/22472)

<div class="topic-metadata">

**Author:** [@Kevin\_Mcnally](https://forum.ansible.com/u/Kevin_Mcnally)\
**Replies:** 0\
**Last updated:** [September 3, 2016, 7:41am UTC](https://forum.ansible.com/t/ansible-module-for-aws-ec2-alb-on-the-way/22472 "2016-09-03T07:41:15Z")

</div>

Hi, Anyone know when we will get ec2 alb module or where I should look to see whats in the pipeline? I tried to find aws cli for managing ec2 alb but its not available either. Wanted to use these for rolling release i…

---

## [How to update ansible when installed from source?](https://forum.ansible.com/t/how-to-update-ansible-when-installed-from-source/22471)

<div class="topic-metadata">

**Author:** [@Max\_Bigras](https://forum.ansible.com/u/Max_Bigras)\
**Replies:** 0\
**Last updated:** [September 3, 2016, 5:57am UTC](https://forum.ansible.com/t/how-to-update-ansible-when-installed-from-source/22471 "2016-09-03T05:57:10Z")

</div>

I set up ansible by cloning the repo down and then running source ./hacking/env-setup which, among other things, seems to add /path/to/repos/ansible/bin to my path, except it only works for my current session. So then I…

---

## [Bad performance: In Ansible 2.1 playbooks take factor 5.6 longer than 1.9.x](https://forum.ansible.com/t/bad-performance-in-ansible-2-1-playbooks-take-factor-5-6-longer-than-1-9-x/21388)

<div class="topic-metadata">

**Author:** [@Tobias\_Wolf](https://forum.ansible.com/u/Tobias_Wolf)\
**Replies:** 16\
**Last updated:** [September 3, 2016, 1:44am UTC](https://forum.ansible.com/t/bad-performance-in-ansible-2-1-playbooks-take-factor-5-6-longer-than-1-9-x/21388 "2016-09-03T01:44:18Z")

</div>

Salvete all, we are still clinging to 1.9.x ever since 2.0 came out but we’ve been planning to move to 2.1 once it comes out. We had already figured out that ansible 2.x starting up with parsing our dynamic JSON invent…

---

## [Failed to execute remote python script with ansible](https://forum.ansible.com/t/failed-to-execute-remote-python-script-with-ansible/22469)

<div class="topic-metadata">

**Author:** [@Michelle\_Moreno\_Guti](https://forum.ansible.com/u/Michelle_Moreno_Guti)\
**Replies:** 1\
**Last updated:** [September 2, 2016, 9:49pm UTC](https://forum.ansible.com/t/failed-to-execute-remote-python-script-with-ansible/22469 "2016-09-02T21:49:04Z")

</div>

Hello, I’m trying to execute a remote python script on linux nodes. So, the first step I do is to copy the script file in the remote nodes with the “copy” module and this works well: root@soporte03:# ansible sura -m c…

---

## [Ansible deploy to Kubernetes fails at final step](https://forum.ansible.com/t/ansible-deploy-to-kubernetes-fails-at-final-step/22121)

<div class="topic-metadata">

**Author:** [@mcdg](https://forum.ansible.com/u/mcdg)\
**Replies:** 1\
**Last updated:** [September 2, 2016, 9:28pm UTC](https://forum.ansible.com/t/ansible-deploy-to-kubernetes-fails-at-final-step/22121 "2016-09-02T21:28:13Z")

</div>

Hi, I’m using Ansible to deploy an application to a Kubernetes cluster. I followed all the steps listed in the official Ansible docs at: https://docs.ansible.com/ansible-container/deploy\_kubernetes.html#deployment. My A…

---

## [filter "to\_json" and double quotes](https://forum.ansible.com/t/filter-to-json-and-double-quotes/22468)

<div class="topic-metadata">

**Author:** [@Sylvain1](https://forum.ansible.com/u/Sylvain1)\
**Replies:** 2\
**Last updated:** [September 2, 2016, 8:57pm UTC](https://forum.ansible.com/t/filter-to-json-and-double-quotes/22468 "2016-09-02T20:57:15Z")

</div>

Hi ! I want to export YAML variable to JSON for use with jq tool but the last don’t like JSON sent by Ansible. shell : ‘echo {{ var | to\_json }} | jq’ For that work, I must quote keys and datas that seems the good way…

---

## [Ansible "MODULE FAILURE" on AIX node](https://forum.ansible.com/t/ansible-module-failure-on-aix-node/22439)

<div class="topic-metadata">

**Author:** [@Michelle\_Moreno\_Guti](https://forum.ansible.com/u/Michelle_Moreno_Guti)\
**Replies:** 2\
**Last updated:** [September 2, 2016, 6:44pm UTC](https://forum.ansible.com/t/ansible-module-failure-on-aix-node/22439 "2016-09-02T18:44:58Z")

</div>

Hi I have been traing to execute a “ls -l” command with ansible on an AIX group nodes but I get the next message error. \[root@machine1 ~\]# ansible pdn-aix -a “ls -l” mdebddp03 | FAILED | rc=0 \>\> MODULE FAILURE epsmd…

---

## [start to execute a playbook from a given step is not working as i was expecting](https://forum.ansible.com/t/start-to-execute-a-playbook-from-a-given-step-is-not-working-as-i-was-expecting/22467)

<div class="topic-metadata">

**Author:** [@Edson\_Noboru\_Yamada](https://forum.ansible.com/u/Edson_Noboru_Yamada)\
**Replies:** 0\
**Last updated:** [September 2, 2016, 1:49pm UTC](https://forum.ansible.com/t/start-to-execute-a-playbook-from-a-given-step-is-not-working-as-i-was-expecting/22467 "2016-09-02T13:49:36Z")

</div>

Hi I’m trying to run a playbook starting at a specific task, so i’m using the --start-at option. My playbook iterates over a set of host using serial=1 (one host at a time). I noticed that ansible correctly starts at …

---

## [Is there a way to define a list of values in vars?](https://forum.ansible.com/t/is-there-a-way-to-define-a-list-of-values-in-vars/22452)

<div class="topic-metadata">

**Author:** [@synova.marketing](https://forum.ansible.com/u/synova.marketing)\
**Replies:** 2\
**Last updated:** [September 2, 2016, 1:47pm UTC](https://forum.ansible.com/t/is-there-a-way-to-define-a-list-of-values-in-vars/22452 "2016-09-02T13:47:56Z")

</div>

Hi, Is there a way to do the same as “with\_items” but globally for the playbook? For example something like : variable1: {url: ‘http://someting’, dest: ‘something’, src: ‘something’} {url: ‘http://someting2’, dest: …

---

## [win\_firewall\_rule is removing even when state=present](https://forum.ansible.com/t/win-firewall-rule-is-removing-even-when-state-present/22466)

<div class="topic-metadata">

**Author:** [@Justin\_Dugan](https://forum.ansible.com/u/Justin_Dugan)\
**Replies:** 0\
**Last updated:** [September 2, 2016, 1:44pm UTC](https://forum.ansible.com/t/win-firewall-rule-is-removing-even-when-state-present/22466 "2016-09-02T13:44:40Z")

</div>

I created the rule using the following in powershell: netsh advfirewall firewall add rule name=JBoss dir=in action=allow protocol=tcp localport=“8080,8443,9990” Then after running the following in ansible, the rule is …

---

## [inventory file in jenkins server](https://forum.ansible.com/t/inventory-file-in-jenkins-server/22460)

<div class="topic-metadata">

**Author:** [@Edson\_Noboru\_Yamada](https://forum.ansible.com/u/Edson_Noboru_Yamada)\
**Replies:** 2\
**Last updated:** [September 2, 2016, 12:05pm UTC](https://forum.ansible.com/t/inventory-file-in-jenkins-server/22460 "2016-09-02T12:05:07Z")

</div>

I have several hosts to manage and, in order to access them, i have to use a couple of different ssh keys (and I set the ansible\_ssh\_private\_key\_file in the inventory file to tell ansible which key to use). The thing is…

[Previous page](https://forum.ansible.com/c/archives/31.md?page=555)

[Next page](https://forum.ansible.com/c/archives/31.md?page=557)
