# Latest

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

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

**Page:** 856

---

## [confused about | mandatory](https://forum.ansible.com/t/confused-about-mandatory/18600)

<div class="topic-metadata">

**Author:** [@Barry\_Kaplan](https://forum.ansible.com/u/Barry_Kaplan)\
**Replies:** 3\
**Last updated:** [July 2, 2015, 10:14pm UTC](https://forum.ansible.com/t/confused-about-mandatory/18600 "2015-07-02T22:14:51Z")

</div>

What is the scope to which |mandatory applies? It seems that debug is not one of them: \` vars: vi\_tenant: “{{ tenant | mandatory }}” vi\_plants: “{{ plants | mandatory }}” status: | Provisioning tenant security: en…

---

## [configure half cluster with different value](https://forum.ansible.com/t/configure-half-cluster-with-different-value/18624)

<div class="topic-metadata">

**Author:** [@Nicolas\_G](https://forum.ansible.com/u/Nicolas_G)\
**Replies:** 3\
**Last updated:** [July 2, 2015, 10:13pm UTC](https://forum.ansible.com/t/configure-half-cluster-with-different-value/18624 "2015-07-02T22:13:31Z")

</div>

Our application TIER consist 50 servers managed by Ansible that need to be configured to speak with 2 backend servers. /etc/app.cfg : config\_server={{ db\_server\_address }} We need half of the cluster config to point to…

---

## [Escaping percent % sign in a module](https://forum.ansible.com/t/escaping-percent-sign-in-a-module/18609)

<div class="topic-metadata">

**Author:** [@Guy\_Matz1](https://forum.ansible.com/u/Guy_Matz1)\
**Replies:** 2\
**Last updated:** [July 2, 2015, 10:10pm UTC](https://forum.ansible.com/t/escaping-percent-sign-in-a-module/18609 "2015-07-02T22:10:34Z")

</div>

Hi! I’ve written a module and am bumping up against an issue when I try to include a percent sign in one of the parameters, e.g.: supervisor\_prog: name: smlp-data user: smlp command: java blah-blah-blah environment:…

---

## [Variables About Other Hosts](https://forum.ansible.com/t/variables-about-other-hosts/18632)

<div class="topic-metadata">

**Author:** [@Raul\_SEVILLA\_CANAVAT](https://forum.ansible.com/u/Raul_SEVILLA_CANAVAT)\
**Replies:** 1\
**Last updated:** [July 2, 2015, 9:41pm UTC](https://forum.ansible.com/t/variables-about-other-hosts/18632 "2015-07-02T21:41:32Z")

</div>

I’m getting problems while trying to access variables from another host in my Ansible template. I’m using a SSH proxycommand configuration to access ‘internal’ instances in EC2. My inventory host file is like: cat /e…

---

## [Updating the uri module](https://forum.ansible.com/t/updating-the-uri-module/18653)

<div class="topic-metadata">

**Author:** [@jmeickle](https://forum.ansible.com/u/jmeickle)\
**Replies:** 5\
**Last updated:** [July 2, 2015, 9:35pm UTC](https://forum.ansible.com/t/updating-the-uri-module/18653 "2015-07-02T21:35:23Z")

</div>

Hi! I’ve been using Ansible for about a month. I recently filed my first PR, and I’m hoping to continue the discussion now that it’s been merged: https://github.com/ansible/ansible-modules-core/pull/1634 The ‘get\_url’ m…

---

## [Add feature to cron module to support state enable/disable](https://forum.ansible.com/t/add-feature-to-cron-module-to-support-state-enable-disable/18661)

<div class="topic-metadata">

**Author:** [@Michael\_Perzel](https://forum.ansible.com/u/Michael_Perzel)\
**Replies:** 2\
**Last updated:** [July 2, 2015, 7:51pm UTC](https://forum.ansible.com/t/add-feature-to-cron-module-to-support-state-enable-disable/18661 "2015-07-02T19:51:40Z")

</div>

Currently the cron module supports present/absent to add/delete a cron task. I’d like to add support for enable/disable where disable comments out the line and enable uncomments the line. We move cronjobs throughout our …

---

## [git init --bare with the Ansible Git core module](https://forum.ansible.com/t/git-init-bare-with-the-ansible-git-core-module/18667)

<div class="topic-metadata">

**Author:** [@Pierre-Jean\_Leger](https://forum.ansible.com/u/Pierre-Jean_Leger)\
**Replies:** 0\
**Last updated:** [July 2, 2015, 7:02pm UTC](https://forum.ansible.com/t/git-init-bare-with-the-ansible-git-core-module/18667 "2015-07-02T19:02:14Z")

</div>

Hi there, I’m totally new in the Ansible universe and I probably missed something but here is my question : I would like to create a bare git repository with the Ansible Git core module, but the “repo” parameter is alw…

---

## [Can't restart MySQL when running with local mode](https://forum.ansible.com/t/cant-restart-mysql-when-running-with-local-mode/18666)

<div class="topic-metadata">

**Author:** [@Brendan\_Tobolaski](https://forum.ansible.com/u/Brendan_Tobolaski)\
**Replies:** 0\
**Last updated:** [July 2, 2015, 6:45pm UTC](https://forum.ansible.com/t/cant-restart-mysql-when-running-with-local-mode/18666 "2015-07-02T18:45:18Z")

</div>

I’m attempting to create a ami on aws using Packer and Ansible. Every time that I try, the mysql init script claims that it failed to start mysql (by using service: name=mysql state=stopped and latter on service: name=my…

---

## [Multiple Pass Variable Expansion](https://forum.ansible.com/t/multiple-pass-variable-expansion/18665)

<div class="topic-metadata">

**Author:** [@Mike\_Ray](https://forum.ansible.com/u/Mike_Ray)\
**Replies:** 0\
**Last updated:** [July 2, 2015, 4:39pm UTC](https://forum.ansible.com/t/multiple-pass-variable-expansion/18665 "2015-07-02T16:39:33Z")

</div>

I found this post (http://stackoverflow.com/questions/29276198/ansible-how-to-construct-a-variable-from-another-variable-and-then-fetch-its-v) and was hoping to find a way to cope with it. To sum up though, basically I …

---

## [Role Dependencies - Only Run Tag of Dependent Role](https://forum.ansible.com/t/role-dependencies-only-run-tag-of-dependent-role/18660)

<div class="topic-metadata">

**Author:** [@Jacob\_Seeley](https://forum.ansible.com/u/Jacob_Seeley)\
**Replies:** 6\
**Last updated:** [July 2, 2015, 3:06pm UTC](https://forum.ansible.com/t/role-dependencies-only-run-tag-of-dependent-role/18660 "2015-07-02T15:06:10Z")

</div>

Hello, I’d like to have one role be dependent upon another role’s tag only. Here is what I am trying: meta/main.yml

---

## [nodejs package requires key/value arguments?](https://forum.ansible.com/t/nodejs-package-requires-key-value-arguments/18656)

<div class="topic-metadata">

**Author:** [@gitted](https://forum.ansible.com/u/gitted)\
**Replies:** 1\
**Last updated:** [July 2, 2015, 12:26pm UTC](https://forum.ansible.com/t/nodejs-package-requires-key-value-arguments/18656 "2015-07-02T12:26:57Z")

</div>

I’m trying to install nodejs using: name: install node apt: pkg={{item}} state=pre sent with\_items: nodejs nodejs-legacy npm I’m getting this error: failed: \[host1\] =\> (item=nodejs,nodejs-legacy,npm) =\> {“failed”: …

---

## [Dynamic string/list manipulation](https://forum.ansible.com/t/dynamic-string-list-manipulation/18651)

<div class="topic-metadata">

**Author:** [@Strahinja\_Kustudic2](https://forum.ansible.com/u/Strahinja_Kustudic2)\
**Replies:** 4\
**Last updated:** [July 2, 2015, 11:16am UTC](https://forum.ansible.com/t/dynamic-string-list-manipulation/18651 "2015-07-02T11:16:05Z")

</div>

I’m not even sure how to name this thread, but hopefully from the example you will understand what I mean. I was reading this article https://medium.com/@jmarhee/deploying-a-glusterfs-storage-cluster-with-ansible-on-dig…

---

## [Add --force to skip var\_prompts and use default values](https://forum.ansible.com/t/add-force-to-skip-var-prompts-and-use-default-values/18593)

<div class="topic-metadata">

**Author:** [@Christian\_Strassle](https://forum.ansible.com/u/Christian_Strassle)\
**Replies:** 9\
**Last updated:** [July 2, 2015, 8:49am UTC](https://forum.ansible.com/t/add-force-to-skip-var-prompts-and-use-default-values/18593 "2015-07-02T08:49:14Z")

</div>

Hi Developers, It would be nice to have something like a --force or --batch option to skip var\_prompts and just go ahead with default values. What do you think? Kind regards, Chris

---

## [Security question about a custom (in python) for accessing the gitlab API](https://forum.ansible.com/t/security-question-about-a-custom-in-python-for-accessing-the-gitlab-api/18643)

<div class="topic-metadata">

**Author:** [@Boris\_Muhmer](https://forum.ansible.com/u/Boris_Muhmer)\
**Replies:** 2\
**Last updated:** [July 2, 2015, 5:54am UTC](https://forum.ansible.com/t/security-question-about-a-custom-in-python-for-accessing-the-gitlab-api/18643 "2015-07-02T05:54:58Z")

</div>

I am pretty new to Ansible and this group, so just a quick “Hello” to everyone! For my 1st questions I already got quick answers using IRC, but now I think a mail would be better. The problem I have is the following: d…

---

## [msg='dopy \>= 0.2.3 required for this module'](https://forum.ansible.com/t/msg-dopy-0-2-3-required-for-this-module/18357)

<div class="topic-metadata">

**Author:** [@Global\_Cooling](https://forum.ansible.com/u/Global_Cooling)\
**Replies:** 1\
**Last updated:** [July 2, 2015, 2:02am UTC](https://forum.ansible.com/t/msg-dopy-0-2-3-required-for-this-module/18357 "2015-07-02T02:02:43Z")

</div>

I have tried suggestions on Github, Google Groups, and GIthub Gists but can’t seem to resolve this error. I’m using system version of Python \` which python /usr/bin/python python --version Python 2.7.6 \` Pip was …

---

## [Unit test mock object issue?](https://forum.ansible.com/t/unit-test-mock-object-issue/18625)

<div class="topic-metadata">

**Author:** [@Bob\_Tanner](https://forum.ansible.com/u/Bob_Tanner)\
**Replies:** 2\
**Last updated:** [July 1, 2015, 10:26pm UTC](https://forum.ansible.com/t/unit-test-mock-object-issue/18625 "2015-07-01T22:26:28Z")

</div>

Trying to fix my issue tracked at https://github.com/ansible/ansible/issues/11320. From what I can tell v2 does not process includes properly. So I started playing around with test/playbook/test\_playbook.py, here’s a si…

---

## [Regression suites..?](https://forum.ansible.com/t/regression-suites/18649)

<div class="topic-metadata">

**Author:** [@jang](https://forum.ansible.com/u/jang)\
**Replies:** 1\
**Last updated:** [July 1, 2015, 9:44pm UTC](https://forum.ansible.com/t/regression-suites/18649 "2015-07-01T21:44:33Z")

</div>

There are a number of corner-cases in core ansible semantics that don't appear to be nailed down. I don't know about anyone else, but we certainly seem to have a knack of depending on those without realising it. I als…

---

## [Ansible ask for vault password for a host that don't need any variable](https://forum.ansible.com/t/ansible-ask-for-vault-password-for-a-host-that-dont-need-any-variable/18642)

<div class="topic-metadata">

**Author:** [@alessandro\_mazzoli](https://forum.ansible.com/u/alessandro_mazzoli)\
**Replies:** 1\
**Last updated:** [July 1, 2015, 8:45pm UTC](https://forum.ansible.com/t/ansible-ask-for-vault-password-for-a-host-that-dont-need-any-variable/18642 "2015-07-01T20:45:06Z")

</div>

Hi, i’m a pretty satisfied Ansible user but i got an issue maybe caused by a bad practice or a bad definition on my Inventory. I have two inventories( production/ development) in /etc/ansible/invenories with several h…

---

## [Conditional execution on hosts where service exists](https://forum.ansible.com/t/conditional-execution-on-hosts-where-service-exists/18259)

<div class="topic-metadata">

**Author:** [@alexander.konn](https://forum.ansible.com/u/alexander.konn)\
**Replies:** 4\
**Last updated:** [July 1, 2015, 8:24pm UTC](https://forum.ansible.com/t/conditional-execution-on-hosts-where-service-exists/18259 "2015-07-01T20:24:28Z")

</div>

I have an Ansible playbook for deploying a Java app as an init.d daemon. Being a beginner in both Ansible and Linux I’m having trouble to conditionally execute tasks on a host based on the host’s status. Namely I have …

---

## [failed\_when sequence logic](https://forum.ansible.com/t/failed-when-sequence-logic/18655)

<div class="topic-metadata">

**Author:** [@Tom\_Paine1](https://forum.ansible.com/u/Tom_Paine1)\
**Replies:** 5\
**Last updated:** [July 1, 2015, 7:20pm UTC](https://forum.ansible.com/t/failed-when-sequence-logic/18655 "2015-07-01T19:20:24Z")

</div>

Having trouble understanding if there’s a bug in failed\_when, or my understanding is incorrect - a false and a true are OR’ing in a YAML sequence to false: Fails (failed when evals to true): \` failed\_when: ‘“300 OK…

---

## [v2 - issue running copy module](https://forum.ansible.com/t/v2-issue-running-copy-module/18645)

<div class="topic-metadata">

**Author:** [@Rodrigo\_B\_Brasil](https://forum.ansible.com/u/Rodrigo_B_Brasil)\
**Replies:** 2\
**Last updated:** [July 1, 2015, 6:22pm UTC](https://forum.ansible.com/t/v2-issue-running-copy-module/18645 "2015-07-01T18:22:36Z")

</div>

Hello all! Does anyone had this issue using the copy module in v2 (2.0.0 0.0.pre)? It was working in 1.9.2. copy: src=files/etc\_logrotate.d\_zabbix\_agentd dest=/etc/logrotate.d/zabbix\_agentd owner=root group=root mod…

---

## [with\_recursive: A lookup plugin that chains other lookups](https://forum.ansible.com/t/with-recursive-a-lookup-plugin-that-chains-other-lookups/18601)

<div class="topic-metadata">

**Author:** [@Hagai\_Kariti](https://forum.ansible.com/u/Hagai_Kariti)\
**Replies:** 6\
**Last updated:** [July 1, 2015, 6:07pm UTC](https://forum.ansible.com/t/with-recursive-a-lookup-plugin-that-chains-other-lookups/18601 "2015-07-01T18:07:03Z")

</div>

Hi I wrote a lookup plugin and I’d like to hear what you think. It allows one to nest loops inside each other. Kind of like with\_nested, but with other loop types than ‘items’. The code is here: Ansible lookup plugin th…

---

## [Is it possible to access ansible facts from a custom fact!?](https://forum.ansible.com/t/is-it-possible-to-access-ansible-facts-from-a-custom-fact/18646)

<div class="topic-metadata">

**Author:** [@Guy\_Matz1](https://forum.ansible.com/u/Guy_Matz1)\
**Replies:** 1\
**Last updated:** [July 1, 2015, 3:34pm UTC](https://forum.ansible.com/t/is-it-possible-to-access-ansible-facts-from-a-custom-fact/18646 "2015-07-01T15:34:32Z")

</div>

Hello! I’m writing a custom fact and would like to be able to access information already provided by other ansible facts . . . anyone know if this is possible? For example, my fact will return a value based on a part of…

---

## [Vagrant Ansible Provisioner - best practice](https://forum.ansible.com/t/vagrant-ansible-provisioner-best-practice/18652)

<div class="topic-metadata">

**Author:** [@chinedu\_uzoka](https://forum.ansible.com/u/chinedu_uzoka)\
**Replies:** 0\
**Last updated:** [July 1, 2015, 3:08pm UTC](https://forum.ansible.com/t/vagrant-ansible-provisioner-best-practice/18652 "2015-07-01T15:08:45Z")

</div>

Ive been asked to use Ansible to create a CI and CD pipeline - i have extensive knowledge of Puppet and know experience of Ansible - im almost two weeks in and after trying to model Ansible with same concepts derived fro…

---

## [Should --tags work for playbooks?](https://forum.ansible.com/t/should-tags-work-for-playbooks/18648)

<div class="topic-metadata">

**Author:** [@Barry\_Kaplan](https://forum.ansible.com/u/Barry_Kaplan)\
**Replies:** 2\
**Last updated:** [July 1, 2015, 2:56pm UTC](https://forum.ansible.com/t/should-tags-work-for-playbooks/18648 "2015-07-01T14:56:54Z")

</div>

I have: \`

---

## [Force (dependant)  roles with different params to be executed ?](https://forum.ansible.com/t/force-dependant-roles-with-different-params-to-be-executed/18650)

<div class="topic-metadata">

**Author:** [@Torsten\_Reinhard](https://forum.ansible.com/u/Torsten_Reinhard)\
**Replies:** 0\
**Last updated:** [July 1, 2015, 2:07pm UTC](https://forum.ansible.com/t/force-dependant-roles-with-different-params-to-be-executed/18650 "2015-07-01T14:07:02Z")

</div>

Hi all, I have a playbook like: \` hosts: weblogic … roles: { role: weblogic, wls: “{{weblogic\[‘12.1.3’\]}}” } { role: weblogic, wls: “{{weblogic\[‘12.1.1’\]}}” } \` The role “weblogic” itself has a dependency to a r…

---

## [ec2 module, encrypted: true doesn't create EBS volume with encryption enabled](https://forum.ansible.com/t/ec2-module-encrypted-true-doesnt-create-ebs-volume-with-encryption-enabled/18630)

<div class="topic-metadata">

**Author:** [@Pradeep\_Reddy1](https://forum.ansible.com/u/Pradeep_Reddy1)\
**Replies:** 3\
**Last updated:** [July 1, 2015, 9:23am UTC](https://forum.ansible.com/t/ec2-module-encrypted-true-doesnt-create-ebs-volume-with-encryption-enabled/18630 "2015-07-01T09:23:26Z")

</div>

Here is my role name: Launch instance ec2: region: ‘{{ region }}’ zone: ‘{{ zone }}’ keypair: ‘{{ keypair }}’ group: ‘{{ security\_group }}’ image: ‘{{ image }}’ instance\_type: ‘{{ instance\_type | default(“t2.m…

---

## [var values in the same line](https://forum.ansible.com/t/var-values-in-the-same-line/18641)

<div class="topic-metadata">

**Author:** [@Nicolas\_G](https://forum.ansible.com/u/Nicolas_G)\
**Replies:** 4\
**Last updated:** [July 1, 2015, 6:32am UTC](https://forum.ansible.com/t/var-values-in-the-same-line/18641 "2015-07-01T06:32:23Z")

</div>

Hi all, We have a role var defined for every role like bellow : roles/db/vars/main.yml : role : db roles/web/vars/main.yml : role : web roles/app/vars/main.yml : role : app We need to have this var a specific “confi…

---

## [Confusing about Ansible and Rundeck](https://forum.ansible.com/t/confusing-about-ansible-and-rundeck/18647)

<div class="topic-metadata">

**Author:** [@zhz\_shi](https://forum.ansible.com/u/zhz_shi)\
**Replies:** 0\
**Last updated:** [July 1, 2015, 4:01am UTC](https://forum.ansible.com/t/confusing-about-ansible-and-rundeck/18647 "2015-07-01T04:01:37Z")

</div>

Hi there, I have some confusing points about Ansible and Rundeck and posted a question on SO: http://stackoverflow.com/questions/31152102/is-it-a-good-idea-to-make-ansible-and-rundeck-work-together-or-using-either-one C…

---

## [No community hangout this week](https://forum.ansible.com/t/no-community-hangout-this-week/18644)

<div class="topic-metadata">

**Author:** [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Replies:** 0\
**Last updated:** [June 30, 2015, 4:58pm UTC](https://forum.ansible.com/t/no-community-hangout-this-week/18644 "2015-06-30T16:58:29Z")

</div>

Hi all, just wanted to let everyone know we’re going to be moving to a bi-monthly schedule for the community hangout, so there will not be one this week. Going forward, the hangouts will be on the first and third Tuesda…

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

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