# Latest

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

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

**Page:** 943

---

## [idea: s3 module to auto detect content type and set as metadata](https://forum.ansible.com/t/idea-s3-module-to-auto-detect-content-type-and-set-as-metadata/16041)

<div class="topic-metadata">

**Author:** [@Jake\_Clarkson](https://forum.ansible.com/u/Jake_Clarkson)\
**Replies:** 4\
**Last updated:** [August 28, 2014, 7:42am UTC](https://forum.ansible.com/t/idea-s3-module-to-auto-detect-content-type-and-set-as-metadata/16041 "2014-08-28T07:42:15Z")

</div>

Hi all, I’m in the process of uploading our static assets to S3 via an ansible task. As this bucket is going to be sitting behind Cloudfront I really need the Content-Type HTTP response header to be set correctly. Ins…

---

## [Bug in copy module for directory\_mode?](https://forum.ansible.com/t/bug-in-copy-module-for-directory-mode/16054)

<div class="topic-metadata">

**Author:** [@John\_Oliver](https://forum.ansible.com/u/John_Oliver)\
**Replies:** 3\
**Last updated:** [August 27, 2014, 11:44pm UTC](https://forum.ansible.com/t/bug-in-copy-module-for-directory-mode/16054 "2014-08-27T23:44:40Z")

</div>

This stanza: name: Upload ‘macsecurity’ plugin copy: src={{git\_src}}/plugins/macsecurity dest=/var/www/html/roundcube/plugins/ mode=0755 directory\_mode=yes group=roundcube Fails with: TASK: \[roundcube-web | Uplo…

---

## [lineinfile: ugly output and issue with quotes?](https://forum.ansible.com/t/lineinfile-ugly-output-and-issue-with-quotes/16057)

<div class="topic-metadata">

**Author:** [@John\_Oliver](https://forum.ansible.com/u/John_Oliver)\
**Replies:** 2\
**Last updated:** [August 27, 2014, 10:55pm UTC](https://forum.ansible.com/t/lineinfile-ugly-output-and-issue-with-quotes/16057 "2014-08-27T22:55:35Z")

</div>

ansible 1.6.10 name: Configure Roundcube to use macsecurity plugin lineinfile: dest=/var/www/html/roundcube/config/config.inc.php regexp=‘^$config\['plugins'\]\\ =\\ .\*’ line=“$config\[‘plugins’\] = array(‘macsecurity’);” …

---

## [Inventory vars in a playbook](https://forum.ansible.com/t/inventory-vars-in-a-playbook/16056)

<div class="topic-metadata">

**Author:** [@Jeremy\_Gailor](https://forum.ansible.com/u/Jeremy_Gailor)\
**Replies:** 6\
**Last updated:** [August 27, 2014, 8:38pm UTC](https://forum.ansible.com/t/inventory-vars-in-a-playbook/16056 "2014-08-27T20:38:20Z")

</div>

Can anyone explain to me if this just doesn’t work or if I’m doing something wrong; /production \[webapps:vars\] default\_branch=master /staging \[webapps:vars\] default\_branch=staging /my\_playbook.yml hosts: webapps …

---

## [hhvm /  role question (compile takes a long time)](https://forum.ansible.com/t/hhvm-role-question-compile-takes-a-long-time/16050)

<div class="topic-metadata">

**Author:** [@Gyula\_Weber](https://forum.ansible.com/u/Gyula_Weber)\
**Replies:** 1\
**Last updated:** [August 27, 2014, 7:10pm UTC](https://forum.ansible.com/t/hhvm-role-question-compile-takes-a-long-time/16050 "2014-08-27T19:10:26Z")

</div>

Hi, I’ve written a role that install / configure the latest hhvm on ubuntu trusty; https://galaxy.ansible.com/list#/roles/1496 The make (hhvm) runs too long so i decided to put the configuration task in a separate task…

---

## [delete file on deb install](https://forum.ansible.com/t/delete-file-on-deb-install/16052)

<div class="topic-metadata">

**Author:** [@Mark\_Olliver](https://forum.ansible.com/u/Mark_Olliver)\
**Replies:** 1\
**Last updated:** [August 27, 2014, 7:05pm UTC](https://forum.ansible.com/t/delete-file-on-deb-install/16052 "2014-08-27T19:05:48Z")

</div>

Hi, We use a custom config file for redis sentinel, Is there a way with to say that when i have installed the redis package, to remove the file /etc/redis/sentinel.conf. But it should only remove it the once. Later in t…

---

## ["invalid output"](https://forum.ansible.com/t/invalid-output/15963)

<div class="topic-metadata">

**Author:** [@John\_Oliver](https://forum.ansible.com/u/John_Oliver)\
**Replies:** 4\
**Last updated:** [August 27, 2014, 5:54pm UTC](https://forum.ansible.com/t/invalid-output/15963 "2014-08-27T17:54:50Z")

</div>

ansible 1.6.10 running against centOS 6.5 name: Update all packages yum: name=\* state=latest got me: TASK: \[common | Update all packages\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* failed: \[jedis-test\] =\> {“failed”…

---

## [Symbolic file modes now supported in relevant modules](https://forum.ansible.com/t/symbolic-file-modes-now-supported-in-relevant-modules/16035)

<div class="topic-metadata">

**Author:** [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Replies:** 6\
**Last updated:** [August 27, 2014, 12:37pm UTC](https://forum.ansible.com/t/symbolic-file-modes-now-supported-in-relevant-modules/16035 "2014-08-27T12:37:51Z")

</div>

Hi all, just wanted to announce that I’ve merged in a PR from Paulo Bittencourt that allows the use of symbolic modes for modules like file, copy and template. For example: name: create a new file file: dest=/path/to…

---

## [Still some speaking slots at AnsibleFest San Francisco open!](https://forum.ansible.com/t/still-some-speaking-slots-at-ansiblefest-san-francisco-open/16049)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Replies:** 0\
**Last updated:** [August 27, 2014, 12:27pm UTC](https://forum.ansible.com/t/still-some-speaking-slots-at-ansiblefest-san-francisco-open/16049 "2014-08-27T12:27:32Z")

</div>

Hi everyone, We had a speaker cancel recently - so there’s still a little room for some submissions to AnsibleFest in San Francisco this October 14th. Email your one paragraph or so abstract to cfp@ansible.com. Speake…

---

## [Use items from task condition in template](https://forum.ansible.com/t/use-items-from-task-condition-in-template/16037)

<div class="topic-metadata">

**Author:** [@Sergei\_Antipov](https://forum.ansible.com/u/Sergei_Antipov)\
**Replies:** 3\
**Last updated:** [August 27, 2014, 12:21pm UTC](https://forum.ansible.com/t/use-items-from-task-condition-in-template/16037 "2014-08-27T12:21:10Z")

</div>

Hello. Please tell me how I can use items from task condition in template. Or other method, how I can decide my probled. goal: I have a template for /etc/network/interfaces file. I want to set up bond interface, which …

---

## [questions about working directory structure](https://forum.ansible.com/t/questions-about-working-directory-structure/16045)

<div class="topic-metadata">

**Author:** [@julien\_barbay](https://forum.ansible.com/u/julien_barbay)\
**Replies:** 4\
**Last updated:** [August 27, 2014, 8:30am UTC](https://forum.ansible.com/t/questions-about-working-directory-structure/16045 "2014-08-27T08:30:40Z")

</div>

Hello, First. I’m a newcomer in Ansible, but i feel it’s very attractive regarding other solutions that i benched before (chef and puppet). I started to read on Ansible 3 days ago, and forked the repo and installed fro…

---

## [How to Deploy Multiple Applications](https://forum.ansible.com/t/how-to-deploy-multiple-applications/16016)

<div class="topic-metadata">

**Author:** [@Joseph\_Athman](https://forum.ansible.com/u/Joseph_Athman)\
**Replies:** 6\
**Last updated:** [August 27, 2014, 1:14am UTC](https://forum.ansible.com/t/how-to-deploy-multiple-applications/16016 "2014-08-27T01:14:39Z")

</div>

I’m just starting out with Ansible and looking for some guidance about how to deploy multiple applications with the same playbook. I created a playbook that can deploy a single application to a server, now I’m trying to …

---

## [set\_fact support for list of dictionaries?](https://forum.ansible.com/t/set-fact-support-for-list-of-dictionaries/15697)

<div class="topic-metadata">

**Author:** [@E.C\_Raymond](https://forum.ansible.com/u/E.C_Raymond)\
**Replies:** 10\
**Last updated:** [August 27, 2014, 1:09am UTC](https://forum.ansible.com/t/set-fact-support-for-list-of-dictionaries/15697 "2014-08-27T01:09:22Z")

</div>

What is the status on complex data storage for set\_fact? It seems like its not quite possible yet when I have tried multiple methods. name: testing set\_fact: vms=“\[‘{ {{ item.item }}: {{ item.stdout.strip(’\\n’) }} }'\]…

---

## [Provide RCs for ansible major releases?](https://forum.ansible.com/t/provide-rcs-for-ansible-major-releases/15977)

<div class="topic-metadata">

**Author:** [@Rene\_Moser](https://forum.ansible.com/u/Rene_Moser)\
**Replies:** 5\
**Last updated:** [August 26, 2014, 11:07pm UTC](https://forum.ansible.com/t/provide-rcs-for-ansible-major-releases/15977 "2014-08-26T23:07:23Z")

</div>

Hi I just wanted to make a suggestion for the next major release. We all know, unit testing software which is close to systems (also see Linux kernel) is hard to test. I think Linus does a good job for providing RCs an…

---

## [Help with force-handlers](https://forum.ansible.com/t/help-with-force-handlers/16048)

<div class="topic-metadata">

**Author:** [@Kesten\_Broughton2](https://forum.ansible.com/u/Kesten_Broughton2)\
**Replies:** 1\
**Last updated:** [August 26, 2014, 11:04pm UTC](https://forum.ansible.com/t/help-with-force-handlers/16048 "2014-08-26T23:04:21Z")

</div>

I’m running a health-check with ansible and need to be able to clean up some processes after if the tests fail. It seemed like a good use for handlers, but i’m having troubles getting it to work. Gist is here https://…

---

## [ansible-pull dynamic roles](https://forum.ansible.com/t/ansible-pull-dynamic-roles/16019)

<div class="topic-metadata">

**Author:** [@E.C\_Raymond](https://forum.ansible.com/u/E.C_Raymond)\
**Replies:** 4\
**Last updated:** [August 26, 2014, 10:59pm UTC](https://forum.ansible.com/t/ansible-pull-dynamic-roles/16019 "2014-08-26T22:59:30Z")

</div>

I was wondering if there was a best practice for managing ansible-pull repos, specifically if there is a way to dynamically pass roles to an ansible-pull run. We have an external inventory system that can return roles as…

---

## [setup module slow when connecting to host with ohai installed](https://forum.ansible.com/t/setup-module-slow-when-connecting-to-host-with-ohai-installed/14776)

<div class="topic-metadata">

**Author:** [@Peter\_Leggett](https://forum.ansible.com/u/Peter_Leggett)\
**Replies:** 5\
**Last updated:** [August 26, 2014, 10:58pm UTC](https://forum.ansible.com/t/setup-module-slow-when-connecting-to-host-with-ohai-installed/14776 "2014-08-26T22:58:33Z")

</div>

Hi, caveat - new to ansible. I have a host that just happens to have chef client installed and is also authenticating to an LDAP with 38,000 users in it. When I run $ ansible -m setup -i hosts hostname it takes a ve…

---

## [Working with with\_items and some filter](https://forum.ansible.com/t/working-with-with-items-and-some-filter/16027)

<div class="topic-metadata">

**Author:** [@Bastian\_Bringenberg](https://forum.ansible.com/u/Bastian_Bringenberg)\
**Replies:** 7\
**Last updated:** [August 26, 2014, 10:14pm UTC](https://forum.ansible.com/t/working-with-with-items-and-some-filter/16027 "2014-08-26T22:14:19Z")

</div>

Hey ho, I would like to deploy an application to several vhosts is item.useApplication exists. I am possible to do that, download files and so on and so on. But I get a problem as soon as I want to do an action if the a…

---

## [Best practices for using Ansible with and without Vagrant](https://forum.ansible.com/t/best-practices-for-using-ansible-with-and-without-vagrant/12898)

<div class="topic-metadata">

**Author:** [@Steve\_Moyer](https://forum.ansible.com/u/Steve_Moyer)\
**Replies:** 19\
**Last updated:** [August 26, 2014, 2:51pm UTC](https://forum.ansible.com/t/best-practices-for-using-ansible-with-and-without-vagrant/12898 "2014-08-26T14:51:58Z")

</div>

First a little background … I’m building my staging and production provisioning using Ansible and organized as suggested in the Ansible best practices section of the documentation. My Ansible playbooks are kept in an SC…

---

## [Details regarding the update\_homebrew option](https://forum.ansible.com/t/details-regarding-the-update-homebrew-option/16038)

<div class="topic-metadata">

**Author:** [@Dan\_Bohea](https://forum.ansible.com/u/Dan_Bohea)\
**Replies:** 2\
**Last updated:** [August 26, 2014, 12:50pm UTC](https://forum.ansible.com/t/details-regarding-the-update-homebrew-option/16038 "2014-08-26T12:50:50Z")

</div>

I have a question about the homebrew module. Consider the following task: \` name: Install rbenv & ruby-build homebrew: name={{ item }} update\_homebrew=yes with\_items: rbenv ruby-build \` This uses homebrew to inst…

---

## [passing non-string variable to module](https://forum.ansible.com/t/passing-non-string-variable-to-module/16023)

<div class="topic-metadata">

**Author:** [@Ayelet\_Goldin](https://forum.ansible.com/u/Ayelet_Goldin)\
**Replies:** 5\
**Last updated:** [August 26, 2014, 12:33pm UTC](https://forum.ansible.com/t/passing-non-string-variable-to-module/16023 "2014-08-26T12:33:37Z")

</div>

I’m trying to figure out how to pass a non-string variable to a module https://gist.github.com/uncreative/adfe926267d0ee5b3de3 Has anyone figured it out? turns inty\_var and floaty\_var within parametered module into st…

---

## [\[Ansible to Windows\] IndexError: tuple index out of range](https://forum.ansible.com/t/ansible-to-windows-indexerror-tuple-index-out-of-range/16008)

<div class="topic-metadata">

**Author:** [@Zhenkai\_Jiang](https://forum.ansible.com/u/Zhenkai_Jiang)\
**Replies:** 7\
**Last updated:** [August 26, 2014, 12:30pm UTC](https://forum.ansible.com/t/ansible-to-windows-indexerror-tuple-index-out-of-range/16008 "2014-08-26T12:30:29Z")

</div>

Hi All, I am a very newbie to Ansible. I am running Ansible 1.8-dev from source (Tried 1.7.1 from pip as well) I wanted to control windows machine So I setuped the workstation (Centos 6.3) followed steps on http://docs…

---

## [How to copy a file between two machines using ansible](https://forum.ansible.com/t/how-to-copy-a-file-between-two-machines-using-ansible/16039)

<div class="topic-metadata">

**Author:** [@Naween\_Ghimire](https://forum.ansible.com/u/Naween_Ghimire)\
**Replies:** 1\
**Last updated:** [August 26, 2014, 12:28pm UTC](https://forum.ansible.com/t/how-to-copy-a-file-between-two-machines-using-ansible/16039 "2014-08-26T12:28:32Z")

</div>

I need to copy file form machine A to machine B whereas my control machine from where i run all my ansible tasks is machine C(local machine). I have tried the following use scp command in shell module of ansible hosts…

---

## [Ansible Galaxy better GFM support](https://forum.ansible.com/t/ansible-galaxy-better-gfm-support/16028)

<div class="topic-metadata">

**Author:** [@Takeshi\_Yaegashi](https://forum.ansible.com/u/Takeshi_Yaegashi)\
**Replies:** 1\
**Last updated:** [August 26, 2014, 12:25pm UTC](https://forum.ansible.com/t/ansible-galaxy-better-gfm-support/16028 "2014-08-26T12:25:18Z")

</div>

Hello project, Recently I’ve made my first submission in Ansible Galaxy: https://galaxy.ansible.com/list#/roles/1475 Unfortunately the page above failed to render the module option table in README.md. It’s written in…

---

## [Access register array defined in one host group from another host group](https://forum.ansible.com/t/access-register-array-defined-in-one-host-group-from-another-host-group/16036)

<div class="topic-metadata">

**Author:** [@Imran\_Khan1](https://forum.ansible.com/u/Imran_Khan1)\
**Replies:** 5\
**Last updated:** [August 26, 2014, 6:41am UTC](https://forum.ansible.com/t/access-register-array-defined-in-one-host-group-from-another-host-group/16036 "2014-08-26T06:41:32Z")

</div>

Hello, is it possible to do the following hosts: localhost gather\_facts: False tasks:

---

## [galaxy improvements/features](https://forum.ansible.com/t/galaxy-improvements-features/16031)

<div class="topic-metadata">

**Author:** [@Rene\_Moser](https://forum.ansible.com/u/Rene_Moser)\
**Replies:** 1\
**Last updated:** [August 25, 2014, 10:39pm UTC](https://forum.ansible.com/t/galaxy-improvements-features/16031 "2014-08-25T22:39:21Z")

</div>

Hi (unsure if this is the right place to talk about galaxy, if no, let me know) I would like to make some feature requests for galaxy.ansible.com: 1. Webhook on GitHub for autoupdate roles on Galaxy Having more and m…

---

## [Ubuntu Controller with Windows Host](https://forum.ansible.com/t/ubuntu-controller-with-windows-host/16002)

<div class="topic-metadata">

**Author:** [@Avinash\_Singh](https://forum.ansible.com/u/Avinash_Singh)\
**Replies:** 9\
**Last updated:** [August 25, 2014, 10:29pm UTC](https://forum.ansible.com/t/ubuntu-controller-with-windows-host/16002 "2014-08-25T22:29:12Z")

</div>

Hi, I have installed ansible on my linux controller, however I am unable to win\_ping my windows host machine. The controller and host are virtual machines hosted on my physical machine. I am able to ping each machine …

---

## [Roles with multiple OS versions](https://forum.ansible.com/t/roles-with-multiple-os-versions/16033)

<div class="topic-metadata">

**Author:** [@Anand\_Buddhdev2](https://forum.ansible.com/u/Anand_Buddhdev2)\
**Replies:** 9\
**Last updated:** [August 25, 2014, 7:30pm UTC](https://forum.ansible.com/t/roles-with-multiple-os-versions/16033 "2014-08-25T19:30:21Z")

</div>

Hello ansible folk, I have a custom role called “firewall” that I currently use with CentOS 6. It managed the ip(6)tables rules files and reloads iptables as needed. Now I have a CentOS 7 server, on which firewalling i…

---

## [shell changed\_when a file is updated](https://forum.ansible.com/t/shell-changed-when-a-file-is-updated/16025)

<div class="topic-metadata">

**Author:** [@Akos\_Vandra](https://forum.ansible.com/u/Akos_Vandra)\
**Replies:** 2\
**Last updated:** [August 25, 2014, 2:11pm UTC](https://forum.ansible.com/t/shell-changed-when-a-file-is-updated/16025 "2014-08-25T14:11:56Z")

</div>

Hello! Is it possible to do something similar to the creates argument, but one that would affect the changed attribute? - shell: ./configure register: last\_command args: updates: Makefile Would return chan…

---

## [Ansible - How can I access register arrays defined in one host from another host](https://forum.ansible.com/t/ansible-how-can-i-access-register-arrays-defined-in-one-host-from-another-host/16030)

<div class="topic-metadata">

**Author:** [@Imran\_Khan1](https://forum.ansible.com/u/Imran_Khan1)\
**Replies:** 2\
**Last updated:** [August 25, 2014, 11:59am UTC](https://forum.ansible.com/t/ansible-how-can-i-access-register-arrays-defined-in-one-host-from-another-host/16030 "2014-08-25T11:59:02Z")

</div>

What this code does is: Get some user input at run time, do some tasks (including creating new hosts) depending on the user input at run time. Then do some other tasks in the newly created hosts. The only confusion I am …

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

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