# Archives

**URL:** https://forum.ansible.com/c/archives/31.md?page=485

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

**Page:** 486

---

## [Ansible playbook does not work as expected, when using include\_role with with\_items to loop over multiple roles.](https://forum.ansible.com/t/ansible-playbook-does-not-work-as-expected-when-using-include-role-with-with-items-to-loop-over-multiple-roles/24556)

<div class="topic-metadata">

**Author:** [@uday\_shankar](https://forum.ansible.com/u/uday_shankar)\
**Replies:** 0\
**Last updated:** [May 23, 2017, 9:02pm UTC](https://forum.ansible.com/t/ansible-playbook-does-not-work-as-expected-when-using-include-role-with-with-items-to-loop-over-multiple-roles/24556 "2017-05-23T21:02:09Z")

</div>

$ ansible --version ansible 2.4.0 (devel 16d522cf2c) last updated 2017/05/22 14:49:05 (GMT -700) role/ServiceDeploy/tasks/main.yml name: SERVICE Deployment include\_role: name: ‘{{item}}’ with\_items: “{{ SERVICE\_DEP…

---

## [Ansible 2.3.1 RC2 is available for testing](https://forum.ansible.com/t/ansible-2-3-1-rc2-is-available-for-testing/24555)

<div class="topic-metadata">

**Author:** [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Replies:** 0\
**Last updated:** [May 23, 2017, 7:49pm UTC](https://forum.ansible.com/t/ansible-2-3-1-rc2-is-available-for-testing/24555 "2017-05-23T19:49:02Z")

</div>

We are happy to announce the availability of Ansible 2.3.1 RC2! This release candidate includes a lot of small bug fixes, including (but not limited to): Performance fix when using loops, avoiding default serializatio…

---

## [when statements should not include jinja2 templating delimiters](https://forum.ansible.com/t/when-statements-should-not-include-jinja2-templating-delimiters/24549)

<div class="topic-metadata">

**Author:** [@dch](https://forum.ansible.com/u/dch)\
**Replies:** 4\
**Last updated:** [May 23, 2017, 5:54pm UTC](https://forum.ansible.com/t/when-statements-should-not-include-jinja2-templating-delimiters/24549 "2017-05-23T17:54:16Z")

</div>

I'm getting a benign warning below: \[WARNING\]: when statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found: not ansible\_check\_mode and (zerotier\_status != "OK" or zerotier\_name != "…

---

## [Run powershell script on Windows servers which require Powershell to be run with admin privilages](https://forum.ansible.com/t/run-powershell-script-on-windows-servers-which-require-powershell-to-be-run-with-admin-privilages/24521)

<div class="topic-metadata">

**Author:** [@Ashish\_Vijay](https://forum.ansible.com/u/Ashish_Vijay)\
**Replies:** 3\
**Last updated:** [May 23, 2017, 4:41pm UTC](https://forum.ansible.com/t/run-powershell-script-on-windows-servers-which-require-powershell-to-be-run-with-admin-privilages/24521 "2017-05-23T16:41:17Z")

</div>

Hello All, I want to execute one powershell script on few target servers which require powershell to be run as administrator. I am getting access denied error when i try with normal playbook. name: Install software o…

---

## [STACK\_STATUS.YML-------------------VERIFY END TO END INDEX RESPONSE--shows error](https://forum.ansible.com/t/stack-status-yml-verify-end-to-end-index-response-shows-error/24551)

<div class="topic-metadata">

**Author:** [@devopsaws.santhosh](https://forum.ansible.com/u/devopsaws.santhosh)\
**Replies:** 0\
**Last updated:** [May 23, 2017, 1:13pm UTC](https://forum.ansible.com/t/stack-status-yml-verify-end-to-end-index-response-shows-error/24551 "2017-05-23T13:13:36Z")

</div>

when i check the stack\_status end to end response shows error ansible–playbook: hosts: control tasks: name: verify end-to-end index response uri: url=http://{{item}} return\_content=yes with\_items: groups.loadba…

---

## [ansible template's chown part fails on ubuntu server 14.04 but works on ubuntu desktop trusty](https://forum.ansible.com/t/ansible-templates-chown-part-fails-on-ubuntu-server-14-04-but-works-on-ubuntu-desktop-trusty/24550)

<div class="topic-metadata">

**Author:** [@prashant1](https://forum.ansible.com/u/prashant1)\
**Replies:** 0\
**Last updated:** [May 23, 2017, 12:30pm UTC](https://forum.ansible.com/t/ansible-templates-chown-part-fails-on-ubuntu-server-14-04-but-works-on-ubuntu-desktop-trusty/24550 "2017-05-23T12:30:59Z")

</div>

i have something like this: name: Setup client IP in Proxy Balancer become: yes template: src: templates/proxy\_balancer.conf dest: ./new\_proxy\_balancer owner: root group: root mode: 0644 tags: hello this works…

---

## [HOW TO INSTALL VAGRANT IN FEDORA25](https://forum.ansible.com/t/how-to-install-vagrant-in-fedora25/24543)

<div class="topic-metadata">

**Author:** [@devopsaws.santhosh](https://forum.ansible.com/u/devopsaws.santhosh)\
**Replies:** 1\
**Last updated:** [May 23, 2017, 11:03am UTC](https://forum.ansible.com/t/how-to-install-vagrant-in-fedora25/24543 "2017-05-23T11:03:33Z")

</div>

hai sir, may i know the process of installation vagrant up in fedora 25 its not installed i tried and followed so many blogs but no soution…can anyone know the instalation steps…

---

## [service state=stopped fails if service not installed - why?](https://forum.ansible.com/t/service-state-stopped-fails-if-service-not-installed-why/24547)

<div class="topic-metadata">

**Author:** [@bengland](https://forum.ansible.com/u/bengland)\
**Replies:** 1\
**Last updated:** [May 22, 2017, 10:33pm UTC](https://forum.ansible.com/t/service-state-stopped-fails-if-service-not-installed-why/24547 "2017-05-22T22:33:05Z")

</div>

While using ceph-ansible purge-cluster.yml script I ran into this problem. If you run a task like: - name: stop ceph mdss with systemd service: name: ceph-mds@{{ ansible\_hostname }} state: stopped …

---

## [ansible and cvs](https://forum.ansible.com/t/ansible-and-cvs/24520)

<div class="topic-metadata">

**Author:** [@Alessandro\_Basili](https://forum.ansible.com/u/Alessandro_Basili)\
**Replies:** 1\
**Last updated:** [May 22, 2017, 10:31pm UTC](https://forum.ansible.com/t/ansible-and-cvs/24520 "2017-05-22T22:31:23Z")

</div>

Hi there, I’m trying to setup a deployment of various sources that are scattered among various vcs repositories (git, cvs, hg, …) and while I found most of the stuff on the available modules (http://docs.ansible.com/ans…

---

## [Getting SSL issue on MACOS (10.11.6)](https://forum.ansible.com/t/getting-ssl-issue-on-macos-10-11-6/24546)

<div class="topic-metadata">

**Author:** [@Selva\_Prabhu](https://forum.ansible.com/u/Selva_Prabhu)\
**Replies:** 0\
**Last updated:** [May 22, 2017, 8:38pm UTC](https://forum.ansible.com/t/getting-ssl-issue-on-macos-10-11-6/24546 "2017-05-22T20:38:05Z")

</div>

Getting SSL certificate issue on my mac. TASK \[kubectl : download kubectl from cumulus repo\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* task path: /Users/sprabhu/github/deployment-armada-develop/roles/kubectl/tasks/main.yml:34 fata…

---

## [Ansible on Xenial can no longer find six\_py file](https://forum.ansible.com/t/ansible-on-xenial-can-no-longer-find-six-py-file/24045)

<div class="topic-metadata">

**Author:** [@Charles\_Appel](https://forum.ansible.com/u/Charles_Appel)\
**Replies:** 1\
**Last updated:** [May 22, 2017, 5:42pm UTC](https://forum.ansible.com/t/ansible-on-xenial-can-no-longer-find-six-py-file/24045 "2017-05-22T17:42:40Z")

</div>

Last I used ansible was three days ago; this morning I attempted to run and receive the following error: ansible --version Traceback (most recent call last): File “/usr/bin/ansible”, line 43, in import ansible.const…

---

## [Help with Amazon STS Module \[sts\_assume\_role\]](https://forum.ansible.com/t/help-with-amazon-sts-module-sts-assume-role/24541)

<div class="topic-metadata">

**Author:** [@Brian\_O\_Mahony1](https://forum.ansible.com/u/Brian_O_Mahony1)\
**Replies:** 0\
**Last updated:** [May 22, 2017, 3:34pm UTC](https://forum.ansible.com/t/help-with-amazon-sts-module-sts-assume-role/24541 "2017-05-22T15:34:28Z")

</div>

I am starting to use ansible for my AWS environment and have run into a few snags with the STS Module. I am relatively new to ansible, so it may just be user error :slight\_smile: Apologies if these are Issue #1: I have…

---

## [roles dependencies tests and DRY](https://forum.ansible.com/t/roles-dependencies-tests-and-dry/24539)

<div class="topic-metadata">

**Author:** [@Michee\_Lengronne](https://forum.ansible.com/u/Michee_Lengronne)\
**Replies:** 0\
**Last updated:** [May 22, 2017, 1:15pm UTC](https://forum.ansible.com/t/roles-dependencies-tests-and-dry/24539 "2017-05-22T13:15:34Z")

</div>

Hello, I am currently developing and refactoring custom ansible roles and I would like to know how can I do to call dependencies in a role from its tests folder without rewriting a requirements.yml in this folder ? I wo…

---

## [Test ansible rtoles with dependencies and DRY principle.](https://forum.ansible.com/t/test-ansible-rtoles-with-dependencies-and-dry-principle/24538)

<div class="topic-metadata">

**Author:** [@Michee\_Lengronne](https://forum.ansible.com/u/Michee_Lengronne)\
**Replies:** 0\
**Last updated:** [May 22, 2017, 1:11pm UTC](https://forum.ansible.com/t/test-ansible-rtoles-with-dependencies-and-dry-principle/24538 "2017-05-22T13:11:24Z")

</div>

Hello, I am currently developing and refactoring custom ansible roles and I would like to know how can I do to call dependencies in a role from its tests folder without rewriting a requirements.yml in this folder ? I wo…

---

## [Dependency check between roles](https://forum.ansible.com/t/dependency-check-between-roles/24512)

<div class="topic-metadata">

**Author:** [@Jose\_Luis\_Fernandez](https://forum.ansible.com/u/Jose_Luis_Fernandez)\
**Replies:** 5\
**Last updated:** [May 22, 2017, 12:42pm UTC](https://forum.ansible.com/t/dependency-check-between-roles/24512 "2017-05-22T12:42:57Z")

</div>

Hi all! I need to disallow a role from being executed when it is include more than once. The scenario is like this. Role A includes as a dependency Role B Role C includes as a dependency Role B I include role A and r…

---

## [Post-install tasks for EC2 in private subnet](https://forum.ansible.com/t/post-install-tasks-for-ec2-in-private-subnet/24537)

<div class="topic-metadata">

**Author:** [@Amedix](https://forum.ansible.com/u/Amedix)\
**Replies:** 0\
**Last updated:** [May 22, 2017, 12:35pm UTC](https://forum.ansible.com/t/post-install-tasks-for-ec2-in-private-subnet/24537 "2017-05-22T12:35:59Z")

</div>

Hi there, I have an ansible playbook and its purpose is to provision AWS EC2 instances in a private subnet. The playbook has two parts, the first one is to create the EC2 instance and works fine, however the second par…

---

## [Ansible Control Machine failure and long running tasks](https://forum.ansible.com/t/ansible-control-machine-failure-and-long-running-tasks/24533)

<div class="topic-metadata">

**Author:** [@Nicolas\_B](https://forum.ansible.com/u/Nicolas_B)\
**Replies:** 0\
**Last updated:** [May 22, 2017, 8:51am UTC](https://forum.ansible.com/t/ansible-control-machine-failure-and-long-running-tasks/24533 "2017-05-22T08:51:26Z")

</div>

Hello! Recently, I have started looking at Ansible to be used as an orchestration engine. I need the engine to support long running tasks, and as Ansible supports asynchronous actions with polling, it could fit my use c…

---

## [Play ansible playbook with inventory file inside another playbook](https://forum.ansible.com/t/play-ansible-playbook-with-inventory-file-inside-another-playbook/24532)

<div class="topic-metadata">

**Author:** [@Mateusz\_Panczyszyn](https://forum.ansible.com/u/Mateusz_Panczyszyn)\
**Replies:** 0\
**Last updated:** [May 21, 2017, 8:09pm UTC](https://forum.ansible.com/t/play-ansible-playbook-with-inventory-file-inside-another-playbook/24532 "2017-05-21T20:09:19Z")

</div>

Hi, I have small problem. I have my own playbook to prepare installation of our product which also using ansible. My playbook is using for download product from repo, unpack, customize some config files and so on. After…

---

## [Using multiple machine credentials when running a job template in Tower](https://forum.ansible.com/t/using-multiple-machine-credentials-when-running-a-job-template-in-tower/24411)

<div class="topic-metadata">

**Author:** [@Listing](https://forum.ansible.com/u/Listing)\
**Replies:** 2\
**Last updated:** [May 21, 2017, 11:41am UTC](https://forum.ansible.com/t/using-multiple-machine-credentials-when-running-a-job-template-in-tower/24411 "2017-05-21T11:41:41Z")

</div>

Hi, When running a job template in Ansible-Tower I notice that I can only select one credential per job run. I have many machines in my inventory with different credentials and occasionally I would like to connect with …

---

## [Ansible integration with Jfrog Artifactory](https://forum.ansible.com/t/ansible-integration-with-jfrog-artifactory/22119)

<div class="topic-metadata">

**Author:** [@harindra\_shivam](https://forum.ansible.com/u/harindra_shivam)\
**Replies:** 2\
**Last updated:** [May 21, 2017, 9:47am UTC](https://forum.ansible.com/t/ansible-integration-with-jfrog-artifactory/22119 "2017-05-21T09:47:32Z")

</div>

Hi I am trying to use Jfrog Artifactory to integrate with Ansible instead of GIT Repository. Can I access Jfrog Artifactory’s Artifacts to deploy changes on my webserver ?? Regards, Harindra

---

## [Is it possible to use a variable as a key in a key:value pair?](https://forum.ansible.com/t/is-it-possible-to-use-a-variable-as-a-key-in-a-key-value-pair/24528)

<div class="topic-metadata">

**Author:** [@Dayton\_Jones](https://forum.ansible.com/u/Dayton_Jones)\
**Replies:** 0\
**Last updated:** [May 19, 2017, 7:53pm UTC](https://forum.ansible.com/t/is-it-possible-to-use-a-variable-as-a-key-in-a-key-value-pair/24528 "2017-05-19T19:53:57Z")

</div>

I’m trying to populate a file based on some default vars and I’m wondering if the following is possible (and if so, how?) because I’ve been unable to get it to work. given: ansible 2.3.0.0 python version = 2.7.13 (def…

---

## [EC2\_ASG module failure](https://forum.ansible.com/t/ec2-asg-module-failure/24527)

<div class="topic-metadata">

**Author:** [@Taylor\_Lewick](https://forum.ansible.com/u/Taylor_Lewick)\
**Replies:** 0\
**Last updated:** [May 19, 2017, 6:35pm UTC](https://forum.ansible.com/t/ec2-asg-module-failure/24527 "2017-05-19T18:35:02Z")

</div>

I am trying to create an ASG from within a playbook. Running ansible 2.2.1 from Mac OS. Playbook below: \` #setup Logstash Autoscaling group name: ELkstack LogStash ASG ec2\_asg: name: “pro-ELK-LogStash-ASG” launch…

---

## [Tower and "Check Mode"?](https://forum.ansible.com/t/tower-and-check-mode/24518)

<div class="topic-metadata">

**Author:** [@Cody\_John](https://forum.ansible.com/u/Cody_John)\
**Replies:** 1\
**Last updated:** [May 19, 2017, 4:41pm UTC](https://forum.ansible.com/t/tower-and-check-mode/24518 "2017-05-19T16:41:14Z")

</div>

Is there any way to run playbooks in Tower using the “–check” flag? This is a pretty critical feature and I’m surprised that it either doesn’t exist or I am just missing it (entirely possible).

---

## [How to get the version of the installed package with regexp via Ansible?](https://forum.ansible.com/t/how-to-get-the-version-of-the-installed-package-with-regexp-via-ansible/24525)

<div class="topic-metadata">

**Author:** [@user91](https://forum.ansible.com/u/user91)\
**Replies:** 0\
**Last updated:** [May 19, 2017, 4:12pm UTC](https://forum.ansible.com/t/how-to-get-the-version-of-the-installed-package-with-regexp-via-ansible/24525 "2017-05-19T16:12:50Z")

</div>

There are several packages with a common name: package-somethins1 package-special \` --- - hosts: Special\_hosts name: "Get version of RPM" tasks: - name: yum\_command yum: list=installed regi…

---

## [win\_user is not repeatable](https://forum.ansible.com/t/win-user-is-not-repeatable/24519)

<div class="topic-metadata">

**Author:** [@gary\_mcwilliams](https://forum.ansible.com/u/gary_mcwilliams)\
**Replies:** 1\
**Last updated:** [May 19, 2017, 3:10pm UTC](https://forum.ansible.com/t/win-user-is-not-repeatable/24519 "2017-05-19T15:10:36Z")

</div>

A minimal playbook

---

## [\[WARNING\]: While constructing a mapping from /etc/ansible/playbooks/touch.yml, line 2, column 3, found a duplicate dict key (tasks). Using last defined value only.](https://forum.ansible.com/t/warning-while-constructing-a-mapping-from-etc-ansible-playbooks-touch-yml-line-2-column-3-found-a-duplicate-dict-key-tasks-using-last-defined-value-only/24524)

<div class="topic-metadata">

**Author:** [@Anfield](https://forum.ansible.com/u/Anfield)\
**Replies:** 4\
**Last updated:** [May 19, 2017, 3:05pm UTC](https://forum.ansible.com/t/warning-while-constructing-a-mapping-from-etc-ansible-playbooks-touch-yml-line-2-column-3-found-a-duplicate-dict-key-tasks-using-last-defined-value-only/24524 "2017-05-19T15:05:42Z")

</div>

I have the following playbook and I got the above error. This created the directory but not the file. Any ideas?

---

## [With\_items over the loops with "when", can we write multiple "when" in one task?](https://forum.ansible.com/t/with-items-over-the-loops-with-when-can-we-write-multiple-when-in-one-task/24485)

<div class="topic-metadata">

**Author:** [@Raj\_Martha](https://forum.ansible.com/u/Raj_Martha)\
**Replies:** 4\
**Last updated:** [May 19, 2017, 2:52pm UTC](https://forum.ansible.com/t/with-items-over-the-loops-with-when-can-we-write-multiple-when-in-one-task/24485 "2017-05-19T14:52:51Z")

</div>

Hi all, I want to write the code like this, is it possible? or is there any better way to write?

---

## [Problems using AWS Dynamic Inventory with STS Profiles](https://forum.ansible.com/t/problems-using-aws-dynamic-inventory-with-sts-profiles/24523)

<div class="topic-metadata">

**Author:** [@Ric](https://forum.ansible.com/u/Ric)\
**Replies:** 0\
**Last updated:** [May 19, 2017, 1:17pm UTC](https://forum.ansible.com/t/problems-using-aws-dynamic-inventory-with-sts-profiles/24523 "2017-05-19T13:17:48Z")

</div>

ANSIBLE VERSION ansible 2.3.0.0 config file = configured module search path = Default w/o overrides python version = 2.7.5 (default, Aug 2 2016, 04:20:16) \[GCC 4.8.5 20150623 (Red Hat 4.8.5-4)\]

---

## [Cannot execute a command on remote machine](https://forum.ansible.com/t/cannot-execute-a-command-on-remote-machine/24522)

<div class="topic-metadata">

**Author:** [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Replies:** 0\
**Last updated:** [May 19, 2017, 12:04pm UTC](https://forum.ansible.com/t/cannot-execute-a-command-on-remote-machine/24522 "2017-05-19T12:04:14Z")

</div>

It looks like your command depends on some environment vars. Can you try the shell module instead of command? That should handle it better. Dick

---

## [Adding new route to cisco router Jinja2 template](https://forum.ansible.com/t/adding-new-route-to-cisco-router-jinja2-template/24451)

<div class="topic-metadata">

**Author:** [@naeem\_dhby](https://forum.ansible.com/u/naeem_dhby)\
**Replies:** 3\
**Last updated:** [May 19, 2017, 3:42am UTC](https://forum.ansible.com/t/adding-new-route-to-cisco-router-jinja2-template/24451 "2017-05-19T03:42:09Z")

</div>

Hi, i have configured Cisco router and i want to setup automation to only add new route to router, and do not change any old configuration already exist in router is it possible to use Jinja2 template for this case, i’…

[Previous page](https://forum.ansible.com/c/archives/31.md?page=484)

[Next page](https://forum.ansible.com/c/archives/31.md?page=486)
