# Latest

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

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

**Page:** 785

---

## [strategy\_plugins setting in a configuration file](https://forum.ansible.com/t/strategy-plugins-setting-in-a-configuration-file/20770)

<div class="topic-metadata">

**Author:** [@yagami\_kishin](https://forum.ansible.com/u/yagami_kishin)\
**Replies:** 2\
**Last updated:** [March 5, 2016, 1:08pm UTC](https://forum.ansible.com/t/strategy-plugins-setting-in-a-configuration-file/20770 "2016-03-05T13:08:44Z")

</div>

Hi, I recently noticed that there is no ‘strategy\_plugins’ setting in a configuration file. Other plugins, such as an action plugin, have settings like action\_plugins to adjust plugin locations. So I am not sure why a s…

---

## [porting this with\_together loop from ansible 1.9.4 -\> 2.0.1.0](https://forum.ansible.com/t/porting-this-with-together-loop-from-ansible-1-9-4-2-0-1-0/20782)

<div class="topic-metadata">

**Author:** [@Nusenu1](https://forum.ansible.com/u/Nusenu1)\
**Replies:** 0\
**Last updated:** [March 5, 2016, 10:38am UTC](https://forum.ansible.com/t/porting-this-with-together-loop-from-ansible-1-9-4-2-0-1-0/20782 "2016-03-05T10:38:58Z")

</div>

Hi, after upgrading from ansible 1.9.4 to 2.0.1.0 the task\[1\] shown below fails with the following message: FAILED! =\> {"failed": true, "msg": "an unexpected type error occurred. Error was 'bool' object has no attrib…

---

## [Call back script problems](https://forum.ansible.com/t/call-back-script-problems/20779)

<div class="topic-metadata">

**Author:** [@Gabriel\_Rosca](https://forum.ansible.com/u/Gabriel_Rosca)\
**Replies:** 2\
**Last updated:** [March 5, 2016, 4:42am UTC](https://forum.ansible.com/t/call-back-script-problems/20779 "2016-03-05T04:42:07Z")

</div>

Hi Guys, I have this callback script. I add callback\_whitelist = inventory in ansible.cfg but when I an run get: \[WARNING\]: Failure when attempting to use callback plugin (\</usr/share/ansible\_plugins/callback\_plugins/i…

---

## [Ansible to display system inventory information](https://forum.ansible.com/t/ansible-to-display-system-inventory-information/20781)

<div class="topic-metadata">

**Author:** [@Hongjun\_Ma](https://forum.ansible.com/u/Hongjun_Ma)\
**Replies:** 0\
**Last updated:** [March 5, 2016, 1:39am UTC](https://forum.ansible.com/t/ansible-to-display-system-inventory-information/20781 "2016-03-05T01:39:06Z")

</div>

I have python module collect single system inventory info using print statement and I’d like to use Ansible to collect the same information against all inventory hosts. I know Ansible doesn’t like custom module to do pr…

---

## [Issue re Running ansible Playbook with Jenkins](https://forum.ansible.com/t/issue-re-running-ansible-playbook-with-jenkins/20772)

<div class="topic-metadata">

**Author:** [@rikki.maha24](https://forum.ansible.com/u/rikki.maha24)\
**Replies:** 2\
**Last updated:** [March 4, 2016, 11:01pm UTC](https://forum.ansible.com/t/issue-re-running-ansible-playbook-with-jenkins/20772 "2016-03-04T23:01:30Z")

</div>

HI All, I have created deployment playbook on the build server under user deploy: /home/deploy/playbooks/deploy.yml . And when I am running the playbook from the build server itself : ansible-playbook deploy.yml and it…

---

## [delegate\_to in loop: only connecting to first host in list](https://forum.ansible.com/t/delegate-to-in-loop-only-connecting-to-first-host-in-list/20220)

<div class="topic-metadata">

**Author:** [@alvlin.uy](https://forum.ansible.com/u/alvlin.uy)\
**Replies:** 2\
**Last updated:** [March 4, 2016, 9:33pm UTC](https://forum.ansible.com/t/delegate-to-in-loop-only-connecting-to-first-host-in-list/20220 "2016-03-04T21:33:54Z")

</div>

Hi (again!) Found another unexpected issue with my code. I’m trying to automate the deployment of an application which consists of some java processes in Linux servers, and then a GUI client running on Windows. So, I’m…

---

## [Community Working Group meeting, 04 March 2016](https://forum.ansible.com/t/community-working-group-meeting-04-march-2016/20778)

<div class="topic-metadata">

**Author:** [@Robyn\_Bergeron2](https://forum.ansible.com/u/Robyn_Bergeron2)\
**Replies:** 0\
**Last updated:** [March 4, 2016, 9:31pm UTC](https://forum.ansible.com/t/community-working-group-meeting-04-march-2016/20778 "2016-03-04T21:31:29Z")

</div>

In today’s edition of the Community working group IRC meeting, we discussed some options / improvements to the Proposals Process Proposal (available to view / comment at https://github.com/ansible/ansible/pull/14802 ). T…

---

## [Debugging an "unreachable" error when connecting to openwrt](https://forum.ansible.com/t/debugging-an-unreachable-error-when-connecting-to-openwrt/20759)

<div class="topic-metadata">

**Author:** [@Johannes\_Kastl](https://forum.ansible.com/u/Johannes_Kastl)\
**Replies:** 1\
**Last updated:** [March 4, 2016, 9:13pm UTC](https://forum.ansible.com/t/debugging-an-unreachable-error-when-connecting-to-openwrt/20759 "2016-03-04T21:13:45Z")

</div>

Hi all, I want to manage a machine running openwrt with ansible. First I got stuck just connecting to the machine, and I do not find the error: ansible -m setup 192.168.11.1 192.168.11.1 | UNREACHABLE! =\> { "ch…

---

## [include: and variables (changed in 1.8?)](https://forum.ansible.com/t/include-and-variables-changed-in-1-8/16954)

<div class="topic-metadata">

**Author:** [@Ross\_Becker](https://forum.ansible.com/u/Ross_Becker)\
**Replies:** 5\
**Last updated:** [March 4, 2016, 5:46pm UTC](https://forum.ansible.com/t/include-and-variables-changed-in-1-8/16954 "2016-03-04T17:46:16Z")

</div>

So, I have a batch of playbooks that include tasks where the filenames are determined by variables; include: tasks/mytask-{{onevar}}-{{anothervar}}.yml This was working up through ansible 1.7.2. As of ansible 1.8.0 (a…

---

## [Proposal: Have a process for proposals, and document it.](https://forum.ansible.com/t/proposal-have-a-process-for-proposals-and-document-it/20777)

<div class="topic-metadata">

**Author:** [@Robyn\_Bergeron1](https://forum.ansible.com/u/Robyn_Bergeron1)\
**Replies:** 0\
**Last updated:** [March 4, 2016, 5:21pm UTC](https://forum.ansible.com/t/proposal-have-a-process-for-proposals-and-document-it/20777 "2016-03-04T17:21:23Z")

</div>

Greetings: A proposal for how the proposals process could work, and should be documented, has been submitted for viewing and feedback from the Ansible community. https://github.com/ansible/ansible/pull/14802 PLEASE DO…

---

## [How to figure out in callback plugin if Ansible runs in check-mode?](https://forum.ansible.com/t/how-to-figure-out-in-callback-plugin-if-ansible-runs-in-check-mode/20771)

<div class="topic-metadata">

**Author:** [@Daniel\_Schroeder](https://forum.ansible.com/u/Daniel_Schroeder)\
**Replies:** 3\
**Last updated:** [March 4, 2016, 4:44pm UTC](https://forum.ansible.com/t/how-to-figure-out-in-callback-plugin-if-ansible-runs-in-check-mode/20771 "2016-03-04T16:44:23Z")

</div>

In other plugin types there is something like self.\_play\_context.check\_mode available. I can’t figure out how to check this in a callback plugin though. All callback plugins which ship with Ansible 2 do not prevent any e…

---

## [Change status of an Jira issue is not working (for me only?)](https://forum.ansible.com/t/change-status-of-an-jira-issue-is-not-working-for-me-only/20775)

<div class="topic-metadata">

**Author:** [@Christian\_Sarazin](https://forum.ansible.com/u/Christian_Sarazin)\
**Replies:** 0\
**Last updated:** [March 4, 2016, 3:25pm UTC](https://forum.ansible.com/t/change-status-of-an-jira-issue-is-not-working-for-me-only/20775 "2016-03-04T15:25:17Z")

</div>

Hi Guys, i just link the problem directly to the issue https://github.com/ansible/ansible-modules-extras/issues/1791 I checked the transitions by rest api, tried to use the name, the ids, nothing worked. Is there any…

---

## [with\_first\_found issue](https://forum.ansible.com/t/with-first-found-issue/20773)

<div class="topic-metadata">

**Author:** [@Adrian\_Paraschiv](https://forum.ansible.com/u/Adrian_Paraschiv)\
**Replies:** 1\
**Last updated:** [March 4, 2016, 3:16pm UTC](https://forum.ansible.com/t/with-first-found-issue/20773 "2016-03-04T15:16:57Z")

</div>

Hello all, I have this part of a playbbok - shell: echo "{{ ansible\_env.CMS\_PLI }}/conf/application.conf" register: pli\_loc - shell: echo "{{ ansible\_env.CMS }}/conf/application.conf" register: cms\_loc - shell: "ec…

---

## [Conflicting Modules](https://forum.ansible.com/t/conflicting-modules/20634)

<div class="topic-metadata">

**Author:** [@actionmystique](https://forum.ansible.com/u/actionmystique)\
**Replies:** 3\
**Last updated:** [March 4, 2016, 1:56pm UTC](https://forum.ansible.com/t/conflicting-modules/20634 "2016-03-04T13:56:20Z")

</div>

Hello guys, Let’s suppose that 2 different modules with the same name exist on Ansible 2.0.0.2: one as a core module one as an imported module into /usr/share/ansible Which one gets precedence by default when a call …

---

## [Ansible failing to copy module to target host](https://forum.ansible.com/t/ansible-failing-to-copy-module-to-target-host/14863)

<div class="topic-metadata">

**Author:** [@Marko\_Lisica](https://forum.ansible.com/u/Marko_Lisica)\
**Replies:** 7\
**Last updated:** [March 4, 2016, 10:59am UTC](https://forum.ansible.com/t/ansible-failing-to-copy-module-to-target-host/14863 "2016-03-04T10:59:05Z")

</div>

Hi, I’ve ran to a problem provisioning one host. I have playbook that successfully provisions vagrant box, but running that on amazon host I get this PUT /tmp/tmpxFGcNu TO /tmp/ansible/ansible-tmp-1395837087.32-71225…

---

## [known\_hosts case issue](https://forum.ansible.com/t/known-hosts-case-issue/20769)

<div class="topic-metadata">

**Author:** [@James\_Morgan](https://forum.ansible.com/u/James_Morgan)\
**Replies:** 1\
**Last updated:** [March 4, 2016, 10:48am UTC](https://forum.ansible.com/t/known-hosts-case-issue/20769 "2016-03-04T10:48:15Z")

</div>

Hi, Has anybody come across this issue with the known\_hosts module. The hostname of the box is uppercase. When I ssh to the box and add to the known\_hosts file it gets added lowercase \<br\>\[root@SPOBKJJUMPBOX ansibl…

---

## [blockinfile (new in ansible 2.0)  - how to insert block before the first match of specified regular expression?](https://forum.ansible.com/t/blockinfile-new-in-ansible-2-0-how-to-insert-block-before-the-first-match-of-specified-regular-expression/20766)

<div class="topic-metadata">

**Author:** [@rella.guo](https://forum.ansible.com/u/rella.guo)\
**Replies:** 0\
**Last updated:** [March 4, 2016, 5:38am UTC](https://forum.ansible.com/t/blockinfile-new-in-ansible-2-0-how-to-insert-block-before-the-first-match-of-specified-regular-expression/20766 "2016-03-04T05:38:20Z")

</div>

Hi, all I notice that ansible 2.0 has new module - blockinfile. I want to use it to insert a block into remote xml file. My requirement is to insert block before the first match of specified regular expression, one xml…

---

## [Appending to a task's variables in another role](https://forum.ansible.com/t/appending-to-a-tasks-variables-in-another-role/20765)

<div class="topic-metadata">

**Author:** [@James\_Pearson\_Hughes](https://forum.ansible.com/u/James_Pearson_Hughes)\
**Replies:** 0\
**Last updated:** [March 4, 2016, 2:23am UTC](https://forum.ansible.com/t/appending-to-a-tasks-variables-in-another-role/20765 "2016-03-04T02:23:42Z")

</div>

I’ve recently set up fail2ban for ssh on one of my servers using https://galaxy.ansible.com/tersmitten/fail2ban/ . This was very easy, and I’m loving galaxy. Now, I’m wanting to extend fail2ban to also block IPs that ha…

---

## [Version 2 failed to find files in templates](https://forum.ansible.com/t/version-2-failed-to-find-files-in-templates/20744)

<div class="topic-metadata">

**Author:** [@hce](https://forum.ansible.com/u/hce)\
**Replies:** 3\
**Last updated:** [March 4, 2016, 12:16am UTC](https://forum.ansible.com/t/version-2-failed-to-find-files-in-templates/20744 "2016-03-04T00:16:02Z")

</div>

Hi, I understand that version 2 has more restricted rules to check the syntax, but I am puzzled by following template error: name: test template template: src=test.j2 dest=/tmp/test.txt fatal: \[testv2\]: FAILED! =\> {…

---

## [galaxy alike server for private roles](https://forum.ansible.com/t/galaxy-alike-server-for-private-roles/20761)

<div class="topic-metadata">

**Author:** [@Javier\_Palacios](https://forum.ansible.com/u/Javier_Palacios)\
**Replies:** 2\
**Last updated:** [March 3, 2016, 10:49pm UTC](https://forum.ansible.com/t/galaxy-alike-server-for-private-roles/20761 "2016-03-03T22:49:42Z")

</div>

As I wanted to be able to easily install roles that couldn’t be available through galaxy on single public github repos, and as I didn’t find any tool capable of that, I’ve written one myself. It is available at https://g…

---

## [cloudformation create\_stack() got an unexpected keyword argument 'stack\_policy\_body'](https://forum.ansible.com/t/cloudformation-create-stack-got-an-unexpected-keyword-argument-stack-policy-body/20755)

<div class="topic-metadata">

**Author:** [@John\_G](https://forum.ansible.com/u/John_G)\
**Replies:** 1\
**Last updated:** [March 3, 2016, 9:01pm UTC](https://forum.ansible.com/t/cloudformation-create-stack-got-an-unexpected-keyword-argument-stack-policy-body/20755 "2016-03-03T21:01:33Z")

</div>

Hi, I am getting this error on Ubuntu 14.04.4 LTS. Any idea what is causing it? $ ansible-playbook go\_cloud.yml -vvvv Using /home/johng/Documents/ansible/ansible/ansible.cfg as config file Loaded callback default …

---

## [ansible noob looking for dns help](https://forum.ansible.com/t/ansible-noob-looking-for-dns-help/20763)

<div class="topic-metadata">

**Author:** [@markpattisondev](https://forum.ansible.com/u/markpattisondev)\
**Replies:** 0\
**Last updated:** [March 3, 2016, 8:51pm UTC](https://forum.ansible.com/t/ansible-noob-looking-for-dns-help/20763 "2016-03-03T20:51:36Z")

</div>

I’m looking for some sample ansible playbooks that show how I could update an application that is load balanced? Ideally, I want to be able to push the files to server, restart services on secondary server, change DNS, …

---

## [Windows Server target using Amazon Linux](https://forum.ansible.com/t/windows-server-target-using-amazon-linux/20762)

<div class="topic-metadata">

**Author:** [@Jason\_Levitt](https://forum.ansible.com/u/Jason_Levitt)\
**Replies:** 5\
**Last updated:** [March 3, 2016, 5:50pm UTC](https://forum.ansible.com/t/windows-server-target-using-amazon-linux/20762 "2016-03-03T17:50:00Z")

</div>

Ansible 2.0.1 Control machine: Latest version of Amazon Linux - CentOS 6 variant (has stock Python 2.7.10) Target machine: AWS Windows Server 2012R2 (prepared for Ansible) Two errors occur: “ImportError: No module n…

---

## [Ansible docker module does not allow me to use bind mode :Z](https://forum.ansible.com/t/ansible-docker-module-does-not-allow-me-to-use-bind-mode-z/20703)

<div class="topic-metadata">

**Author:** [@ishan\_jain](https://forum.ansible.com/u/ishan_jain)\
**Replies:** 3\
**Last updated:** [March 3, 2016, 3:35pm UTC](https://forum.ansible.com/t/ansible-docker-module-does-not-allow-me-to-use-bind-mode-z/20703 "2016-03-03T15:35:37Z")

</div>

When i try to run the following task: name: start docker container docker: name: container image: img state: started expose: 8301:8182 volumes: /mydata/folder:/opt/mydata/:Z Ansible poses an error - {“changed”: …

---

## [Hostvars in lookup for delegated task](https://forum.ansible.com/t/hostvars-in-lookup-for-delegated-task/20734)

<div class="topic-metadata">

**Author:** [@alvlin.uy](https://forum.ansible.com/u/alvlin.uy)\
**Replies:** 4\
**Last updated:** [March 3, 2016, 2:54pm UTC](https://forum.ansible.com/t/hostvars-in-lookup-for-delegated-task/20734 "2016-03-03T14:54:22Z")

</div>

Hi, I wrote a lookup plugin to get some data from the already-existing ansible variables, so it needs access to “groups” and “hostvars” to find the right combination of data to return. In particular, my lookup plugin re…

---

## [Accessing variables from within a plugin (callback)](https://forum.ansible.com/t/accessing-variables-from-within-a-plugin-callback/15809)

<div class="topic-metadata">

**Author:** [@Daniel\_Schroeder](https://forum.ansible.com/u/Daniel_Schroeder)\
**Replies:** 14\
**Last updated:** [March 3, 2016, 1:40pm UTC](https://forum.ansible.com/t/accessing-variables-from-within-a-plugin-callback/15809 "2016-03-03T13:40:06Z")

</div>

Hello list, is there a way how I can access host/group vars from within a callback plugin? Basically I want to modify the Hipchat callback plugin to use a room ID configured via group\_vars (or maybe registered as a var …

---

## [Downgrading apt packages safely](https://forum.ansible.com/t/downgrading-apt-packages-safely/20750)

<div class="topic-metadata">

**Author:** [@jan.warchol](https://forum.ansible.com/u/jan.warchol)\
**Replies:** 2\
**Last updated:** [March 3, 2016, 12:45pm UTC](https://forum.ansible.com/t/downgrading-apt-packages-safely/20750 "2016-03-03T12:45:07Z")

</div>

Hello, in my ansible playbook I want to ensure a specific version of a package is installed, even if that would mean downgrading it. I know that I can specify version together with package name, like this: haproxy=1.4.2…

---

## [Skip the hosts when one host is exectued task successfully](https://forum.ansible.com/t/skip-the-hosts-when-one-host-is-exectued-task-successfully/20757)

<div class="topic-metadata">

**Author:** [@Balaji\_Sunku](https://forum.ansible.com/u/Balaji_Sunku)\
**Replies:** 0\
**Last updated:** [March 3, 2016, 6:33am UTC](https://forum.ansible.com/t/skip-the-hosts-when-one-host-is-exectued-task-successfully/20757 "2016-03-03T06:33:23Z")

</div>

My Playbook:

---

## [delegate\_to a whole group: is it sequential or parallel?](https://forum.ansible.com/t/delegate-to-a-whole-group-is-it-sequential-or-parallel/20741)

<div class="topic-metadata">

**Author:** [@Florin\_Andrei](https://forum.ansible.com/u/Florin_Andrei)\
**Replies:** 2\
**Last updated:** [March 3, 2016, 12:04am UTC](https://forum.ansible.com/t/delegate-to-a-whole-group-is-it-sequential-or-parallel/20741 "2016-03-03T00:04:21Z")

</div>

name: disable instance on HAproxy and wait for it to go offline haproxy: state=disabled backend=app\_back host={{ inventory\_hostname\_short }} socket=/run/haproxy/admin.sock shutdown\_sessions=no wait=yes delegate\_to: “{…

---

## [setting 'always\_run' from a var](https://forum.ansible.com/t/setting-always-run-from-a-var/20756)

<div class="topic-metadata">

**Author:** [@Mike\_Biancaniello](https://forum.ansible.com/u/Mike_Biancaniello)\
**Replies:** 0\
**Last updated:** [March 2, 2016, 11:57pm UTC](https://forum.ansible.com/t/setting-always-run-from-a-var/20756 "2016-03-02T23:57:51Z")

</div>

I have a task that I would like to conditionally run even in check\_mode (actually I want to set it for an entire role, but I’m seeing the same behavior in regular tasks). The idea is that this would NOT run the task: a…

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

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