# Latest

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

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

**Page:** 1042

---

## [Running on Windows](https://forum.ansible.com/t/running-on-windows/12891)

<div class="topic-metadata">

**Author:** [@Leen\_Besselink](https://forum.ansible.com/u/Leen_Besselink)\
**Replies:** 32\
**Last updated:** [June 11, 2013, 12:36pm UTC](https://forum.ansible.com/t/running-on-windows/12891 "2013-06-11T12:36:34Z")

</div>

Hi folks, Almost for as long as this thread exists, I've been following it from a far and thinking about ways to use Ansible with Windows. Steve Irvine has put forth some DevOps PowerShell code. I think using the built…

---

## [UnicodeEncodeError when using when\_string](https://forum.ansible.com/t/unicodeencodeerror-when-using-when-string/12942)

<div class="topic-metadata">

**Author:** [@Herve\_Leclerc](https://forum.ansible.com/u/Herve_Leclerc)\
**Replies:** 0\
**Last updated:** [June 11, 2013, 7:37am UTC](https://forum.ansible.com/t/unicodeencodeerror-when-using-when-string/12942 "2013-06-11T07:37:49Z")

</div>

Thank to mpdehaan reply : using the new syntax available (and preferred) in 1.2 when: “‘AWESOME’ not in result.content” This works like a charm

---

## [UnicodeEncodeError when using when\_string](https://forum.ansible.com/t/unicodeencodeerror-when-using-when-string/12941)

<div class="topic-metadata">

**Author:** [@Herve\_Leclerc](https://forum.ansible.com/u/Herve_Leclerc)\
**Replies:** 0\
**Last updated:** [June 11, 2013, 7:36am UTC](https://forum.ansible.com/t/unicodeencodeerror-when-using-when-string/12941 "2013-06-11T07:36:49Z")

</div>

Thank to mpdehaan reply : using the new syntax available (and preferred) in 1.2 when: “‘AWESOME’ not in result.content” This works like a charm

---

## [ec2 map instance to multiple security groups](https://forum.ansible.com/t/ec2-map-instance-to-multiple-security-groups/12940)

<div class="topic-metadata">

**Author:** [@Daniil\_Sobol](https://forum.ansible.com/u/Daniil_Sobol)\
**Replies:** 0\
**Last updated:** [June 11, 2013, 6:05am UTC](https://forum.ansible.com/t/ec2-map-instance-to-multiple-security-groups/12940 "2013-06-11T06:05:16Z")

</div>

Hello there. How about adding ec2 instance to multiple security groups? I figured out that it's impossible for now. So here is my fix: https://github.com/ansible/ansible/pull/3171 To not to break compatibility I've ad…

---

## [ansoble facts for ipv4](https://forum.ansible.com/t/ansoble-facts-for-ipv4/12932)

<div class="topic-metadata">

**Author:** [@Hudec\_Peter](https://forum.ansible.com/u/Hudec_Peter)\
**Replies:** 4\
**Last updated:** [June 11, 2013, 12:48am UTC](https://forum.ansible.com/t/ansoble-facts-for-ipv4/12932 "2013-06-11T00:48:29Z")

</div>

Hi I have found one strange behaviour for ansible setup module on Linux/eth/ipv4 interfaces In case the interface have more then 1 IPv4, only one is returned. On IPv6 there is a array, on IPv4 only the hash. Is this…

---

## [LinkedIn Group reminder](https://forum.ansible.com/t/linkedin-group-reminder/12938)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 0\
**Last updated:** [June 10, 2013, 10:59pm UTC](https://forum.ansible.com/t/linkedin-group-reminder/12938 "2013-06-10T22:59:49Z")

</div>

Just as a reminder for new users on the list, the Linked Group is a good way to get low-traffic reminders about useful URLs and news about upcoming events. If you have not done so already, you might be interested in joi…

---

## [Lookup plugins relative directories fixed up for 1.2 roles - 1.2 playbooks may require some adaptation](https://forum.ansible.com/t/lookup-plugins-relative-directories-fixed-up-for-1-2-roles-1-2-playbooks-may-require-some-adaptation/12893)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 3\
**Last updated:** [June 10, 2013, 9:26pm UTC](https://forum.ansible.com/t/lookup-plugins-relative-directories-fixed-up-for-1-2-roles-1-2-playbooks-may-require-some-adaptation/12893 "2013-06-10T21:26:20Z")

</div>

I’ve recently made a change such that lookup plugins when used with roles or included files now understand role directories. See here: https://github.com/ansible/ansible/issues/2697 This means that within a role if yo…

---

## [help with conditional inside of a loop](https://forum.ansible.com/t/help-with-conditional-inside-of-a-loop/12921)

<div class="topic-metadata">

**Author:** [@David\_Birdsong](https://forum.ansible.com/u/David_Birdsong)\
**Replies:** 6\
**Last updated:** [June 10, 2013, 8:40pm UTC](https://forum.ansible.com/t/help-with-conditional-inside-of-a-loop/12921 "2013-06-10T20:40:35Z")

</div>

Hi, I think this might be an easy one, but I’m unsure of how to use a loop variable inside of the ‘when’ condition. Here’s what I thought would work, but ansible complains of a syntax error: https://gist.github.com/dav…

---

## [Error on Lion 10.8/Python 3.3/ Install](https://forum.ansible.com/t/error-on-lion-10-8-python-3-3-install/12934)

<div class="topic-metadata">

**Author:** [@Marcelo\_Costa](https://forum.ansible.com/u/Marcelo_Costa)\
**Replies:** 1\
**Last updated:** [June 10, 2013, 5:18pm UTC](https://forum.ansible.com/t/error-on-lion-10-8-python-3-3-install/12934 "2013-06-10T17:18:24Z")

</div>

Hi folks, Im trying install Ansible in my Mac with Lion 10.8 and after do all configurations from: http://www.ansibleworks.com/docs/gettingstarted.html My terminal show the next message: $ ansible all -m ping --ask-p…

---

## [Ansible meetup for those in the Bay Area, June 20th, 6pm](https://forum.ansible.com/t/ansible-meetup-for-those-in-the-bay-area-june-20th-6pm/12935)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 0\
**Last updated:** [June 10, 2013, 4:40pm UTC](https://forum.ansible.com/t/ansible-meetup-for-those-in-the-bay-area-june-20th-6pm/12935 "2013-06-10T16:40:06Z")

</div>

If you’re in the Bay Area, we’re hosting a meetup at Cloud Physics in Mountain View next week: Free sign up and details here: https://www.eventbrite.com/event/7036623731 Tell your friends!

---

## [UnicodeEncodeError when using when\_string](https://forum.ansible.com/t/unicodeencodeerror-when-using-when-string/12933)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 0\
**Last updated:** [June 10, 2013, 1:36pm UTC](https://forum.ansible.com/t/unicodeencodeerror-when-using-when-string/12933 "2013-06-10T13:36:43Z")

</div>

What version of ansible are you using?

---

## [async with connection local](https://forum.ansible.com/t/async-with-connection-local/12923)

<div class="topic-metadata">

**Author:** [@jschulman](https://forum.ansible.com/u/jschulman)\
**Replies:** 4\
**Last updated:** [June 9, 2013, 11:21pm UTC](https://forum.ansible.com/t/async-with-connection-local/12923 "2013-06-09T23:21:19Z")

</div>

I am trying to use the async option on an action running in a playbook, like so:

---

## [problem with local\_action and/or connection=local](https://forum.ansible.com/t/problem-with-local-action-and-or-connection-local/12922)

<div class="topic-metadata">

**Author:** [@Frans\_Kuipers](https://forum.ansible.com/u/Frans_Kuipers)\
**Replies:** 8\
**Last updated:** [June 8, 2013, 11:43pm UTC](https://forum.ansible.com/t/problem-with-local-action-and-or-connection-local/12922 "2013-06-08T23:43:34Z")

</div>

Ansible version: 1.2 (one hour ago) In ansible.cfg transport=ssh remote\_user=root My hosts file: \[lh\] 127.0.0.1 My playbook: hosts: lh sudo: yes tasks: name: action echo cat action: shell echo pwd sudo…

---

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

<div class="topic-metadata">

**Author:** [@Alexander\_Saltanov](https://forum.ansible.com/u/Alexander_Saltanov)\
**Replies:** 0\
**Last updated:** [June 8, 2013, 6:48pm UTC](https://forum.ansible.com/t/apt-repository/12930 "2013-06-08T18:48:55Z")

</div>

Bas, I'm far from my laptop, so could you please file an issue in my fork of Ansible for the record. Copy-paste of this message would work perfectly. Thanks. A.

---

## [Still more modules in 1.2: Zypper for SuSE + 2 modules for Red Hat subscription management](https://forum.ansible.com/t/still-more-modules-in-1-2-zypper-for-suse-2-modules-for-red-hat-subscription-management/12929)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 0\
**Last updated:** [June 8, 2013, 6:20pm UTC](https://forum.ansible.com/t/still-more-modules-in-1-2-zypper-for-suse-2-modules-for-red-hat-subscription-management/12929 "2013-06-08T18:20:52Z")

</div>

1.2 is releasing Monday, so I’ll save release announcements until then. I’ve recently merged modules for zypper (SuSE package management) into core, but also two modules for RHN entitlement management – rhn\_register (ol…

---

## [git clone private repo issues](https://forum.ansible.com/t/git-clone-private-repo-issues/12928)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 0\
**Last updated:** [June 8, 2013, 5:55pm UTC](https://forum.ansible.com/t/git-clone-private-repo-issues/12928 "2013-06-08T17:55:27Z")

</div>

Could not resolve host sounds like a DNS issue to me.

---

## [Accessing group vars in templates](https://forum.ansible.com/t/accessing-group-vars-in-templates/12910)

<div class="topic-metadata">

**Author:** [@Ernest0x](https://forum.ansible.com/u/Ernest0x)\
**Replies:** 13\
**Last updated:** [June 8, 2013, 9:45am UTC](https://forum.ansible.com/t/accessing-group-vars-in-templates/12910 "2013-06-08T09:45:28Z")

</div>

Hello, Is there any magic variable that can be used inside templates to access variables of an arbitrary group (the equivalent of hostvars, but for groups) ?

---

## [ability to ignore inaccessible hosts and return successfully?](https://forum.ansible.com/t/ability-to-ignore-inaccessible-hosts-and-return-successfully/12925)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 1\
**Last updated:** [June 7, 2013, 7:02pm UTC](https://forum.ansible.com/t/ability-to-ignore-inaccessible-hosts-and-return-successfully/12925 "2013-06-07T19:02:01Z")

</div>

Hmm… It seems what you might want to do in this case is modify your ec2 inventory script (if you are not using one, use one) such that it returns hosts that are running. This way you would only talk to running hosts? A…

---

## [authorized\_key module fails when key=value has a space](https://forum.ansible.com/t/authorized-key-module-fails-when-key-value-has-a-space/12904)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 1\
**Last updated:** [June 7, 2013, 2:41pm UTC](https://forum.ansible.com/t/authorized-key-module-fails-when-key-value-has-a-space/12904 "2013-06-07T14:41:01Z")

</div>

Can you show me the output from when you are running: name: Add nagios ssh key authorized\_key: user=nagios key=“${nagios\_public\_key.stdout}” state=present Since you have multiples in there it will obviously fail at t…

---

## [module argument parser is returning literal 'None' instead of logical 'None'](https://forum.ansible.com/t/module-argument-parser-is-returning-literal-none-instead-of-logical-none/12919)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 4\
**Last updated:** [June 7, 2013, 12:06am UTC](https://forum.ansible.com/t/module-argument-parser-is-returning-literal-none-instead-of-logical-none/12919 "2013-06-07T00:06:09Z")

</div>

Some thoughts: You could probably do {% if x %}key={{x}}{% endif %} Or even maybe {{ x or default\_value }} But it may be easier and better to just have your system set a reasonable default if the value isn’t set.

---

## [Improvements in Vagrant Provisioner: Request for Comments](https://forum.ansible.com/t/improvements-in-vagrant-provisioner-request-for-comments/12920)

<div class="topic-metadata">

**Author:** [@Mark\_Mandel](https://forum.ansible.com/u/Mark_Mandel)\
**Replies:** 0\
**Last updated:** [June 6, 2013, 11:29pm UTC](https://forum.ansible.com/t/improvements-in-vagrant-provisioner-request-for-comments/12920 "2013-06-06T23:29:58Z")

</div>

Gah, didn’t realise this was an old post. Plz ignore. Mark

---

## [New Module question/feedback/request (Bittorrent)](https://forum.ansible.com/t/new-module-question-feedback-request-bittorrent/12917)

<div class="topic-metadata">

**Author:** [@Kavin\_Kankeshwar](https://forum.ansible.com/u/Kavin_Kankeshwar)\
**Replies:** 3\
**Last updated:** [June 6, 2013, 10:56pm UTC](https://forum.ansible.com/t/new-module-question-feedback-request-bittorrent/12917 "2013-06-06T22:56:44Z")

</div>

Hi, Just wanted to check , if there has been any discussion on having a bittorrent based module to copy/distribute files, Atleast one use case i can think of is distributing large files on many machines would be much fa…

---

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

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 0\
**Last updated:** [June 6, 2013, 6:15pm UTC](https://forum.ansible.com/t/apt-repository/12916 "2013-06-06T18:15:35Z")

</div>

Yes, I’ve commented that common code for this sort of thing already exists, and if you don’t see what you need in module\_common, things should go there.

---

## [Disable whiptail during apt installations](https://forum.ansible.com/t/disable-whiptail-during-apt-installations/12915)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 0\
**Last updated:** [June 6, 2013, 6:14pm UTC](https://forum.ansible.com/t/disable-whiptail-during-apt-installations/12915 "2013-06-06T18:14:28Z")

</div>

What version of ansible are you using? We’re passing quite a few options to make installs non-interactive, which may point to a rather bad package script.

---

## [Templates and SELinux contect types](https://forum.ansible.com/t/templates-and-selinux-contect-types/12913)

<div class="topic-metadata">

**Author:** [@Vincent\_Van\_der\_Kuss](https://forum.ansible.com/u/Vincent_Van_der_Kuss)\
**Replies:** 3\
**Last updated:** [June 6, 2013, 6:12pm UTC](https://forum.ansible.com/t/templates-and-selinux-contect-types/12913 "2013-06-06T18:12:15Z")

</div>

Hi, I've got a bit of a problem using SELInux context types with Ansible. When I use a template, the SELinux context type is not correctly applied and i want to restore it to the context in the policy. If I look at …

---

## [Copy module documentation issue/question](https://forum.ansible.com/t/copy-module-documentation-issue-question/12914)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 0\
**Last updated:** [June 6, 2013, 6:11pm UTC](https://forum.ansible.com/t/copy-module-documentation-issue-question/12914 "2013-06-06T18:11:30Z")

</div>

It should not, because you can specify “content” instead of src. But you need to pick one or the other.

---

## [lookup a file from a role outside the role directory](https://forum.ansible.com/t/lookup-a-file-from-a-role-outside-the-role-directory/12912)

<div class="topic-metadata">

**Author:** [@David\_Golden](https://forum.ansible.com/u/David_Golden)\
**Replies:** 1\
**Last updated:** [June 6, 2013, 12:44pm UTC](https://forum.ansible.com/t/lookup-a-file-from-a-role-outside-the-role-directory/12912 "2013-06-06T12:44:25Z")

</div>

I want to pass a file path into a role and use it with a lookup plugin: lookup('file', some\_variable) That only seems to be working if the some\_variable is a relative path in the roles/files directory. How can I …

---

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

<div class="topic-metadata">

**Author:** [@Hudec\_Peter](https://forum.ansible.com/u/Hudec_Peter)\
**Replies:** 3\
**Last updated:** [June 5, 2013, 9:45pm UTC](https://forum.ansible.com/t/apt-repository/12907 "2013-06-05T21:45:44Z")

</div>

Hi Alexander, At the first sight looks good. I have just revved the code, not tested it. The only my requirement is to keep the dependencies to minimal e.g. Python, python-apt (+deps). I will try to test it… Peter

---

## [Easier way to select host group value](https://forum.ansible.com/t/easier-way-to-select-host-group-value/12911)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 0\
**Last updated:** [June 5, 2013, 6:19pm UTC](https://forum.ansible.com/t/easier-way-to-select-host-group-value/12911 "2013-06-05T18:19:54Z")

</div>

Assuming this is a template, if you need more than 5, normally this would be accessed in a loop like so: {% for x in groups\[‘JournalNodes’\] %} {{ hostvars\[…\] }} {% end for %} You can also use {% set % } to define var…

---

## [nice way how to provision 3tier ha /keepalived, nginx, apache/](https://forum.ansible.com/t/nice-way-how-to-provision-3tier-ha-keepalived-nginx-apache/12909)

<div class="topic-metadata">

**Author:** [@Hudec\_Peter](https://forum.ansible.com/u/Hudec_Peter)\
**Replies:** 1\
**Last updated:** [June 5, 2013, 2:57pm UTC](https://forum.ansible.com/t/nice-way-how-to-provision-3tier-ha-keepalived-nginx-apache/12909 "2013-06-05T14:57:34Z")

</div>

Hi all, I'm trying to find a nice way how to write playbook for automatic configuration for LB: keepalived RP: nginx APP: apache The setup is like LB \<-\> NGINX \<-\> APP The playbook should be able to change the con…

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

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