# Latest

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

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

**Page:** 657

---

## [Blockinfile looping overwrites even though the marker is differnent](https://forum.ansible.com/t/blockinfile-looping-overwrites-even-though-the-marker-is-differnent/24559)

<div class="topic-metadata">

**Author:** [@rcst.eoin.kim](https://forum.ansible.com/u/rcst.eoin.kim)\
**Replies:** 0\
**Last updated:** [May 24, 2017, 3:48am UTC](https://forum.ansible.com/t/blockinfile-looping-overwrites-even-though-the-marker-is-differnent/24559 "2017-05-24T03:48:08Z")

</div>

Hi all, I am trying to insert a block of lines via Blockinfile module and it is overwriting the previous change even though I am using different marker. I have configured the code like below:

---

## [Unable to source a script?](https://forum.ansible.com/t/unable-to-source-a-script/18553)

<div class="topic-metadata">

**Author:** [@Dean\_Mills](https://forum.ansible.com/u/Dean_Mills)\
**Replies:** 6\
**Last updated:** [May 24, 2017, 3:24am UTC](https://forum.ansible.com/t/unable-to-source-a-script/18553 "2017-05-24T03:24:02Z")

</div>

Hi all, Am trying to install nvm and PM2 from a playbook and I’ve hit a snag. One of the commands I need to run is to source the pm2 users .profile file. The issue is I don’t seem to be able to do that from ansible (am …

---

## [Install multiple rpms from local filesysyem with yum module](https://forum.ansible.com/t/install-multiple-rpms-from-local-filesysyem-with-yum-module/24557)

<div class="topic-metadata">

**Author:** [@SatIng](https://forum.ansible.com/u/SatIng)\
**Replies:** 2\
**Last updated:** [May 23, 2017, 11:28pm UTC](https://forum.ansible.com/t/install-multiple-rpms-from-local-filesysyem-with-yum-module/24557 "2017-05-23T23:28:35Z")

</div>

I am trying to install Libreoffice using ansible yum module Downloaded from https://downloadarchive.documentfoundation.org/libreoffice/old/4.4.1.2/rpm/x86\_64/LibreOffice\_4.4.1.2\_Linux\_x86-64\_rpm.tar.gz Extracted and al…

---

## [Ansible tower setup failure](https://forum.ansible.com/t/ansible-tower-setup-failure/22394)

<div class="topic-metadata">

**Author:** [@Utsav\_Kumar](https://forum.ansible.com/u/Utsav_Kumar)\
**Replies:** 2\
**Last updated:** [May 23, 2017, 10:13pm UTC](https://forum.ansible.com/t/ansible-tower-setup-failure/22394 "2017-05-23T22:13:40Z")

</div>

I downloaded the war file for ansible, and after changing the passwords in inventory file, i tried running the setup.sh script. But, its getting failed. Following errors came during the setup playbook run: TASK \[prefli…

---

## [include lines from a text file inside a .j2 file](https://forum.ansible.com/t/include-lines-from-a-text-file-inside-a-j2-file/24554)

<div class="topic-metadata">

**Author:** [@Dalton\_Porter](https://forum.ansible.com/u/Dalton_Porter)\
**Replies:** 1\
**Last updated:** [May 23, 2017, 9:37pm UTC](https://forum.ansible.com/t/include-lines-from-a-text-file-inside-a-j2-file/24554 "2017-05-23T21:37:03Z")

</div>

I have a list of items in a text file that need to go into a specific location in the output file. The text file is one item per line: user1 user2 … The output file looks like Section1: Section2: user=user1, task…

---

## [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

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

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