# Latest

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

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

**Page:** 1006

---

## [git from github](https://forum.ansible.com/t/git-from-github/13128)

<div class="topic-metadata">

**Author:** [@Eric\_Palmer1](https://forum.ansible.com/u/Eric_Palmer1)\
**Replies:** 10\
**Last updated:** [December 8, 2013, 3:55pm UTC](https://forum.ansible.com/t/git-from-github/13128 "2013-12-08T15:55:31Z")

</div>

I want to do a git archive from git hub private repo or a shallow clone But I don't see how to specify the username and password. If I use the ssh: protocol I can add the username. How do I specify the password. thanks …

---

## [Using tags + include](https://forum.ansible.com/t/using-tags-include/14049)

<div class="topic-metadata">

**Author:** [@BrianAI](https://forum.ansible.com/u/BrianAI)\
**Replies:** 4\
**Last updated:** [December 8, 2013, 2:16am UTC](https://forum.ansible.com/t/using-tags-include/14049 "2013-12-08T02:16:07Z")

</div>

I did some searching in the forums, and there seems to be a few posts regarding tags and includes, but none of them seem to explicitly answer what I’m envisioning in my head. As mentioned previously, in my efforts to si…

---

## [Use ansible playbook from Vagrant provisioning to prod server provisioning.](https://forum.ansible.com/t/use-ansible-playbook-from-vagrant-provisioning-to-prod-server-provisioning/14088)

<div class="topic-metadata">

**Author:** [@Marko\_Lisica](https://forum.ansible.com/u/Marko_Lisica)\
**Replies:** 2\
**Last updated:** [December 7, 2013, 12:32pm UTC](https://forum.ansible.com/t/use-ansible-playbook-from-vagrant-provisioning-to-prod-server-provisioning/14088 "2013-12-07T12:32:07Z")

</div>

Hi, my first mailing list ever :), I wanted to try Ansible as deployment tool and have some setup to use with Vagrant. Deployment of that devel VM is working, I wanted to use same playbook on barebone server by manually…

---

## [freebsd get\_dmi\_facts](https://forum.ansible.com/t/freebsd-get-dmi-facts/14092)

<div class="topic-metadata">

**Author:** [@Dimos\_Alevizos](https://forum.ansible.com/u/Dimos_Alevizos)\
**Replies:** 4\
**Last updated:** [December 6, 2013, 11:12pm UTC](https://forum.ansible.com/t/freebsd-get-dmi-facts/14092 "2013-12-06T23:12:11Z")

</div>

Hi, I recently added two FreeBSD systems to ansible and I noticed that the system’s serial number is not included in the setup output. Upon closer investigation it seems that none of the dmi facts are. Examining the co…

---

## [Blacklist specific hosts or groups in a role or playbook?](https://forum.ansible.com/t/blacklist-specific-hosts-or-groups-in-a-role-or-playbook/14090)

<div class="topic-metadata">

**Author:** [@Andrew\_Martin](https://forum.ansible.com/u/Andrew_Martin)\
**Replies:** 7\
**Last updated:** [December 6, 2013, 9:41pm UTC](https://forum.ansible.com/t/blacklist-specific-hosts-or-groups-in-a-role-or-playbook/14090 "2013-12-06T21:41:02Z")

</div>

Hello, Is it possible to prevent a playbook, role, or even specific task from being run on a certain list of hostnames (or group)? I have a generic playbook for configuring postfix for sending emails, however I don’t wa…

---

## [register into a hash table?](https://forum.ansible.com/t/register-into-a-hash-table/14094)

<div class="topic-metadata">

**Author:** [@Xu\_Chen](https://forum.ansible.com/u/Xu_Chen)\
**Replies:** 2\
**Last updated:** [December 6, 2013, 8:39pm UTC](https://forum.ansible.com/t/register-into-a-hash-table/14094 "2013-12-06T20:39:48Z")

</div>

I am interested in doing something like this: name: loop over items shell: cat /path/{{ item }} with\_items: t1 t2 t3 register: result\[{{ item }}\] Then I can do something like: name: use the result hashtable shel…

---

## [Ansible AWX - Unable to run any Jobs](https://forum.ansible.com/t/ansible-awx-unable-to-run-any-jobs/14091)

<div class="topic-metadata">

**Author:** [@Jasdeep\_Singh](https://forum.ansible.com/u/Jasdeep_Singh)\
**Replies:** 1\
**Last updated:** [December 6, 2013, 7:13pm UTC](https://forum.ansible.com/t/ansible-awx-unable-to-run-any-jobs/14091 "2013-12-06T19:13:14Z")

</div>

Hello, I have Ansible AWX installed on one of our servers and it has all the basic setup done as well: Organization, Users, Inventory, Projects and Credentials etc. I have added a very simple Job that just echo’s Hello …

---

## [Bug in npm module](https://forum.ansible.com/t/bug-in-npm-module/14082)

<div class="topic-metadata">

**Author:** [@Brian\_Zambrano](https://forum.ansible.com/u/Brian_Zambrano)\
**Replies:** 3\
**Last updated:** [December 6, 2013, 6:19pm UTC](https://forum.ansible.com/t/bug-in-npm-module/14082 "2013-12-06T18:19:43Z")

</div>

I found a bug in the npm module…is the preferred route to submit a pull request or contact the module author? BZ

---

## [State exists for group of items](https://forum.ansible.com/t/state-exists-for-group-of-items/14084)

<div class="topic-metadata">

**Author:** [@Patrick\_Heeney](https://forum.ansible.com/u/Patrick_Heeney)\
**Replies:** 2\
**Last updated:** [December 6, 2013, 5:18pm UTC](https://forum.ansible.com/t/state-exists-for-group-of-items/14084 "2013-12-06T17:18:13Z")

</div>

I keep running into this a lot but I am not sure how to handle it. Lets assume I have the following yaml: project\_paths: path: /srv/www/web/app1 name: app1 path: /srv/www/web/app2 name: app2 Then I want to check if…

---

## [do you use ansible for one-off provisioning](https://forum.ansible.com/t/do-you-use-ansible-for-one-off-provisioning/14072)

<div class="topic-metadata">

**Author:** [@Eric\_Palmer1](https://forum.ansible.com/u/Eric_Palmer1)\
**Replies:** 6\
**Last updated:** [December 6, 2013, 4:08pm UTC](https://forum.ansible.com/t/do-you-use-ansible-for-one-off-provisioning/14072 "2013-12-06T16:08:59Z")

</div>

Just trying to find out of others use ansible for my edge case. I get that most people orchestrate many servers with ansible. I use ansible to build one-off provisioning scripts. I am not a system admin type and more of…

---

## [Path to ansible.cfg?](https://forum.ansible.com/t/path-to-ansible-cfg/14054)

<div class="topic-metadata">

**Author:** [@Grzegorz\_Nosek](https://forum.ansible.com/u/Grzegorz_Nosek)\
**Replies:** 6\
**Last updated:** [December 6, 2013, 3:15pm UTC](https://forum.ansible.com/t/path-to-ansible-cfg/14054 "2013-12-06T15:15:37Z")

</div>

Hi, The docs at http://www.ansibleworks.com/docs/intro\_configuration.html say: The mechanism for doing this is the “ansible.cfg” file, which is looked for in the following locations: \* /etc/ansible/ansible.cfg \* ~/.a…

---

## [Ask sudo password only when needed](https://forum.ansible.com/t/ask-sudo-password-only-when-needed/14089)

<div class="topic-metadata">

**Author:** [@anatoly\_techtonik](https://forum.ansible.com/u/anatoly_techtonik)\
**Replies:** 2\
**Last updated:** [December 6, 2013, 3:10pm UTC](https://forum.ansible.com/t/ask-sudo-password-only-when-needed/14089 "2013-12-06T15:10:45Z")

</div>

Hi, Can Ansible check that current sudo is active? Right now it supports two modes: Never asking password Asking password every time On my system, after I enter sudo pass, systems stops asking for sudo password for …

---

## [Run tasks only when matches 2 tags](https://forum.ansible.com/t/run-tasks-only-when-matches-2-tags/14077)

<div class="topic-metadata">

**Author:** [@Brandon\_Hilkert](https://forum.ansible.com/u/Brandon_Hilkert)\
**Replies:** 4\
**Last updated:** [December 6, 2013, 1:21pm UTC](https://forum.ansible.com/t/run-tasks-only-when-matches-2-tags/14077 "2013-12-06T13:21:46Z")

</div>

I tried something like this in a task, but it didn’t work tags: “{{ ‘production’ && ‘web’ }}” I have a task that uploads some web assets to S3. This is needed for a “web” tag, but only for “production”. In staging, it’…

---

## [error: unexpected char u'\_' for template action](https://forum.ansible.com/t/error-unexpected-char-u-for-template-action/14087)

<div class="topic-metadata">

**Author:** [@rella.guo](https://forum.ansible.com/u/rella.guo)\
**Replies:** 3\
**Last updated:** [December 6, 2013, 1:19pm UTC](https://forum.ansible.com/t/error-unexpected-char-u-for-template-action/14087 "2013-12-06T13:19:07Z")

</div>

I have one template file like that: … ErrorDocument 403 /customerror/$403\_error\_page … For ansible 1.4, I change the template to: … ErrorDocument 403 /customerror/{{ 403\_error\_page }} … Then I got the error: fat…

---

## [group\_vars best practices](https://forum.ansible.com/t/group-vars-best-practices/14065)

<div class="topic-metadata">

**Author:** [@James\_Martin2](https://forum.ansible.com/u/James_Martin2)\
**Replies:** 16\
**Last updated:** [December 6, 2013, 12:56pm UTC](https://forum.ansible.com/t/group-vars-best-practices/14065 "2013-12-06T12:56:56Z")

</div>

Is it considered bad practice to have variables in group\_vars defined as such: ntp: server: server.foo.com setting: foo myapp: database: bar option: baz instead of : ntp\_server: server.foo.com ntp\_sett…

---

## [Role dependencies across multiple plays](https://forum.ansible.com/t/role-dependencies-across-multiple-plays/14073)

<div class="topic-metadata">

**Author:** [@Jurgen\_Haas2](https://forum.ansible.com/u/Jurgen_Haas2)\
**Replies:** 5\
**Last updated:** [December 6, 2013, 8:04am UTC](https://forum.ansible.com/t/role-dependencies-across-multiple-plays/14073 "2013-12-06T08:04:17Z")

</div>

According to the documentation, role dependencies would no longer run more than once, unless the setting allow\_duplicates: yes was used. I assume that is if a role is included more than once with the same play. In my sc…

---

## [Lookup plugins and async tasks](https://forum.ansible.com/t/lookup-plugins-and-async-tasks/14076)

<div class="topic-metadata">

**Author:** [@Jurgen\_Haas2](https://forum.ansible.com/u/Jurgen_Haas2)\
**Replies:** 2\
**Last updated:** [December 6, 2013, 7:32am UTC](https://forum.ansible.com/t/lookup-plugins-and-async-tasks/14076 "2013-12-06T07:32:25Z")

</div>

Some of my subversion checkout tasks take really long and I do not have to wait for them. So I thought async with no polling would do the job. Unfortunately, the definition of my subversion tasks is in a hash and so I wa…

---

## [Question about running a task based on facts](https://forum.ansible.com/t/question-about-running-a-task-based-on-facts/14081)

<div class="topic-metadata">

**Author:** [@Gonzalo\_Servat](https://forum.ansible.com/u/Gonzalo_Servat)\
**Replies:** 2\
**Last updated:** [December 5, 2013, 11:22pm UTC](https://forum.ansible.com/t/question-about-running-a-task-based-on-facts/14081 "2013-12-05T23:22:58Z")

</div>

Hi All, Say I have the following facts for a server (relevant parts): ansibletest | success \>\> { “ansible\_facts”: { “ansible\_em1”: { “module”: “bnx2”, }, “ansible\_em2”: { “module”: “tg2”, }, “ansible\_em3”: { “…

---

## [Include only if an item exists](https://forum.ansible.com/t/include-only-if-an-item-exists/14080)

<div class="topic-metadata">

**Author:** [@Patrick\_Heeney](https://forum.ansible.com/u/Patrick_Heeney)\
**Replies:** 5\
**Last updated:** [December 5, 2013, 11:15pm UTC](https://forum.ansible.com/t/include-only-if-an-item-exists/14080 "2013-12-05T23:15:39Z")

</div>

Right now I have yaml that look like: applications: name: app1 type: type1 name: app2 type: type2 name: app3 type: type1 With lots of roles that look like this: { role: ‘type1’ } { role: ‘type2’ } { rol…

---

## [playbook: run role only if any previous roles have changes](https://forum.ansible.com/t/playbook-run-role-only-if-any-previous-roles-have-changes/14066)

<div class="topic-metadata">

**Author:** [@senorsmile](https://forum.ansible.com/u/senorsmile)\
**Replies:** 8\
**Last updated:** [December 5, 2013, 10:23pm UTC](https://forum.ansible.com/t/playbook-run-role-only-if-any-previous-roles-have-changes/14066 "2013-12-05T22:23:46Z")

</div>

I’m trying to come up with a seemingly simple logic, yet can’t figure out how to do it in ansible: I want to run the last role only if any previous roles have changes.

---

## [roles and tags, one work the other one not](https://forum.ansible.com/t/roles-and-tags-one-work-the-other-one-not/14079)

<div class="topic-metadata">

**Author:** [@Yoann\_DAVID](https://forum.ansible.com/u/Yoann_DAVID)\
**Replies:** 0\
**Last updated:** [December 5, 2013, 9:46pm UTC](https://forum.ansible.com/t/roles-and-tags-one-work-the-other-one-not/14079 "2013-12-05T21:46:32Z")

</div>

I don’t understand I have 2 roles, this 2 roles are tagged, one work, this one : hosts: webservers sudo: yes roles: { role: webserver, tags: \[‘webserver’\]} And the other one not : hosts: dbservers sudo: yes r…

---

## [ANSIBLE\_LIBRARY vs library vs DEFAULT\_MODULE\_PATH](https://forum.ansible.com/t/ansible-library-vs-library-vs-default-module-path/14075)

<div class="topic-metadata">

**Author:** [@anatoly\_techtonik](https://forum.ansible.com/u/anatoly_techtonik)\
**Replies:** 1\
**Last updated:** [December 5, 2013, 9:33pm UTC](https://forum.ansible.com/t/ansible-library-vs-library-vs-default-module-path/14075 "2013-12-05T21:33:17Z")

</div>

All these names are not descriptive. I wonder how hard is to deprecate all of those and replace them with ANSIBLE\_SHARED\_FILES? Is that name makes more sense to everybody else?

---

## [Tags catch-all](https://forum.ansible.com/t/tags-catch-all/14078)

<div class="topic-metadata">

**Author:** [@Brandon\_Hilkert](https://forum.ansible.com/u/Brandon_Hilkert)\
**Replies:** 1\
**Last updated:** [December 5, 2013, 8:44pm UTC](https://forum.ansible.com/t/tags-catch-all/14078 "2013-12-05T20:44:49Z")

</div>

I have some roles that always need to be run, whereas, others depend on tags. I’m specifying tags for my playbook: ansible-playbook ansible/app.yml --tags=‘production,web’ My playbook: roles: { role: ruby193, ta…

---

## [Script to migrate old style vars to new style?](https://forum.ansible.com/t/script-to-migrate-old-style-vars-to-new-style/14074)

<div class="topic-metadata">

**Author:** [@Dylan\_Martin](https://forum.ansible.com/u/Dylan_Martin)\
**Replies:** 0\
**Last updated:** [December 5, 2013, 4:25pm UTC](https://forum.ansible.com/t/script-to-migrate-old-style-vars-to-new-style/14074 "2013-12-05T16:25:21Z")

</div>

Hi all, I might be taking a big bunch of playbooks that use old style vars and changing them to use new style vars. Is there a script or other automation that can make that easier? Any other advice? Thanks! -Dylan

---

## [Swiftacular - Ansible playbook to deploy multihost OpenStack Swift (Havana)](https://forum.ansible.com/t/swiftacular-ansible-playbook-to-deploy-multihost-openstack-swift-havana/14064)

<div class="topic-metadata">

**Author:** [@Curtis](https://forum.ansible.com/u/Curtis)\
**Replies:** 2\
**Last updated:** [December 5, 2013, 2:50pm UTC](https://forum.ansible.com/t/swiftacular-ansible-playbook-to-deploy-multihost-openstack-swift-havana/14064 "2013-12-05T14:50:10Z")

</div>

Hi, I just wanted to mention that I have been working on an Ansible playbook to deploy OpenStack Swift Object Storage (Havana version) on multiple virtual machines. The repo can be found here: https://github.com/curtis…

---

## [Does user or host of playbook can be set by variable in version 1.4 ?](https://forum.ansible.com/t/does-user-or-host-of-playbook-can-be-set-by-variable-in-version-1-4/14068)

<div class="topic-metadata">

**Author:** [@rella.guo](https://forum.ansible.com/u/rella.guo)\
**Replies:** 2\
**Last updated:** [December 5, 2013, 1:45pm UTC](https://forum.ansible.com/t/does-user-or-host-of-playbook-can-be-set-by-variable-in-version-1-4/14068 "2013-12-05T13:45:17Z")

</div>

Hello all, I am going to update my playbook to upgrade ansible 1.0 to 1.4. As we know, ansible 1.4 deprecates “when\_” and ${foo} and $foo. In my playbook, user and hosts also use $user and $hosts. In 1.0, it works wel…

---

## [website redo? Proper searching offer!](https://forum.ansible.com/t/website-redo-proper-searching-offer/14071)

<div class="topic-metadata">

**Author:** [@Eric\_Palmer1](https://forum.ansible.com/u/Eric_Palmer1)\
**Replies:** 0\
**Last updated:** [December 5, 2013, 12:05pm UTC](https://forum.ansible.com/t/website-redo-proper-searching-offer/14071 "2013-12-05T12:05:07Z")

</div>

What are the plans for restructuring the website? I find the google search not very worthwhile because so much information in on each page. I’m wondering if modules, examples, etc will be broken into smaller pages so th…

---

## [Using extra\_vars in playbook tasks](https://forum.ansible.com/t/using-extra-vars-in-playbook-tasks/14069)

<div class="topic-metadata">

**Author:** [@Gonzalo\_Servat](https://forum.ansible.com/u/Gonzalo_Servat)\
**Replies:** 2\
**Last updated:** [December 5, 2013, 6:44am UTC](https://forum.ansible.com/t/using-extra-vars-in-playbook-tasks/14069 "2013-12-05T06:44:01Z")

</div>

Hi, If I call ansible-playbook using: -e “foo=bar”, I know I can use {{ foo }} in the vars\_files of a playbook, but can the variable foo be used in tasks? I just tried to run: debug: msg=“{{ foo }}” … in the playboo…

---

## [cache\_valid\_time doesn't work](https://forum.ansible.com/t/cache-valid-time-doesnt-work/14063)

<div class="topic-metadata">

**Author:** [@SLS](https://forum.ansible.com/u/SLS)\
**Replies:** 8\
**Last updated:** [December 5, 2013, 2:05am UTC](https://forum.ansible.com/t/cache-valid-time-doesnt-work/14063 "2013-12-05T02:05:12Z")

</div>

Hi there, I can’t get the cache\_valid\_time parameter to take. Below is the relevant section of my playbook. name: ensure apache installed apt: pkg={{ item }} state=present update\_cache=yes cache\_valid\_time=3600 with…

---

## [is it possible to create tags from a variable?](https://forum.ansible.com/t/is-it-possible-to-create-tags-from-a-variable/14062)

<div class="topic-metadata">

**Author:** [@Xu\_Chen](https://forum.ansible.com/u/Xu_Chen)\
**Replies:** 1\
**Last updated:** [December 4, 2013, 11:46pm UTC](https://forum.ansible.com/t/is-it-possible-to-create-tags-from-a-variable/14062 "2013-12-04T23:46:31Z")

</div>

I have a list of tasks, but very similar to each other yet I want to tag them differently. I want to do something like this: name: set db password action: command ./set\_password {{ item }} tags: common-tag {{ item }} …

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

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