# Latest

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

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

**Page:** 966

---

## [Recent ansibles have issues with unicode?](https://forum.ansible.com/t/recent-ansibles-have-issues-with-unicode/15348)

<div class="topic-metadata">

**Author:** [@Scott\_Anderson](https://forum.ansible.com/u/Scott_Anderson)\
**Replies:** 2\
**Last updated:** [May 28, 2014, 11:52am UTC](https://forum.ansible.com/t/recent-ansibles-have-issues-with-unicode/15348 "2014-05-28T11:52:04Z")

</div>

I was running an earlier 1.7 and was having issues with Ansibles.postgresql and the UnicodeDecodeError. I updated to the most recent devel and now I’m getting it on gathering facts: PLAY \[jenkins\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [The Zen of Ansible?](https://forum.ansible.com/t/the-zen-of-ansible/15344)

<div class="topic-metadata">

**Author:** [@Adam\_Morris](https://forum.ansible.com/u/Adam_Morris)\
**Replies:** 1\
**Last updated:** [May 28, 2014, 11:49am UTC](https://forum.ansible.com/t/the-zen-of-ansible/15344 "2014-05-28T11:49:12Z")

</div>

I have heard rumours that there is a mystic who enlightens his disciples with the Zen of Ansible… I have even seen some bits and pieces of his teachings along the way, but was wondering if there was a more definitive so…

---

## [About keeping the environment untouched when calling the service module on Linux (PR #7552)](https://forum.ansible.com/t/about-keeping-the-environment-untouched-when-calling-the-service-module-on-linux-pr-7552/15342)

<div class="topic-metadata">

**Author:** [@Ernest0x](https://forum.ansible.com/u/Ernest0x)\
**Replies:** 2\
**Last updated:** [May 28, 2014, 8:40am UTC](https://forum.ansible.com/t/about-keeping-the-environment-untouched-when-calling-the-service-module-on-linux-pr-7552/15342 "2014-05-28T08:40:44Z")

</div>

Hello, I am responding with reference to github PR #7552 on this list as requested by Michael Dehaan. I wrote this small patch in order to allow passing environmental variables with the ‘environment:’ key in tasks call…

---

## [ansible-pull and group\_vars](https://forum.ansible.com/t/ansible-pull-and-group-vars/14989)

<div class="topic-metadata">

**Author:** [@Fred\_Badel](https://forum.ansible.com/u/Fred_Badel)\
**Replies:** 7\
**Last updated:** [May 27, 2014, 10:59pm UTC](https://forum.ansible.com/t/ansible-pull-and-group-vars/14989 "2014-05-27T22:59:31Z")

</div>

Hello, I am trying to set ansible-pull to provision ec2 instances … with not much success so far … I tried using the ec2.py dynamic inventory: ansible-pull -C feature/ci -d /home/ec2-user/ansible -i ansible/ec2.py tag…

---

## [Using include with\_sequence on localhost](https://forum.ansible.com/t/using-include-with-sequence-on-localhost/15341)

<div class="topic-metadata">

**Author:** [@Stephen\_Gargan](https://forum.ansible.com/u/Stephen_Gargan)\
**Replies:** 2\
**Last updated:** [May 27, 2014, 9:41pm UTC](https://forum.ansible.com/t/using-include-with-sequence-on-localhost/15341 "2014-05-27T21:41:00Z")

</div>

Not to flog a dead horse as there are numerous threads about not allowing with\_items and includes, but I have a narrower use case that I could really use this for and hopefully someone can help me here. I have a script …

---

## [Ansible Doesn't Use SSH Config File specified by ssh\_args?](https://forum.ansible.com/t/ansible-doesnt-use-ssh-config-file-specified-by-ssh-args/15308)

<div class="topic-metadata">

**Author:** [@Jason\_Levitt](https://forum.ansible.com/u/Jason_Levitt)\
**Replies:** 14\
**Last updated:** [May 27, 2014, 8:09pm UTC](https://forum.ansible.com/t/ansible-doesnt-use-ssh-config-file-specified-by-ssh-args/15308 "2014-05-27T20:09:40Z")

</div>

Ansible 1.6.1 I’m trying to set things up so that I can specify a bastion host as a gateway to my other machines. I’d like Ansible to use an SSH config file that I keep in git. So, I have a file named “sshconfig” wit…

---

## [Custom Jinja tests?](https://forum.ansible.com/t/custom-jinja-tests/15328)

<div class="topic-metadata">

**Author:** [@Joost\_Cassee](https://forum.ansible.com/u/Joost_Cassee)\
**Replies:** 6\
**Last updated:** [May 27, 2014, 8:08pm UTC](https://forum.ansible.com/t/custom-jinja-tests/15328 "2014-05-27T20:08:27Z")

</div>

Hi, Custom template filters are a great way to take the programming out of my playbooks. Sometimes I would like to have a Jinja test, though. For example, I have a filter ‘is\_in\_zone(domain, zone)’ to see if a domain e…

---

## [Setting a variable by conditional in a playbook](https://forum.ansible.com/t/setting-a-variable-by-conditional-in-a-playbook/15335)

<div class="topic-metadata">

**Author:** [@Lars\_Sommer](https://forum.ansible.com/u/Lars_Sommer)\
**Replies:** 2\
**Last updated:** [May 27, 2014, 8:02pm UTC](https://forum.ansible.com/t/setting-a-variable-by-conditional-in-a-playbook/15335 "2014-05-27T20:02:24Z")

</div>

I have spent the last few hours trying to find a way to do this and keep running into formatting issues with every suggestion I find. What I am trying to accomplish is to have a variable that is set based on the value o…

---

## [Playbooks for users with different permissions](https://forum.ansible.com/t/playbooks-for-users-with-different-permissions/15089)

<div class="topic-metadata">

**Author:** [@Jacob\_Weber1](https://forum.ansible.com/u/Jacob_Weber1)\
**Replies:** 6\
**Last updated:** [May 27, 2014, 8:01pm UTC](https://forum.ansible.com/t/playbooks-for-users-with-different-permissions/15089 "2014-05-27T20:01:32Z")

</div>

I have a playbook that sets up a remote box, using sudo=yes. But only a limited set of users will have permission to run this, since it requires root on the remote box. I’d like to allow less privileged users to run par…

---

## [playbook\_file](https://forum.ansible.com/t/playbook-file/15330)

<div class="topic-metadata">

**Author:** [@ralovely](https://forum.ansible.com/u/ralovely)\
**Replies:** 1\
**Last updated:** [May 27, 2014, 7:57pm UTC](https://forum.ansible.com/t/playbook-file/15330 "2014-05-27T19:57:54Z")

</div>

Hi List. There are some global variables about a run, like inventory\_dir or inventory\_file. Is their a similar set of variable for the playbook\_file (when running ansible-playbook )? In the same vein, is it possible …

---

## [rax\_cbs module question](https://forum.ansible.com/t/rax-cbs-module-question/15329)

<div class="topic-metadata">

**Author:** [@Jimmy\_Prescott](https://forum.ansible.com/u/Jimmy_Prescott)\
**Replies:** 4\
**Last updated:** [May 27, 2014, 7:54pm UTC](https://forum.ansible.com/t/rax-cbs-module-question/15329 "2014-05-27T19:54:59Z")

</div>

Hello! I am trying to use the rax\_cbs module to create a cloud block storage volume in Rackspace Cloud. Pyrax is working as I am having no problems launching cloud servers using the rax module. Here is the issue I am fa…

---

## [Inventory: same host different port + username?](https://forum.ansible.com/t/inventory-same-host-different-port-username/15228)

<div class="topic-metadata">

**Author:** [@Robin\_Speekenbrink](https://forum.ansible.com/u/Robin_Speekenbrink)\
**Replies:** 4\
**Last updated:** [May 27, 2014, 7:22pm UTC](https://forum.ansible.com/t/inventory-same-host-different-port-username/15228 "2014-05-27T19:22:25Z")

</div>

Just a quick question: I have a docker container running an SSH daemon on a host running an SSH deamon both with different users and ports… Thus my invenvory looks something like this: \[hosts:vars\] ansible\_ssh\_user=hr…

---

## [Check if line matches the regex in lineinfile module](https://forum.ansible.com/t/check-if-line-matches-the-regex-in-lineinfile-module/15339)

<div class="topic-metadata">

**Author:** [@Alexander\_Thaller](https://forum.ansible.com/u/Alexander_Thaller)\
**Replies:** 1\
**Last updated:** [May 27, 2014, 6:20pm UTC](https://forum.ansible.com/t/check-if-line-matches-the-regex-in-lineinfile-module/15339 "2014-05-27T18:20:32Z")

</div>

Would it be possile to print a warning if the regexp of lineinfile wont match the given line? It think there is almost never an usecase where the regex wont match the line so maybe adding an option to the lineinfile mod…

---

## [Early draft of a testing strategies doc](https://forum.ansible.com/t/early-draft-of-a-testing-strategies-doc/15333)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Replies:** 1\
**Last updated:** [May 27, 2014, 5:58pm UTC](https://forum.ansible.com/t/early-draft-of-a-testing-strategies-doc/15333 "2014-05-27T17:58:30Z")

</div>

There are probably quite a few typos here yet as I just knocked this out, but this is derived from my talk to the New York Continuous Delivery Meetup\* last week about achieving Continous Delivery workflows. http://docs.…

---

## [with\_sequence: / with\_items: question](https://forum.ansible.com/t/with-sequence-with-items-question/15340)

<div class="topic-metadata">

**Author:** [@Jimmy\_Prescott](https://forum.ansible.com/u/Jimmy_Prescott)\
**Replies:** 2\
**Last updated:** [May 27, 2014, 5:08pm UTC](https://forum.ansible.com/t/with-sequence-with-items-question/15340 "2014-05-27T17:08:17Z")

</div>

I am probably have my syntax wrong but I am trying to reduce the amount of code in my playbook when creating cloud block storage volumes using rax\_cbs. Here is what it looks like currently and works great: name: Build …

---

## [edX slides from NYC Ansiblefest](https://forum.ansible.com/t/edx-slides-from-nyc-ansiblefest/15297)

<div class="topic-metadata">

**Author:** [@John\_Jarvis](https://forum.ansible.com/u/John_Jarvis)\
**Replies:** 7\
**Last updated:** [May 27, 2014, 10:32am UTC](https://forum.ansible.com/t/edx-slides-from-nyc-ansiblefest/15297 "2014-05-27T10:32:01Z")

</div>

Had a fantastic time at Ansiblefest NYC, kudos to the Ansible team! A few people asked me for edX slides during happy hour, here they are - http://goo.gl/U3xNyL

---

## [Template and copy modules failing when using su](https://forum.ansible.com/t/template-and-copy-modules-failing-when-using-su/15284)

<div class="topic-metadata">

**Author:** [@George\_Simpson1](https://forum.ansible.com/u/George_Simpson1)\
**Replies:** 2\
**Last updated:** [May 26, 2014, 8:03pm UTC](https://forum.ansible.com/t/template-and-copy-modules-failing-when-using-su/15284 "2014-05-26T20:03:29Z")

</div>

Template and copy modules fail when using su with the message: {“msg”: “Could not replace file: /tmp/ansible-tmp-1400646411.03-30275482183570/source to /tmp/ans\_test/gsdummy.txt: \[Errno 13\] Permission denied: ‘/tmp/ansi…

---

## [ansible & vmware](https://forum.ansible.com/t/ansible-vmware/15332)

<div class="topic-metadata">

**Author:** [@jose\_moya\_carballo](https://forum.ansible.com/u/jose_moya_carballo)\
**Replies:** 2\
**Last updated:** [May 26, 2014, 12:23pm UTC](https://forum.ansible.com/t/ansible-vmware/15332 "2014-05-26T12:23:32Z")

</div>

Hi everyone! Has anyone managed to control ansible vmware virtual machines?

---

## [loops and variables](https://forum.ansible.com/t/loops-and-variables/15302)

<div class="topic-metadata">

**Author:** [@Makimoto\_Marakatti](https://forum.ansible.com/u/Makimoto_Marakatti)\
**Replies:** 12\
**Last updated:** [May 26, 2014, 10:19am UTC](https://forum.ansible.com/t/loops-and-variables/15302 "2014-05-26T10:19:40Z")

</div>

Hi all Could someone lend me a hand to figure looping over variables? I’ve got a number of hosts which are grouped in the inventory quite strictly in a rather traditional way: \` dev-group1 hostA hostB tst-group1 …

---

## [User updated every single run](https://forum.ansible.com/t/user-updated-every-single-run/15323)

<div class="topic-metadata">

**Author:** [@Francisco\_Reyes](https://forum.ansible.com/u/Francisco_Reyes)\
**Replies:** 5\
**Last updated:** [May 26, 2014, 12:07am UTC](https://forum.ansible.com/t/user-updated-every-single-run/15323 "2014-05-26T00:07:58Z")

</div>

I have one machine that every time I run Ansible it keeps updating the same user. No other machine has the problem. Thought maybe it was the user ended up somehow in an inconsistent state… Deleted the user, including it…

---

## [IRC Bot... RFC](https://forum.ansible.com/t/irc-bot-rfc/15324)

<div class="topic-metadata">

**Author:** [@Jeff\_Geerling](https://forum.ansible.com/u/Jeff_Geerling)\
**Replies:** 2\
**Last updated:** [May 25, 2014, 10:59pm UTC](https://forum.ansible.com/t/irc-bot-rfc/15324 "2014-05-25T22:59:29Z")

</div>

I’ve spun up a simple IRC bot, ‘ansibot’, and stuck the bot in ansible… It seems to be running fine for now (I’m estimating it could take a pretty significant amount of channel traffic (in more than one channel) before f…

---

## [Ansible doesn't appear to cache sudo auth for each task in a playbook... is this correct?](https://forum.ansible.com/t/ansible-doesnt-appear-to-cache-sudo-auth-for-each-task-in-a-playbook-is-this-correct/15155)

<div class="topic-metadata">

**Author:** [@Bowen\_Denning](https://forum.ansible.com/u/Bowen_Denning)\
**Replies:** 5\
**Last updated:** [May 25, 2014, 9:29pm UTC](https://forum.ansible.com/t/ansible-doesnt-appear-to-cache-sudo-auth-for-each-task-in-a-playbook-is-this-correct/15155 "2014-05-25T21:29:34Z")

</div>

Hey all, I’m hoping to use Ansible playbooks to automate a few tasks on my home network. My problem is that I use 2FA for authentication on all of my servers (using Yubikey). I’m quite happy to use key-based authenticat…

---

## [Is it possible to call a module from a module?](https://forum.ansible.com/t/is-it-possible-to-call-a-module-from-a-module/15259)

<div class="topic-metadata">

**Author:** [@Sean\_Cavanaugh](https://forum.ansible.com/u/Sean_Cavanaugh)\
**Replies:** 4\
**Last updated:** [May 25, 2014, 9:20pm UTC](https://forum.ansible.com/t/is-it-possible-to-call-a-module-from-a-module/15259 "2014-05-25T21:20:46Z")

</div>

I am new to developing modules, I am writing a module that will license our switches (Cumulus Linux) and I see that there are other modules that I could potentially leverage. Rather than copying and pasting their code in…

---

## [I would like to convert my BASH scripts to Ansible User Modules](https://forum.ansible.com/t/i-would-like-to-convert-my-bash-scripts-to-ansible-user-modules/15255)

<div class="topic-metadata">

**Author:** [@JohnP](https://forum.ansible.com/u/JohnP)\
**Replies:** 4\
**Last updated:** [May 25, 2014, 9:20pm UTC](https://forum.ansible.com/t/i-would-like-to-convert-my-bash-scripts-to-ansible-user-modules/15255 "2014-05-25T21:20:10Z")

</div>

Hi All, I have written some BASH ;( scripts that collects some information and shows them “very” human friendly and colourful format. Via Aws Cli, json processing etc. An obfuscated example as below for displaying the…

---

## [Strange behavior in group\_by module with 'with\_items'](https://forum.ansible.com/t/strange-behavior-in-group-by-module-with-with-items/15312)

<div class="topic-metadata">

**Author:** [@Joost\_Cassee](https://forum.ansible.com/u/Joost_Cassee)\
**Replies:** 4\
**Last updated:** [May 25, 2014, 9:16pm UTC](https://forum.ansible.com/t/strange-behavior-in-group-by-module-with-with-items/15312 "2014-05-25T21:16:58Z")

</div>

Hi, I have a couple of hosts that have a ‘profiles’ variable that contains a list of, well, profiles that I want to apply. I want to use group\_by to turn those into groups. However, it is not working. (I am doing this o…

---

## [How to specify author and version of a dependency of a role?](https://forum.ansible.com/t/how-to-specify-author-and-version-of-a-dependency-of-a-role/15287)

<div class="topic-metadata">

**Author:** [@Andrei\_Pashkin](https://forum.ansible.com/u/Andrei_Pashkin)\
**Replies:** 7\
**Last updated:** [May 25, 2014, 9:13pm UTC](https://forum.ansible.com/t/how-to-specify-author-and-version-of-a-dependency-of-a-role/15287 "2014-05-25T21:13:08Z")

</div>

Here in the docs the way to define dependencies for a role is described. But since role is often a reusable module, it must specify its exact dependencies to be independent from whatever roles user have in his “roles” f…

---

## [A question about some modules](https://forum.ansible.com/t/a-question-about-some-modules/15327)

<div class="topic-metadata">

**Author:** [@Mathew\_Davies](https://forum.ansible.com/u/Mathew_Davies)\
**Replies:** 3\
**Last updated:** [May 25, 2014, 9:10pm UTC](https://forum.ansible.com/t/a-question-about-some-modules/15327 "2014-05-25T21:10:43Z")

</div>

So I was thinking about some of the modules implemented in ansible. A few of them just proxy through to unix commands while others will use a Python API when it exists. Can someone explain the advantages and disadvantag…

---

## [Debug logging in modules](https://forum.ansible.com/t/debug-logging-in-modules/15326)

<div class="topic-metadata">

**Author:** [@Martin\_Johren](https://forum.ansible.com/u/Martin_Johren)\
**Replies:** 3\
**Last updated:** [May 25, 2014, 9:09pm UTC](https://forum.ansible.com/t/debug-logging-in-modules/15326 "2014-05-25T21:09:01Z")

</div>

Hi, after some searching I did not find anything appropriate: I just want to log some debug information in my on new module in libraries/cloud, so my first attempt was to use vv, but when I import it from ansible.callb…

---

## ['when' not working with 'with\_items' ?](https://forum.ansible.com/t/when-not-working-with-with-items/15307)

<div class="topic-metadata">

**Author:** [@Evie\_Kassela](https://forum.ansible.com/u/Evie_Kassela)\
**Replies:** 3\
**Last updated:** [May 25, 2014, 8:56pm UTC](https://forum.ansible.com/t/when-not-working-with-with-items/15307 "2014-05-25T20:56:00Z")

</div>

I have this task in a play for group ‘dbservers’: name: test debug: msg=‘{{ is\_master }}’ sudo: true sudo\_user: postgres when: is\_master with\_items: groups\[‘dbservers’\]\[1::\] I wrote this because I wanted only mast…

---

## [Specify roles directory?](https://forum.ansible.com/t/specify-roles-directory/15321)

<div class="topic-metadata">

**Author:** [@Jason\_Harris](https://forum.ansible.com/u/Jason_Harris)\
**Replies:** 2\
**Last updated:** [May 25, 2014, 8:51pm UTC](https://forum.ansible.com/t/specify-roles-directory/15321 "2014-05-25T20:51:18Z")

</div>

Hi All, Maybe there is already a setting for this and I am just missing it… With the ansible-playbook command line how do I specify the directory to use for the roles? Right now I have things set up sort of like follo…

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

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