# Latest

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

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

**Page:** 923

---

## [playbook conditional include another playbook not wokring](https://forum.ansible.com/t/playbook-conditional-include-another-playbook-not-wokring/16690)

<div class="topic-metadata">

**Author:** [@jack1](https://forum.ansible.com/u/jack1)\
**Replies:** 5\
**Last updated:** [November 5, 2014, 2:14pm UTC](https://forum.ansible.com/t/playbook-conditional-include-another-playbook-not-wokring/16690 "2014-11-05T14:14:49Z")

</div>

I have problem at conditional include playbook: For example, I am following three simple playbooks: playbook0.yml:

---

## [How does Ansible copy a module to a remote host?](https://forum.ansible.com/t/how-does-ansible-copy-a-module-to-a-remote-host/16700)

<div class="topic-metadata">

**Author:** [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Replies:** 0\
**Last updated:** [November 5, 2014, 2:03pm UTC](https://forum.ansible.com/t/how-does-ansible-copy-a-module-to-a-remote-host/16700 "2014-11-05T14:03:58Z")

</div>

Hi Craig, If you’re running the devel branch (which you should be if you’re wanting to edit module code), the modules are stored in the modules/{core,extras} directories in the main source tree. The path to the docker m…

---

## [python-boto needs an EPEL maintainer](https://forum.ansible.com/t/python-boto-needs-an-epel-maintainer/16696)

<div class="topic-metadata">

**Author:** [@kahlil.hodgson](https://forum.ansible.com/u/kahlil.hodgson)\
**Replies:** 2\
**Last updated:** [November 5, 2014, 7:28am UTC](https://forum.ansible.com/t/python-boto-needs-an-epel-maintainer/16696 "2014-11-05T07:28:06Z")

</div>

Just saw the following announcement regarding orphaned EPEL packages: https://lists.fedoraproject.org/pipermail/epel-announce/2014-November/000032.html Note that python-boto is on the list of packages to be retired by …

---

## [Finding out what groups a host is a member of in a template?](https://forum.ansible.com/t/finding-out-what-groups-a-host-is-a-member-of-in-a-template/16697)

<div class="topic-metadata">

**Author:** [@Kevin\_Burton](https://forum.ansible.com/u/Kevin_Burton)\
**Replies:** 1\
**Last updated:** [November 5, 2014, 3:35am UTC](https://forum.ansible.com/t/finding-out-what-groups-a-host-is-a-member-of-in-a-template/16697 "2014-11-05T03:35:17Z")

</div>

For the life of me I can’t seem to find this in the docs but I’m sure it’s possible. I have a template and I want to expand a string to all the groups that host is a member of. I’m using them as tags in our monitoring …

---

## [Need help with error: msg: parameters are mutually exclusive: \['package', 'upgrade', 'deb'\]](https://forum.ansible.com/t/need-help-with-error-msg-parameters-are-mutually-exclusive-package-upgrade-deb/16692)

<div class="topic-metadata">

**Author:** [@Ayush\_Sharma](https://forum.ansible.com/u/Ayush_Sharma)\
**Replies:** 1\
**Last updated:** [November 5, 2014, 2:08am UTC](https://forum.ansible.com/t/need-help-with-error-msg-parameters-are-mutually-exclusive-package-upgrade-deb/16692 "2014-11-05T02:08:31Z")

</div>

I’m using the following task to install a few utilities: \`- name: install utilities apt: name={{ item.pkg }} state=present upgrade=full with\_items: pkg: ‘htop’ pkg: ‘mytop’ pkg: ‘iotop’ pkg: ‘pv’\` \`When executing i…

---

## [Managing Primary/Secondary relationship in cluster](https://forum.ansible.com/t/managing-primary-secondary-relationship-in-cluster/16684)

<div class="topic-metadata">

**Author:** [@Barry\_Morrison](https://forum.ansible.com/u/Barry_Morrison)\
**Replies:** 6\
**Last updated:** [November 5, 2014, 1:34am UTC](https://forum.ansible.com/t/managing-primary-secondary-relationship-in-cluster/16684 "2014-11-05T01:34:32Z")

</div>

I have a pair of servers (server1..domain, server2..domain) in two environments (staging and production). Server1 is primary, server2 is secondary. When I originally built the playbook, I had aliases in the inventory fi…

---

## [Error in play using 'lineinfile' module](https://forum.ansible.com/t/error-in-play-using-lineinfile-module/16674)

<div class="topic-metadata">

**Author:** [@Will\_Dennis](https://forum.ansible.com/u/Will_Dennis)\
**Replies:** 4\
**Last updated:** [November 4, 2014, 11:05pm UTC](https://forum.ansible.com/t/error-in-play-using-lineinfile-module/16674 "2014-11-04T23:05:36Z")

</div>

Hi all, Trying to add a line (or modify if existing) to “sshd\_config” to lock down who can SSH to the target server. On RHEL, there is no “AllowGroups” (or “AllowUsers”) line present in the as-shipped sshd\_config file. …

---

## [jumphost sudo su AND remote sudo su](https://forum.ansible.com/t/jumphost-sudo-su-and-remote-sudo-su/16694)

<div class="topic-metadata">

**Author:** [@Phil\_Taylor](https://forum.ansible.com/u/Phil_Taylor)\
**Replies:** 0\
**Last updated:** [November 4, 2014, 10:13pm UTC](https://forum.ansible.com/t/jumphost-sudo-su-and-remote-sudo-su/16694 "2014-11-04T22:13:18Z")

</div>

Hi everyone, I’m new here and to ansible so please be gentle :wink: I have a situation where to access the remote ansible host/s via SSH I need to: have my public key on the jumphost as my user acct (A) sudo su on…

---

## [Creating a file locally](https://forum.ansible.com/t/creating-a-file-locally/16681)

<div class="topic-metadata">

**Author:** [@Jacek](https://forum.ansible.com/u/Jacek)\
**Replies:** 2\
**Last updated:** [November 4, 2014, 9:31pm UTC](https://forum.ansible.com/t/creating-a-file-locally/16681 "2014-11-04T21:31:40Z")

</div>

Hi, Is there a way to ask ansible to create a file locally on the controller node where my playbook exists? I need to create a property file for further build process and it would be great if I could do it automatically…

---

## [yum module: add support for check\_mode /w yum package groups](https://forum.ansible.com/t/yum-module-add-support-for-check-mode-w-yum-package-groups/16671)

<div class="topic-metadata">

**Author:** [@Jean-Francois\_Chevre](https://forum.ansible.com/u/Jean-Francois_Chevre)\
**Replies:** 1\
**Last updated:** [November 4, 2014, 9:01pm UTC](https://forum.ansible.com/t/yum-module-add-support-for-check-mode-w-yum-package-groups/16671 "2014-11-04T21:01:55Z")

</div>

Hello ansible community! This is my first post and first pull request: https://github.com/ansible/ansible-modules-core/pull/264 FYI: I had sent a pull request before the ansible repos reorganizations and I have just ha…

---

## [How to copy to remote servers](https://forum.ansible.com/t/how-to-copy-to-remote-servers/16606)

<div class="topic-metadata">

**Author:** [@vinay.bhasker](https://forum.ansible.com/u/vinay.bhasker)\
**Replies:** 4\
**Last updated:** [November 4, 2014, 6:09pm UTC](https://forum.ansible.com/t/how-to-copy-to-remote-servers/16606 "2014-11-04T18:09:11Z")

</div>

I am new to ansible and need suggestion as I how to perform different task in different hosts. I need to setup jdk & wls in one host and move the binaries(jdk/wls) from same server to other servers. I was able to setup…

---

## [Accessing hashes of lists](https://forum.ansible.com/t/accessing-hashes-of-lists/16689)

<div class="topic-metadata">

**Author:** [@James\_Morgan1](https://forum.ansible.com/u/James_Morgan1)\
**Replies:** 2\
**Last updated:** [November 4, 2014, 5:11pm UTC](https://forum.ansible.com/t/accessing-hashes-of-lists/16689 "2014-11-04T17:11:47Z")

</div>

Hi, I need to store information about applications in a variable data structure and access it via key. If I store the information as follows I can access using with\_items hosts: localhost connection: local vars: a…

---

## [probably a dumb question, but ....](https://forum.ansible.com/t/probably-a-dumb-question-but/16677)

<div class="topic-metadata">

**Author:** [@Tennis\_Smith](https://forum.ansible.com/u/Tennis_Smith)\
**Replies:** 2\
**Last updated:** [November 4, 2014, 3:03pm UTC](https://forum.ansible.com/t/probably-a-dumb-question-but/16677 "2014-11-04T15:03:34Z")

</div>

Why isn’t there a “galaxy” module for installing roles directly inside ansible? -T

---

## [Include + with\_items AGAIN.](https://forum.ansible.com/t/include-with-items-again/16687)

<div class="topic-metadata">

**Author:** [@Akos\_Vandra](https://forum.ansible.com/u/Akos_Vandra)\
**Replies:** 1\
**Last updated:** [November 4, 2014, 2:36pm UTC](https://forum.ansible.com/t/include-with-items-again/16687 "2014-11-04T14:36:00Z")

</div>

Hello, I know, I know… It’s getting boring, but… I keep bumping into this a LOT. I would like to bring back include + with\_items again. Consider having: one nginx role a few other roles, let’s say it’s a wordpress r…

---

## [Preview of first 3 chapters of the new O'Reilly Ansible Book from Lorin Hochstein](https://forum.ansible.com/t/preview-of-first-3-chapters-of-the-new-oreilly-ansible-book-from-lorin-hochstein/16686)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Replies:** 0\
**Last updated:** [November 4, 2014, 1:58pm UTC](https://forum.ansible.com/t/preview-of-first-3-chapters-of-the-new-oreilly-ansible-book-from-lorin-hochstein/16686 "2014-11-04T13:58:49Z")

</div>

For those interested: http://www.ansible.com/ansible-book

---

## [Troubleshooting templates - getting false instead of variable content](https://forum.ansible.com/t/troubleshooting-templates-getting-false-instead-of-variable-content/16682)

<div class="topic-metadata">

**Author:** [@Francisco\_Reyes](https://forum.ansible.com/u/Francisco_Reyes)\
**Replies:** 3\
**Last updated:** [November 4, 2014, 2:30am UTC](https://forum.ansible.com/t/troubleshooting-templates-getting-false-instead-of-variable-content/16682 "2014-11-04T02:30:51Z")

</div>

Have two roles, both with templates. I have defined variables for both in a host\_vars/HostFileName One role’s template works without issues and the second gets “false” instead of the variables contents. Any ideas or s…

---

## [How to use template inside of shell creates conditional check?](https://forum.ansible.com/t/how-to-use-template-inside-of-shell-creates-conditional-check/16666)

<div class="topic-metadata">

**Author:** [@hce](https://forum.ansible.com/u/hce)\
**Replies:** 4\
**Last updated:** [November 4, 2014, 12:20am UTC](https://forum.ansible.com/t/how-to-use-template-inside-of-shell-creates-conditional-check/16666 "2014-11-04T00:20:13Z")

</div>

Hi, The following examples gave me a syntax error, appreciate clues to use template inside creates statement. shell: “cp /tmp/{{ my\_server }}.crt /etc/{{ my\_server }}.crt” args: creates: /etc/{{ my\_server }}.crt Tha…

---

## [Is it possible to exclude a role in meta/main.yaml ?](https://forum.ansible.com/t/is-it-possible-to-exclude-a-role-in-meta-main-yaml/16672)

<div class="topic-metadata">

**Author:** [@Florian\_Dambrine](https://forum.ansible.com/u/Florian_Dambrine)\
**Replies:** 1\
**Last updated:** [November 3, 2014, 11:11pm UTC](https://forum.ansible.com/t/is-it-possible-to-exclude-a-role-in-meta-main-yaml/16672 "2014-11-03T23:11:47Z")

</div>

Hi guys, I am trying to exclude a role in the meta/main.yaml according to a var that is defined in my main playbook. Is it possible to do it? Here is what I would like to do:

---

## [ability to gather CIDR ( /24 aswell as 255.255.255.0) from remote server.](https://forum.ansible.com/t/ability-to-gather-cidr-24-aswell-as-255-255-255-0-from-remote-server/16675)

<div class="topic-metadata">

**Author:** [@Stefan\_Eriksson](https://forum.ansible.com/u/Stefan_Eriksson)\
**Replies:** 2\
**Last updated:** [November 3, 2014, 11:10pm UTC](https://forum.ansible.com/t/ability-to-gather-cidr-24-aswell-as-255-255-255-0-from-remote-server/16675 "2014-11-03T23:10:04Z")

</div>

I would like facts to gather CIDR as well as netmask for my IPv4, Its useful for a lot of config files where it doesn’t take 255.255.255.0 but rather only allow /24, like quagga’s ospfd.conf Sample config: router ospf …

---

## [ansible and do-until loops with the ec2 cloud module](https://forum.ansible.com/t/ansible-and-do-until-loops-with-the-ec2-cloud-module/16679)

<div class="topic-metadata">

**Author:** [@Nate\_Dobbs](https://forum.ansible.com/u/Nate_Dobbs)\
**Replies:** 0\
**Last updated:** [November 3, 2014, 11:04pm UTC](https://forum.ansible.com/t/ansible-and-do-until-loops-with-the-ec2-cloud-module/16679 "2014-11-03T23:04:25Z")

</div>

Does anyone have experience with ‘do-until’ loops with ‘extras’ modules? When I use one and the condition matches, I get an error while evaluating conditional. Refer to =\> http://pastebin.com/mjqU5pNC Am I using the loo…

---

## [Strane race condition in Ansible](https://forum.ansible.com/t/strane-race-condition-in-ansible/14984)

<div class="topic-metadata">

**Author:** [@Juergen\_Brendel1](https://forum.ansible.com/u/Juergen_Brendel1)\
**Replies:** 2\
**Last updated:** [November 3, 2014, 9:33pm UTC](https://forum.ansible.com/t/strane-race-condition-in-ansible/14984 "2014-11-03T21:33:03Z")

</div>

Hello! I've found a weird issue, which makes a playbook fail 'sometimes' in a way that's entirely related to the local Ansible code. It looks like this: ... tasks: - name: …

---

## [What am I doing wrong?  "make tests" returns "Ran 0 tests"](https://forum.ansible.com/t/what-am-i-doing-wrong-make-tests-returns-ran-0-tests/16653)

<div class="topic-metadata">

**Author:** [@Steven\_Edwards](https://forum.ansible.com/u/Steven_Edwards)\
**Replies:** 14\
**Last updated:** [November 3, 2014, 5:12pm UTC](https://forum.ansible.com/t/what-am-i-doing-wrong-make-tests-returns-ran-0-tests/16653 "2014-11-03T17:12:25Z")

</div>

Please help me understand this process. :slight\_smile: I want to add a new command-line option\*, so I forked and cloned the repo, made the relevant additions and changes on a new branch, and ran “make tests” with hopes …

---

## [ec2\_snapshot question: how to run only when needed?](https://forum.ansible.com/t/ec2-snapshot-question-how-to-run-only-when-needed/16593)

<div class="topic-metadata">

**Author:** [@Ted\_Zlatanov](https://forum.ansible.com/u/Ted_Zlatanov)\
**Replies:** 7\
**Last updated:** [November 3, 2014, 4:52pm UTC](https://forum.ansible.com/t/ec2-snapshot-question-how-to-run-only-when-needed/16593 "2014-11-03T16:52:22Z")

</div>

I'd like to snapshot EC2 volumes only when needed. I couldn't find an easy solution that didn't require calling out to boto or other tools. If it exists, please ignore the following :slight\_smile: I wanted to ask her…

---

## [Why does Ansible change to looking for the group name in ssh config if you add a group of groups.](https://forum.ansible.com/t/why-does-ansible-change-to-looking-for-the-group-name-in-ssh-config-if-you-add-a-group-of-groups/16670)

<div class="topic-metadata">

**Author:** [@ansible1](https://forum.ansible.com/u/ansible1)\
**Replies:** 3\
**Last updated:** [November 3, 2014, 4:30pm UTC](https://forum.ansible.com/t/why-does-ansible-change-to-looking-for-the-group-name-in-ssh-config-if-you-add-a-group-of-groups/16670 "2014-11-03T16:30:40Z")

</div>

Hi there, I have a simple inventory file and a ssh config entry for each host. Inventory file: \[webservers\] hostname01 \[databases\] hostname02 ssh config: Host hostname01 HostName hostname01.domain.com IdentityFile …

---

## [no password supply](https://forum.ansible.com/t/no-password-supply/16664)

<div class="topic-metadata">

**Author:** [@Diogene\_Laerce](https://forum.ansible.com/u/Diogene_Laerce)\
**Replies:** 3\
**Last updated:** [November 3, 2014, 4:26pm UTC](https://forum.ansible.com/t/no-password-supply/16664 "2014-11-03T16:26:06Z")

</div>

Hi, I try to run this in a dedicated playbook test.yml :

---

## [invalid output was: SUDO-SUCCESS-grbzzdkcydzzgrmrppyxzipcdzydincy](https://forum.ansible.com/t/invalid-output-was-sudo-success-grbzzdkcydzzgrmrppyxzipcdzydincy/16669)

<div class="topic-metadata">

**Author:** [@Matias\_De\_Carli](https://forum.ansible.com/u/Matias_De_Carli)\
**Replies:** 0\
**Last updated:** [November 3, 2014, 3:38pm UTC](https://forum.ansible.com/t/invalid-output-was-sudo-success-grbzzdkcydzzgrmrppyxzipcdzydincy/16669 "2014-11-03T15:38:29Z")

</div>

Hi, guys. Im trying to connect a local Vagrant machine using ansible with a CoreOs VM on the cloud. Right now, im getting GATHERING FACTS \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* \<\[remote ip\]\> ES…

---

## [get\_url support custom headers](https://forum.ansible.com/t/get-url-support-custom-headers/16667)

<div class="topic-metadata">

**Author:** [@Andrew\_Craft](https://forum.ansible.com/u/Andrew_Craft)\
**Replies:** 2\
**Last updated:** [November 3, 2014, 3:02pm UTC](https://forum.ansible.com/t/get-url-support-custom-headers/16667 "2014-11-03T15:02:09Z")

</div>

From what i can see get\_url doesn’t support specifying custom http headers like the uri module. What i am trying to do is download some files from the object storage in Softlayer (based on SwiftStack) Customised the s…

---

## [shell/command json output into variables](https://forum.ansible.com/t/shell-command-json-output-into-variables/15665)

<div class="topic-metadata">

**Author:** [@Stuart\_Reynolds](https://forum.ansible.com/u/Stuart_Reynolds)\
**Replies:** 10\
**Last updated:** [November 3, 2014, 2:35pm UTC](https://forum.ansible.com/t/shell-command-json-output-into-variables/15665 "2014-11-03T14:35:12Z")

</div>

(1) Many command line tools (such as the aws CLI tools) output results directory as JSON. Is there a way to slurp up stdout and json-to-pydict it? In many cases this would be preferable to using modules which are i) hig…

---

## [need a tip. this feels wrong](https://forum.ansible.com/t/need-a-tip-this-feels-wrong/16662)

<div class="topic-metadata">

**Author:** [@andrewrothstein](https://forum.ansible.com/u/andrewrothstein)\
**Replies:** 2\
**Last updated:** [November 3, 2014, 2:32pm UTC](https://forum.ansible.com/t/need-a-tip-this-feels-wrong/16662 "2014-11-03T14:32:38Z")

</div>

I like Ubuntu but I want to switch to Fedora. I’m trying to port my playbooks that I wrote to work on Ubuntu and port them to Fedora. Here is the most I’ve been able to factor my roles down to:

---

## [SSH connection slow after going from 1.6 to 1.8](https://forum.ansible.com/t/ssh-connection-slow-after-going-from-1-6-to-1-8/16654)

<div class="topic-metadata">

**Author:** [@Thomas\_Fuchs](https://forum.ansible.com/u/Thomas_Fuchs)\
**Replies:** 3\
**Last updated:** [November 3, 2014, 2:30pm UTC](https://forum.ansible.com/t/ssh-connection-slow-after-going-from-1-6-to-1-8/16654 "2014-11-03T14:30:29Z")

</div>

Hi there! I’ve these options in my ansible.cfg: \[ssh\_connection\] pipelining=True ssh\_args=-o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=7200s On an older version (Ansible 1.6 development, shortly befor…

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

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