# Latest

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

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

**Page:** 841

---

## [Need fix in core modules not included with latest release](https://forum.ansible.com/t/need-fix-in-core-modules-not-included-with-latest-release/19107)

<div class="topic-metadata">

**Author:** [@Tore\_Olsen](https://forum.ansible.com/u/Tore_Olsen)\
**Replies:** 0\
**Last updated:** [August 25, 2015, 9:32am UTC](https://forum.ansible.com/t/need-fix-in-core-modules-not-included-with-latest-release/19107 "2015-08-25T09:32:55Z")

</div>

Hi all, I guess I’m just confused about how the core modules are coordinated with ansible releases. On April 26, Martin Froelich committed 4bcbcc886936ac7c672a230dec80ac14b6e12211 which fixed a problem that I’m also e…

---

## [Accidently deleted the files in /usr/local/bin (ansible file )](https://forum.ansible.com/t/accidently-deleted-the-files-in-usr-local-bin-ansible-file/19074)

<div class="topic-metadata">

**Author:** [@mudassar.bashsolutio](https://forum.ansible.com/u/mudassar.bashsolutio)\
**Replies:** 1\
**Last updated:** [August 25, 2015, 8:41am UTC](https://forum.ansible.com/t/accidently-deleted-the-files-in-usr-local-bin-ansible-file/19074 "2015-08-25T08:41:19Z")

</div>

Hi , I accidentally removed ansi files from /usr/bin . I have reinstalled (purged and reinstalled ansible ) but no success . Now I am getting error Traceback (most recent call last): File “/usr/bin/ansible-playbook”, l…

---

## [Apache and multiple vhosts including their dependencies.](https://forum.ansible.com/t/apache-and-multiple-vhosts-including-their-dependencies/19105)

<div class="topic-metadata">

**Author:** [@Nico\_K](https://forum.ansible.com/u/Nico_K)\
**Replies:** 0\
**Last updated:** [August 25, 2015, 5:47am UTC](https://forum.ansible.com/t/apache-and-multiple-vhosts-including-their-dependencies/19105 "2015-08-25T05:47:06Z")

</div>

Hi, I’ve built a very generic Apache role that can set up a bunch of vhosts, however I’m running into a design problem. Each vhost has a dependency, for example ‘subversion’ requires a bunch of packages and a repositor…

---

## ['name' is a required argument.](https://forum.ansible.com/t/name-is-a-required-argument/19100)

<div class="topic-metadata">

**Author:** [@Chanaka\_Samarajeewa](https://forum.ansible.com/u/Chanaka_Samarajeewa)\
**Replies:** 1\
**Last updated:** [August 25, 2015, 2:43am UTC](https://forum.ansible.com/t/name-is-a-required-argument/19100 "2015-08-25T02:43:57Z")

</div>

I have the following tasks: name: Add new instance to host group add\_host: hostname={{ item.public\_ip }} groupname=launched with\_items: ec2.results\[0\].instances name: set inventory\_hostname var add\_host: invento…

---

## [ERROR: os\_server is not a legal parameter in an Ansible task or handler](https://forum.ansible.com/t/error-os-server-is-not-a-legal-parameter-in-an-ansible-task-or-handler/19104)

<div class="topic-metadata">

**Author:** [@Sudeep\_Deshpande](https://forum.ansible.com/u/Sudeep_Deshpande)\
**Replies:** 1\
**Last updated:** [August 25, 2015, 2:34am UTC](https://forum.ansible.com/t/error-os-server-is-not-a-legal-parameter-in-an-ansible-task-or-handler/19104 "2015-08-25T02:34:22Z")

</div>

Ansible version is 1.9.2. Playbook: name: launch a compute instance hosts: localhost connection: local tasks: name: launch a compute instance os\_server: state: present auth: auth\_url: “{{ lookup(‘env’, ‘OS\_AUTH…

---

## [Extending Ansible](https://forum.ansible.com/t/extending-ansible/19101)

<div class="topic-metadata">

**Author:** [@Michael\_Legleux](https://forum.ansible.com/u/Michael_Legleux)\
**Replies:** 4\
**Last updated:** [August 25, 2015, 12:28am UTC](https://forum.ansible.com/t/extending-ansible/19101 "2015-08-25T00:28:30Z")

</div>

I’m trying to figure out how to use my changes to ansible-modules-extras locally. I have cloned the ansible and ansible-modules-extras locally and made changes to ansible-modules-extras. I see that in ansible there is …

---

## [advice about "with\_dict" and condicional correct way to use](https://forum.ansible.com/t/advice-about-with-dict-and-condicional-correct-way-to-use/19103)

<div class="topic-metadata">

**Author:** [@Alejandro](https://forum.ansible.com/u/Alejandro)\
**Replies:** 1\
**Last updated:** [August 24, 2015, 10:41pm UTC](https://forum.ansible.com/t/advice-about-with-dict-and-condicional-correct-way-to-use/19103 "2015-08-24T22:41:24Z")

</div>

Hi all, I has this error: \` UndefinedError: ‘dict’ object has no attribute ‘JMSFileStoreName’ \` Into my dict just a few has this attributes, others not, I’ll like to execute some task in case that this atribute exis…

---

## [EC2 with Volumes](https://forum.ansible.com/t/ec2-with-volumes/17900)

<div class="topic-metadata">

**Author:** [@Nico\_K](https://forum.ansible.com/u/Nico_K)\
**Replies:** 2\
**Last updated:** [August 24, 2015, 9:30pm UTC](https://forum.ansible.com/t/ec2-with-volumes/17900 "2015-08-24T21:30:49Z")

</div>

Hi, Another EC2 question, when creating an instance using the ‘ec2’ task and specifying the volumes inline is it possible to: a) obtain the volume id’s of the newly created volumes? b) or alternatively immediately tag…

---

## [Typecast variables are not preserved which is breaking some cloud providers](https://forum.ansible.com/t/typecast-variables-are-not-preserved-which-is-breaking-some-cloud-providers/19088)

<div class="topic-metadata">

**Author:** [@Patrick\_Heeney](https://forum.ansible.com/u/Patrick_Heeney)\
**Replies:** 1\
**Last updated:** [August 24, 2015, 6:34pm UTC](https://forum.ansible.com/t/typecast-variables-are-not-preserved-which-is-breaking-some-cloud-providers/19088 "2015-08-24T18:34:15Z")

</div>

I have a role like below, that typecasts item.payment to an int. However this appears to be converted back to a string. Ansible throws this error “msg: value of payment\_term must be one of: 1,12,24, got: 1” because it wa…

---

## [How to loop over these items ?](https://forum.ansible.com/t/how-to-loop-over-these-items/19099)

<div class="topic-metadata">

**Author:** [@Julien\_Syx](https://forum.ansible.com/u/Julien_Syx)\
**Replies:** 0\
**Last updated:** [August 24, 2015, 6:24pm UTC](https://forum.ansible.com/t/how-to-loop-over-these-items/19099 "2015-08-24T18:24:46Z")

</div>

Hello everyone, I’m trying to create a role to manage backup with this script: https://github.com/redhat-cip/simple\_ec2\_snapshot I would like to take in parameter a tags list (for example), then create a cron with the …

---

## [Galaxy github authentication problem (github group)](https://forum.ansible.com/t/galaxy-github-authentication-problem-github-group/19096)

<div class="topic-metadata">

**Author:** [@Gertjan\_Roggemans](https://forum.ansible.com/u/Gertjan_Roggemans)\
**Replies:** 3\
**Last updated:** [August 24, 2015, 4:03pm UTC](https://forum.ansible.com/t/galaxy-github-authentication-problem-github-group/19096 "2015-08-24T16:03:03Z")

</div>

I made a galaxy account linked to my github account under my own name. This is for personal stuff. I also made an account with the name of a github group to upload all roles from this group. Starting January 1, 2016 ga…

---

## [Ansible 1.9.3 rc3 is now available for testing](https://forum.ansible.com/t/ansible-1-9-3-rc3-is-now-available-for-testing/19095)

<div class="topic-metadata">

**Author:** [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Replies:** 0\
**Last updated:** [August 24, 2015, 3:01pm UTC](https://forum.ansible.com/t/ansible-1-9-3-rc3-is-now-available-for-testing/19095 "2015-08-24T15:01:07Z")

</div>

Hi all, we’ve just tagged the rc3 release for 1.9.3, which includes a fix we neglected to include in rc2 (Eucalyptus support for ec2 modules was broken in a previous release). To test from source, simply clone the git r…

---

## [Debugging Windows](https://forum.ansible.com/t/debugging-windows/19072)

<div class="topic-metadata">

**Author:** [@Michael\_Legleux](https://forum.ansible.com/u/Michael_Legleux)\
**Replies:** 3\
**Last updated:** [August 24, 2015, 2:16pm UTC](https://forum.ansible.com/t/debugging-windows/19072 "2015-08-24T14:16:15Z")

</div>

I have a playbook that simply uses the script module to run a powershell script. The powershell script merely copies some files then uses “Start-Process” to run a visual studio installer. When run with ansible, the ins…

---

## [EXEC previous known host file not found for hostname](https://forum.ansible.com/t/exec-previous-known-host-file-not-found-for-hostname/19093)

<div class="topic-metadata">

**Author:** [@Sathya\_Narayanan1](https://forum.ansible.com/u/Sathya_Narayanan1)\
**Replies:** 0\
**Last updated:** [August 24, 2015, 4:39am UTC](https://forum.ansible.com/t/exec-previous-known-host-file-not-found-for-hostname/19093 "2015-08-24T04:39:28Z")

</div>

Hi, I am getting below error “previous known host file not found”. Below error is from Tower, if i try to execute from Command it keeps running indefinitely TASK: \[Check Version\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [Replace variable w/ jinja2](https://forum.ansible.com/t/replace-variable-w-jinja2/19092)

<div class="topic-metadata">

**Author:** [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Replies:** 0\
**Last updated:** [August 23, 2015, 10:00pm UTC](https://forum.ansible.com/t/replace-variable-w-jinja2/19092 "2015-08-23T22:00:34Z")

</div>

moustaches don't stack: set\_fact: deploy\_list"{{ item | replace('deploylist/' + jira\_ticket + '/', '') }}"

---

## [Loading rvm in remote server before a playbook starts](https://forum.ansible.com/t/loading-rvm-in-remote-server-before-a-playbook-starts/19060)

<div class="topic-metadata">

**Author:** [@Derrick\_Mar](https://forum.ansible.com/u/Derrick_Mar)\
**Replies:** 4\
**Last updated:** [August 23, 2015, 8:41pm UTC](https://forum.ansible.com/t/loading-rvm-in-remote-server-before-a-playbook-starts/19060 "2015-08-23T20:41:23Z")

</div>

Hello! Does anyone know how to load rvm in a playbook so that it’s available in {{ ansible\_env.PATH }} ? name: Deploy my app environment: PATH: "{{ ansible\_env.PATH }} This does not include /home/ubuntu/.rvm/gems/ru…

---

## [Question / Confusion re: Variables](https://forum.ansible.com/t/question-confusion-re-variables/19091)

<div class="topic-metadata">

**Author:** [@Brian\_Swanson](https://forum.ansible.com/u/Brian_Swanson)\
**Replies:** 0\
**Last updated:** [August 23, 2015, 7:14pm UTC](https://forum.ansible.com/t/question-confusion-re-variables/19091 "2015-08-23T19:14:21Z")

</div>

Hey – was hoping somebody could explain to me what is going on here. group\_vars/all: db\_name: top\_level\_db roles/role\_name/vars/main.yml: db\_name: role\_level\_db db\_name\_test: “{{db\_name}}” env: DB\_NAME: “{{db\_name…

---

## [v2 winrm integration tests; test\_win\_fetch; file module not found](https://forum.ansible.com/t/v2-winrm-integration-tests-test-win-fetch-file-module-not-found/19078)

<div class="topic-metadata">

**Author:** [@j.r.hawkesworth](https://forum.ansible.com/u/j.r.hawkesworth)\
**Replies:** 2\
**Last updated:** [August 23, 2015, 4:40pm UTC](https://forum.ansible.com/t/v2-winrm-integration-tests-test-win-fetch-file-module-not-found/19078 "2015-08-23T16:40:29Z")

</div>

Before I raise a bug report, can anyone confirm that they are able to run through the winrm integration tests. Currently they are failing for me at the first step of test\_win\_fetch test\_win\_fetch : clean out the test d…

---

## [Best practise for development only Role](https://forum.ansible.com/t/best-practise-for-development-only-role/19090)

<div class="topic-metadata">

**Author:** [@Michael\_Parkin](https://forum.ansible.com/u/Michael_Parkin)\
**Replies:** 0\
**Last updated:** [August 23, 2015, 2:42pm UTC](https://forum.ansible.com/t/best-practise-for-development-only-role/19090 "2015-08-23T14:42:22Z")

</div>

Hello, I have an ansible role for installing “MailHog”, a piece of software that provides a GUI for caught mail from a webserver. This is incredibly useful on local development as it can guarantee that emails won’t acc…

---

## [Coming two lists into one](https://forum.ansible.com/t/coming-two-lists-into-one/19089)

<div class="topic-metadata">

**Author:** [@Stanley\_Nguyen](https://forum.ansible.com/u/Stanley_Nguyen)\
**Replies:** 0\
**Last updated:** [August 23, 2015, 7:30am UTC](https://forum.ansible.com/t/coming-two-lists-into-one/19089 "2015-08-23T07:30:05Z")

</div>

I’m having a very simple requirement but I have a tough time to make it work… Basically I have a list like this: MACHINES: \[ { name: “Test1”, ip: “192.168.1.100”}, { name: “Test2”, ip: “192.168.1.101”}, \] I then qu…

---

## [SyntaxError in "/usr/local/bin/ansible-playbook"](https://forum.ansible.com/t/syntaxerror-in-usr-local-bin-ansible-playbook/19086)

<div class="topic-metadata">

**Author:** [@Yvonne\_Terki](https://forum.ansible.com/u/Yvonne_Terki)\
**Replies:** 1\
**Last updated:** [August 22, 2015, 9:59am UTC](https://forum.ansible.com/t/syntaxerror-in-usr-local-bin-ansible-playbook/19086 "2015-08-22T09:59:38Z")

</div>

Hello, When I do “vagrant provision” with that in VagrantFile:

---

## [Tagging EC2 resources](https://forum.ansible.com/t/tagging-ec2-resources/19087)

<div class="topic-metadata">

**Author:** [@Stanley\_Nguyen](https://forum.ansible.com/u/Stanley_Nguyen)\
**Replies:** 0\
**Last updated:** [August 22, 2015, 8:10am UTC](https://forum.ansible.com/t/tagging-ec2-resources/19087 "2015-08-22T08:10:37Z")

</div>

I’m having a very simple problem but I find it quite tough to achieve in Ansible. Basically I have a list of machine’s IP address with a description: \[{ ip: “192.168.10.10”, desc: “test1”}, { ip: “192.168.10.11”, desc: …

---

## [Galaxy Maintenance Starting Now](https://forum.ansible.com/t/galaxy-maintenance-starting-now/19085)

<div class="topic-metadata">

**Author:** [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Replies:** 1\
**Last updated:** [August 22, 2015, 12:34am UTC](https://forum.ansible.com/t/galaxy-maintenance-starting-now/19085 "2015-08-22T00:34:11Z")

</div>

We’ll email the list when we’re done. Thanks!

---

## [How to use policy\_document in iam\_policy module?](https://forum.ansible.com/t/how-to-use-policy-document-in-iam-policy-module/19071)

<div class="topic-metadata">

**Author:** [@user90](https://forum.ansible.com/u/user90)\
**Replies:** 3\
**Last updated:** [August 21, 2015, 9:53pm UTC](https://forum.ansible.com/t/how-to-use-policy-document-in-iam-policy-module/19071 "2015-08-21T21:53:50Z")

</div>

Hello, can you provide me example how to use policy\_document from iam\_policy module? policy\_document: “policy.json.j2” (In policy.json.j2 I store json, copied from AWS policy generator and want to save formatting for re…

---

## [Windows copy from file share](https://forum.ansible.com/t/windows-copy-from-file-share/19083)

<div class="topic-metadata">

**Author:** [@brandon.r.marick](https://forum.ansible.com/u/brandon.r.marick)\
**Replies:** 1\
**Last updated:** [August 21, 2015, 8:52pm UTC](https://forum.ansible.com/t/windows-copy-from-file-share/19083 "2015-08-21T20:52:40Z")

</div>

Has anyone started working on a module for copying files from a file share? I need to copy files of size greater than 3Mb to a remote system. I want to ensure I am not duplicating anyone else work. Thank you, Brandon…

---

## [Passing token to Consul via lookup plugin](https://forum.ansible.com/t/passing-token-to-consul-via-lookup-plugin/19084)

<div class="topic-metadata">

**Author:** [@Sam\_S](https://forum.ansible.com/u/Sam_S)\
**Replies:** 5\
**Last updated:** [August 21, 2015, 8:27pm UTC](https://forum.ansible.com/t/passing-token-to-consul-via-lookup-plugin/19084 "2015-08-21T20:27:22Z")

</div>

How do I pass the token to Consul? This doesn’t appear to work, I’m not getting the value. However, if i set Consul to allow anonymous queries, it works fine. {{ lookup(‘consul\_kv’,item,“token=mysecretoken”) }}

---

## [local\_action is executing at end but defined at start](https://forum.ansible.com/t/local-action-is-executing-at-end-but-defined-at-start/19076)

<div class="topic-metadata">

**Author:** [@Sebastien\_Hadjifotis](https://forum.ansible.com/u/Sebastien_Hadjifotis)\
**Replies:** 1\
**Last updated:** [August 21, 2015, 6:04pm UTC](https://forum.ansible.com/t/local-action-is-executing-at-end-but-defined-at-start/19076 "2015-08-21T18:04:57Z")

</div>

---

## [Bug? In Yum module, under CentOS 6.6 - plugins not loaded](https://forum.ansible.com/t/bug-in-yum-module-under-centos-6-6-plugins-not-loaded/19056)

<div class="topic-metadata">

**Author:** [@Eric\_Coulter](https://forum.ansible.com/u/Eric_Coulter)\
**Replies:** 3\
**Last updated:** [August 21, 2015, 4:02pm UTC](https://forum.ansible.com/t/bug-in-yum-module-under-centos-6-6-plugins-not-loaded/19056 "2015-08-21T16:02:56Z")

</div>

On a machine running CentOS 6.6, and the Rocks cluster management software, with Python 2.6.6, yum version 3.2.29, I get the following errors from running one of the example plays in the yum module:

---

## [local\_action is executed at the end and not in order its defined in.](https://forum.ansible.com/t/local-action-is-executed-at-the-end-and-not-in-order-its-defined-in/19077)

<div class="topic-metadata">

**Author:** [@Sebastien\_Hadjifotis](https://forum.ansible.com/u/Sebastien_Hadjifotis)\
**Replies:** 1\
**Last updated:** [August 21, 2015, 2:10pm UTC](https://forum.ansible.com/t/local-action-is-executed-at-the-end-and-not-in-order-its-defined-in/19077 "2015-08-21T14:10:21Z")

</div>

---

## [exit if shell variable is not set](https://forum.ansible.com/t/exit-if-shell-variable-is-not-set/19079)

<div class="topic-metadata">

**Author:** [@brentgclarklist](https://forum.ansible.com/u/brentgclarklist)\
**Replies:** 1\
**Last updated:** [August 21, 2015, 2:00pm UTC](https://forum.ansible.com/t/exit-if-shell-variable-is-not-set/19079 "2015-08-21T14:00:27Z")

</div>

Good day Guys Is there a way I can ansible to exit and print a custom error message if a bash / shell variable is not set. If anyone can assist, it would be appreciated. Thanks Brent

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

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