# Latest

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

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

**Page:** 1012

---

## [Connecting over ssh with a password from facts](https://forum.ansible.com/t/connecting-over-ssh-with-a-password-from-facts/13911)

<div class="topic-metadata">

**Author:** [@Grzegorz\_Nosek](https://forum.ansible.com/u/Grzegorz_Nosek)\
**Replies:** 1\
**Last updated:** [November 14, 2013, 9:38pm UTC](https://forum.ansible.com/t/connecting-over-ssh-with-a-password-from-facts/13911 "2013-11-14T21:38:32Z")

</div>

Hi, Is it possible to connect over ssh using a password retrieved from facts? The cloud provider I'm using doesn't (yet) allow creating new VMs with an SSH key already baked in (you can create templates but it isn't re…

---

## [Flexible user and group management](https://forum.ansible.com/t/flexible-user-and-group-management/13909)

<div class="topic-metadata">

**Author:** [@Nick\_G](https://forum.ansible.com/u/Nick_G)\
**Replies:** 0\
**Last updated:** [November 14, 2013, 7:29pm UTC](https://forum.ansible.com/t/flexible-user-and-group-management/13909 "2013-11-14T19:29:18Z")

</div>

We have a fleet of systems that are collected into groups that perform different roles and we need to manage user accounts across those systems. I would like to manage this as cleanly as possible. Here is what I would li…

---

## [Problem with\_items in combination with separate file](https://forum.ansible.com/t/problem-with-items-in-combination-with-separate-file/13904)

<div class="topic-metadata">

**Author:** [@oliver\_bril](https://forum.ansible.com/u/oliver_bril)\
**Replies:** 2\
**Last updated:** [November 14, 2013, 7:04pm UTC](https://forum.ansible.com/t/problem-with-items-in-combination-with-separate-file/13904 "2013-11-14T19:04:46Z")

</div>

Dear all, As a newbie to ansible I have a problem for which I can’t find a solution searching the web. I have the following playbook (main.yml) that is quite simple, it just adds users.

---

## [Vars from Script ?](https://forum.ansible.com/t/vars-from-script/13875)

<div class="topic-metadata">

**Author:** [@Andy\_L](https://forum.ansible.com/u/Andy_L)\
**Replies:** 3\
**Last updated:** [November 14, 2013, 5:12pm UTC](https://forum.ansible.com/t/vars-from-script/13875 "2013-11-14T17:12:23Z")

</div>

I’ve got a situation where many provisioning vars are stored in a 3rd party app. Is there a way to use the output of an external script to populate vars? Something like: vars\_file: my\_script or vars\_script: my\_scr…

---

## [conditional include of task file](https://forum.ansible.com/t/conditional-include-of-task-file/12748)

<div class="topic-metadata">

**Author:** [@Yves\_Dorfsman](https://forum.ansible.com/u/Yves_Dorfsman)\
**Replies:** 5\
**Last updated:** [November 14, 2013, 3:12am UTC](https://forum.ansible.com/t/conditional-include-of-task-file/12748 "2013-11-14T03:12:25Z")

</div>

Is there a way to include a task file base on a condition? Something like: - include: some\_task\_file when: do\_that\_work == True

---

## [Possible Documentation Error (or bug) Regarding --extra-vars](https://forum.ansible.com/t/possible-documentation-error-or-bug-regarding-extra-vars/13903)

<div class="topic-metadata">

**Author:** [@Rob\_Szewczyk](https://forum.ansible.com/u/Rob_Szewczyk)\
**Replies:** 0\
**Last updated:** [November 13, 2013, 11:05pm UTC](https://forum.ansible.com/t/possible-documentation-error-or-bug-regarding-extra-vars/13903 "2013-11-13T23:05:00Z")

</div>

Using Ansible 1.3.4 According to the docs, this is the precedence: \* -e variables always win \* then comes "most everything else" \* then comes variables defined in inventory \* then "role defaults", which are the most "d…

---

## [Modify line with lineinfile only if file exist](https://forum.ansible.com/t/modify-line-with-lineinfile-only-if-file-exist/13902)

<div class="topic-metadata">

**Author:** [@Yoann\_DAVID](https://forum.ansible.com/u/Yoann_DAVID)\
**Replies:** 0\
**Last updated:** [November 13, 2013, 9:38pm UTC](https://forum.ansible.com/t/modify-line-with-lineinfile-only-if-file-exist/13902 "2013-11-13T21:38:36Z")

</div>

Is there a way to make change in file but only if file exist ? For the moment the task stop with errors. Example : the following task name: “Paramétrages de suhosin pour php” lineinfile: dest=/etc/php5/apache2/con…

---

## [Backtrace ??](https://forum.ansible.com/t/backtrace/13900)

<div class="topic-metadata">

**Author:** [@Andy\_L](https://forum.ansible.com/u/Andy_L)\
**Replies:** 4\
**Last updated:** [November 13, 2013, 7:20pm UTC](https://forum.ansible.com/t/backtrace/13900 "2013-11-13T19:20:38Z")

</div>

I went to run a playbook and got this error message. ERROR: changed is not a legal parameter in an Ansible task or handler At this point, I have dozens of roles which are changing rapidly. It isn’t easy to find the sou…

---

## [Can't seem to change ansible\_ssh\_port value in-between plays](https://forum.ansible.com/t/cant-seem-to-change-ansible-ssh-port-value-in-between-plays/13901)

<div class="topic-metadata">

**Author:** [@Renaud\_Guerin](https://forum.ansible.com/u/Renaud_Guerin)\
**Replies:** 0\
**Last updated:** [November 13, 2013, 7:13pm UTC](https://forum.ansible.com/t/cant-seem-to-change-ansible-ssh-port-value-in-between-plays/13901 "2013-11-13T19:13:06Z")

</div>

Hi, I’ve got a playbook that looks a bit like this : hosts: not\_boostrapped # this group comes from an earlier group\_by accelerate: false sudo: true gather\_facts: false vars\_files: bootstrap\_vars.yml’ # this conta…

---

## [ansible\_fqdn should use platform.node() instead of socket.getfqdn()](https://forum.ansible.com/t/ansible-fqdn-should-use-platform-node-instead-of-socket-getfqdn/13894)

<div class="topic-metadata">

**Author:** [@Anand\_Buddhdev2](https://forum.ansible.com/u/Anand_Buddhdev2)\
**Replies:** 5\
**Last updated:** [November 13, 2013, 4:56pm UTC](https://forum.ansible.com/t/ansible-fqdn-should-use-platform-node-instead-of-socket-getfqdn/13894 "2013-11-13T16:56:59Z")

</div>

Hi Ansible devs, I’ve just discovered, to my surprise and annoyance, that the ansible\_fqdn fact is obtained by calling socket.getfqdn(). This means the socket module does a reverse DNS lookup on the host’s IP address (n…

---

## [Slides from AnsibleFest](https://forum.ansible.com/t/slides-from-ansiblefest/13899)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 0\
**Last updated:** [November 13, 2013, 2:42pm UTC](https://forum.ansible.com/t/slides-from-ansiblefest/13899 "2013-11-13T14:42:44Z")

</div>

Hi everyone, For those unable to attend AnsibleFest San Francisco this October, here are some of the slidedecks! Jesse Keating, Rackspace – ansible – turbo http://prezi.com/tyasc3-vj\_id/ansible-turbo/ Eric Johnson, G…

---

## [RabbitMQ](https://forum.ansible.com/t/rabbitmq/13898)

<div class="topic-metadata">

**Author:** [@Alex\_Rodenberg](https://forum.ansible.com/u/Alex_Rodenberg)\
**Replies:** 2\
**Last updated:** [November 13, 2013, 2:20pm UTC](https://forum.ansible.com/t/rabbitmq/13898 "2013-11-13T14:20:24Z")

</div>

I was gonna ask a question regarding installing and configuring RabbitMQ in ansible… but did a search first :stuck\_out\_tongue: There’s a RabbitMQ module ! I love this place…

---

## [ansible-pull and serialised deploys ?](https://forum.ansible.com/t/ansible-pull-and-serialised-deploys/13889)

<div class="topic-metadata">

**Author:** [@Nicolas\_G](https://forum.ansible.com/u/Nicolas_G)\
**Replies:** 8\
**Last updated:** [November 13, 2013, 1:29pm UTC](https://forum.ansible.com/t/ansible-pull-and-serialised-deploys/13889 "2013-11-13T13:29:18Z")

</div>

Hi All, I have configured ansible-pull successfully in a Amazon ec2 environment , the Web Tier is getting a new release every time we commit to the Master Branch on GitHub. The problem is that ansible-pull is configure…

---

## [group variables not changing](https://forum.ansible.com/t/group-variables-not-changing/13886)

<div class="topic-metadata">

**Author:** [@Xiaodong\_Xu](https://forum.ansible.com/u/Xiaodong_Xu)\
**Replies:** 5\
**Last updated:** [November 13, 2013, 2:37am UTC](https://forum.ansible.com/t/group-variables-not-changing/13886 "2013-11-13T02:37:40Z")

</div>

I use group variables encountered the following problems, can you help me? Thank you. % cat group\_vars/bj

---

## [Limiting hosts on included playbooks](https://forum.ansible.com/t/limiting-hosts-on-included-playbooks/13895)

<div class="topic-metadata">

**Author:** [@Nathan\_Howell](https://forum.ansible.com/u/Nathan_Howell)\
**Replies:** 4\
**Last updated:** [November 12, 2013, 11:35pm UTC](https://forum.ansible.com/t/limiting-hosts-on-included-playbooks/13895 "2013-11-12T23:35:10Z")

</div>

Hi all, I’m attempting to use a technique for limiting hosts in playbook includes described in an older thread ( https://groups.google.com/forum/#!msg/ansible-project/7Yb4zmZPg8c/b646JLYpJccJ ), and it’s mostly working,…

---

## [Problems adding ebs\_optimized...](https://forum.ansible.com/t/problems-adding-ebs-optimized/13893)

<div class="topic-metadata">

**Author:** [@Jon\_Nials](https://forum.ansible.com/u/Jon_Nials)\
**Replies:** 1\
**Last updated:** [November 12, 2013, 9:18pm UTC](https://forum.ansible.com/t/problems-adding-ebs-optimized/13893 "2013-11-12T21:18:30Z")

</div>

I’m trying to add ebs optimized support to the ec2 module. My diff file for my naive first pass against devel is below. When I try and test this, I consistent get the following error: failed: \[localhost\] =\> {“failed”: t…

---

## [Force a task even if --tags or --limit is provided](https://forum.ansible.com/t/force-a-task-even-if-tags-or-limit-is-provided/13882)

<div class="topic-metadata">

**Author:** [@Guillaume\_Subiron](https://forum.ansible.com/u/Guillaume_Subiron)\
**Replies:** 1\
**Last updated:** [November 12, 2013, 3:55pm UTC](https://forum.ansible.com/t/force-a-task-even-if-tags-or-limit-is-provided/13882 "2013-11-12T15:55:39Z")

</div>

Sometimes, we have a task which has to be executed everytime. For instance, I have a playbook saying : - hosts: all pre\_tasks: - action: site\_facts roles: - { role: common, when: some\_var\_provided\_by\_si…

---

## [using failed\_when in a with\_ loop](https://forum.ansible.com/t/using-failed-when-in-a-with-loop/13883)

<div class="topic-metadata">

**Author:** [@Serge\_van\_Ginderacht](https://forum.ansible.com/u/Serge_van_Ginderacht)\
**Replies:** 1\
**Last updated:** [November 12, 2013, 3:54pm UTC](https://forum.ansible.com/t/using-failed-when-in-a-with-loop/13883 "2013-11-12T15:54:07Z")

</div>

Dear List, I’m looking into implementing a kind of application health check after deployment. My applications are defined per cluster group with a complex var of following kind: apps: port: 8080 path: /app monitors…

---

## [Ansible and Oracle?](https://forum.ansible.com/t/ansible-and-oracle/13891)

<div class="topic-metadata">

**Author:** [@Ismail](https://forum.ansible.com/u/Ismail)\
**Replies:** 1\
**Last updated:** [November 12, 2013, 3:47pm UTC](https://forum.ansible.com/t/ansible-and-oracle/13891 "2013-11-12T15:47:17Z")

</div>

Hi, Is there anyone using ansible and oracle, currently creating a playbook to setup oracle, then have a bunch of scripts to setup the databases etc. Though it is quite a pain, nearly everything has to be done via shell…

---

## [mysql\_db import fails the second time / "ignore\_errors : yes" not working](https://forum.ansible.com/t/mysql-db-import-fails-the-second-time-ignore-errors-yes-not-working/13890)

<div class="topic-metadata">

**Author:** [@Nicolas\_G](https://forum.ansible.com/u/Nicolas_G)\
**Replies:** 4\
**Last updated:** [November 12, 2013, 2:39pm UTC](https://forum.ansible.com/t/mysql-db-import-fails-the-second-time-ignore-errors-yes-not-working/13890 "2013-11-12T14:39:11Z")

</div>

Hi All, I have a task that imports a db file into mysql but it fails the second time I re-run the playbook. In order to overcome the failure I need to login to the mysql server and drop the database in order to import …

---

## [Asserting the absence of a previous software version](https://forum.ansible.com/t/asserting-the-absence-of-a-previous-software-version/13880)

<div class="topic-metadata">

**Author:** [@Ben\_Hood](https://forum.ansible.com/u/Ben_Hood)\
**Replies:** 6\
**Last updated:** [November 12, 2013, 9:28am UTC](https://forum.ansible.com/t/asserting-the-absence-of-a-previous-software-version/13880 "2013-11-12T09:28:44Z")

</div>

Hi, If have the version number of a custom piece of software (configured by ansible) that is either part of the name of the executable or part of the it's path, is there any way to tell ansible to perform an upgrade …

---

## [Register variable numerical comparisons](https://forum.ansible.com/t/register-variable-numerical-comparisons/13887)

<div class="topic-metadata">

**Author:** [@Gonzalo\_Servat](https://forum.ansible.com/u/Gonzalo_Servat)\
**Replies:** 2\
**Last updated:** [November 12, 2013, 5:58am UTC](https://forum.ansible.com/t/register-variable-numerical-comparisons/13887 "2013-11-12T05:58:01Z")

</div>

Hi All, I’ve seen some examples of using the shell module with register, but I can’t find any that allow a numerical comparison to be made on stdout. For example: hosts: all gather\_facts: False tasks: name: Get …

---

## [Different yml tasks files  within a role](https://forum.ansible.com/t/different-yml-tasks-files-within-a-role/13825)

<div class="topic-metadata">

**Author:** [@Narcis\_Pillao\_Figuer](https://forum.ansible.com/u/Narcis_Pillao_Figuer)\
**Replies:** 7\
**Last updated:** [November 11, 2013, 11:37pm UTC](https://forum.ansible.com/t/different-yml-tasks-files-within-a-role/13825 "2013-11-11T23:37:57Z")

</div>

Hi, I’m not sure if some else has already asked it because it is quiet necessary but I did not find that thread at least. The point is have a mysql role, but I need to separate task in different files, currently I have…

---

## [cannot find lookup plugin named subelements for usage in with\_subelements](https://forum.ansible.com/t/cannot-find-lookup-plugin-named-subelements-for-usage-in-with-subelements/13885)

<div class="topic-metadata">

**Author:** [@Kashyap\_Bhatt](https://forum.ansible.com/u/Kashyap_Bhatt)\
**Replies:** 1\
**Last updated:** [November 11, 2013, 10:44pm UTC](https://forum.ansible.com/t/cannot-find-lookup-plugin-named-subelements-for-usage-in-with-subelements/13885 "2013-11-11T22:44:51Z")

</div>

I tried to test the loop feature listed on this page: http://www.ansibleworks.com/docs/playbooks\_loops.html#looping-over-subelements My playbook:

---

## [Variables](https://forum.ansible.com/t/variables/13884)

<div class="topic-metadata">

**Author:** [@Kashyap\_Bhatt](https://forum.ansible.com/u/Kashyap_Bhatt)\
**Replies:** 0\
**Last updated:** [November 11, 2013, 9:47pm UTC](https://forum.ansible.com/t/variables/13884 "2013-11-11T21:47:11Z")

</div>

Hey ho… I’m trying to get/parse some info out of the yaml returned by a module and want to know if there is any better documentation available than: https://github.com/ansible/ansible/blob/devel/docsite/latest/rst/pla…

---

## [not grocking python path for debugging local\_action](https://forum.ansible.com/t/not-grocking-python-path-for-debugging-local-action/13881)

<div class="topic-metadata">

**Author:** [@Brian\_Schott](https://forum.ansible.com/u/Brian_Schott)\
**Replies:** 0\
**Last updated:** [November 11, 2013, 2:08am UTC](https://forum.ansible.com/t/not-grocking-python-path-for-debugging-local-action/13881 "2013-11-11T02:08:11Z")

</div>

I read this blog post on using epdb to debug ansible tasks, however I’m having trouble with ansible not finding epdb in my python path. http://michaeldehaan.net/post/35403909347/tips-on-using-debuggers-with-ansible I’v…

---

## [Using Host Variables in Task](https://forum.ansible.com/t/using-host-variables-in-task/13867)

<div class="topic-metadata">

**Author:** [@amree](https://forum.ansible.com/u/amree)\
**Replies:** 1\
**Last updated:** [November 10, 2013, 9:37pm UTC](https://forum.ansible.com/t/using-host-variables-in-task/13867 "2013-11-10T21:37:25Z")

</div>

For e.g, I have these hosts in my inventory:

---

## [Scope of playbook variables](https://forum.ansible.com/t/scope-of-playbook-variables/13868)

<div class="topic-metadata">

**Author:** [@Gonzalo\_Servat](https://forum.ansible.com/u/Gonzalo_Servat)\
**Replies:** 3\
**Last updated:** [November 10, 2013, 9:36pm UTC](https://forum.ansible.com/t/scope-of-playbook-variables/13868 "2013-11-10T21:36:56Z")

</div>

Hi All, I’m trying to do the following: hosts: all vars: path: /some/path/here tasks: name: Create a group of all hosts by operating system action: group\_by key={{ansible\_distribution}}-{{facter\_operatingsyste…

---

## [Discrepancy between play recap and ansible output.](https://forum.ansible.com/t/discrepancy-between-play-recap-and-ansible-output/13870)

<div class="topic-metadata">

**Author:** [@Julien\_Tognazzi](https://forum.ansible.com/u/Julien_Tognazzi)\
**Replies:** 4\
**Last updated:** [November 10, 2013, 9:35pm UTC](https://forum.ansible.com/t/discrepancy-between-play-recap-and-ansible-output/13870 "2013-11-10T21:35:03Z")

</div>

Hi, I have a playbook which ends with: PLAY RECAP \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* 192.168.228.201 : ok=69 changed=1 unreachable=0 failed=0 192.168.228.223 : ok=67 changed=1 unreac…

---

## [facter variables not available.](https://forum.ansible.com/t/facter-variables-not-available/13856)

<div class="topic-metadata">

**Author:** [@Ed\_Greenberg](https://forum.ansible.com/u/Ed_Greenberg)\
**Replies:** 6\
**Last updated:** [November 10, 2013, 9:34pm UTC](https://forum.ansible.com/t/facter-variables-not-available/13856 "2013-11-10T21:34:28Z")

</div>

I ran ansible -u root --private-key=…/.ssh/htnadmin\_dsa -i ./invbyname -m setup foo.bar.com and got a whole bunch of variables to work with, but none of the facter facts from the client. Facter is installed on the c…

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

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