# Latest

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

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

**Page:** 876

---

## [trying to use win\_get\_url and win\_msi together](https://forum.ansible.com/t/trying-to-use-win-get-url-and-win-msi-together/18068)

<div class="topic-metadata">

**Author:** [@Aishwarya\_Muraleedha](https://forum.ansible.com/u/Aishwarya_Muraleedha)\
**Replies:** 1\
**Last updated:** [April 24, 2015, 5:38pm UTC](https://forum.ansible.com/t/trying-to-use-win-get-url-and-win-msi-together/18068 "2015-04-24T17:38:59Z")

</div>

Hi, I am trying to write a playbook to download a msi file from the internet to my local disk and then use “win\_msi” to install the msi application to my Windows client. Bu when ever I run my playbook, I get an error, f…

---

## [Passing hosts as a variable to a playbook](https://forum.ansible.com/t/passing-hosts-as-a-variable-to-a-playbook/18078)

<div class="topic-metadata">

**Author:** [@KSS](https://forum.ansible.com/u/KSS)\
**Replies:** 2\
**Last updated:** [April 24, 2015, 4:03pm UTC](https://forum.ansible.com/t/passing-hosts-as-a-variable-to-a-playbook/18078 "2015-04-24T16:03:07Z")

</div>

Hi, I’m attempting to pass a host as a variable to a playbook, but this simply results in “skipping: no hosts matched”. ansible --version ansible 1.9.0.1 ------------- Playbook --------------- cat kstest.yml

---

## [Help to understand execution order](https://forum.ansible.com/t/help-to-understand-execution-order/18079)

<div class="topic-metadata">

**Author:** [@Serega\_Sheypak](https://forum.ansible.com/u/Serega_Sheypak)\
**Replies:** 2\
**Last updated:** [April 24, 2015, 3:56pm UTC](https://forum.ansible.com/t/help-to-understand-execution-order/18079 "2015-04-24T15:56:39Z")

</div>

Hi, i’m confused with execution order. Here is a problem: TASK: \[common | installing oracle java\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* changed: \[ec2-52-17-234-176.eu-west-1.compute.amazonaws.com\] changed: \[ec2-52-…

---

## [ERROR: with\_items is not a legal parameter at this level in an Ansible Playbook](https://forum.ansible.com/t/error-with-items-is-not-a-legal-parameter-at-this-level-in-an-ansible-playbook/18075)

<div class="topic-metadata">

**Author:** [@Serega\_Sheypak](https://forum.ansible.com/u/Serega_Sheypak)\
**Replies:** 5\
**Last updated:** [April 24, 2015, 3:14pm UTC](https://forum.ansible.com/t/error-with-items-is-not-a-legal-parameter-at-this-level-in-an-ansible-playbook/18075 "2015-04-24T15:14:32Z")

</div>

Hi, what do I do wrong?

---

## [Ansible WAS provision stuck](https://forum.ansible.com/t/ansible-was-provision-stuck/18076)

<div class="topic-metadata">

**Author:** [@Serega\_Sheypak](https://forum.ansible.com/u/Serega_Sheypak)\
**Replies:** 1\
**Last updated:** [April 24, 2015, 1:52pm UTC](https://forum.ansible.com/t/ansible-was-provision-stuck/18076 "2015-04-24T13:52:21Z")

</div>

Hi, I’m running playbook on amazon hosts: ansible-playbook --private-key=serega\_test -u ubuntu -i hosts.aws playbook.yml playbook stuck here: GATHERING FACTS \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [Creating directory using module file (state=directory).](https://forum.ansible.com/t/creating-directory-using-module-file-state-directory/18073)

<div class="topic-metadata">

**Author:** [@Wojciech\_Korzenny](https://forum.ansible.com/u/Wojciech_Korzenny)\
**Replies:** 1\
**Last updated:** [April 24, 2015, 1:38pm UTC](https://forum.ansible.com/t/creating-directory-using-module-file-state-directory/18073 "2015-04-24T13:38:04Z")

</div>

Hi, I have following playbook: hosts: group1 user: ansible\_user gather\_facts: no tasks: name: Create backup directory file: path={{backup\_app\_logs\_dir}} state=directory The problem is that group1 consists of more…

---

## [calculating the 'serial'?](https://forum.ansible.com/t/calculating-the-serial/18070)

<div class="topic-metadata">

**Author:** [@Ted\_Timmons](https://forum.ansible.com/u/Ted_Timmons)\
**Replies:** 1\
**Last updated:** [April 24, 2015, 1:01pm UTC](https://forum.ansible.com/t/calculating-the-serial/18070 "2015-04-24T13:01:24Z")

</div>

I'm trying to calculate a serial number and having trouble. I'm unsure of the jinja filter pipeline. Here's what I'm trying: serial: "{{play\_hosts|length|float/2|round(0, 'ceil')|int}}" here's the error: ValueError: …

---

## [Private Subnets & add\_host / wait\_for.](https://forum.ansible.com/t/private-subnets-add-host-wait-for/18074)

<div class="topic-metadata">

**Author:** [@Nico\_K](https://forum.ansible.com/u/Nico_K)\
**Replies:** 0\
**Last updated:** [April 24, 2015, 11:01am UTC](https://forum.ansible.com/t/private-subnets-add-host-wait-for/18074 "2015-04-24T11:01:44Z")

</div>

Hi, My EC2 instances are reachable via a jump host, however when I create a new EC2 instance as my first step of the play, the new DNS entry isn’t available yet so the jump host configuration is not being used yet. I t…

---

## [Conditionally perform task only when a specific filesystem is or is not mounted](https://forum.ansible.com/t/conditionally-perform-task-only-when-a-specific-filesystem-is-or-is-not-mounted/18072)

<div class="topic-metadata">

**Author:** [@Neech\_WORTHINGTON](https://forum.ansible.com/u/Neech_WORTHINGTON)\
**Replies:** 0\
**Last updated:** [April 24, 2015, 9:59am UTC](https://forum.ansible.com/t/conditionally-perform-task-only-when-a-specific-filesystem-is-or-is-not-mounted/18072 "2015-04-24T09:59:40Z")

</div>

I would like to conditionally execute a task only when a specific filesystem is not mounted on the mount point “/u1/data”. So, something like the following in Pseudo-ish-code: name: “Do something only when /u1/data is …

---

## [Host Group not being recognised](https://forum.ansible.com/t/host-group-not-being-recognised/18048)

<div class="topic-metadata">

**Author:** [@Antonpm11](https://forum.ansible.com/u/Antonpm11)\
**Replies:** 2\
**Last updated:** [April 23, 2015, 11:15pm UTC](https://forum.ansible.com/t/host-group-not-being-recognised/18048 "2015-04-23T23:15:05Z")

</div>

Hi, I recently upgraded to 1.9 and I’ve noticed a host group I created is not being recognised. Here is the playbook extract: tasks: name: Provision test t2 micro instance ec2: aws\_access\_key: “{{ ec2\_access\_key }…

---

## [Using registered variables and ec2 with\_items](https://forum.ansible.com/t/using-registered-variables-and-ec2-with-items/16134)

<div class="topic-metadata">

**Author:** [@Tim\_Van\_de\_Walle](https://forum.ansible.com/u/Tim_Van_de_Walle)\
**Replies:** 4\
**Last updated:** [April 23, 2015, 10:04pm UTC](https://forum.ansible.com/t/using-registered-variables-and-ec2-with-items/16134 "2015-04-23T22:04:59Z")

</div>

I have a role that launches ec2 instances, registers them in a group and waits for the ssh port to respond before continuing on in provisioning. The play works as expected, however for reliability reasons we have to laun…

---

## [Ansible module for windows](https://forum.ansible.com/t/ansible-module-for-windows/18063)

<div class="topic-metadata">

**Author:** [@Leonid\_Lee](https://forum.ansible.com/u/Leonid_Lee)\
**Replies:** 1\
**Last updated:** [April 23, 2015, 8:06pm UTC](https://forum.ansible.com/t/ansible-module-for-windows/18063 "2015-04-23T20:06:05Z")

</div>

Hello. Is there any way to create modules using python to deploy packages on windows? I created simple module that prints “Hello world!” to text file. It works on ansible control machine (rhel): \` $ ansible localhost…

---

## [wait for isn't waiting](https://forum.ansible.com/t/wait-for-isnt-waiting/18066)

<div class="topic-metadata">

**Author:** [@Chris\_Short](https://forum.ansible.com/u/Chris_Short)\
**Replies:** 2\
**Last updated:** [April 23, 2015, 8:00pm UTC](https://forum.ansible.com/t/wait-for-isnt-waiting/18066 "2015-04-23T20:00:11Z")

</div>

For some reason this wait for is not working: name: stop shell: /opt/tools/shutdown.sh wait\_for port=8009 state=stopped delay=15 timeout=300 When running this in a playbook the playbook finishes immediately. I c…

---

## [trouble with pysphere](https://forum.ansible.com/t/trouble-with-pysphere/18065)

<div class="topic-metadata">

**Author:** [@Bryan\_Johnson](https://forum.ansible.com/u/Bryan_Johnson)\
**Replies:** 2\
**Last updated:** [April 23, 2015, 7:46pm UTC](https://forum.ansible.com/t/trouble-with-pysphere/18065 "2015-04-23T19:46:46Z")

</div>

Setting up my first ansible run using the vsphere\_guest mod. I’ve use ansible for some ad hock and it was really slick. So I decided to try and use with VMware. found I needed pysphere installed. so I did that. bryans-…

---

## [Firewalls across multiple Linux Distros](https://forum.ansible.com/t/firewalls-across-multiple-linux-distros/18029)

<div class="topic-metadata">

**Author:** [@Matthew\_Macdonald-Wa](https://forum.ansible.com/u/Matthew_Macdonald-Wa)\
**Replies:** 1\
**Last updated:** [April 23, 2015, 7:38pm UTC](https://forum.ansible.com/t/firewalls-across-multiple-linux-distros/18029 "2015-04-23T19:38:00Z")

</div>

Hi all, I’m working on a set of roles for my organisation and part of the work is configuring a “secure” base system. I want to be able to set some “sensible” defaults on a firewall and then have other roles open them …

---

## [Unable to connect to ec2-host (errors with permission denied errors) in AWS](https://forum.ansible.com/t/unable-to-connect-to-ec2-host-errors-with-permission-denied-errors-in-aws/18064)

<div class="topic-metadata">

**Author:** [@Raj\_Desikavinayagomp](https://forum.ansible.com/u/Raj_Desikavinayagomp)\
**Replies:** 3\
**Last updated:** [April 23, 2015, 7:17pm UTC](https://forum.ansible.com/t/unable-to-connect-to-ec2-host-errors-with-permission-denied-errors-in-aws/18064 "2015-04-23T19:17:48Z")

</div>

Unable to connect to ec2-host (errors with permission denied errors) in AWS. 1. Have the following entry in inventory file 2. Following command was executed ansible -vvv test\_ansible --user ansible --private-…

---

## [ansible 1.9.0.1 mistakenly reports "Input file not found" while using copy module](https://forum.ansible.com/t/ansible-1-9-0-1-mistakenly-reports-input-file-not-found-while-using-copy-module/18061)

<div class="topic-metadata">

**Author:** [@nicolas](https://forum.ansible.com/u/nicolas)\
**Replies:** 1\
**Last updated:** [April 23, 2015, 6:42pm UTC](https://forum.ansible.com/t/ansible-1-9-0-1-mistakenly-reports-input-file-not-found-while-using-copy-module/18061 "2015-04-23T18:42:36Z")

</div>

Hello, I have the following task in a ply-book: name: Copy copy: src={{ dl\_folder }}/{{ dl\_filename }} dest={{ dl\_folder }}/testdir sudo: yes when: download\_file.stat.exists == true register: file\_copy The file e…

---

## [Ansible 1.9.1 rc4 is now available for testing](https://forum.ansible.com/t/ansible-1-9-1-rc4-is-now-available-for-testing/18060)

<div class="topic-metadata">

**Author:** [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Replies:** 0\
**Last updated:** [April 23, 2015, 3:43pm UTC](https://forum.ansible.com/t/ansible-1-9-1-rc4-is-now-available-for-testing/18060 "2015-04-23T15:43:46Z")

</div>

Hi all, we’ve just tagged the rc4 release for 1.9.1, which includes a fix for winrm connections related to AD accounts. To test from source, simply clone the git repository (if you haven’t already) and do the following: …

---

## [Configure docker containers w/o sshd inside?](https://forum.ansible.com/t/configure-docker-containers-w-o-sshd-inside/18047)

<div class="topic-metadata">

**Author:** [@Yassen\_Damyanov](https://forum.ansible.com/u/Yassen_Damyanov)\
**Replies:** 4\
**Last updated:** [April 23, 2015, 2:36pm UTC](https://forum.ansible.com/t/configure-docker-containers-w-o-sshd-inside/18047 "2015-04-23T14:36:17Z")

</div>

To setup and run docker containers, there’s the ansible docker module. What would you guys recommend for configuring running containers (installing packages inside the container, etc.)? There are the two options (runnin…

---

## [gluster\_volume module problem](https://forum.ansible.com/t/gluster-volume-module-problem/17862)

<div class="topic-metadata">

**Author:** [@Rumen\_Telbizov](https://forum.ansible.com/u/Rumen_Telbizov)\
**Replies:** 9\
**Last updated:** [April 23, 2015, 6:57am UTC](https://forum.ansible.com/t/gluster-volume-module-problem/17862 "2015-04-23T06:57:49Z")

</div>

Dear Taneli, Ansible list, I started using the new gluster\_volume module which was released as part of ansible 1.9. It comes right on time for me. Thank you for your efforts maintaining the project and delivering new fu…

---

## [unnecessary to use '{{' in conditionals...except when it isn't](https://forum.ansible.com/t/unnecessary-to-use-in-conditionals-except-when-it-isnt/18058)

<div class="topic-metadata">

**Author:** [@Shawn\_Ferry](https://forum.ansible.com/u/Shawn_Ferry)\
**Replies:** 2\
**Last updated:** [April 23, 2015, 6:47am UTC](https://forum.ansible.com/t/unnecessary-to-use-in-conditionals-except-when-it-isnt/18058 "2015-04-23T06:47:49Z")

</div>

\[WARNING\]: It is unnecessary to use ‘{{’ in conditionals, leave variables in loop expressions bare. I’m using with\_items for conditions in the fail module and it seems that I can’t use bare expressions. I have a playboo…

---

## [multiple commands in one ssh session (systems without python)](https://forum.ansible.com/t/multiple-commands-in-one-ssh-session-systems-without-python/18055)

<div class="topic-metadata">

**Author:** [@Viktor\_Tsymbalyuk](https://forum.ansible.com/u/Viktor_Tsymbalyuk)\
**Replies:** 2\
**Last updated:** [April 23, 2015, 6:39am UTC](https://forum.ansible.com/t/multiple-commands-in-one-ssh-session-systems-without-python/18055 "2015-04-23T06:39:02Z")

</div>

Hi, There were already few topics related using playbooks on routers and switches (systems without python). But I didn’t find answer on next: Does it possible with raw module send few command in one ssh session? Unfo…

---

## [get IP of instance to pass it as command arguement](https://forum.ansible.com/t/get-ip-of-instance-to-pass-it-as-command-arguement/18057)

<div class="topic-metadata">

**Author:** [@John\_Test](https://forum.ansible.com/u/John_Test)\
**Replies:** 1\
**Last updated:** [April 22, 2015, 9:25pm UTC](https://forum.ansible.com/t/get-ip-of-instance-to-pass-it-as-command-arguement/18057 "2015-04-22T21:25:34Z")

</div>

Hello I want to pass some arguments within a playbook but unsure on how to do it Playbook here: http://pastebin.com/Ga1L1hCa The first part creates an Openstack instance, then it attaches a floating IP. I want to gr…

---

## [{'msg': 'AnsibleUndefinedVariable: One or more undefined variables: list object has no element 1', 'failed': True}](https://forum.ansible.com/t/msg-ansibleundefinedvariable-one-or-more-undefined-variables-list-object-has-no-element-1-failed-true/18054)

<div class="topic-metadata">

**Author:** [@Chanaka\_Samarajeewa](https://forum.ansible.com/u/Chanaka_Samarajeewa)\
**Replies:** 1\
**Last updated:** [April 22, 2015, 7:40pm UTC](https://forum.ansible.com/t/msg-ansibleundefinedvariable-one-or-more-undefined-variables-list-object-has-no-element-1-failed-true/18054 "2015-04-22T19:40:51Z")

</div>

Hello, For some reason, when my group\_vars list only has 1 item under “test2:” it get the following error. If I have more than 1 list item under “test2:” then everything works correctly. Is this an Ansible bug or do I n…

---

## [NEWB howto modify /etc/apt/sources.list](https://forum.ansible.com/t/newb-howto-modify-etc-apt-sources-list/18050)

<div class="topic-metadata">

**Author:** [@Tim\_Jabaut](https://forum.ansible.com/u/Tim_Jabaut)\
**Replies:** 9\
**Last updated:** [April 22, 2015, 6:18pm UTC](https://forum.ansible.com/t/newb-howto-modify-etc-apt-sources-list/18050 "2015-04-22T18:18:28Z")

</div>

I am new to Ansible and looking for a simple way to modify the /etc/apt/sources.list file in Debian to include the contrib repo. I seem to find ways to pull a file down, but how does one edit an existing conf file?

---

## [Can we use regex in single-line mode with ansible module like lineinfile \[dot matches all, dotall, re.S, (?s)\]](https://forum.ansible.com/t/can-we-use-regex-in-single-line-mode-with-ansible-module-like-lineinfile-dot-matches-all-dotall-re-s-s/18043)

<div class="topic-metadata">

**Author:** [@sigml16](https://forum.ansible.com/u/sigml16)\
**Replies:** 3\
**Last updated:** [April 22, 2015, 4:50pm UTC](https://forum.ansible.com/t/can-we-use-regex-in-single-line-mode-with-ansible-module-like-lineinfile-dot-matches-all-dotall-re-s-s/18043 "2015-04-22T16:50:57Z")

</div>

Ansible docs point us on python re web site for regex. In this page, modifiers like ignore case, single line mode are documented, but it seems not supported when used with ansible module where regex is used (like linein…

---

## [Return value from Bash to Ansible](https://forum.ansible.com/t/return-value-from-bash-to-ansible/18052)

<div class="topic-metadata">

**Author:** [@zorggy01](https://forum.ansible.com/u/zorggy01)\
**Replies:** 3\
**Last updated:** [April 22, 2015, 3:52pm UTC](https://forum.ansible.com/t/return-value-from-bash-to-ansible/18052 "2015-04-22T15:52:20Z")

</div>

Hello, I’m using Ansible 1.7.2 and I’ve written a Bash module to use at a very early stage of Linux installation (Python not fully available yet). It works correctly except that the return value is seen as stdout and is…

---

## [Can I gather facts without python on remote systems](https://forum.ansible.com/t/can-i-gather-facts-without-python-on-remote-systems/18051)

<div class="topic-metadata">

**Author:** [@rrrkiran12](https://forum.ansible.com/u/rrrkiran12)\
**Replies:** 2\
**Last updated:** [April 22, 2015, 2:33pm UTC](https://forum.ansible.com/t/can-i-gather-facts-without-python-on-remote-systems/18051 "2015-04-22T14:33:22Z")

</div>

Gather facts with Raw module

---

## [Managing Python installation in a FreeBSD jail from the host of the jail](https://forum.ansible.com/t/managing-python-installation-in-a-freebsd-jail-from-the-host-of-the-jail/16990)

<div class="topic-metadata">

**Author:** [@David\_Fritzsche](https://forum.ansible.com/u/David_Fritzsche)\
**Replies:** 6\
**Last updated:** [April 22, 2015, 1:54pm UTC](https://forum.ansible.com/t/managing-python-installation-in-a-freebsd-jail-from-the-host-of-the-jail/16990 "2015-04-22T13:54:00Z")

</div>

Hi all, I'm curious about what is the Ansible way of working with FreeBSD Jails on a remote host. In my company we deploy almost all of our inhouse software inside jails and therefore I have developed a connection pl…

---

## [Override configuration file](https://forum.ansible.com/t/override-configuration-file/18046)

<div class="topic-metadata">

**Author:** [@Tzach\_Livyatan1](https://forum.ansible.com/u/Tzach_Livyatan1)\
**Replies:** 1\
**Last updated:** [April 22, 2015, 11:57am UTC](https://forum.ansible.com/t/override-configuration-file/18046 "2015-04-22T11:57:00Z")

</div>

Hello I need to override only two configuration parameters (- sudo\_flags, ssh\_args). Can I do it without updating the global ansible.cfg, and without copy the full file locally? Thanks Tzach

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

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