# Latest

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

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

**Page:** 1043

---

## [problem with 'ansible all -m service -a "name=apache2 state=restarted" '](https://forum.ansible.com/t/problem-with-ansible-all-m-service-a-name-apache2-state-restarted/12906)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 0\
**Last updated:** [June 4, 2013, 8:28pm UTC](https://forum.ansible.com/t/problem-with-ansible-all-m-service-a-name-apache2-state-restarted/12906 "2013-06-04T20:28:06Z")

</div>

Sounds like you need to either login as root or use the sudo options.

---

## [sudo + playbooks](https://forum.ansible.com/t/sudo-playbooks/12905)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 0\
**Last updated:** [June 4, 2013, 8:13pm UTC](https://forum.ansible.com/t/sudo-playbooks/12905 "2013-06-04T20:13:57Z")

</div>

It sounds like you have a system that is requiring passworded sudo to me. I don’t understand your second question…

---

## [roles and with\_fileglobs](https://forum.ansible.com/t/roles-and-with-fileglobs/12901)

<div class="topic-metadata">

**Author:** [@Hudec\_Peter](https://forum.ansible.com/u/Hudec_Peter)\
**Replies:** 5\
**Last updated:** [June 4, 2013, 1:01pm UTC](https://forum.ansible.com/t/roles-and-with-fileglobs/12901 "2013-06-04T13:01:58Z")

</div>

Hi all, As I found, the lookup plugin with\_fileglobe do not support roles. I reviewed the plugin but I have a problem how to implement this feature. The file globe is lookup plugin a could be used with copy or templat…

---

## [trying to make a java install idempotent](https://forum.ansible.com/t/trying-to-make-a-java-install-idempotent/12900)

<div class="topic-metadata">

**Author:** [@Nicolas\_G](https://forum.ansible.com/u/Nicolas_G)\
**Replies:** 7\
**Last updated:** [June 3, 2013, 9:00pm UTC](https://forum.ansible.com/t/trying-to-make-a-java-install-idempotent/12900 "2013-06-03T21:00:14Z")

</div>

Hi lis, I’m installing a specific version of java binar that is been executed every time I run the playbook, I’m trying to include a check to repeat the installation steps only if java is not installed : playbook : n…

---

## [AttributeError no virtualization\_type](https://forum.ansible.com/t/attributeerror-no-virtualization-type/12895)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 6\
**Last updated:** [June 3, 2013, 2:04pm UTC](https://forum.ansible.com/t/attributeerror-no-virtualization-type/12895 "2013-06-03T14:04:06Z")

</div>

What is the version of the boto package you are running?

---

## [Using all:vars in script inventories](https://forum.ansible.com/t/using-all-vars-in-script-inventories/12897)

<div class="topic-metadata">

**Author:** [@Darryl\_Stoflet](https://forum.ansible.com/u/Darryl_Stoflet)\
**Replies:** 3\
**Last updated:** [June 2, 2013, 9:10pm UTC](https://forum.ansible.com/t/using-all-vars-in-script-inventories/12897 "2013-06-02T21:10:38Z")

</div>

I have a use case for setting some global vars via the inventory (rather than group\_vars/all for instance). This works as expected when using an inventory file (\[all:vars\]). However when using an inventory script these g…

---

## [reminder - 1.2 Feature Freeze is tomorrow / Help test the 1.2 release / release date is June 10th.](https://forum.ansible.com/t/reminder-1-2-feature-freeze-is-tomorrow-help-test-the-1-2-release-release-date-is-june-10th/12896)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 0\
**Last updated:** [June 2, 2013, 1:31pm UTC](https://forum.ansible.com/t/reminder-1-2-feature-freeze-is-tomorrow-help-test-the-1-2-release-release-date-is-june-10th/12896 "2013-06-02T13:31:51Z")

</div>

Hi everyone, As a reminder, we are ready for a 1.2 release on 6/10! We always reserve the last week of the release for bugfixes only, and encourage everyone to help test the development branch a bit extra. This means …

---

## [apt\_repository variable substitution](https://forum.ansible.com/t/apt-repository-variable-substitution/12894)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 0\
**Last updated:** [June 2, 2013, 12:30pm UTC](https://forum.ansible.com/t/apt-repository-variable-substitution/12894 "2013-06-02T12:30:29Z")

</div>

You may be using a version of Ansible prior to 1.2, the development release. If you would like to read the 1.1 docs, see here: http://ansible.cc/docs/released/1.1/ Ansible 1.2 is releasing on 6/10 and contains numerous…

---

## [(Developers) An update on Ansible Commander progress](https://forum.ansible.com/t/developers-an-update-on-ansible-commander-progress/12571)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 6\
**Last updated:** [June 2, 2013, 12:28pm UTC](https://forum.ansible.com/t/developers-an-update-on-ansible-commander-progress/12571 "2013-06-02T12:28:38Z")

</div>

HI everyone, I wanted to share a quick update on Ansible Commander - https://github.com/ansible/ansible-commander/. For those not familiar, Ansible Commander's goal is to be an optional REST API and GUI on top of A…

---

## [external inventory problem](https://forum.ansible.com/t/external-inventory-problem/12890)

<div class="topic-metadata">

**Author:** [@Dimos\_Alevizos](https://forum.ansible.com/u/Dimos_Alevizos)\
**Replies:** 2\
**Last updated:** [June 1, 2013, 6:23pm UTC](https://forum.ansible.com/t/external-inventory-problem/12890 "2013-06-01T18:23:53Z")

</div>

Hi I’m experimenting with an external inventory script and I’ve run into some troubles. root@vader:ansible $ ansible -i inventory.php -m ping all Traceback (most recent call last): File “/usr/bin/ansible”, line 156, i…

---

## [vars in tasks](https://forum.ansible.com/t/vars-in-tasks/12885)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 14\
**Last updated:** [May 31, 2013, 4:22pm UTC](https://forum.ansible.com/t/vars-in-tasks/12885 "2013-05-31T16:22:15Z")

</div>

This is definitely what parameterized roles (or even task includes) are intended for. And no, you can’t pass in variables to templates like this. You can use the ‘set\_fact’ module however to change the values of variab…

---

## [prompting for password from the playbook](https://forum.ansible.com/t/prompting-for-password-from-the-playbook/12883)

<div class="topic-metadata">

**Author:** [@Yves\_Dorfsman](https://forum.ansible.com/u/Yves_Dorfsman)\
**Replies:** 9\
**Last updated:** [May 30, 2013, 10:35pm UTC](https://forum.ansible.com/t/prompting-for-password-from-the-playbook/12883 "2013-05-30T22:35:16Z")

</div>

I have a playbook with different plays. Some plays are run with a specific user, for which we cannot set keys, and also does sudo to another user. The other plays, use a regular user, for which there are ssh keys. My is…

---

## [User command onöy if user does not yet exist](https://forum.ansible.com/t/user-command-onoy-if-user-does-not-yet-exist/12887)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 0\
**Last updated:** [May 30, 2013, 9:15pm UTC](https://forum.ansible.com/t/user-command-onoy-if-user-does-not-yet-exist/12887 "2013-05-30T21:15:38Z")

</div>

Hmm, this currently doesn’t exist and would be awkward seeing your with\_items invocation. It seems like you want something like a create\_with\_password option that works like password but only sets it the first time.

---

## [Erroring on undefined variables](https://forum.ansible.com/t/erroring-on-undefined-variables/12886)

<div class="topic-metadata">

**Author:** [@Lorin\_Hochstein1](https://forum.ansible.com/u/Lorin_Hochstein1)\
**Replies:** 1\
**Last updated:** [May 30, 2013, 7:02pm UTC](https://forum.ansible.com/t/erroring-on-undefined-variables/12886 "2013-05-30T19:02:05Z")

</div>

All: I just submitted a pull request with a new option fails a task if its arguments contain undefined variables. https://github.com/ansible/ansible/pull/3066 If there’s interest in this type of functionality, in the …

---

## [failed to parse: LDAP Config Summary](https://forum.ansible.com/t/failed-to-parse-ldap-config-summary/12880)

<div class="topic-metadata">

**Author:** [@Dmitry\_Horbach](https://forum.ansible.com/u/Dmitry_Horbach)\
**Replies:** 6\
**Last updated:** [May 30, 2013, 8:29am UTC](https://forum.ansible.com/t/failed-to-parse-ldap-config-summary/12880 "2013-05-30T08:29:51Z")

</div>

Hi, Our current sudo configuration is using LDAP and has sudoers\_debug 2 which gives a lot of debug output (we can’t change it). This is possibly breaks ansible play: fatal: =\> failed to parse: LDAP Config Summary ur…

---

## [Have content you would like to share? Updates to resources page welcome!](https://forum.ansible.com/t/have-content-you-would-like-to-share-updates-to-resources-page-welcome/12884)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 0\
**Last updated:** [May 30, 2013, 2:25am UTC](https://forum.ansible.com/t/have-content-you-would-like-to-share-updates-to-resources-page-welcome/12884 "2013-05-30T02:25:12Z")

</div>

We have a list of playbooks on the doc site that has not been super well maintained, and I know people have been doing lots of GREAT things lately and would like to mention them: http://ansible.cc/docs/contrib.html If …

---

## [Question about stack trace](https://forum.ansible.com/t/question-about-stack-trace/12879)

<div class="topic-metadata">

**Author:** [@Kavin\_Kankeshwar](https://forum.ansible.com/u/Kavin_Kankeshwar)\
**Replies:** 4\
**Last updated:** [May 29, 2013, 7:06pm UTC](https://forum.ansible.com/t/question-about-stack-trace/12879 "2013-05-29T19:06:57Z")

</div>

Any idea what these errors would mean ? The remote machine is a centos 6. Line is: name: Set Environment Variables in bashrc lineinfile: dest=.bashrc regexp=“^export TOOLSREPO=~/kk-tools” line=“export TOOLSREPO=~/kk…

---

## [Ansible setup facts - system vendor on RHEL5](https://forum.ansible.com/t/ansible-setup-facts-system-vendor-on-rhel5/12550)

<div class="topic-metadata">

**Author:** [@Edgars](https://forum.ansible.com/u/Edgars)\
**Replies:** 16\
**Last updated:** [May 29, 2013, 12:30pm UTC](https://forum.ansible.com/t/ansible-setup-facts-system-vendor-on-rhel5/12550 "2013-05-29T12:30:33Z")

</div>

Hi As discussed in IRC, it seems that Ansible cannot determine system vendor on RHEL5 based OS. Reason is simple: on RHEL5 there is no /sys/devices/virtual/dmi/id/ directory. Since I need that fact, I did small hack in …

---

## [Ansible 1.2 - changed behavior of with\_items?](https://forum.ansible.com/t/ansible-1-2-changed-behavior-of-with-items/12882)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 0\
**Last updated:** [May 29, 2013, 12:02pm UTC](https://forum.ansible.com/t/ansible-1-2-changed-behavior-of-with-items/12882 "2013-05-29T12:02:31Z")

</div>

Hmm. Well, with\_items should take a list and not a hash table. I’m not sure why it used to work, in that case, because the value of item in your example wouldn’t be correct. (I am thinking it might not have worked, actu…

---

## [understanding local connection](https://forum.ansible.com/t/understanding-local-connection/12881)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 0\
**Last updated:** [May 29, 2013, 11:35am UTC](https://forum.ansible.com/t/understanding-local-connection/12881 "2013-05-29T11:35:52Z")

</div>

If you want to do something on behalf of other hosts, you wouldn’t use a local connection. Local connection is used mainly with “hosts: localhost” or just for testing. Rather, you’d use “local\_action: ” which is a short…

---

## [using group\_vars with an inventory plugin?](https://forum.ansible.com/t/using-group-vars-with-an-inventory-plugin/11870)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 7\
**Last updated:** [May 29, 2013, 6:05am UTC](https://forum.ansible.com/t/using-group-vars-with-an-inventory-plugin/11870 "2013-05-29T06:05:14Z")

</div>

Just put your group\_vars directory in the same directory as the inventory script. ./ec2.py ./group\_vars/\<name\_of\_group\> ./group\_vars/\<name\_of\_other\_group\> (Do not add a ".yml" extension on the name of the group)

---

## [host in multiple groups, no control over which group\_var get's loaded / overwritten.](https://forum.ansible.com/t/host-in-multiple-groups-no-control-over-which-group-var-gets-loaded-overwritten/12877)

<div class="topic-metadata">

**Author:** [@Mark\_Maas](https://forum.ansible.com/u/Mark_Maas)\
**Replies:** 4\
**Last updated:** [May 28, 2013, 8:23pm UTC](https://forum.ansible.com/t/host-in-multiple-groups-no-control-over-which-group-var-gets-loaded-overwritten/12877 "2013-05-28T20:23:43Z")

</div>

Dear List, We have a program running under different acounts on one server. (Sometimes two server share the load of 1 environment) Each program/account combination has it’s own settings, IP ports, etc. This part is al…

---

## [Printing register variable](https://forum.ansible.com/t/printing-register-variable/12848)

<div class="topic-metadata">

**Author:** [@benno\_joy](https://forum.ansible.com/u/benno_joy)\
**Replies:** 5\
**Last updated:** [May 28, 2013, 8:16pm UTC](https://forum.ansible.com/t/printing-register-variable/12848 "2013-05-28T20:16:29Z")

</div>

try putting -vvv to ansible-playbook command line Benno Joy

---

## [roles and first\_available\_file + relative path](https://forum.ansible.com/t/roles-and-first-available-file-relative-path/12878)

<div class="topic-metadata">

**Author:** [@Hudec\_Peter](https://forum.ansible.com/u/Hudec_Peter)\
**Replies:** 3\
**Last updated:** [May 28, 2013, 6:11pm UTC](https://forum.ansible.com/t/roles-and-first-available-file-relative-path/12878 "2013-05-28T18:11:53Z")

</div>

Hi, I started to refactor my play books to roles as described in http://ansible.cc/docs/playbooks.html#roles. If the task is in the role, the templates should be in the templates directory. This is working, for examp…

---

## [when: syntax](https://forum.ansible.com/t/when-syntax/12874)

<div class="topic-metadata">

**Author:** [@Mark\_Maas](https://forum.ansible.com/u/Mark_Maas)\
**Replies:** 3\
**Last updated:** [May 28, 2013, 5:42am UTC](https://forum.ansible.com/t/when-syntax/12874 "2013-05-28T05:42:04Z")

</div>

Dear List, We are trying this: ###################################### hosts: $omgeving sudo: true vars\_files: ~/playbooks/vars/global.yml \[ “$vars/${ansible\_distribution}.yml”, “$vars/defaults.yml” \] tasks: i…

---

## [vars in palybook with roles](https://forum.ansible.com/t/vars-in-palybook-with-roles/12862)

<div class="topic-metadata">

**Author:** [@Nicolas\_G](https://forum.ansible.com/u/Nicolas_G)\
**Replies:** 8\
**Last updated:** [May 27, 2013, 9:46pm UTC](https://forum.ansible.com/t/vars-in-palybook-with-roles/12862 "2013-05-27T21:46:38Z")

</div>

Hi All, I have the bellow playbook.yml file but having some problems to use the vars defined under the vars\_files section. If I comment out the vars the playbook runs but then the values are unknown to the roles tasks… …

---

## [Ansible facts inside templates](https://forum.ansible.com/t/ansible-facts-inside-templates/12876)

<div class="topic-metadata">

**Author:** [@Dmitry\_Horbach](https://forum.ansible.com/u/Dmitry_Horbach)\
**Replies:** 3\
**Last updated:** [May 27, 2013, 9:06pm UTC](https://forum.ansible.com/t/ansible-facts-inside-templates/12876 "2013-05-27T21:06:51Z")

</div>

Hi, Could someone please point me to the proper way of using ansible facts inside templates? I’m at latest devel and have the following content inside template: {{ inventory\_hostname }} {{ ansible\_hostname }} With t…

---

## [missing options in docstring of cloud/keystone\_user breaks 'make deb'](https://forum.ansible.com/t/missing-options-in-docstring-of-cloud-keystone-user-breaks-make-deb/12875)

<div class="topic-metadata">

**Author:** [@Serge\_van\_Ginderacht](https://forum.ansible.com/u/Serge_van_Ginderacht)\
**Replies:** 3\
**Last updated:** [May 27, 2013, 3:14pm UTC](https://forum.ansible.com/t/missing-options-in-docstring-of-cloud-keystone-user-breaks-make-deb/12875 "2013-05-27T15:14:57Z")

</div>

If you’re trying to build a package from the latest git devel (at least a deb package), there’s a bug that breaks the build. The hacking/module\_formatter.py stacktraces on missing dict entries, because the ‘options’ are…

---

## [how to reference the actual user of a play in a template](https://forum.ansible.com/t/how-to-reference-the-actual-user-of-a-play-in-a-template/12864)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 4\
**Last updated:** [May 26, 2013, 4:36pm UTC](https://forum.ansible.com/t/how-to-reference-the-actual-user-of-a-play-in-a-template/12864 "2013-05-26T16:36:01Z")

</div>

Not currently. I’m open to including “ansible\_ssh\_user” back into the “inject” data for 1.2 though. Pull requests would be welcome, or you can file a ticket and I’ll get to it. One line change, I’m pretty sure. (see …

---

## [+1 and testing reminder](https://forum.ansible.com/t/1-and-testing-reminder/12872)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 1\
**Last updated:** [May 25, 2013, 5:35am UTC](https://forum.ansible.com/t/1-and-testing-reminder/12872 "2013-05-25T05:35:15Z")

</div>

We are rapidly approaching getting quite a ton of new features a day. If people want to help out with testing and +1 things they have tested and like, that would be very useful. I mentioned this a while back but it hel…

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

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