# Latest

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

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

**Page:** 954

---

## [Extrapolate data from facts?](https://forum.ansible.com/t/extrapolate-data-from-facts/15710)

<div class="topic-metadata">

**Author:** [@John\_Oliver](https://forum.ansible.com/u/John_Oliver)\
**Replies:** 1\
**Last updated:** [July 18, 2014, 10:52pm UTC](https://forum.ansible.com/t/extrapolate-data-from-facts/15710 "2014-07-18T22:52:06Z")

</div>

I would like to be able to test Macs for the major version of OS X, ie. Lion, Mountain Lion, Mavericks. I see a fact called “ansible\_distribution\_version” which is equal to the whole software rev, like “10.9.4” Can I hav…

---

## [(NOOB) How to assign an array to a variabel in an Ansible-Playbook](https://forum.ansible.com/t/noob-how-to-assign-an-array-to-a-variabel-in-an-ansible-playbook/15688)

<div class="topic-metadata">

**Author:** [@Benjamin\_Bauer](https://forum.ansible.com/u/Benjamin_Bauer)\
**Replies:** 6\
**Last updated:** [July 18, 2014, 10:08pm UTC](https://forum.ansible.com/t/noob-how-to-assign-an-array-to-a-variabel-in-an-ansible-playbook/15688 "2014-07-18T22:08:04Z")

</div>

Can anybody help me on this: http://stackoverflow.com/questions/24798382/how-to-assign-an-array-to-a-variabel-in-an-ansible-playbook

---

## [ansible + openstack heat?](https://forum.ansible.com/t/ansible-openstack-heat/15708)

<div class="topic-metadata">

**Author:** [@Guy\_Matz1](https://forum.ansible.com/u/Guy_Matz1)\
**Replies:** 1\
**Last updated:** [July 18, 2014, 8:13pm UTC](https://forum.ansible.com/t/ansible-openstack-heat/15708 "2014-07-18T20:13:52Z")

</div>

Has anyone gotten ansible to provision a rackspace stack using a Heat template? Thanks!

---

## [Prevent executing a role more than once](https://forum.ansible.com/t/prevent-executing-a-role-more-than-once/15685)

<div class="topic-metadata">

**Author:** [@Ahmad\_Khayyat](https://forum.ansible.com/u/Ahmad_Khayyat)\
**Replies:** 13\
**Last updated:** [July 18, 2014, 6:12pm UTC](https://forum.ansible.com/t/prevent-executing-a-role-more-than-once/15685 "2014-07-18T18:12:49Z")

</div>

I have a common role, which i always want executed, but only once. It is also a dependency of a few other roles that may be executed on their own (via dedicated playbooks). The problem is: in a top-level playbook, e.g. …

---

## [Best way to import ENV variables with defaults](https://forum.ansible.com/t/best-way-to-import-env-variables-with-defaults/15703)

<div class="topic-metadata">

**Author:** [@Yasir\_Saleem](https://forum.ansible.com/u/Yasir_Saleem)\
**Replies:** 5\
**Last updated:** [July 18, 2014, 6:11pm UTC](https://forum.ansible.com/t/best-way-to-import-env-variables-with-defaults/15703 "2014-07-18T18:11:35Z")

</div>

Hi, I want to important env variables as fellow in a group\_vars file.: project\_id: “{{ lookup(‘env’,‘PROJECT\_ID’) | default(‘FOO\_PROJECT’) }}” I want it to pick default value if ENV variable is not defined. Default pa…

---

## [How to only play tasks with specific tags in playbook](https://forum.ansible.com/t/how-to-only-play-tasks-with-specific-tags-in-playbook/15651)

<div class="topic-metadata">

**Author:** [@Brendon\_Standing](https://forum.ansible.com/u/Brendon_Standing)\
**Replies:** 6\
**Last updated:** [July 18, 2014, 6:06pm UTC](https://forum.ansible.com/t/how-to-only-play-tasks-with-specific-tags-in-playbook/15651 "2014-07-18T18:06:37Z")

</div>

Hi all, How do you play just the tasks with set tags in your playbook? From the command line you would do something like: ansible-playbook -i staging deploy.yml --tags “do\_stop, do\_health\_check” I would expect do be a…

---

## [apt module with list of packages](https://forum.ansible.com/t/apt-module-with-list-of-packages/15699)

<div class="topic-metadata">

**Author:** [@Jason\_Clark](https://forum.ansible.com/u/Jason_Clark)\
**Replies:** 2\
**Last updated:** [July 18, 2014, 4:33pm UTC](https://forum.ansible.com/t/apt-module-with-list-of-packages/15699 "2014-07-18T16:33:56Z")

</div>

Is there a way to have a file i.e system-requirements.txt with a package per line and have the apt module install that? Exactly how pip works…

---

## [Playbook organization with var files](https://forum.ansible.com/t/playbook-organization-with-var-files/15684)

<div class="topic-metadata">

**Author:** [@Michael\_Peters](https://forum.ansible.com/u/Michael_Peters)\
**Replies:** 11\
**Last updated:** [July 18, 2014, 2:51pm UTC](https://forum.ansible.com/t/playbook-organization-with-var-files/15684 "2014-07-18T14:51:57Z")

</div>

I'm looking for advice about how to organize my playbooks. Not so much the content as their structure on the file system. Currently I have all of my configuration management (role-level) playbooks at the top level wit…

---

## [User module always reports changed when using 'groups'](https://forum.ansible.com/t/user-module-always-reports-changed-when-using-groups/15702)

<div class="topic-metadata">

**Author:** [@Nico\_K](https://forum.ansible.com/u/Nico_K)\
**Replies:** 2\
**Last updated:** [July 18, 2014, 11:48am UTC](https://forum.ansible.com/t/user-module-always-reports-changed-when-using-groups/15702 "2014-07-18T11:48:45Z")

</div>

Hi, Looks like I’ve run into a bug: name: create users user: name=“{{ item.owner|default(item.name) }}” group=“{{item.group|default(item.name)}}” groups=“aap” with\_items: “{{ user\_list }}” Will always report ‘chang…

---

## [Use setup module filter parameter to get results based on values of a fact](https://forum.ansible.com/t/use-setup-module-filter-parameter-to-get-results-based-on-values-of-a-fact/15696)

<div class="topic-metadata">

**Author:** [@KSS](https://forum.ansible.com/u/KSS)\
**Replies:** 3\
**Last updated:** [July 18, 2014, 11:47am UTC](https://forum.ansible.com/t/use-setup-module-filter-parameter-to-get-results-based-on-values-of-a-fact/15696 "2014-07-18T11:47:50Z")

</div>

Hi, Is it possible to use the setup module along with the filter parameter to return something based on the value of fact? For example, I want to quickly get a list of all my machines in ansible that are VMWare based u…

---

## [Resolve DNS / gather\_facts](https://forum.ansible.com/t/resolve-dns-gather-facts/15701)

<div class="topic-metadata">

**Author:** [@Nico\_K](https://forum.ansible.com/u/Nico_K)\
**Replies:** 1\
**Last updated:** [July 18, 2014, 11:46am UTC](https://forum.ansible.com/t/resolve-dns-gather-facts/15701 "2014-07-18T11:46:04Z")

</div>

Hi, I’ve been reading through a lot of posts regarding the subject of “fact gathering” and I’m under the impression that it’s impossible to force fact gathering on hosts when using ‘–limit’? My specific use case would …

---

## [Connection reset by peer on an AIX host provisioning](https://forum.ansible.com/t/connection-reset-by-peer-on-an-aix-host-provisioning/15691)

<div class="topic-metadata">

**Author:** [@Michael\_Pailloncy](https://forum.ansible.com/u/Michael_Pailloncy)\
**Replies:** 3\
**Last updated:** [July 18, 2014, 8:50am UTC](https://forum.ansible.com/t/connection-reset-by-peer-on-an-aix-host-provisioning/15691 "2014-07-18T08:50:36Z")

</div>

Hi all, I have a problem to provision an AIX host using Ansible (see https://github.com/ansible/ansible/issues/8164 for details). $\> ansible -i myhosts aix -m ping -vvvv Result : \<aix\> ESTABLISH CONNECTION FOR USER: …

---

## [variable interpolation in hostvars](https://forum.ansible.com/t/variable-interpolation-in-hostvars/15683)

<div class="topic-metadata">

**Author:** [@Matt\_Peterson](https://forum.ansible.com/u/Matt_Peterson)\
**Replies:** 7\
**Last updated:** [July 18, 2014, 1:41am UTC](https://forum.ansible.com/t/variable-interpolation-in-hostvars/15683 "2014-07-18T01:41:05Z")

</div>

Given the following example: foo: “y” boo: “x is {{ foo }}” This will renders in a template “x is y” (when referenced as {{ boo }}). However when called as hostvars\[host\]\[‘boo’\] this renders as “x is {{ foo }}”. From …

---

## [mysql\_\* modules defaults from my.cnf](https://forum.ansible.com/t/mysql-modules-defaults-from-my-cnf/15698)

<div class="topic-metadata">

**Author:** [@Michael\_Peters](https://forum.ansible.com/u/Michael_Peters)\
**Replies:** 1\
**Last updated:** [July 18, 2014, 1:39am UTC](https://forum.ansible.com/t/mysql-modules-defaults-from-my-cnf/15698 "2014-07-18T01:39:33Z")

</div>

Right now the various mysql\_\* modules will pull default connection information from the ~/.my.cnf file. This is especially important to make things repeatable especially when the server is newly provisioned and insecu…

---

## [Openstack Nova\_Compute Availability Zone](https://forum.ansible.com/t/openstack-nova-compute-availability-zone/15687)

<div class="topic-metadata">

**Author:** [@TextEditor](https://forum.ansible.com/u/TextEditor)\
**Replies:** 3\
**Last updated:** [July 17, 2014, 5:54pm UTC](https://forum.ansible.com/t/openstack-nova-compute-availability-zone/15687 "2014-07-17T17:54:43Z")

</div>

In the Openstack Nova\_compute module, I cannot give the availability zone for an instance I want to create. Only the region, but my IAAS provider only has Availability Zones. Does anyone know if, and how that would be p…

---

## [Saving file before it is changed](https://forum.ansible.com/t/saving-file-before-it-is-changed/15693)

<div class="topic-metadata">

**Author:** [@Mauricio\_Tavares](https://forum.ansible.com/u/Mauricio_Tavares)\
**Replies:** 3\
**Last updated:** [July 17, 2014, 5:46pm UTC](https://forum.ansible.com/t/saving-file-before-it-is-changed/15693 "2014-07-17T17:46:14Z")

</div>

Let's say I have a template that will reapply my, say, /etc/ssh/sshd\_conf if it has changed. How can I save the old one just in case? Something like in /etc/ssh/Old would do fine; you get the idea.

---

## [file module can't be opened](https://forum.ansible.com/t/file-module-cant-be-opened/15695)

<div class="topic-metadata">

**Author:** [@Nic\_Flores](https://forum.ansible.com/u/Nic_Flores)\
**Replies:** 3\
**Last updated:** [July 17, 2014, 5:42pm UTC](https://forum.ansible.com/t/file-module-cant-be-opened/15695 "2014-07-17T17:42:31Z")

</div>

Hey Folks, I’m running into the following error. I would appreciate any feedback. -bash-4.1$ ansible --version ansible 1.7 (devel f8bf9cdeec) last updated 2014/06/23 20:27:32 (GMT +000) -bash-4.1$ ansible-playbook ed…

---

## [copy module with destination link count \> 1](https://forum.ansible.com/t/copy-module-with-destination-link-count-1/15694)

<div class="topic-metadata">

**Author:** [@Dustin\_C\_Hatch](https://forum.ansible.com/u/Dustin_C_Hatch)\
**Replies:** 0\
**Last updated:** [July 17, 2014, 4:00pm UTC](https://forum.ansible.com/t/copy-module-with-destination-link-count-1/15694 "2014-07-17T16:00:37Z")

</div>

I ran into something interesting today. I am using the \`copy\` module to copy a file from the management station to the managed host, and then the \`file\` module to create a hard link to that same file somewhere else. T…

---

## [group\_vars not visible to playbook](https://forum.ansible.com/t/group-vars-not-visible-to-playbook/15686)

<div class="topic-metadata">

**Author:** [@John\_Wang](https://forum.ansible.com/u/John_Wang)\
**Replies:** 5\
**Last updated:** [July 17, 2014, 2:58pm UTC](https://forum.ansible.com/t/group-vars-not-visible-to-playbook/15686 "2014-07-17T14:58:19Z")

</div>

Hi, It’s seemed that variables defined in the group\_vars are not visible to playbooks. Then where should I keep the those variables? Here is what I’m trying to do: directory tree:

---

## [Mysql Idempotency Failure](https://forum.ansible.com/t/mysql-idempotency-failure/15689)

<div class="topic-metadata">

**Author:** [@Chinmaya\_Patanaik](https://forum.ansible.com/u/Chinmaya_Patanaik)\
**Replies:** 4\
**Last updated:** [July 17, 2014, 2:35pm UTC](https://forum.ansible.com/t/mysql-idempotency-failure/15689 "2014-07-17T14:35:18Z")

</div>

Hi, I am trying to incorporate mysql secure installation using Ansible playbook. I followed the below links. http://stackoverflow.com/questions/16444306/ansible-idempotent-mysql-installation-playbook https://groups.go…

---

## [can't get Developing Dynamic Inventory working as expected...](https://forum.ansible.com/t/cant-get-developing-dynamic-inventory-working-as-expected/15692)

<div class="topic-metadata">

**Author:** [@Zhenkai\_Jiang](https://forum.ansible.com/u/Zhenkai_Jiang)\
**Replies:** 1\
**Last updated:** [July 17, 2014, 12:51pm UTC](https://forum.ansible.com/t/cant-get-developing-dynamic-inventory-working-as-expected/15692 "2014-07-17T12:51:23Z")

</div>

Having an modified python script generating following json string while --list. but get some error message from ansible. not sure what went wrong… ERROR: failed to parse: {‘test’: \[‘jzk.simpletest.com.’, ‘test.simpletes…

---

## [Setting dir vs file permissions with file "recurse=yes"](https://forum.ansible.com/t/setting-dir-vs-file-permissions-with-file-recurse-yes/15409)

<div class="topic-metadata">

**Author:** [@Paul\_Sokolovsky](https://forum.ansible.com/u/Paul_Sokolovsky)\
**Replies:** 9\
**Last updated:** [July 17, 2014, 12:32pm UTC](https://forum.ansible.com/t/setting-dir-vs-file-permissions-with-file-recurse-yes/15409 "2014-07-17T12:32:29Z")

</div>

Hello, I just found out that "file" module's "mode" param accepts only octal value. That comes as a little surprise, as http://docs.ansible.com/file\_module.html described "mode" as "mode the file or directory should …

---

## [Variables containing passwords - Filtering](https://forum.ansible.com/t/variables-containing-passwords-filtering/15682)

<div class="topic-metadata">

**Author:** [@Simone\_Bovi](https://forum.ansible.com/u/Simone_Bovi)\
**Replies:** 2\
**Last updated:** [July 17, 2014, 12:28pm UTC](https://forum.ansible.com/t/variables-containing-passwords-filtering/15682 "2014-07-17T12:28:41Z")

</div>

Hello, I would like to share a feature idea: how about filtering passwords defined in variables in a way that they are never put through output or red/blue logs? It seems that at this time is filtered only output where…

---

## [spacewalk.py issues and questions](https://forum.ansible.com/t/spacewalk-py-issues-and-questions/15678)

<div class="topic-metadata">

**Author:** [@David\_Jacobs](https://forum.ansible.com/u/David_Jacobs)\
**Replies:** 6\
**Last updated:** [July 16, 2014, 11:49pm UTC](https://forum.ansible.com/t/spacewalk-py-issues-and-questions/15678 "2014-07-16T23:49:49Z")

</div>

I am trying to get a good inventory from both a spacewalk and an older satellite server. I was able to share the spacewalk.py script with those server and produce an output, which is all one 1 line, and looks something l…

---

## [Pipeline in command error](https://forum.ansible.com/t/pipeline-in-command-error/15663)

<div class="topic-metadata">

**Author:** [@Paco\_p](https://forum.ansible.com/u/Paco_p)\
**Replies:** 7\
**Last updated:** [July 16, 2014, 11:49pm UTC](https://forum.ansible.com/t/pipeline-in-command-error/15663 "2014-07-16T23:49:30Z")

</div>

Hello, I need interact with a script, so I have a script as(/tmp/a.sh): \` read var if \[\[ $var == “y” \]\]; then exit 0; else exit 1; fi \` And in my playbook \` name: execute script command: “yes | bash /tmp/a.…

---

## [unable to find syntax error in simple playbook.](https://forum.ansible.com/t/unable-to-find-syntax-error-in-simple-playbook/15671)

<div class="topic-metadata">

**Author:** [@Dave\_Thacker](https://forum.ansible.com/u/Dave_Thacker)\
**Replies:** 2\
**Last updated:** [July 16, 2014, 11:48pm UTC](https://forum.ansible.com/t/unable-to-find-syntax-error-in-simple-playbook/15671 "2014-07-16T23:48:19Z")

</div>

Ansible 1.6.2 on Oracle Linux 6.5. This is my first playbook. Version 1 ansible@devansible01 playbooks\]$ cat nfs\_mounts.yml

---

## [Design advice?](https://forum.ansible.com/t/design-advice/15668)

<div class="topic-metadata">

**Author:** [@Nico\_K](https://forum.ansible.com/u/Nico_K)\
**Replies:** 4\
**Last updated:** [July 16, 2014, 11:47pm UTC](https://forum.ansible.com/t/design-advice/15668 "2014-07-16T23:47:54Z")

</div>

Hi, First off I wanted to say that I’ve been using Ansible for a while now and so far I’m really pleased with it. The product is powerful and flexible and the community is alive and helpful. I was hoping that some of …

---

## [Input on module to resize filesystems.](https://forum.ansible.com/t/input-on-module-to-resize-filesystems/15676)

<div class="topic-metadata">

**Author:** [@C\_Morgan\_Hamill](https://forum.ansible.com/u/C_Morgan_Hamill)\
**Replies:** 3\
**Last updated:** [July 16, 2014, 9:01pm UTC](https://forum.ansible.com/t/input-on-module-to-resize-filesystems/15676 "2014-07-16T21:01:30Z")

</div>

I have need of this. Should I add this ability to the existing \`filesystem\` module, or do folks think it ought to be a separate module?

---

## [Absolute path for playbook.basedir + vars.playbook\_path](https://forum.ansible.com/t/absolute-path-for-playbook-basedir-vars-playbook-path/15670)

<div class="topic-metadata">

**Author:** [@Nick\_Shobe](https://forum.ansible.com/u/Nick_Shobe)\
**Replies:** 2\
**Last updated:** [July 16, 2014, 3:16pm UTC](https://forum.ansible.com/t/absolute-path-for-playbook-basedir-vars-playbook-path/15670 "2014-07-16T15:16:40Z")

</div>

Hey I’ve been doing some lookup() local command jank to get the absolute directory path to my playbook where I store some additional non role specific config files… plabook\_basedir/files/playbookspecific.tar.gz. I then …

---

## [What's best practices for starting, bouncing, stopping a deployment?](https://forum.ansible.com/t/whats-best-practices-for-starting-bouncing-stopping-a-deployment/15681)

<div class="topic-metadata">

**Author:** [@Min\_Zhou](https://forum.ansible.com/u/Min_Zhou)\
**Replies:** 1\
**Last updated:** [July 16, 2014, 4:31am UTC](https://forum.ansible.com/t/whats-best-practices-for-starting-bouncing-stopping-a-deployment/15681 "2014-07-16T04:31:36Z")

</div>

Hi all, The operations workload of a distributed system often include initializing, upgrading, bouncing, stopping, restarting the system. It seems that the official examples of ansible (https://github.com/ansible/ansibl…

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

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