# Latest

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

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

**Page:** 962

---

## [Debugging Ansible with epdb](https://forum.ansible.com/t/debugging-ansible-with-epdb/15448)

<div class="topic-metadata">

**Author:** [@howachen](https://forum.ansible.com/u/howachen)\
**Replies:** 4\
**Last updated:** [June 14, 2014, 6:38pm UTC](https://forum.ansible.com/t/debugging-ansible-with-epdb/15448 "2014-06-14T18:38:59Z")

</div>

Hello, I continue my post at Redirecting to Google Groups I have tried to insert a break point in my module, e.g. import epdb … def some\_function(): x = some\_random\_object.something\_interesting() epdb.st() And I e…

---

## [Setting a sane default for DIST\_MODULE\_PATH](https://forum.ansible.com/t/setting-a-sane-default-for-dist-module-path/15457)

<div class="topic-metadata">

**Author:** [@Kurt\_Bendl](https://forum.ansible.com/u/Kurt_Bendl)\
**Replies:** 1\
**Last updated:** [June 13, 2014, 10:46pm UTC](https://forum.ansible.com/t/setting-a-sane-default-for-dist-module-path/15457 "2014-06-13T22:46:37Z")

</div>

Hi folks, When installing the latest ansible (1.6.3) as a normal “unprivileged” user in a virtualenv via pip, this error is generated: error: could not create ‘/usr/share/ansible’: Permission denied Comments on a ti…

---

## [task includes with facts](https://forum.ansible.com/t/task-includes-with-facts/15453)

<div class="topic-metadata">

**Author:** [@Oliver\_Heinz](https://forum.ansible.com/u/Oliver_Heinz)\
**Replies:** 12\
**Last updated:** [June 13, 2014, 9:21pm UTC](https://forum.ansible.com/t/task-includes-with-facts/15453 "2014-06-13T21:21:51Z")

</div>

Hi all, I cannot use facts for include variables. I think it’s because the yaml syntax checker fails (as they don’t exits at that time): My test play:

---

## [Can I use with\_dict for adding authorized\_key for users in a user dict?](https://forum.ansible.com/t/can-i-use-with-dict-for-adding-authorized-key-for-users-in-a-user-dict/15461)

<div class="topic-metadata">

**Author:** [@Zack\_Perry](https://forum.ansible.com/u/Zack_Perry)\
**Replies:** 2\
**Last updated:** [June 13, 2014, 9:19pm UTC](https://forum.ansible.com/t/can-i-use-with-dict-for-adding-authorized-key-for-users-in-a-user-dict/15461 "2014-06-13T21:19:52Z")

</div>

I have the following simple test playbook, t.yml

---

## [Conditional Include Question](https://forum.ansible.com/t/conditional-include-question/15443)

<div class="topic-metadata">

**Author:** [@Derrick\_Bryant](https://forum.ansible.com/u/Derrick_Bryant)\
**Replies:** 5\
**Last updated:** [June 13, 2014, 8:48pm UTC](https://forum.ansible.com/t/conditional-include-question/15443 "2014-06-13T20:48:13Z")

</div>

Hello, I’m running in to an issue with conditional includes. I’m trying to create an automatic rollback procedure for one of my playbooks which attempts to deploy new versions of our company software. I’m using includes…

---

## [Thinking of Using Ansible for Big Data Center Move - Problem: New To Ansible.](https://forum.ansible.com/t/thinking-of-using-ansible-for-big-data-center-move-problem-new-to-ansible/15456)

<div class="topic-metadata">

**Author:** [@Tiglath](https://forum.ansible.com/u/Tiglath)\
**Replies:** 4\
**Last updated:** [June 13, 2014, 8:07pm UTC](https://forum.ansible.com/t/thinking-of-using-ansible-for-big-data-center-move-problem-new-to-ansible/15456 "2014-06-13T20:07:09Z")

</div>

The job consists mainly of moving configuration files betwen exact topologies, at different locations, only that at the destination there will be new server IP addresses, but all else pretty much the same. That should no…

---

## [files alongside group\_vars, instead of in roles/role\_name/files](https://forum.ansible.com/t/files-alongside-group-vars-instead-of-in-roles-role-name-files/15450)

<div class="topic-metadata">

**Author:** [@jepper](https://forum.ansible.com/u/jepper)\
**Replies:** 5\
**Last updated:** [June 13, 2014, 6:03pm UTC](https://forum.ansible.com/t/files-alongside-group-vars-instead-of-in-roles-role-name-files/15450 "2014-06-13T18:03:38Z")

</div>

For all my environments there are entire files that lend themselves best to not be templated. Just one per environment will do. I use roles, and my directory structure is as follows ├── env\_iodtest \[directory\] │ ├── g…

---

## [synchronize module connects to local machine as root before calling rsync](https://forum.ansible.com/t/synchronize-module-connects-to-local-machine-as-root-before-calling-rsync/15213)

<div class="topic-metadata">

**Author:** [@Ernest0x](https://forum.ansible.com/u/Ernest0x)\
**Replies:** 10\
**Last updated:** [June 13, 2014, 6:01pm UTC](https://forum.ansible.com/t/synchronize-module-connects-to-local-machine-as-root-before-calling-rsync/15213 "2014-06-13T18:01:57Z")

</div>

I am trying to use the synchronize module and I notice that it first connects as root at the local machine before calling rsync. However, root user's ssh key is not set in the authorized keys of the remote host root u…

---

## [Executing subset of task with tags does not work](https://forum.ansible.com/t/executing-subset-of-task-with-tags-does-not-work/15438)

<div class="topic-metadata">

**Author:** [@Michael\_Hauck](https://forum.ansible.com/u/Michael_Hauck)\
**Replies:** 4\
**Last updated:** [June 13, 2014, 6:01pm UTC](https://forum.ansible.com/t/executing-subset-of-task-with-tags-does-not-work/15438 "2014-06-13T18:01:03Z")

</div>

I have a problem that I want to execute only tasks with certain tags from a playbook, but this does not work. My playbook looks as follows: playbook.yml hosts: appservers remote\_user: myuser roles: { role: tmp, tag…

---

## [Execute task in a playbook only once per day ?](https://forum.ansible.com/t/execute-task-in-a-playbook-only-once-per-day/15454)

<div class="topic-metadata">

**Author:** [@Azul](https://forum.ansible.com/u/Azul)\
**Replies:** 2\
**Last updated:** [June 13, 2014, 5:59pm UTC](https://forum.ansible.com/t/execute-task-in-a-playbook-only-once-per-day/15454 "2014-06-13T17:59:14Z")

</div>

Hi there, I saw an example sometime ago, either a thread,blog or IRC about executing a single task in a playbook only once every 24 hours. Can’t find that example anywhere, has anyone here has an example of how to ach…

---

## [unarchive single file. unarchive bug?](https://forum.ansible.com/t/unarchive-single-file-unarchive-bug/15459)

<div class="topic-metadata">

**Author:** [@Nick\_Evgeniev](https://forum.ansible.com/u/Nick_Evgeniev)\
**Replies:** 1\
**Last updated:** [June 13, 2014, 5:50pm UTC](https://forum.ansible.com/t/unarchive-single-file-unarchive-bug/15459 "2014-06-13T17:50:22Z")

</div>

Hi, any clue how to unarchive single file (i.e. file\_name.bz2 → file\_name) other than copy then call bunzip? btw there’re no problems with multifile archives… also: set\_fact: fact=value doesn’t work, while set\_fact…

---

## [Tidy module](https://forum.ansible.com/t/tidy-module/15455)

<div class="topic-metadata">

**Author:** [@Ruggero\_Marchei](https://forum.ansible.com/u/Ruggero_Marchei)\
**Replies:** 5\
**Last updated:** [June 13, 2014, 4:38pm UTC](https://forum.ansible.com/t/tidy-module/15455 "2014-06-13T16:38:05Z")

</div>

Hi guys, I’ve created a “tidy” module for Ansible (module useful to remove unwanted files based on specific criteria) and I would like to have an opinion about that. Any comment or suggestion is really appreciated! Yo…

---

## [Load vars directory variables at inventory or playbook level](https://forum.ansible.com/t/load-vars-directory-variables-at-inventory-or-playbook-level/15451)

<div class="topic-metadata">

**Author:** [@Xabier\_Larrakoetxea](https://forum.ansible.com/u/Xabier_Larrakoetxea)\
**Replies:** 1\
**Last updated:** [June 13, 2014, 7:11am UTC](https://forum.ansible.com/t/load-vars-directory-variables-at-inventory-or-playbook-level/15451 "2014-06-13T07:11:28Z")

</div>

Hi! I think that this is not possible at this moment (I don’t know if I’m wrong) I want to load a common variables directory (vars for example like in role levels) at playbook or inventory levels so I don’t have to set…

---

## [Load vars directory variables at inventory or playbook level](https://forum.ansible.com/t/load-vars-directory-variables-at-inventory-or-playbook-level/15452)

<div class="topic-metadata">

**Author:** [@Serge\_van\_Ginderacht](https://forum.ansible.com/u/Serge_van_Ginderacht)\
**Replies:** 1\
**Last updated:** [June 12, 2014, 1:22pm UTC](https://forum.ansible.com/t/load-vars-directory-variables-at-inventory-or-playbook-level/15452 "2014-06-12T13:22:57Z")

</div>

group\_vars/all can also be a directory (and so can be any group or host name) so you could do group\_vars/all/normalstuff.yml group\_vars/all/vaultencryptedstuff.yml

---

## [Recommended way to regex replace multiple lines in a configuration file](https://forum.ansible.com/t/recommended-way-to-regex-replace-multiple-lines-in-a-configuration-file/14264)

<div class="topic-metadata">

**Author:** [@eskhool](https://forum.ansible.com/u/eskhool)\
**Replies:** 5\
**Last updated:** [June 12, 2014, 12:43pm UTC](https://forum.ansible.com/t/recommended-way-to-regex-replace-multiple-lines-in-a-configuration-file/14264 "2014-06-12T12:43:40Z")

</div>

Hi, If we don’t have the option to use templates as the file may vary across system, is there a way to find and replace multiple lines based on a regex…something like an option in lineinfile such as ‘all’. What other me…

---

## [Remove task loop item from output](https://forum.ansible.com/t/remove-task-loop-item-from-output/15413)

<div class="topic-metadata">

**Author:** [@Thom\_Seddon](https://forum.ansible.com/u/Thom_Seddon)\
**Replies:** 5\
**Last updated:** [June 12, 2014, 10:32am UTC](https://forum.ansible.com/t/remove-task-loop-item-from-output/15413 "2014-06-12T10:32:33Z")

</div>

When you use a loop in an ansible task, e.g. with\_items or with\_dict, a dump of the item is included in the output. Sometimes these items contain secure infomation which it is undesirable to have output on screen, for ex…

---

## [using Ansible for 100% of rails development](https://forum.ansible.com/t/using-ansible-for-100-of-rails-development/15444)

<div class="topic-metadata">

**Author:** [@Weston\_Platter](https://forum.ansible.com/u/Weston_Platter)\
**Replies:** 2\
**Last updated:** [June 12, 2014, 2:12am UTC](https://forum.ansible.com/t/using-ansible-for-100-of-rails-development/15444 "2014-06-12T02:12:00Z")

</div>

I wanted to ask if anyone out there is using Ansible to provision servers and 100% deploy their Rails (rather than using Capistrano). I saw a couple of posts/projects related to this: https://mxey.net/deploying-rails…

---

## [environment variables ISSUE "{{ lookup('env','HOME') }}"](https://forum.ansible.com/t/environment-variables-issue-lookup-env-home/15439)

<div class="topic-metadata">

**Author:** [@Marcos\_Cano1](https://forum.ansible.com/u/Marcos_Cano1)\
**Replies:** 4\
**Last updated:** [June 11, 2014, 11:28pm UTC](https://forum.ansible.com/t/environment-variables-issue-lookup-env-home/15439 "2014-06-11T23:28:16Z")

</div>

when running “{{ lookup(‘env’,‘HOME’) }}” what does ansible exactly do… i’ve set a few variables in different files in /etc/environment /etc/profile /root/.bashrc /etc/bash.bashrc and ansible does not recognize an…

---

## [Tidbits of info, Docker/Ansible](https://forum.ansible.com/t/tidbits-of-info-docker-ansible/15447)

<div class="topic-metadata">

**Author:** [@Patrick\_Galbraith](https://forum.ansible.com/u/Patrick_Galbraith)\
**Replies:** 1\
**Last updated:** [June 11, 2014, 11:23pm UTC](https://forum.ansible.com/t/tidbits-of-info-docker-ansible/15447 "2014-06-11T23:23:24Z")

</div>

Hi all, Just a quick post I keep meaning to get out to let people know about my slides I presented at AnsibleFest where I discussed managing Docker with Ansible http://www.slideshare.net/PatrickGalbraith/docker-ansible…

---

## [Maintaining state of a set of machines which are not always up or connected](https://forum.ansible.com/t/maintaining-state-of-a-set-of-machines-which-are-not-always-up-or-connected/15437)

<div class="topic-metadata">

**Author:** [@eskhool](https://forum.ansible.com/u/eskhool)\
**Replies:** 4\
**Last updated:** [June 11, 2014, 10:41pm UTC](https://forum.ansible.com/t/maintaining-state-of-a-set-of-machines-which-are-not-always-up-or-connected/15437 "2014-06-11T22:41:33Z")

</div>

what is the recommendation or best practice to apply a playbook to a set of machines which may often not be running? Shouldn’t there be a registry of which playbooks have been applied where? Even if playbooks are perfect…

---

## [ERROR: A vault password must be specified to decrypt data](https://forum.ansible.com/t/error-a-vault-password-must-be-specified-to-decrypt-data/15018)

<div class="topic-metadata">

**Author:** [@Edgars](https://forum.ansible.com/u/Edgars)\
**Replies:** 7\
**Last updated:** [June 11, 2014, 10:35pm UTC](https://forum.ansible.com/t/error-a-vault-password-must-be-specified-to-decrypt-data/15018 "2014-06-11T22:35:19Z")

</div>

Hi I want to use Vault to load password as variable, so I just do: \` vars\_files: vault/passwords.yml \` where passwords.yml is just: password: XXXX Then: command: ... --password={{ password }} ... and here is w…

---

## [Ansible and complex hierarchy](https://forum.ansible.com/t/ansible-and-complex-hierarchy/15442)

<div class="topic-metadata">

**Author:** [@andreub](https://forum.ansible.com/u/andreub)\
**Replies:** 2\
**Last updated:** [June 11, 2014, 8:16pm UTC](https://forum.ansible.com/t/ansible-and-complex-hierarchy/15442 "2014-06-11T20:16:43Z")

</div>

Hello, I’m facing a problem and I’m not sure if it’s a bug or a feature :slight\_smile: I have a role that includes other role (using meta dependency), when including that role more than once in my playbook, it runs onl…

---

## [Ansible-pull failing due to Vault issues (not using vault!)](https://forum.ansible.com/t/ansible-pull-failing-due-to-vault-issues-not-using-vault/15441)

<div class="topic-metadata">

**Author:** [@Ben\_Sebborn](https://forum.ansible.com/u/Ben_Sebborn)\
**Replies:** 1\
**Last updated:** [June 11, 2014, 7:57pm UTC](https://forum.ansible.com/t/ansible-pull-failing-due-to-vault-issues-not-using-vault/15441 "2014-06-11T19:57:07Z")

</div>

We have been successfully using ansible-pull at boot time to run through a playbook to ensure our webservers are up-to-date when they autoscale. Since yesterday (with no changes to the playbook) we’re getting the follow…

---

## [Dictionary from Register as Module Arg](https://forum.ansible.com/t/dictionary-from-register-as-module-arg/15440)

<div class="topic-metadata">

**Author:** [@Matt\_O](https://forum.ansible.com/u/Matt_O)\
**Replies:** 1\
**Last updated:** [June 11, 2014, 7:54pm UTC](https://forum.ansible.com/t/dictionary-from-register-as-module-arg/15440 "2014-06-11T19:54:08Z")

</div>

I have a play that uses a module that I created. I’m not having trouble with this play or this module - it’s with feeding this module’s output into another module. \`

---

## [Dynamic Inventory does not work: it gets interpreted as .ini](https://forum.ansible.com/t/dynamic-inventory-does-not-work-it-gets-interpreted-as-ini/15446)

<div class="topic-metadata">

**Author:** [@Paul\_Durivage](https://forum.ansible.com/u/Paul_Durivage)\
**Replies:** 0\
**Last updated:** [June 11, 2014, 7:15pm UTC](https://forum.ansible.com/t/dynamic-inventory-does-not-work-it-gets-interpreted-as-ini/15446 "2014-06-11T19:15:09Z")

</div>

chmod +x host.py Ansible uses the executable flag to determine whether or not a file is a .ini or script.

---

## [python Dynamic Inventory won't work: it is interpreted as a .ini file](https://forum.ansible.com/t/python-dynamic-inventory-wont-work-it-is-interpreted-as-a-ini-file/15445)

<div class="topic-metadata">

**Author:** [@Pierre\_Masci](https://forum.ansible.com/u/Pierre_Masci)\
**Replies:** 4\
**Last updated:** [June 11, 2014, 7:01pm UTC](https://forum.ansible.com/t/python-dynamic-inventory-wont-work-it-is-interpreted-as-a-ini-file/15445 "2014-06-11T19:01:27Z")

</div>

Hi, I’m trying the simplest possible example of a Dynamic Inventory but it won’t work: my hosts.py file gets interpreted as a .ini file: $ ansible-playbook -i hosts.py play.yml ERROR: Invalid ini entry: sys - need mor…

---

## [Ubuntu 14.04 and Default Variable not Set](https://forum.ansible.com/t/ubuntu-14-04-and-default-variable-not-set/15430)

<div class="topic-metadata">

**Author:** [@Ray\_Hooker](https://forum.ansible.com/u/Ray_Hooker)\
**Replies:** 1\
**Last updated:** [June 11, 2014, 6:58pm UTC](https://forum.ansible.com/t/ubuntu-14-04-and-default-variable-not-set/15430 "2014-06-11T18:58:43Z")

</div>

I am trying to debug a problem with installing OpenEdX on Ubuntu 14.04. The same set of playbooks work find on Ubuntu 12.04 BTW. A task was failing apparently because the environment variables were not set. The task is u…

---

## [How to debug/log message when writing Ansible Module?](https://forum.ansible.com/t/how-to-debug-log-message-when-writing-ansible-module/15429)

<div class="topic-metadata">

**Author:** [@howachen](https://forum.ansible.com/u/howachen)\
**Replies:** 4\
**Last updated:** [June 11, 2014, 6:56pm UTC](https://forum.ansible.com/t/how-to-debug-log-message-when-writing-ansible-module/15429 "2014-06-11T18:56:45Z")

</div>

According to this: http://docs.ansible.com/developing\_modules.html, it said… You should also never do this in a module: print "some status message" So, how to debug or log message during the development of Ansible mod…

---

## [Git module: don't pull when the clone is already up-to-date.](https://forum.ansible.com/t/git-module-dont-pull-when-the-clone-is-already-up-to-date/15421)

<div class="topic-metadata">

**Author:** [@parnigot](https://forum.ansible.com/u/parnigot)\
**Replies:** 5\
**Last updated:** [June 10, 2014, 8:00pm UTC](https://forum.ansible.com/t/git-module-dont-pull-when-the-clone-is-already-up-to-date/15421 "2014-06-10T20:00:45Z")

</div>

Hi all, I’m using ansible to manage a couple of django apps. In particular I’m using the git module to get a clone of these apps in the production machines. If you don’t know django, the configuration of the entire web…

---

## [shlex.split and spaces in the value of a key=value pair](https://forum.ansible.com/t/shlex-split-and-spaces-in-the-value-of-a-key-value-pair/15436)

<div class="topic-metadata">

**Author:** [@Stanley\_Kamithi](https://forum.ansible.com/u/Stanley_Kamithi)\
**Replies:** 3\
**Last updated:** [June 10, 2014, 4:17pm UTC](https://forum.ansible.com/t/shlex-split-and-spaces-in-the-value-of-a-key-value-pair/15436 "2014-06-10T16:17:13Z")

</div>

Hello, Building new modules. Having problem when creating a key=value pair where “value” is an array. I get the following error with the below config… failed: \[sw3\] =\> (item={‘value’: {‘ipv4’: \[‘10.100.1.1/24’, ‘10.20…

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

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