# Latest

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

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

**Page:** 917

---

## [get\_url and preemptive authentication?](https://forum.ansible.com/t/get-url-and-preemptive-authentication/16856)

<div class="topic-metadata">

**Author:** [@Mirko\_Friedenhagen](https://forum.ansible.com/u/Mirko_Friedenhagen)\
**Replies:** 4\
**Last updated:** [November 25, 2014, 8:33am UTC](https://forum.ansible.com/t/get-url-and-preemptive-authentication/16856 "2014-11-25T08:33:39Z")

</div>

Hello, we provide user specific settings for our Maven repository via a HTTP GET request\[1\], but have the usecase that "anonymous" has read-only access, so authentication is not strictly enforced. I try to setup our …

---

## [lineinfile, insert, and idempotency](https://forum.ansible.com/t/lineinfile-insert-and-idempotency/16848)

<div class="topic-metadata">

**Author:** [@John\_Oliver](https://forum.ansible.com/u/John_Oliver)\
**Replies:** 5\
**Last updated:** [November 25, 2014, 7:02am UTC](https://forum.ansible.com/t/lineinfile-insert-and-idempotency/16848 "2014-11-25T07:02:25Z")

</div>

I have several lineinfile statements to insert iptables rules into /etc/sysconfig/iptables I’m using positional like insertbefore to get them in the order I want, and it works just fine on the first run. But subsequent r…

---

## [Ansible facts help (ansible\_fqdn)](https://forum.ansible.com/t/ansible-facts-help-ansible-fqdn/16834)

<div class="topic-metadata">

**Author:** [@Nicolas\_G](https://forum.ansible.com/u/Nicolas_G)\
**Replies:** 12\
**Last updated:** [November 25, 2014, 4:47am UTC](https://forum.ansible.com/t/ansible-facts-help-ansible-fqdn/16834 "2014-11-25T04:47:36Z")

</div>

Hi, I"m trying to use Ansible magic var inventory\_hostname along with ansible\_fqdn fact. I have a playbook that will update the hostname of the system based on the entry in the inventory file and later it will use ansib…

---

## [Making it easier to get submodules](https://forum.ansible.com/t/making-it-easier-to-get-submodules/16867)

<div class="topic-metadata">

**Author:** [@Marc\_Abramowitz](https://forum.ansible.com/u/Marc_Abramowitz)\
**Replies:** 2\
**Last updated:** [November 25, 2014, 2:37am UTC](https://forum.ansible.com/t/making-it-easier-to-get-submodules/16867 "2014-11-25T02:37:31Z")

</div>

So I had a slight hiccup the other day when I tried to contribute to ansible. I have contributed in the past, but it was before the ansible modules were split out into separate “core” and “extras” git repos. So when I t…

---

## [Display more info when SSH errors occur](https://forum.ansible.com/t/display-more-info-when-ssh-errors-occur/16869)

<div class="topic-metadata">

**Author:** [@Marc\_Abramowitz](https://forum.ansible.com/u/Marc_Abramowitz)\
**Replies:** 0\
**Last updated:** [November 25, 2014, 12:57am UTC](https://forum.ansible.com/t/display-more-info-when-ssh-errors-occur/16869 "2014-11-25T00:57:24Z")

</div>

I finally got tired of seeing this message: fatal: \[vagrant\] =\> SSH encountered an unknown error during the connection. We recommend you re-run the command using -vvvv, which will enable SSH debugging output to help di…

---

## [Turn off host\_key\_checking when using Python API](https://forum.ansible.com/t/turn-off-host-key-checking-when-using-python-api/16852)

<div class="topic-metadata">

**Author:** [@Marc\_Abramowitz](https://forum.ansible.com/u/Marc_Abramowitz)\
**Replies:** 3\
**Last updated:** [November 25, 2014, 12:44am UTC](https://forum.ansible.com/t/turn-off-host-key-checking-when-using-python-api/16852 "2014-11-25T00:44:36Z")

</div>

We have a Python program that calls the ansible Python API – e.g.: pb = ansible.playbook.PlayBook( playbook=playbook, host\_list=host\_list, stats=stats, callbacks=playbook\_cb, runner\_callbacks=runner\_cb, extra\_vars=extr…

---

## [Suppress output of task?](https://forum.ansible.com/t/suppress-output-of-task/16721)

<div class="topic-metadata">

**Author:** [@John\_Oliver](https://forum.ansible.com/u/John_Oliver)\
**Replies:** 5\
**Last updated:** [November 25, 2014, 12:40am UTC](https://forum.ansible.com/t/suppress-output-of-task/16721 "2014-11-25T00:40:35Z")

</div>

There are some tasks I run to collect info, and if they fail, oh well… I have ignore\_errors: true in there. But sometimes there could be a lot of output from a “failed” task that I just don’t want to see. How can I tell …

---

## [ssh works for first few tasks then fails (on different tasks each attempt)](https://forum.ansible.com/t/ssh-works-for-first-few-tasks-then-fails-on-different-tasks-each-attempt/16860)

<div class="topic-metadata">

**Author:** [@David\_Whiteside1](https://forum.ansible.com/u/David_Whiteside1)\
**Replies:** 2\
**Last updated:** [November 24, 2014, 11:08pm UTC](https://forum.ansible.com/t/ssh-works-for-first-few-tasks-then-fails-on-different-tasks-each-attempt/16860 "2014-11-24T23:08:45Z")

</div>

It worked at ansible v1.5, now I have the occasional issue below with the latest version 1.7.2. Manually sshing never has any issues. $ ansible-playbook -s -i ./inventoryfile plays.yml -vvvv PLAY \[webserver\] \*\*\*\*\*\*\*\*\*\*…

---

## [versioning for ansible modules](https://forum.ansible.com/t/versioning-for-ansible-modules/16855)

<div class="topic-metadata">

**Author:** [@Stanley\_Kamithi](https://forum.ansible.com/u/Stanley_Kamithi)\
**Replies:** 3\
**Last updated:** [November 24, 2014, 10:54pm UTC](https://forum.ansible.com/t/versioning-for-ansible-modules/16855 "2014-11-24T22:54:42Z")

</div>

Just finished working on my first ansible modules. Searched around to find out if I can assign a version number to the ansible modules . Couldn’t find anything. Can I assign a version number to a module? So if someone f…

---

## [Getting cl\_prefix\_check included in Ansible](https://forum.ansible.com/t/getting-cl-prefix-check-included-in-ansible/16863)

<div class="topic-metadata">

**Author:** [@Sean\_Cavanaugh](https://forum.ansible.com/u/Sean_Cavanaugh)\
**Replies:** 1\
**Last updated:** [November 24, 2014, 10:52pm UTC](https://forum.ansible.com/t/getting-cl-prefix-check-included-in-ansible/16863 "2014-11-24T22:52:22Z")

</div>

Hey Ansible Dev Team. Awhile ago Stanley and I at Cumulus created a bunch of modules. I think the first one that has no dependencies on Cumulus Linux (as in it will work on any Linux distro that has the ip route command)…

---

## [how to filter an item list - with\_items filter using  RegEx ?](https://forum.ansible.com/t/how-to-filter-an-item-list-with-items-filter-using-regex/16771)

<div class="topic-metadata">

**Author:** [@Torsten\_Reinhard](https://forum.ansible.com/u/Torsten_Reinhard)\
**Replies:** 4\
**Last updated:** [November 24, 2014, 10:50pm UTC](https://forum.ansible.com/t/how-to-filter-an-item-list-with-items-filter-using-regex/16771 "2014-11-24T22:50:26Z")

</div>

\` Hi all, like probably most of you, we have multiple servers with multiple application instances (Tomcat, Apache, …) on it, for example structured like this: \` \[cae:children\] cae-1 cae-2 \[cae-1\] pbdelsweb001.myd…

---

## [Older version ansible-modules-extras / source\_control / bzr.py and stacked=yes](https://forum.ansible.com/t/older-version-ansible-modules-extras-source-control-bzr-py-and-stacked-yes/16840)

<div class="topic-metadata">

**Author:** [@Bob\_Tanner](https://forum.ansible.com/u/Bob_Tanner)\
**Replies:** 3\
**Last updated:** [November 24, 2014, 10:49pm UTC](https://forum.ansible.com/t/older-version-ansible-modules-extras-source-control-bzr-py-and-stacked-yes/16840 "2014-11-24T22:49:44Z")

</div>

In an older version of bzr module I was able to use stacked=yes like this: \` name: bzr branch --stacked lp:bzr-email bzr: name=lp:bzrtools dest=~“{{ansible\_user}}”/.bazaar/plugins/email stacked=yes \` I decided to p…

---

## [yam syntax error but actually not](https://forum.ansible.com/t/yam-syntax-error-but-actually-not/16854)

<div class="topic-metadata">

**Author:** [@Steve\_Kieu](https://forum.ansible.com/u/Steve_Kieu)\
**Replies:** 3\
**Last updated:** [November 24, 2014, 10:48pm UTC](https://forum.ansible.com/t/yam-syntax-error-but-actually-not/16854 "2014-11-24T22:48:47Z")

</div>

Hi all, ansible complian about these name: allow group wheel to run sudo with password shell: “perl -i.bak -pe ‘s|^# %wheel\[\\s\\t\]+ALL=(ALL)\[\\s\\t\]+NOPASSWD|%wheel ALL=(ALL) NOPASSWD|g’ /etc/sudoers creates=/etc/sudoer…

---

## [Variables between tasksand errors between Debian and Mac OS](https://forum.ansible.com/t/variables-between-tasksand-errors-between-debian-and-mac-os/16853)

<div class="topic-metadata">

**Author:** [@Adele\_Dazim](https://forum.ansible.com/u/Adele_Dazim)\
**Replies:** 1\
**Last updated:** [November 24, 2014, 10:45pm UTC](https://forum.ansible.com/t/variables-between-tasksand-errors-between-debian-and-mac-os/16853 "2014-11-24T22:45:39Z")

</div>

Hi All, I’m using a playbook to create an instance. Essentially, I’ve modified the code snippet on example 4 here → http://docs.ansible.com/guide\_aws.html From the command\_line, I pass in a variable “instance\_name”, wh…

---

## [Ansible --connection=local](https://forum.ansible.com/t/ansible-connection-local/16797)

<div class="topic-metadata">

**Author:** [@Steve\_Porter](https://forum.ansible.com/u/Steve_Porter)\
**Replies:** 5\
**Last updated:** [November 24, 2014, 10:30pm UTC](https://forum.ansible.com/t/ansible-connection-local/16797 "2014-11-24T22:30:29Z")

</div>

Having a bit of an issues with a Packer/Ansible/Vagrant build pipeline. I have been using Ansible for a while and can happily provision my dev VMs via Ansible. I have hooked Packer in the the pipeline and now with the s…

---

## [Kernel panic on rhel4  -- ansible-playbook.](https://forum.ansible.com/t/kernel-panic-on-rhel4-ansible-playbook/16851)

<div class="topic-metadata">

**Author:** [@Darup\_tek](https://forum.ansible.com/u/Darup_tek)\
**Replies:** 2\
**Last updated:** [November 24, 2014, 6:55pm UTC](https://forum.ansible.com/t/kernel-panic-on-rhel4-ansible-playbook/16851 "2014-11-24T18:55:51Z")

</div>

I know rhel4 is not supported, but I do not have choice. Installed python27 in /opt and trying to get the playbook running. I am using the ansible\_python\_interpreter /opt/python2.7/bin/python2.7 Just regular ansible x…

---

## [EC2 Rolling Deploy with an ASG](https://forum.ansible.com/t/ec2-rolling-deploy-with-an-asg/16138)

<div class="topic-metadata">

**Author:** [@Daniel\_Langer](https://forum.ansible.com/u/Daniel_Langer)\
**Replies:** 22\
**Last updated:** [November 24, 2014, 5:54pm UTC](https://forum.ansible.com/t/ec2-rolling-deploy-with-an-asg/16138 "2014-11-24T17:54:09Z")

</div>

Hello, I’m trying to use Ansible to do a rolling deploy against an ELB linked to an auto-scaling group (ASG), using a pre-baked AMI. My ideal process would go something like this Get the current membership of the ASG U…

---

## [Running role multiple times during playbook](https://forum.ansible.com/t/running-role-multiple-times-during-playbook/16786)

<div class="topic-metadata">

**Author:** [@Helma\_hepabolu](https://forum.ansible.com/u/Helma_hepabolu)\
**Replies:** 2\
**Last updated:** [November 24, 2014, 12:52pm UTC](https://forum.ansible.com/t/running-role-multiple-times-during-playbook/16786 "2014-11-24T12:52:02Z")

</div>

Hi, I need to set up a general test server with multiple java applications. To avoid conflicts we decided to add a separate tomcat installation to each app and configure it separately. The final directory structure shou…

---

## [can't access to existing "ansible\_eth1" fact](https://forum.ansible.com/t/cant-access-to-existing-ansible-eth1-fact/13857)

<div class="topic-metadata">

**Author:** [@Jean\_Philippe\_Caruan](https://forum.ansible.com/u/Jean_Philippe_Caruan)\
**Replies:** 9\
**Last updated:** [November 24, 2014, 10:38am UTC](https://forum.ansible.com/t/cant-access-to-existing-ansible-eth1-fact/13857 "2014-11-24T10:38:50Z")

</div>

Hi, I successfully managed to add a private IP address on my servers. I can see both network interfaces eth0 and eth1 when I ask for the facts of this server (I stuggled to death to find this command) : $ ansible ser…

---

## [Docker Private Registries](https://forum.ansible.com/t/docker-private-registries/16121)

<div class="topic-metadata">

**Author:** [@Matt\_Hughes](https://forum.ansible.com/u/Matt_Hughes)\
**Replies:** 8\
**Last updated:** [November 23, 2014, 11:59pm UTC](https://forum.ansible.com/t/docker-private-registries/16121 "2014-11-23T23:59:38Z")

</div>

Trying to use the docker module to run images from a docker private registry. I’m using the current master branch of Ansible as that supports username/password. Playbook is: name: run app docker: registry=https://pri…

---

## [LDAP string in Docker env](https://forum.ansible.com/t/ldap-string-in-docker-env/16833)

<div class="topic-metadata">

**Author:** [@Vincent\_Van\_der\_Kuss](https://forum.ansible.com/u/Vincent_Van_der_Kuss)\
**Replies:** 2\
**Last updated:** [November 23, 2014, 11:03am UTC](https://forum.ansible.com/t/ldap-string-in-docker-env/16833 "2014-11-23T11:03:31Z")

</div>

Hi, I'm deploying a docker container where I pass an env variable in the docker module. The problem is that the parser cuts of a part of the value because it contains '=' signs. this is the part from the playbook : e…

---

## [wrapping ansible module into another module](https://forum.ansible.com/t/wrapping-ansible-module-into-another-module/16826)

<div class="topic-metadata">

**Author:** [@anatoly\_techtonik](https://forum.ansible.com/u/anatoly_techtonik)\
**Replies:** 4\
**Last updated:** [November 22, 2014, 11:04pm UTC](https://forum.ansible.com/t/wrapping-ansible-module-into-another-module/16826 "2014-11-22T23:04:15Z")

</div>

Hi, There are few playbooks that I include everywhere, like this one: \` include: …/…/common/tasks/checkout.yml vars: repo: ansible location: /opt/ansible \` These contains just a few steps and predefined settings…

---

## [ansible-pull is broken](https://forum.ansible.com/t/ansible-pull-is-broken/15806)

<div class="topic-metadata">

**Author:** [@willthames](https://forum.ansible.com/u/willthames)\
**Replies:** 6\
**Last updated:** [November 22, 2014, 1:29am UTC](https://forum.ansible.com/t/ansible-pull-is-broken/15806 "2014-11-22T01:29:55Z")

</div>

I’ve raised issue #8324 for this, but it got summarily closed. Is that really how the ansible project deals with issues it doesn’t understand now? If I were a new contributor I’d be very disheartened that a fully fleshed…

---

## [get\_url: Request failed: \<urlopen error (101, 'Network is unreachable')](https://forum.ansible.com/t/get-url-request-failed-urlopen-error-101-network-is-unreachable/16850)

<div class="topic-metadata">

**Author:** [@diana\_h](https://forum.ansible.com/u/diana_h)\
**Replies:** 2\
**Last updated:** [November 21, 2014, 9:13pm UTC](https://forum.ansible.com/t/get-url-request-failed-urlopen-error-101-network-is-unreachable/16850 "2014-11-21T21:13:58Z")

</div>

Hi All, I tried to use get\_url in playbook.yml to download Elasticsearch package =\> failed. But it is OK for me to use wget to download the package. What should I do to get get\_url works in ansible playbook? My env: …

---

## [paramiko: The authenticity of host '192.168.33.110' can't be established.](https://forum.ansible.com/t/paramiko-the-authenticity-of-host-192-168-33-110-cant-be-established/16847)

<div class="topic-metadata">

**Author:** [@diana\_h](https://forum.ansible.com/u/diana_h)\
**Replies:** 2\
**Last updated:** [November 21, 2014, 6:35pm UTC](https://forum.ansible.com/t/paramiko-the-authenticity-of-host-192-168-33-110-cant-be-established/16847 "2014-11-21T18:35:12Z")

</div>

ansible v1.7.2, running on CentOS release 5.8 (Final) Sorry for the newbie question, but I’m just starting out with ansible. I’ve set up the SSH public key and a very basic inventory file /etc/ansible/hosts with vm priv…

---

## [problem with expanditg variables in a template](https://forum.ansible.com/t/problem-with-expanditg-variables-in-a-template/16846)

<div class="topic-metadata">

**Author:** [@Jean\_Philippe\_Caruan](https://forum.ansible.com/u/Jean_Philippe_Caruan)\
**Replies:** 4\
**Last updated:** [November 21, 2014, 5:08pm UTC](https://forum.ansible.com/t/problem-with-expanditg-variables-in-a-template/16846 "2014-11-21T17:08:20Z")

</div>

Hi, I have a problem provisionning my /etc/hosts files : it seems to me that variables are not expanded, and it used to work previously. I am using ansible 1.7.2. My host.j2 looks like this: 127.0.0.1 localhost 127.…

---

## [fqdn for all host interfaces](https://forum.ansible.com/t/fqdn-for-all-host-interfaces/16843)

<div class="topic-metadata">

**Author:** [@James\_Morgan1](https://forum.ansible.com/u/James_Morgan1)\
**Replies:** 4\
**Last updated:** [November 21, 2014, 4:47pm UTC](https://forum.ansible.com/t/fqdn-for-all-host-interfaces/16843 "2014-11-21T16:47:30Z")

</div>

Hi, I have a 3 tier setup, web, app and db. Each tier has a mgmt, upper and lower network interface I need to add the fqdn for the lower app interface in the hosts.equiv on the db server I was doing this with IP whic…

---

## [Playbook using groups module and dictionary looping doesn't work](https://forum.ansible.com/t/playbook-using-groups-module-and-dictionary-looping-doesnt-work/16810)

<div class="topic-metadata">

**Author:** [@Daniel\_Osielczak](https://forum.ansible.com/u/Daniel_Osielczak)\
**Replies:** 2\
**Last updated:** [November 21, 2014, 4:31pm UTC](https://forum.ansible.com/t/playbook-using-groups-module-and-dictionary-looping-doesnt-work/16810 "2014-11-21T16:31:30Z")

</div>

Hi, I have googled around and couldn’t find any info regarding this but I suspect there is something wrong with how the group module handles dictionaries. I have a following entry for host in host\_vars directory:

---

## [ansible simplified log with date|host|playbook  ?](https://forum.ansible.com/t/ansible-simplified-log-with-date-host-playbook/16844)

<div class="topic-metadata">

**Author:** [@Pablo\_Escobar](https://forum.ansible.com/u/Pablo_Escobar)\
**Replies:** 1\
**Last updated:** [November 21, 2014, 4:14pm UTC](https://forum.ansible.com/t/ansible-simplified-log-with-date-host-playbook/16844 "2014-11-21T16:14:30Z")

</div>

Hi, I have been writting some roles and playbooks before getting ansible in production. Now I have the most important stuff working (I hope) and I would like to generate a simple ansible log to keep track of what playbo…

---

## [iteration over list of dictionaries.](https://forum.ansible.com/t/iteration-over-list-of-dictionaries/16839)

<div class="topic-metadata">

**Author:** [@michael.ibarra](https://forum.ansible.com/u/michael.ibarra)\
**Replies:** 6\
**Last updated:** [November 21, 2014, 4:04pm UTC](https://forum.ansible.com/t/iteration-over-list-of-dictionaries/16839 "2014-11-21T16:04:51Z")

</div>

Hi, I’m trying to iterate over this list of dictionaries but I got: “One or more undefined variables: ‘hostname’ is undefined”. Task: name: LXC - creating directory file: path={{ lxc\_dir }}/{{ item.hostname}} owner…

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

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