# Latest

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

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

**Page:** 778

---

## [error in templating jinja replace "." with nothing](https://forum.ansible.com/t/error-in-templating-jinja-replace-with-nothing/20992)

<div class="topic-metadata">

**Author:** [@Meher\_Garda](https://forum.ansible.com/u/Meher_Garda)\
**Replies:** 1\
**Last updated:** [March 27, 2016, 4:18pm UTC](https://forum.ansible.com/t/error-in-templating-jinja-replace-with-nothing/20992 "2016-03-27T16:18:10Z")

</div>

In my default folder , main.yml I have the following percona\_version: 5.6 percona\_pckg\_version: “{% {{percona\_version}}|replace(‘.’, ‘’) %}” # want to remove the period in 5.6 so as to get 56 The above gives error whi…

---

## [Core Version Numbering](https://forum.ansible.com/t/core-version-numbering/20989)

<div class="topic-metadata">

**Author:** [@Alex\_Rowley](https://forum.ansible.com/u/Alex_Rowley)\
**Replies:** 3\
**Last updated:** [March 27, 2016, 4:05pm UTC](https://forum.ansible.com/t/core-version-numbering/20989 "2016-03-27T16:05:59Z")

</div>

Hi all, Could someone explain how the core version numbering works after moving to version 2? Prior to version 2 I thought that semantic versioning was used but now all tagged versions seem to use 4 numbers prior to th…

---

## [New weekly IRC meeting: New Module Review (today!)](https://forum.ansible.com/t/new-weekly-irc-meeting-new-module-review-today/20970)

<div class="topic-metadata">

**Author:** [@Greg\_DeKoenigsberg1](https://forum.ansible.com/u/Greg_DeKoenigsberg1)\
**Replies:** 3\
**Last updated:** [March 27, 2016, 3:41pm UTC](https://forum.ansible.com/t/new-weekly-irc-meeting-new-module-review-today/20970 "2016-03-27T15:41:38Z")

</div>

On #ansible-meeting on freenode. Meeting will be Wednesdays at 1800 GMT (currently 1400 EDT). The long-term goal will be to move through the backlog of new module requests in Extras; there are currently 168 proposed n…

---

## [establishing winrm connection failing](https://forum.ansible.com/t/establishing-winrm-connection-failing/20984)

<div class="topic-metadata">

**Author:** [@giggs11](https://forum.ansible.com/u/giggs11)\
**Replies:** 2\
**Last updated:** [March 26, 2016, 5:19pm UTC](https://forum.ansible.com/t/establishing-winrm-connection-failing/20984 "2016-03-26T17:19:43Z")

</div>

I have a CentOS 7.2 server with Ansible 1.9.4 running. I’m trying to ping or get info from windows servers following the documentation here: http://docs.ansible.com/ansible/intro\_windows.html I’ve added a windows host t…

---

## [Need help with a tricky task](https://forum.ansible.com/t/need-help-with-a-tricky-task/20949)

<div class="topic-metadata">

**Author:** [@Jens\_Tinglev](https://forum.ansible.com/u/Jens_Tinglev)\
**Replies:** 4\
**Last updated:** [March 26, 2016, 3:03pm UTC](https://forum.ansible.com/t/need-help-with-a-tricky-task/20949 "2016-03-26T15:03:50Z")

</div>

Hello, This is the problem I’m trying to solve: I have an inventory consisting of a bunch of groups, all with a bunch of hosts. I want to run a list of tasks locally, but which depends on the inventory host list. More …

---

## [Check the docker container status](https://forum.ansible.com/t/check-the-docker-container-status/20991)

<div class="topic-metadata">

**Author:** [@ishan\_jain](https://forum.ansible.com/u/ishan_jain)\
**Replies:** 0\
**Last updated:** [March 26, 2016, 2:30pm UTC](https://forum.ansible.com/t/check-the-docker-container-status/20991 "2016-03-26T14:30:25Z")

</div>

I have a pretty straightforward script where i copy some configuration files from ansible host to a linux machine and then start a docker container mounting those config files. My Docker container are immutable, so i do…

---

## [How to add password variables?](https://forum.ansible.com/t/how-to-add-password-variables/20987)

<div class="topic-metadata">

**Author:** [@Gilberto\_Valentin](https://forum.ansible.com/u/Gilberto_Valentin)\
**Replies:** 1\
**Last updated:** [March 25, 2016, 4:09pm UTC](https://forum.ansible.com/t/how-to-add-password-variables/20987 "2016-03-25T16:09:55Z")

</div>

I have a task that calls a root password from my vault.yml by adding it to the task as: vars: ansible\_become\_pass:"{{ root }}" However, I have to use it multiple times within my tasks/main.yml. Is is possible to add th…

---

## [Can't set username to establish ssh connection.](https://forum.ansible.com/t/cant-set-username-to-establish-ssh-connection/20986)

<div class="topic-metadata">

**Author:** [@Alexander\_Lomov](https://forum.ansible.com/u/Alexander_Lomov)\
**Replies:** 0\
**Last updated:** [March 25, 2016, 12:40pm UTC](https://forum.ansible.com/t/cant-set-username-to-establish-ssh-connection/20986 "2016-03-25T12:40:10Z")

</div>

Hey, all. Recently, I’ve updated my role to use Ansible 2.0. After that I failed to use ssh connection, I could only apply my role using ansible\_connection=ssh. I’ve created a github issue with description of this prob…

---

## [Setting Up Dev Box](https://forum.ansible.com/t/setting-up-dev-box/20941)

<div class="topic-metadata">

**Author:** [@rajat.gupta712](https://forum.ansible.com/u/rajat.gupta712)\
**Replies:** 9\
**Last updated:** [March 25, 2016, 11:37am UTC](https://forum.ansible.com/t/setting-up-dev-box/20941 "2016-03-25T11:37:36Z")

</div>

Hi All, I am trying to setup my DevBox for contribution. The steps I followed are: Clone Ansible Core Repo Install all dependencies like Nose, Yaml etc Run the test by make tests I am getting errors on my test. Can a…

---

## [Provisioning OpenStack with Ansible from scratch, missing modules?](https://forum.ansible.com/t/provisioning-openstack-with-ansible-from-scratch-missing-modules/20850)

<div class="topic-metadata">

**Author:** [@Thiago\_Martins](https://forum.ansible.com/u/Thiago_Martins)\
**Replies:** 8\
**Last updated:** [March 24, 2016, 8:45pm UTC](https://forum.ansible.com/t/provisioning-openstack-with-ansible-from-scratch-missing-modules/20850 "2016-03-24T20:45:18Z")

</div>

Hey guys, Currently, I’m developing an OpenStack Mitaka Ansible automation for Ubuntu 16.04. I’m using a lot of “command / shell” Ansible modules and I would like to avoid it, and start using native Ansible OS modules. …

---

## [Adding a value to a host\_vars file from an ansible play](https://forum.ansible.com/t/adding-a-value-to-a-host-vars-file-from-an-ansible-play/20981)

<div class="topic-metadata">

**Author:** [@Johannes\_Kastl](https://forum.ansible.com/u/Johannes_Kastl)\
**Replies:** 2\
**Last updated:** [March 24, 2016, 8:07pm UTC](https://forum.ansible.com/t/adding-a-value-to-a-host-vars-file-from-an-ansible-play/20981 "2016-03-24T20:07:09Z")

</div>

Hi again, next question: Bootstrapping a new server, creating a user, setting a random password. Works like a charm. But is it possible to save the generated password in the corresponding host\_vars file for the new …

---

## [Populate list from results (list)](https://forum.ansible.com/t/populate-list-from-results-list/20962)

<div class="topic-metadata">

**Author:** [@viper233](https://forum.ansible.com/u/viper233)\
**Replies:** 3\
**Last updated:** [March 24, 2016, 5:55pm UTC](https://forum.ansible.com/t/populate-list-from-results-list/20962 "2016-03-24T17:55:17Z")

</div>

I’m using the ec2\_remote\_facts module to get a list of instances based on filters. I want to create another list that contains the ec2\_facts.instances\[0-n\].private\_ip This is the logic I’m after name: Set server name…

---

## [IndexError in plugins/lookup/subelements.py after upgrade from 1.9 to 2.0](https://forum.ansible.com/t/indexerror-in-plugins-lookup-subelements-py-after-upgrade-from-1-9-to-2-0/20983)

<div class="topic-metadata">

**Author:** [@JK\_Laiho](https://forum.ansible.com/u/JK_Laiho)\
**Replies:** 0\
**Last updated:** [March 24, 2016, 4:34pm UTC](https://forum.ansible.com/t/indexerror-in-plugins-lookup-subelements-py-after-upgrade-from-1-9-to-2-0/20983 "2016-03-24T16:34:05Z")

</div>

Upgrading from 1.9.5 to 2.0.1.0 without changing the playbook, a task fails that used to work. The error: \[DEPRECATION WARNING\]: Skipping task due to undefined Error, in the future this will be a fatal error… This feat…

---

## [Sudo tty/askpass related error with pipelining after upgrade from 1.9 to 2.0](https://forum.ansible.com/t/sudo-tty-askpass-related-error-with-pipelining-after-upgrade-from-1-9-to-2-0/20982)

<div class="topic-metadata">

**Author:** [@JK\_Laiho](https://forum.ansible.com/u/JK_Laiho)\
**Replies:** 0\
**Last updated:** [March 24, 2016, 3:55pm UTC](https://forum.ansible.com/t/sudo-tty-askpass-related-error-with-pipelining-after-upgrade-from-1-9-to-2-0/20982 "2016-03-24T15:55:33Z")

</div>

A playbook that runs fine on Ansible 1.9.5 suddenly fails on 2.0 with the following error (sensitive details hidden): $ ansible-playbook deploy.yml -i inventory\_dev.py -vvvv Using /Users/\[…\]/ansible.cfg as config file …

---

## [Reading a value from a file in the host\_vars folder](https://forum.ansible.com/t/reading-a-value-from-a-file-in-the-host-vars-folder/20980)

<div class="topic-metadata">

**Author:** [@Johannes\_Kastl](https://forum.ansible.com/u/Johannes_Kastl)\
**Replies:** 1\
**Last updated:** [March 24, 2016, 2:34pm UTC](https://forum.ansible.com/t/reading-a-value-from-a-file-in-the-host-vars-folder/20980 "2016-03-24T14:34:33Z")

</div>

Hi all, is it possible to read a value from a file located in the host\_vars folder, if this is not the host the play should run on? I am trying to convert a script creating a lxc container on host foo to an ansible p…

---

## [Playbook issue](https://forum.ansible.com/t/playbook-issue/20979)

<div class="topic-metadata">

**Author:** [@harold.larimer](https://forum.ansible.com/u/harold.larimer)\
**Replies:** 2\
**Last updated:** [March 24, 2016, 2:16pm UTC](https://forum.ansible.com/t/playbook-issue/20979 "2016-03-24T14:16:42Z")

</div>

I am running a playbook that is included as part of another playbook but I keep getting an error, can I get some help debugging it. Here is the job:

---

## [Installing Ansible Modules via Pip?](https://forum.ansible.com/t/installing-ansible-modules-via-pip/20978)

<div class="topic-metadata">

**Author:** [@Bob\_Gregory](https://forum.ansible.com/u/Bob_Gregory)\
**Replies:** 1\
**Last updated:** [March 24, 2016, 1:50pm UTC](https://forum.ansible.com/t/installing-ansible-modules-via-pip/20978 "2016-03-24T13:50:02Z")

</div>

Hi, I’m currently working on a set of Ansible Modules that depend on a library I wrote. I’d like an easy way to distribute the whole lot. Is it possible to install Ansible modules via pip? I’m not entirely clear on how …

---

## [Problem with updating Ansible from 1.9 to 2.0](https://forum.ansible.com/t/problem-with-updating-ansible-from-1-9-to-2-0/20977)

<div class="topic-metadata">

**Author:** [@taro\_kinst](https://forum.ansible.com/u/taro_kinst)\
**Replies:** 0\
**Last updated:** [March 24, 2016, 8:26am UTC](https://forum.ansible.com/t/problem-with-updating-ansible-from-1-9-to-2-0/20977 "2016-03-24T08:26:19Z")

</div>

Hi, I’ve been made a orchistration tool by Ansible1.9, and trying to update Ansible to the 2.0version. I found there are some syntax rules that were changed (maybe bugs?) in Ansbile2.0. I have to use modules in playbo…

---

## [Introducing ansible tdd](https://forum.ansible.com/t/introducing-ansible-tdd/20976)

<div class="topic-metadata">

**Author:** [@nguyen\_phuong\_thanh](https://forum.ansible.com/u/nguyen_phuong_thanh)\
**Replies:** 0\
**Last updated:** [March 24, 2016, 7:12am UTC](https://forum.ansible.com/t/introducing-ansible-tdd/20976 "2016-03-24T07:12:10Z")

</div>

Hi all, i usually work with multi instance EC2 ( 5 instance about web, 2 instance cache, 1 instance database), when i finish a playbook setup, i need run many test for infrastructure, so, i write a small tool setup proc…

---

## [Techniques in sharing variables between components of the same playbooks](https://forum.ansible.com/t/techniques-in-sharing-variables-between-components-of-the-same-playbooks/20972)

<div class="topic-metadata">

**Author:** [@Joseph\_DJOMEDA](https://forum.ansible.com/u/Joseph_DJOMEDA)\
**Replies:** 2\
**Last updated:** [March 23, 2016, 9:52pm UTC](https://forum.ansible.com/t/techniques-in-sharing-variables-between-components-of-the-same-playbooks/20972 "2016-03-23T21:52:13Z")

</div>

Hello Guys, I have hit a major blocker probably because I have little knowledge on how to use special variables like hostvars and groupvars etc while using dynamic inventory especially with AWS. I had a playbook for cr…

---

## [Boto Version Support in Modules](https://forum.ansible.com/t/boto-version-support-in-modules/20975)

<div class="topic-metadata">

**Author:** [@Gordon\_Towne](https://forum.ansible.com/u/Gordon_Towne)\
**Replies:** 0\
**Last updated:** [March 23, 2016, 9:10pm UTC](https://forum.ansible.com/t/boto-version-support-in-modules/20975 "2016-03-23T21:10:41Z")

</div>

We’ve implemented a modification to the “ec2\_scaling\_policy” module to fix this issue that we’re now using at work that we’d like to open source. The fix depends on boto3 in a module that previously only requried boto 2.…

---

## [eos\_command module waitfor - IP address in json structure](https://forum.ansible.com/t/eos-command-module-waitfor-ip-address-in-json-structure/20946)

<div class="topic-metadata">

**Author:** [@Martin\_Baro](https://forum.ansible.com/u/Martin_Baro)\
**Replies:** 9\
**Last updated:** [March 23, 2016, 8:33pm UTC](https://forum.ansible.com/t/eos-command-module-waitfor-ip-address-in-json-structure/20946 "2016-03-23T20:33:04Z")

</div>

Hi I\`m trying to catch a specific route in the waitfor statment if it is present from a show ip route output. However I think ansible misinterprets the statement because of the dots in the IP address. (I can successfu…

---

## [Ansible 2.0.2.0 RC1 is available for testing](https://forum.ansible.com/t/ansible-2-0-2-0-rc1-is-available-for-testing/20974)

<div class="topic-metadata">

**Author:** [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Replies:** 0\
**Last updated:** [March 23, 2016, 8:22pm UTC](https://forum.ansible.com/t/ansible-2-0-2-0-rc1-is-available-for-testing/20974 "2016-03-23T20:22:24Z")

</div>

Hi all, we’re happy to announce that the first release candidate for 2.0.2 is now available for testing. This release candidate includes fixes for many bugs, as well as a few other improvements: Backport of the 2.1 fe…

---

## [Propagating variables within a playbook](https://forum.ansible.com/t/propagating-variables-within-a-playbook/20973)

<div class="topic-metadata">

**Author:** [@Dejay\_Clayton](https://forum.ansible.com/u/Dejay_Clayton)\
**Replies:** 0\
**Last updated:** [March 23, 2016, 7:12pm UTC](https://forum.ansible.com/t/propagating-variables-within-a-playbook/20973 "2016-03-23T19:12:16Z")

</div>

I’ve discovered behavior that seems to indicate that Ansible’s handling of variables and facts is even more brittle than I had originally guessed. I hope that’s not the case; I hope I’m just being dense. Could someone v…

---

## [passing dictionary arguments to hacking/test-module](https://forum.ansible.com/t/passing-dictionary-arguments-to-hacking-test-module/20919)

<div class="topic-metadata">

**Author:** [@Michael\_Baydoun](https://forum.ansible.com/u/Michael_Baydoun)\
**Replies:** 3\
**Last updated:** [March 23, 2016, 6:38pm UTC](https://forum.ansible.com/t/passing-dictionary-arguments-to-hacking-test-module/20919 "2016-03-23T18:38:00Z")

</div>

Is it possible to pass a dictionary argument to test-module, and if so, what does it look like? Need to pass a couple of aws tags to a module for testing hacking/test-module -m mymodule.py -a “key1=val1 key2=val2 dict1…

---

## [problems with add\_host](https://forum.ansible.com/t/problems-with-add-host/20964)

<div class="topic-metadata">

**Author:** [@Glyn\_Davies](https://forum.ansible.com/u/Glyn_Davies)\
**Replies:** 2\
**Last updated:** [March 23, 2016, 5:09pm UTC](https://forum.ansible.com/t/problems-with-add-host/20964 "2016-03-23T17:09:24Z")

</div>

Hi Guys, I am having some issues getting add\_host to create a dynamic inventory correctly. Here is the relevant section from my playbook: \` tasks: - name: Connect to Cloud # assume RC file has already been sourced …

---

## [Introducing debug strategy plugin](https://forum.ansible.com/t/introducing-debug-strategy-plugin/20956)

<div class="topic-metadata">

**Author:** [@yagami\_kishin](https://forum.ansible.com/u/yagami_kishin)\
**Replies:** 4\
**Last updated:** [March 23, 2016, 5:03pm UTC](https://forum.ansible.com/t/introducing-debug-strategy-plugin/20956 "2016-03-23T17:03:30Z")

</div>

Hi all, When I write a playbook and run it, I often add a stupid bug and running the playbook fails at some point. Fixing these bugs often takes time since I am not sure actual values of facts, variables and so on. Then…

---

## [How to do Ansible conditional include\_vars?](https://forum.ansible.com/t/how-to-do-ansible-conditional-include-vars/20958)

<div class="topic-metadata">

**Author:** [@Roy](https://forum.ansible.com/u/Roy)\
**Replies:** 5\
**Last updated:** [March 23, 2016, 4:20pm UTC](https://forum.ansible.com/t/how-to-do-ansible-conditional-include-vars/20958 "2016-03-23T16:20:51Z")

</div>

Hi, I am trying to use include\_vars based on when condition as follows: - include\_vars: clouderamanager.yml when: "'{{ inventory\_hostname }}' in groups\['hadoop-clouderamanager'\]" - include\_vars: hadoop-namenode.yml…

---

## [include custom python library from custom module](https://forum.ansible.com/t/include-custom-python-library-from-custom-module/20947)

<div class="topic-metadata">

**Author:** [@Alexey\_Wasilyev1](https://forum.ansible.com/u/Alexey_Wasilyev1)\
**Replies:** 7\
**Last updated:** [March 23, 2016, 3:20pm UTC](https://forum.ansible.com/t/include-custom-python-library-from-custom-module/20947 "2016-03-23T15:20:02Z")

</div>

Hello! I am writing a set of custom ansible modules, that uses some shared code. And cant find a right way how this can be organised. Where I should put my custom python library under current catalog so it can be impor…

---

## [Custom Jinja2 filters for Ansible](https://forum.ansible.com/t/custom-jinja2-filters-for-ansible/20961)

<div class="topic-metadata">

**Author:** [@jon.malachowski](https://forum.ansible.com/u/jon.malachowski)\
**Replies:** 2\
**Last updated:** [March 23, 2016, 3:05pm UTC](https://forum.ansible.com/t/custom-jinja2-filters-for-ansible/20961 "2016-03-23T15:05:36Z")

</div>

There is a mention that good jinja2 filters will be most likely considered for acceptance to core. Is there a preferred method of submitting them?

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

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