# Latest

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

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

**Page:** 994

---

## [Best practices for host aliases?](https://forum.ansible.com/t/best-practices-for-host-aliases/14487)

<div class="topic-metadata">

**Author:** [@Grzegorz\_Nosek](https://forum.ansible.com/u/Grzegorz_Nosek)\
**Replies:** 0\
**Last updated:** [February 4, 2014, 3:05pm UTC](https://forum.ansible.com/t/best-practices-for-host-aliases/14487 "2014-02-04T15:05:09Z")

</div>

Hi, Are there any generally accepted best practices regarding host aliases? E.g. I have a bunch of similar environments (dev/stage/prod or different customers with similar setups or whatever) where different machines …

---

## [TypeError in play.py, \_load\_tasks for include statements in tasks/main.yml](https://forum.ansible.com/t/typeerror-in-play-py-load-tasks-for-include-statements-in-tasks-main-yml/14483)

<div class="topic-metadata">

**Author:** [@RobL](https://forum.ansible.com/u/RobL)\
**Replies:** 1\
**Last updated:** [February 4, 2014, 2:46pm UTC](https://forum.ansible.com/t/typeerror-in-play-py-load-tasks-for-include-statements-in-tasks-main-yml/14483 "2014-02-04T14:46:33Z")

</div>

Hi, I’m just getting started with Ansible roles, and hit an error on my first attempt. Any help on debugging would be appreciated. \[ansible@localhost deploy\]$ ansible-playbook -c ssh --private-key=~/.ssh/AWSVBT.pem -vv…

---

## [teach netscaler module about HA clusters](https://forum.ansible.com/t/teach-netscaler-module-about-ha-clusters/14485)

<div class="topic-metadata">

**Author:** [@Howard\_Oettle](https://forum.ansible.com/u/Howard_Oettle)\
**Replies:** 0\
**Last updated:** [February 4, 2014, 12:19pm UTC](https://forum.ansible.com/t/teach-netscaler-module-about-ha-clusters/14485 "2014-02-04T12:19:25Z")

</div>

Netscaler appliances have the potential to be deployed in clusters for high availability - one node primary, one (or more) nodes secondary. Unfortunately this can lead to cases where a user (or ansible module) can log in…

---

## [Allow variables to be assigned to the 'serial' playbook attribute.](https://forum.ansible.com/t/allow-variables-to-be-assigned-to-the-serial-playbook-attribute/13888)

<div class="topic-metadata">

**Author:** [@Howard\_Oettle](https://forum.ansible.com/u/Howard_Oettle)\
**Replies:** 6\
**Last updated:** [February 4, 2014, 11:44am UTC](https://forum.ansible.com/t/allow-variables-to-be-assigned-to-the-serial-playbook-attribute/13888 "2014-02-04T11:44:51Z")

</div>

I’ve been looking and looking and I don’t think anyone has requested this…so here goes… I’ve got a situation with a fairly large server fleet, with a suitably diverse matrix of roles / locations / etc etc. We use the sl…

---

## [different groups with different variables using the same role in the same host](https://forum.ansible.com/t/different-groups-with-different-variables-using-the-same-role-in-the-same-host/14444)

<div class="topic-metadata">

**Author:** [@Guillem\_Liarte](https://forum.ansible.com/u/Guillem_Liarte)\
**Replies:** 8\
**Last updated:** [February 4, 2014, 8:46am UTC](https://forum.ansible.com/t/different-groups-with-different-variables-using-the-same-role-in-the-same-host/14444 "2014-02-04T08:46:40Z")

</div>

Hello, I think I have got to a point where I really get confused about teh way variables are used. I need some clarity to understand how you would do this with ansible: Lets say I have one single hosts where I want to …

---

## [Error after deployment: "-su: /dev/null: Permission denied"](https://forum.ansible.com/t/error-after-deployment-su-dev-null-permission-denied/14479)

<div class="topic-metadata">

**Author:** [@Dan\_CaJacob](https://forum.ansible.com/u/Dan_CaJacob)\
**Replies:** 3\
**Last updated:** [February 4, 2014, 6:34am UTC](https://forum.ansible.com/t/error-after-deployment-su-dev-null-permission-denied/14479 "2014-02-04T06:34:47Z")

</div>

I recently got some errors on the end nodes I was deploying to. Error is: “-su: /dev/null: Permission denied”, which in general seems to be recoverable after a reboot. It looks like the /dev/null file is just deleted som…

---

## [Conditionals - when: \<var1\> and \<var2\> is defined works in a weird way](https://forum.ansible.com/t/conditionals-when-var1-and-var2-is-defined-works-in-a-weird-way/14481)

<div class="topic-metadata">

**Author:** [@Roman\_Revyakin](https://forum.ansible.com/u/Roman_Revyakin)\
**Replies:** 7\
**Last updated:** [February 4, 2014, 4:38am UTC](https://forum.ansible.com/t/conditionals-when-var1-and-var2-is-defined-works-in-a-weird-way/14481 "2014-02-04T04:38:24Z")

</div>

Hi, I am not sure whether someone has come across this issue previously - trying to search the group for ‘when’ and ‘is defined’ did not yield me anything useful. So I am posting it as a new topic here. I have encounte…

---

## [Accessing play.hosts from a play](https://forum.ansible.com/t/accessing-play-hosts-from-a-play/14482)

<div class="topic-metadata">

**Author:** [@Ed\_Zarecor](https://forum.ansible.com/u/Ed_Zarecor)\
**Replies:** 1\
**Last updated:** [February 4, 2014, 4:37am UTC](https://forum.ansible.com/t/accessing-play-hosts-from-a-play/14482 "2014-02-04T04:37:27Z")

</div>

Is there a way to access the play.hosts from my play? I would like to be able to do: hosts: tag\_role\_cluster\_host:&tag\_environment\_staging:&tag\_deployment\_us\_east and then use the host list generated by that set inte…

---

## [Ansible Design Pattern Question](https://forum.ansible.com/t/ansible-design-pattern-question/14468)

<div class="topic-metadata">

**Author:** [@Aaron\_Hunter](https://forum.ansible.com/u/Aaron_Hunter)\
**Replies:** 1\
**Last updated:** [February 4, 2014, 1:17am UTC](https://forum.ansible.com/t/ansible-design-pattern-question/14468 "2014-02-04T01:17:13Z")

</div>

I have run into a few cases where I have to make a change to a running service (e.g., iptables and BIND) using a command line tool (iptables, nsupdate). This case is different from the more normal (for me): change config…

---

## [run a specific task sequentially for each host](https://forum.ansible.com/t/run-a-specific-task-sequentially-for-each-host/14421)

<div class="topic-metadata">

**Author:** [@jack1](https://forum.ansible.com/u/jack1)\
**Replies:** 7\
**Last updated:** [February 3, 2014, 10:55pm UTC](https://forum.ansible.com/t/run-a-specific-task-sequentially-for-each-host/14421 "2014-02-03T22:55:20Z")

</div>

Hi, All: The serial: 1 allows us to run a play sequentially for each host in the host group. But we cannot find similar setting at task level. We want to find a way to run a task in a role sequentially for each host bec…

---

## [getting "Error in getting the server list: list index out of range" in nova\_compute module](https://forum.ansible.com/t/getting-error-in-getting-the-server-list-list-index-out-of-range-in-nova-compute-module/14476)

<div class="topic-metadata">

**Author:** [@YuLing\_Chen](https://forum.ansible.com/u/YuLing_Chen)\
**Replies:** 2\
**Last updated:** [February 3, 2014, 8:23pm UTC](https://forum.ansible.com/t/getting-error-in-getting-the-server-list-list-index-out-of-range-in-nova-compute-module/14476 "2014-02-03T20:23:17Z")

</div>

Hi All, I’m new in Ansible and looking at the OpenStack related modules in ansible. All the modules worked pretty well in my environment except the nova\_compute module when I tried to create a VM instance. I was getting…

---

## [How to add a number to an {{ item }}](https://forum.ansible.com/t/how-to-add-a-number-to-an-item/14475)

<div class="topic-metadata">

**Author:** [@edrozenberg](https://forum.ansible.com/u/edrozenberg)\
**Replies:** 2\
**Last updated:** [February 3, 2014, 7:42pm UTC](https://forum.ansible.com/t/how-to-add-a-number-to-an-item/14475 "2014-02-03T19:42:53Z")

</div>

Hello, In certain cases it’s useful to be able to add a number to the value of an {{ item }} variable For example when creating md (raid) devices, md0 for example is made up of partitions sda1 and sdb1. with\_items: \[…

---

## [Gentoo Modules](https://forum.ansible.com/t/gentoo-modules/12179)

<div class="topic-metadata">

**Author:** [@david.chanial](https://forum.ansible.com/u/david.chanial)\
**Replies:** 13\
**Last updated:** [February 3, 2014, 2:25pm UTC](https://forum.ansible.com/t/gentoo-modules/12179 "2014-02-03T14:25:32Z")

</div>

Hi, Just a quick message to known if : Some peoples are interested by Gentoo Linux package manager and others items to be handled by Ansible ? someone already working on it Actually, i see two module needed : g…

---

## [ec2 module user-data?](https://forum.ansible.com/t/ec2-module-user-data/14317)

<div class="topic-metadata">

**Author:** [@nirik](https://forum.ansible.com/u/nirik)\
**Replies:** 2\
**Last updated:** [February 2, 2014, 6:27pm UTC](https://forum.ansible.com/t/ec2-module-user-data/14317 "2014-02-02T18:27:21Z")

</div>

Greetings. I find myself wanting to pass some user\_data to a call to the ec2 module, but I am unclear on the format I should be passing it. Basically I want to pass it: #cloud-config disable\_root: 0 When I call th…

---

## [unknown distribution option](https://forum.ansible.com/t/unknown-distribution-option/14474)

<div class="topic-metadata">

**Author:** [@Diogene\_Laerce](https://forum.ansible.com/u/Diogene_Laerce)\
**Replies:** 1\
**Last updated:** [February 2, 2014, 6:10pm UTC](https://forum.ansible.com/t/unknown-distribution-option/14474 "2014-02-02T18:10:51Z")

</div>

Hi, I have this error : /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'install\_requires' warnings.warn(msg) when running : sudo python setup.py install with the last version of …

---

## [Use flowdock plugin as handler, notify handler to send {{ message }}](https://forum.ansible.com/t/use-flowdock-plugin-as-handler-notify-handler-to-send-message/14295)

<div class="topic-metadata">

**Author:** [@Marko\_Lisica](https://forum.ansible.com/u/Marko_Lisica)\
**Replies:** 4\
**Last updated:** [February 2, 2014, 5:30pm UTC](https://forum.ansible.com/t/use-flowdock-plugin-as-handler-notify-handler-to-send-message/14295 "2014-02-02T17:30:45Z")

</div>

So what I am trying to do is register variable after change has been made and notify flowdock handler to send {{ message }}. As I am really amateur but trying hard :slight\_smile: . Any hints in that direciton?

---

## [addition of solaris to service module?](https://forum.ansible.com/t/addition-of-solaris-to-service-module/11919)

<div class="topic-metadata">

**Author:** [@Romeo\_Theriault](https://forum.ansible.com/u/Romeo_Theriault)\
**Replies:** 6\
**Last updated:** [February 1, 2014, 1:53am UTC](https://forum.ansible.com/t/addition-of-solaris-to-service-module/11919 "2014-02-01T01:53:58Z")

</div>

I was hoping to add solaris SMF \[1\] support to the 'service' module in ansible but after looking over the service module I'm not sure if this is the best idea anymore. Mainly since the solaris SMF tools are quite diff…

---

## [ec2\_elb module does not register ec2\_instances properly (version 1.4.3 and 1.4.4)](https://forum.ansible.com/t/ec2-elb-module-does-not-register-ec2-instances-properly-version-1-4-3-and-1-4-4/14471)

<div class="topic-metadata">

**Author:** [@Jeff\_Wyckoff](https://forum.ansible.com/u/Jeff_Wyckoff)\
**Replies:** 0\
**Last updated:** [January 31, 2014, 9:32pm UTC](https://forum.ansible.com/t/ec2-elb-module-does-not-register-ec2-instances-properly-version-1-4-3-and-1-4-4/14471 "2014-01-31T21:32:13Z")

</div>

Issue: Trying to register an ec2 instance to an elb. However, the ec2\_elb module doesn’t seem to work properly. It claims that the ec2 instance does not exist. However, when I manually registered the ec2 instance to the…

---

## [register variable being truncated](https://forum.ansible.com/t/register-variable-being-truncated/14470)

<div class="topic-metadata">

**Author:** [@David\_Gethings](https://forum.ansible.com/u/David_Gethings)\
**Replies:** 1\
**Last updated:** [January 31, 2014, 8:41pm UTC](https://forum.ansible.com/t/register-variable-being-truncated/14470 "2014-01-31T20:41:14Z")

</div>

Hi, I am working with a custom module. Sometimes it returns an error that I want to capture and then act on in another task. I have a register set and ignore\_errors set to True in the playbook. However the msg returned …

---

## [rabbitmq json config to setup exchanges and queues](https://forum.ansible.com/t/rabbitmq-json-config-to-setup-exchanges-and-queues/14446)

<div class="topic-metadata">

**Author:** [@david.neudorfer](https://forum.ansible.com/u/david.neudorfer)\
**Replies:** 1\
**Last updated:** [January 31, 2014, 6:45pm UTC](https://forum.ansible.com/t/rabbitmq-json-config-to-setup-exchanges-and-queues/14446 "2014-01-31T18:45:10Z")

</div>

Setting up rabbitmq with ansible works really well but I also need to pass it a config file to setup the exchanges and queues. According to the rabbitmq documentation this is done with passing the json file to the manage…

---

## [rabbitmq\_user user state=absent error](https://forum.ansible.com/t/rabbitmq-user-user-state-absent-error/14465)

<div class="topic-metadata">

**Author:** [@david.neudorfer](https://forum.ansible.com/u/david.neudorfer)\
**Replies:** 4\
**Last updated:** [January 31, 2014, 6:38pm UTC](https://forum.ansible.com/t/rabbitmq-user-user-state-absent-error/14465 "2014-01-31T18:38:18Z")

</div>

When I run the task: rabbitmq\_user: user=guest state=absent node=srv1 The error: failed: \[v-cep01\] =\> {“changed”: true, “cmd”: "/usr/sbin/rabbitmqctl delete\_user guest ", “delta”: “0:00:00.101132”, “end”: “2014-01-30…

---

## [Variable validation for user input](https://forum.ansible.com/t/variable-validation-for-user-input/14469)

<div class="topic-metadata">

**Author:** [@Doug\_Campbell](https://forum.ansible.com/u/Doug_Campbell)\
**Replies:** 0\
**Last updated:** [January 31, 2014, 4:03pm UTC](https://forum.ansible.com/t/variable-validation-for-user-input/14469 "2014-01-31T16:03:51Z")

</div>

Is there an easy way to validate user imputed variables in a playbook? I am taking in an IP address from a vars\_prompt and I just want to validate the variable to make sure the IP does not have any typos before using it …

---

## [Odd message on Amazon Linux](https://forum.ansible.com/t/odd-message-on-amazon-linux/14466)

<div class="topic-metadata">

**Author:** [@Stan\_Lemon](https://forum.ansible.com/u/Stan_Lemon)\
**Replies:** 3\
**Last updated:** [January 31, 2014, 3:10pm UTC](https://forum.ansible.com/t/odd-message-on-amazon-linux/14466 "2014-01-31T15:10:52Z")

</div>

Hello, I installed ansible on Amazon Linux from EPEL and when I run ansible-playbook I am seeing the following output: 30-Jan-2014 22:28:15 {“status”:1,“request”:“fcd249e3686b4ea356853a8f75d8f5fe”} 30-Jan-20…

---

## [roles with pre\_tasks and post\_task](https://forum.ansible.com/t/roles-with-pre-tasks-and-post-task/14459)

<div class="topic-metadata">

**Author:** [@adam2](https://forum.ansible.com/u/adam2)\
**Replies:** 2\
**Last updated:** [January 31, 2014, 12:10am UTC](https://forum.ansible.com/t/roles-with-pre-tasks-and-post-task/14459 "2014-01-31T00:10:04Z")

</div>

I have a patch locally that enables pre and post processing for roles. The directory names are pre\_tasks and post\_tasks, of course. The flow is: - hosts: targets roles: - role-1 - role-2 pre\_tasks: …

---

## ["de-duplicating" roles](https://forum.ansible.com/t/de-duplicating-roles/14463)

<div class="topic-metadata">

**Author:** [@Erik\_Anderson](https://forum.ansible.com/u/Erik_Anderson)\
**Replies:** 4\
**Last updated:** [January 30, 2014, 11:05pm UTC](https://forum.ansible.com/t/de-duplicating-roles/14463 "2014-01-30T23:05:13Z")

</div>

In my site.yml, I have the following: include: role1.yml include: role2.yml include: … In each of the roleX.yml files, I have: hosts: roleXservers sudo: yes roles: common roleX Now, in my inventory, if I…

---

## [Variable expansion and tags with the EC2 module](https://forum.ansible.com/t/variable-expansion-and-tags-with-the-ec2-module/14464)

<div class="topic-metadata">

**Author:** [@Stephen\_Gargan](https://forum.ansible.com/u/Stephen_Gargan)\
**Replies:** 1\
**Last updated:** [January 30, 2014, 9:50pm UTC](https://forum.ansible.com/t/variable-expansion-and-tags-with-the-ec2-module/14464 "2014-01-30T21:50:43Z")

</div>

I’m deploying a system to an number of machines in EC2 and am seeing some weird behavior with variable expansion I have group\_vars where I define a target version for my system and versions for components a, b and c. Ty…

---

## [Programmatic variable name access](https://forum.ansible.com/t/programmatic-variable-name-access/14462)

<div class="topic-metadata">

**Author:** [@Juan\_Uys](https://forum.ansible.com/u/Juan_Uys)\
**Replies:** 2\
**Last updated:** [January 30, 2014, 8:24pm UTC](https://forum.ansible.com/t/programmatic-variable-name-access/14462 "2014-01-30T20:24:48Z")

</div>

Hello, I’ve search here for “programmatic” and had a look at http://docs.ansible.com/faq.html#how-do-i-access-a-variable-name-programatically but remain stumped. I’ve got these group\_vars/all.yml: applist: \[ boldface,…

---

## [EC2 boto issue](https://forum.ansible.com/t/ec2-boto-issue/14458)

<div class="topic-metadata">

**Author:** [@esteevio](https://forum.ansible.com/u/esteevio)\
**Replies:** 2\
**Last updated:** [January 30, 2014, 8:19pm UTC](https://forum.ansible.com/t/ec2-boto-issue/14458 "2014-01-30T20:19:36Z")

</div>

I’m having an issue using the ec2 module with ansible, version 1.4.4 on OSX. I keep getting msg: boto required for this module I am not using virutalenv, python was installed with brew and both ansible and boto were in…

---

## [shell comand fails if returned value is 0](https://forum.ansible.com/t/shell-comand-fails-if-returned-value-is-0/14460)

<div class="topic-metadata">

**Author:** [@Manuel\_Estevao](https://forum.ansible.com/u/Manuel_Estevao)\
**Replies:** 2\
**Last updated:** [January 30, 2014, 3:58pm UTC](https://forum.ansible.com/t/shell-comand-fails-if-returned-value-is-0/14460 "2014-01-30T15:58:23Z")

</div>

I’m using ansible 1.4.3 to install and update some RPM packages and I recently hit this bug. I’m using a pre\_task on my playbook to check if there are any updates available for a specific package, like this: name: chec…

---

## [Setting -f from within a playbook](https://forum.ansible.com/t/setting-f-from-within-a-playbook/12492)

<div class="topic-metadata">

**Author:** [@Yves\_Dorfsman](https://forum.ansible.com/u/Yves_Dorfsman)\
**Replies:** 11\
**Last updated:** [January 30, 2014, 2:30pm UTC](https://forum.ansible.com/t/setting-f-from-within-a-playbook/12492 "2014-01-30T14:30:00Z")

</div>

Is there a way to set the number of forks from within a playbook? The default is fine for most of our playbooks, but one of them benefits from a higher number. I don't want to rely on people remembering to set -f20 for …

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

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