# Latest

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

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

**Page:** 715

---

## [Unable to pass the value for a variable in included playbook via another variable in the calling playbook](https://forum.ansible.com/t/unable-to-pass-the-value-for-a-variable-in-included-playbook-via-another-variable-in-the-calling-playbook/22870)

<div class="topic-metadata">

**Author:** [@ishan\_jain](https://forum.ansible.com/u/ishan_jain)\
**Replies:** 0\
**Last updated:** [October 24, 2016, 3:36pm UTC](https://forum.ansible.com/t/unable-to-pass-the-value-for-a-variable-in-included-playbook-via-another-variable-in-the-calling-playbook/22870 "2016-10-24T15:36:40Z")

</div>

I have a playbook which requires to perform some actions for each string in a comma separated list. So i put the repeatable tasks in another playbook and included that in a master playbook using with\_items: include:inc…

---

## [Exec command before/during/after "expect"](https://forum.ansible.com/t/exec-command-before-during-after-expect/22868)

<div class="topic-metadata">

**Author:** [@Benjamin\_Redling](https://forum.ansible.com/u/Benjamin_Redling)\
**Replies:** 0\
**Last updated:** [October 24, 2016, 2:16pm UTC](https://forum.ansible.com/t/exec-command-before-during-after-expect/22868 "2016-10-24T14:16:00Z")

</div>

Hi everybody, I'm trying to script around an ugly installer that expects to run from a DVD. I copied the DVDs and mounted them as loop device. The problem I face is that after the first DVD finished and it outputs a …

---

## [When more than one play in a playbook, how to define an order for running one before others](https://forum.ansible.com/t/when-more-than-one-play-in-a-playbook-how-to-define-an-order-for-running-one-before-others/22827)

<div class="topic-metadata">

**Author:** [@fanvalt](https://forum.ansible.com/u/fanvalt)\
**Replies:** 4\
**Last updated:** [October 24, 2016, 1:38pm UTC](https://forum.ansible.com/t/when-more-than-one-play-in-a-playbook-how-to-define-an-order-for-running-one-before-others/22827 "2016-10-24T13:38:12Z")

</div>

Hello, in my inventory file, I will use aliases to deploy differents applications for the same user: \[reference\] refweb1 PARAM=“\[‘tomweb’,‘7.30.05005.1334’,‘1’\]” refqry1 PARAM=“\[‘query’,‘7.30.05005.1334’,‘1’\]” refwe…

---

## [Want to run ansible tasks on remote host](https://forum.ansible.com/t/want-to-run-ansible-tasks-on-remote-host/22849)

<div class="topic-metadata">

**Author:** [@deepak.dimri2016](https://forum.ansible.com/u/deepak.dimri2016)\
**Replies:** 3\
**Last updated:** [October 24, 2016, 1:27pm UTC](https://forum.ansible.com/t/want-to-run-ansible-tasks-on-remote-host/22849 "2016-10-24T13:27:46Z")

</div>

In my scenario i have inventory of three machines localhost, host2 and host3. I want to run some tasks/commands on host3 while my ansible playbook is still playing on host2 without switching from host2 to host3 - is that…

---

## [How can i include other var files in a yaml file with only variables defined](https://forum.ansible.com/t/how-can-i-include-other-var-files-in-a-yaml-file-with-only-variables-defined/22864)

<div class="topic-metadata">

**Author:** [@ishan\_jain](https://forum.ansible.com/u/ishan_jain)\
**Replies:** 1\
**Last updated:** [October 24, 2016, 1:26pm UTC](https://forum.ansible.com/t/how-can-i-include-other-var-files-in-a-yaml-file-with-only-variables-defined/22864 "2016-10-24T13:26:58Z")

</div>

Hi, I use simple YAML files for defining some constant values to be used in my playbooks. A typical file would look like this: var1: abc var2: xyz var3: item1 item2 var4: 4.1: a 4.2: b I simply include the the …

---

## [A new maintainer wanted for the hostname module](https://forum.ansible.com/t/a-new-maintainer-wanted-for-the-hostname-module/22744)

<div class="topic-metadata">

**Author:** [@Hiroaki\_Nakamura](https://forum.ansible.com/u/Hiroaki_Nakamura)\
**Replies:** 3\
**Last updated:** [October 23, 2016, 9:04pm UTC](https://forum.ansible.com/t/a-new-maintainer-wanted-for-the-hostname-module/22744 "2016-10-23T21:04:49Z")

</div>

Though I created the hostname module, I have never used it myself. I would like to resign as a hostname module maintainer since I would like to spend my spare time for other things. So could someone take over as a mai…

---

## [How to maintein particula order via host groups and/or playbook](https://forum.ansible.com/t/how-to-maintein-particula-order-via-host-groups-and-or-playbook/22863)

<div class="topic-metadata">

**Author:** [@tinyzais](https://forum.ansible.com/u/tinyzais)\
**Replies:** 0\
**Last updated:** [October 23, 2016, 6:27pm UTC](https://forum.ansible.com/t/how-to-maintein-particula-order-via-host-groups-and-or-playbook/22863 "2016-10-23T18:27:26Z")

</div>

Hello, I dont know how to implement group ordering in the right way. Example: Start or Stop application with database. When starting: i need to start DB first, then APP itself When stopping: i need to do reverse ord…

---

## [is it possible to add multiple security group rules to a security group using os\_security\_group & os\_security\_group\_rule?](https://forum.ansible.com/t/is-it-possible-to-add-multiple-security-group-rules-to-a-security-group-using-os-security-group-os-security-group-rule/22862)

<div class="topic-metadata">

**Author:** [@Glyn\_Davies](https://forum.ansible.com/u/Glyn_Davies)\
**Replies:** 0\
**Last updated:** [October 23, 2016, 8:17am UTC](https://forum.ansible.com/t/is-it-possible-to-add-multiple-security-group-rules-to-a-security-group-using-os-security-group-os-security-group-rule/22862 "2016-10-23T08:17:58Z")

</div>

Hi Folks, I am wondering if it is possible to add multiple rules to an openstack security group using a loop mechanism such as with\_items or with\_dict? I gave found examples of where this is possible in AWS using somth…

---

## [ansible skips roles alphabetically-wise](https://forum.ansible.com/t/ansible-skips-roles-alphabetically-wise/22858)

<div class="topic-metadata">

**Author:** [@Marcos\_Cano](https://forum.ansible.com/u/Marcos_Cano)\
**Replies:** 1\
**Last updated:** [October 22, 2016, 11:09am UTC](https://forum.ansible.com/t/ansible-skips-roles-alphabetically-wise/22858 "2016-10-22T11:09:02Z")

</div>

hello I’m calling roles from a custom location ( /var/lib/jenkins/workspace/some/job/workspace/playbook.yml rather that /etc/ansible path), I’ve exporte ANSIBLE\_ROLES\_PATH env variable roles: dotnet aws-kinesis-ag…

---

## [Error on deployment to RHEL 7](https://forum.ansible.com/t/error-on-deployment-to-rhel-7/22798)

<div class="topic-metadata">

**Author:** [@Kelvin\_Chu](https://forum.ansible.com/u/Kelvin_Chu)\
**Replies:** 1\
**Last updated:** [October 22, 2016, 3:49am UTC](https://forum.ansible.com/t/error-on-deployment-to-rhel-7/22798 "2016-10-22T03:49:26Z")

</div>

Hi team, Currently getting an error deploying to RHEL 7. I can see that somehow the tower\_package\_name, version and release are not getting picked up: TASK \[check\_config\_static : Ensure expected variables are defined\]…

---

## [Serverspec](https://forum.ansible.com/t/serverspec/22861)

<div class="topic-metadata">

**Author:** [@aenagy](https://forum.ansible.com/u/aenagy)\
**Replies:** 1\
**Last updated:** [October 22, 2016, 1:21am UTC](https://forum.ansible.com/t/serverspec/22861 "2016-10-22T01:21:27Z")

</div>

I realize this is not a Serverspec forum, but can anyone tell me what language it uses? If I look at the docs (http://serverspec.org/resource\_types.html) I’m wondering where the keywords (describe, do, it, should, etc) a…

---

## [playbook vs. module vs. roles](https://forum.ansible.com/t/playbook-vs-module-vs-roles/22860)

<div class="topic-metadata">

**Author:** [@aenagy](https://forum.ansible.com/u/aenagy)\
**Replies:** 1\
**Last updated:** [October 22, 2016, 1:02am UTC](https://forum.ansible.com/t/playbook-vs-module-vs-roles/22860 "2016-10-22T01:02:57Z")

</div>

As I read through the Ansible documentation (http://docs.ansible.com) I still a bit fuzzy on the playbook vs. module vs. role concept, and where different pieces of the puzzle go. Playbooks contain Ansible code, modules …

---

## [Language reference for Ansible.](https://forum.ansible.com/t/language-reference-for-ansible/22830)

<div class="topic-metadata">

**Author:** [@aenagy](https://forum.ansible.com/u/aenagy)\
**Replies:** 5\
**Last updated:** [October 22, 2016, 12:07am UTC](https://forum.ansible.com/t/language-reference-for-ansible/22830 "2016-10-22T00:07:51Z")

</div>

Whenever learning a new language I like to find the language reference. Having read a lot of the docs (http://docs.ansible.com) and having done some searches, I still haven’t found a concise language reference that lists…

---

## [Creating an RDS from another RDS's latest automated snapshot](https://forum.ansible.com/t/creating-an-rds-from-another-rdss-latest-automated-snapshot/22859)

<div class="topic-metadata">

**Author:** [@lattwood](https://forum.ansible.com/u/lattwood)\
**Replies:** 1\
**Last updated:** [October 21, 2016, 9:59pm UTC](https://forum.ansible.com/t/creating-an-rds-from-another-rdss-latest-automated-snapshot/22859 "2016-10-21T21:59:08Z")

</div>

I’m working on porting a shell script over to ansible, and I’m trying to capture the ARN of the latest automated snapshot without using the aws-cli or creating a standalone module. The shell command that would produce th…

---

## [lineinfile module replace correctly for the first time run the playbook, but not the second time](https://forum.ansible.com/t/lineinfile-module-replace-correctly-for-the-first-time-run-the-playbook-but-not-the-second-time/22837)

<div class="topic-metadata">

**Author:** [@lee\_lyly](https://forum.ansible.com/u/lee_lyly)\
**Replies:** 1\
**Last updated:** [October 21, 2016, 7:46pm UTC](https://forum.ansible.com/t/lineinfile-module-replace-correctly-for-the-first-time-run-the-playbook-but-not-the-second-time/22837 "2016-10-21T19:46:04Z")

</div>

Below is the sample of the lineinfile module that I used. The first time run the playbook, it successfully change the line with the new line. However, after I run one more time the playbook, it still add the line at the…

---

## [Error:: AnsibleUndefinedVariable](https://forum.ansible.com/t/error-ansibleundefinedvariable/22852)

<div class="topic-metadata">

**Author:** [@Vipul\_Vadoliya](https://forum.ansible.com/u/Vipul_Vadoliya)\
**Replies:** 1\
**Last updated:** [October 21, 2016, 7:01pm UTC](https://forum.ansible.com/t/error-ansibleundefinedvariable/22852 "2016-10-21T19:01:02Z")

</div>

hi guys i am getting below error “AnsibleUndefinedVariable: ‘web\_servers’ is undefined” this is variables in vars file : vars/main.yml web\_servers: {hostname: xxxxx1, ip: 192.168.0.1, port: 8080} {hostname: xxxxx2, …

---

## [How to loop over hashes having an undefined number of sub-elements?](https://forum.ansible.com/t/how-to-loop-over-hashes-having-an-undefined-number-of-sub-elements/22857)

<div class="topic-metadata">

**Author:** [@actionmystique](https://forum.ansible.com/u/actionmystique)\
**Replies:** 0\
**Last updated:** [October 21, 2016, 6:31pm UTC](https://forum.ansible.com/t/how-to-loop-over-hashes-having-an-undefined-number-of-sub-elements/22857 "2016-10-21T18:31:58Z")

</div>

Hi everyone, This is a tricky question which I have been unable to solve so far despîte multiple attempts, maybe it is not feasible with Ansible. I pull some facts from a networking device, some of them end up in {{ fa…

---

## [Problems Connecting To Windows 2012 R2](https://forum.ansible.com/t/problems-connecting-to-windows-2012-r2/22843)

<div class="topic-metadata">

**Author:** [@bwieberd](https://forum.ansible.com/u/bwieberd)\
**Replies:** 2\
**Last updated:** [October 21, 2016, 4:34pm UTC](https://forum.ansible.com/t/problems-connecting-to-windows-2012-r2/22843 "2016-10-21T16:34:49Z")

</div>

I am new to Ansible, so please bear with me… I am trying to bring up an Ansible test environment whereby I can test config management against a Windows environment. The environment consists of an Ansible management serve…

---

## [Copying or moving files on Windows systems](https://forum.ansible.com/t/copying-or-moving-files-on-windows-systems/22850)

<div class="topic-metadata">

**Author:** [@Mike\_Fennemore](https://forum.ansible.com/u/Mike_Fennemore)\
**Replies:** 2\
**Last updated:** [October 21, 2016, 4:29pm UTC](https://forum.ansible.com/t/copying-or-moving-files-on-windows-systems/22850 "2016-10-21T16:29:27Z")

</div>

When using a Centos Ansible control machine connecting to Windows server, is there a way to copy/move files on the Windows system? Win\_copy works well for copying to the Windows system but doesn't seem to be able to fit …

---

## [Scoping of playbooks](https://forum.ansible.com/t/scoping-of-playbooks/22831)

<div class="topic-metadata">

**Author:** [@aenagy](https://forum.ansible.com/u/aenagy)\
**Replies:** 4\
**Last updated:** [October 21, 2016, 3:19pm UTC](https://forum.ansible.com/t/scoping-of-playbooks/22831 "2016-10-21T15:19:11Z")

</div>

My first Ansible project is configuring the DNS client of our Linux machines. This configuration is different depending on the managed node’s location within our network (west dmz, west non-dmz, east dmz, east non-dmz). …

---

## [yum module and with\_items: confusing error output](https://forum.ansible.com/t/yum-module-and-with-items-confusing-error-output/22855)

<div class="topic-metadata">

**Author:** [@Julien\_Tognazzi](https://forum.ansible.com/u/Julien_Tognazzi)\
**Replies:** 0\
**Last updated:** [October 21, 2016, 1:47pm UTC](https://forum.ansible.com/t/yum-module-and-with-items-confusing-error-output/22855 "2016-10-21T13:47:20Z")

</div>

Dear list, I noticed the following behaviour with ansible 2.1.1.0 the following play: \` hosts: all become: true tasks: name: Install required packages yum: name={{ item }} state=latest update\_cache=yes with\_it…

---

## [ansible 2 api usage error](https://forum.ansible.com/t/ansible-2-api-usage-error/22854)

<div class="topic-metadata">

**Author:** [@Oguz\_Yarimtepe](https://forum.ansible.com/u/Oguz_Yarimtepe)\
**Replies:** 0\
**Last updated:** [October 21, 2016, 12:45pm UTC](https://forum.ansible.com/t/ansible-2-api-usage-error/22854 "2016-10-21T12:45:40Z")

</div>

Below is my code sample to run a simple playbook on a host

---

## [Want to run ansible tasks on remote host](https://forum.ansible.com/t/want-to-run-ansible-tasks-on-remote-host/22853)

<div class="topic-metadata">

**Author:** [@deepak.dimri2016](https://forum.ansible.com/u/deepak.dimri2016)\
**Replies:** 0\
**Last updated:** [October 21, 2016, 12:28pm UTC](https://forum.ansible.com/t/want-to-run-ansible-tasks-on-remote-host/22853 "2016-10-21T12:28:42Z")

</div>

In my scenario i have inventory of three machines localhost, host2 and host3. i am using localhost as ansible machine to run my playbooks. I want to run some tasks/commands on host3 while my ansible playbook is still pla…

---

## [uri module and user certificates](https://forum.ansible.com/t/uri-module-and-user-certificates/22783)

<div class="topic-metadata">

**Author:** [@Christian\_Tardif](https://forum.ansible.com/u/Christian_Tardif)\
**Replies:** 2\
**Last updated:** [October 21, 2016, 7:32am UTC](https://forum.ansible.com/t/uri-module-and-user-certificates/22783 "2016-10-21T07:32:29Z")

</div>

Hi, I’m trying to access a REST API that specifically requests the use of cert and key as I’d do it with curl: curl --cert-type pem --cert mycert.pem --key mykey.pem -k https://thiswebsite.com/api/v2/endpoint an…

---

## [RDS module - maintainers required](https://forum.ansible.com/t/rds-module-maintainers-required/22851)

<div class="topic-metadata">

**Author:** [@willthames](https://forum.ansible.com/u/willthames)\
**Replies:** 0\
**Last updated:** [October 21, 2016, 7:30am UTC](https://forum.ansible.com/t/rds-module-maintainers-required/22851 "2016-10-21T07:30:11Z")

</div>

The maintainers for the RDS module are listed as bpennypacker and me. I don’t use RDS at all these days. I clearly didn’t even use it enough in the past to catch some of the bugs that have come in. I suspect it needs a…

---

## [Cli transport question](https://forum.ansible.com/t/cli-transport-question/22848)

<div class="topic-metadata">

**Author:** [@Tim1](https://forum.ansible.com/u/Tim1)\
**Replies:** 0\
**Last updated:** [October 20, 2016, 11:32pm UTC](https://forum.ansible.com/t/cli-transport-question/22848 "2016-10-20T23:32:42Z")

</div>

Anyone have any thoughts on how a network module could provide for both the CLI transport as well as the local transport? For instance, if the remote device has both a web service and a console that it could be configure…

---

## [using variables defined in files when running ansible command?](https://forum.ansible.com/t/using-variables-defined-in-files-when-running-ansible-command/22840)

<div class="topic-metadata">

**Author:** [@Makson\_Lee](https://forum.ansible.com/u/Makson_Lee)\
**Replies:** 2\
**Last updated:** [October 20, 2016, 11:32pm UTC](https://forum.ansible.com/t/using-variables-defined-in-files-when-running-ansible-command/22840 "2016-10-20T23:32:24Z")

</div>

here is the content of inventory file, admin\_pass is defined in secrets.yml file, \[group1\] host1 \[group1:vars\] ansible\_become\_pass={{admin\_pass}} the question is, how to reference variables defined in a file when …

---

## [Jinja Default Template Error in Devel Branch](https://forum.ansible.com/t/jinja-default-template-error-in-devel-branch/22747)

<div class="topic-metadata">

**Author:** [@steve5](https://forum.ansible.com/u/steve5)\
**Replies:** 4\
**Last updated:** [October 20, 2016, 10:57pm UTC](https://forum.ansible.com/t/jinja-default-template-error-in-devel-branch/22747 "2016-10-20T22:57:33Z")

</div>

I have this statement in my yaml file: \` {{spec.selector.name|default(metadata.name)}} \` I just started noticing it is failing when the spec.selector.name is not available or undefined, it doesn’t seem to go to the d…

---

## [ansible.cfg merging or include?](https://forum.ansible.com/t/ansible-cfg-merging-or-include/22847)

<div class="topic-metadata">

**Author:** [@Strahinja\_Kustudic1](https://forum.ansible.com/u/Strahinja_Kustudic1)\
**Replies:** 0\
**Last updated:** [October 20, 2016, 10:01pm UTC](https://forum.ansible.com/t/ansible-cfg-merging-or-include/22847 "2016-10-20T22:01:59Z")

</div>

Is there a reason why ansible.cfg, which is an ini file, isn’t merged in precedence by Ansible when the file is found in different locations, but instead Ansible uses the first one it finds (in some order)? It’s very use…

---

## [Ansible ec2 module for adhoc terminate...](https://forum.ansible.com/t/ansible-ec2-module-for-adhoc-terminate/22846)

<div class="topic-metadata">

**Author:** [@Sonny\_Chee](https://forum.ansible.com/u/Sonny_Chee)\
**Replies:** 0\
**Last updated:** [October 20, 2016, 9:22pm UTC](https://forum.ansible.com/t/ansible-ec2-module-for-adhoc-terminate/22846 "2016-10-20T21:22:07Z")

</div>

Hey Guys, I am having problems terminating ec2 instances with the following invocation: $ AWS\_PROFILE=npu-root ansible -i ec2.py -u ec2-user --private-key ~/.ssh/BeteNar.pem tag\_db\_postgres -m ec2 -a ‘state=absent regi…

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

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