# Latest

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

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

**Page:** 803

---

## [Ansible 2.0 delegate\_to user not working](https://forum.ansible.com/t/ansible-2-0-delegate-to-user-not-working/20234)

<div class="topic-metadata">

**Author:** [@Matt\_Knox](https://forum.ansible.com/u/Matt_Knox)\
**Replies:** 0\
**Last updated:** [January 15, 2016, 9:53pm UTC](https://forum.ansible.com/t/ansible-2-0-delegate-to-user-not-working/20234 "2016-01-15T21:53:15Z")

</div>

I had an automatic upgrade push me up to ansible 2.0.0.2 today (from 1.9.4) and that broke some of my playbooks. I think that there may be a bug related to delegate\_to, as it was using the user None instead of the user f…

---

## [Don't know what is causing the error with expect](https://forum.ansible.com/t/dont-know-what-is-causing-the-error-with-expect/20230)

<div class="topic-metadata">

**Author:** [@Mark\_Constant](https://forum.ansible.com/u/Mark_Constant)\
**Replies:** 4\
**Last updated:** [January 15, 2016, 9:30pm UTC](https://forum.ansible.com/t/dont-know-what-is-causing-the-error-with-expect/20230 "2016-01-15T21:30:51Z")

</div>

I don’t know why my expect command below is not working. I used the regex format tester before doing this. name: Install Rhapsody become: no expect: command: /tmp/rhapsody-6\_2\_0-linux-x64.sh echo: yes responses: …

---

## [winrm connection to windows server 2012r2 in EC2 - Unauthorized/basic auth failed](https://forum.ansible.com/t/winrm-connection-to-windows-server-2012r2-in-ec2-unauthorized-basic-auth-failed/16311)

<div class="topic-metadata">

**Author:** [@Michael\_Wozniak](https://forum.ansible.com/u/Michael_Wozniak)\
**Replies:** 4\
**Last updated:** [January 15, 2016, 6:33pm UTC](https://forum.ansible.com/t/winrm-connection-to-windows-server-2012r2-in-ec2-unauthorized-basic-auth-failed/16311 "2016-01-15T18:33:10Z")

</div>

I’m attempting to set up a windows 2012 system in EC2 which can be accessed/managed with ansible. I’ve used a script like the example (https://github.com/ansible/ansible/blob/devel/examples/scripts/ConfigureRemotingForAn…

---

## [Ansible 2.0 - Move file on remote Windows machine fails using raw](https://forum.ansible.com/t/ansible-2-0-move-file-on-remote-windows-machine-fails-using-raw/20228)

<div class="topic-metadata">

**Author:** [@Jason\_Levitt](https://forum.ansible.com/u/Jason_Levitt)\
**Replies:** 1\
**Last updated:** [January 15, 2016, 5:31pm UTC](https://forum.ansible.com/t/ansible-2-0-move-file-on-remote-windows-machine-fails-using-raw/20228 "2016-01-15T17:31:00Z")

</div>

It appears that the only way to copy or move files on remote Windows Servers requires the use of the raw module (or uploading your own PS script). However, I can’t get even a basic move to work. \` name: Configure th…

---

## [Included yml task fails](https://forum.ansible.com/t/included-yml-task-fails/20172)

<div class="topic-metadata">

**Author:** [@Glenn\_Barnard](https://forum.ansible.com/u/Glenn_Barnard)\
**Replies:** 3\
**Last updated:** [January 15, 2016, 3:19pm UTC](https://forum.ansible.com/t/included-yml-task-fails/20172 "2016-01-15T15:19:34Z")

</div>

Am using a current copy of Ansible and am in learning stage by writing playbooks that call Ansible’s API’s via the uri module. Am getting an error from the included yml that is trying to authenticate the user. Note that …

---

## [ansible 2 - failed\_when as a list](https://forum.ansible.com/t/ansible-2-failed-when-as-a-list/20211)

<div class="topic-metadata">

**Author:** [@profhase85](https://forum.ansible.com/u/profhase85)\
**Replies:** 2\
**Last updated:** [January 15, 2016, 10:36am UTC](https://forum.ansible.com/t/ansible-2-failed-when-as-a-list/20211 "2016-01-15T10:36:59Z")

</div>

\` name: install it become: True register: command\_result shell: ./my\_install chdir=/tmp/setup failed\_when: “‘already installed’ not in command\_result.stdout” “command\_result.rc != 0” \` fails with the following …

---

## [bin/ansible callbacks; equivalent of on\_stats?](https://forum.ansible.com/t/bin-ansible-callbacks-equivalent-of-on-stats/20226)

<div class="topic-metadata">

**Author:** [@j.r.hawkesworth](https://forum.ansible.com/u/j.r.hawkesworth)\
**Replies:** 1\
**Last updated:** [January 15, 2016, 10:28am UTC](https://forum.ansible.com/t/bin-ansible-callbacks-equivalent-of-on-stats/20226 "2016-01-15T10:28:18Z")

</div>

I’d like to use my callbacks in bin/ansible as well as bin/ansible-playbook I have bin\_ansible\_callbacks = True and events are firing, but when I run bin/ansible on\_stats doesn’t seem to fire. Is there another callba…

---

## [Setting up an Ansible Control Machine](https://forum.ansible.com/t/setting-up-an-ansible-control-machine/20225)

<div class="topic-metadata">

**Author:** [@Larry\_Smith1](https://forum.ansible.com/u/Larry_Smith1)\
**Replies:** 1\
**Last updated:** [January 15, 2016, 6:12am UTC](https://forum.ansible.com/t/setting-up-an-ansible-control-machine/20225 "2016-01-15T06:12:03Z")

</div>

@All, I wanted to share a post that I published today and hope that it might be of some use to others. But also I am looking for any feedback that you may have in regards to this post. This post is actually part-1 of a …

---

## [Bootstrapping host using ansible ?](https://forum.ansible.com/t/bootstrapping-host-using-ansible/20214)

<div class="topic-metadata">

**Author:** [@Christophe\_Meessen](https://forum.ansible.com/u/Christophe_Meessen)\
**Replies:** 2\
**Last updated:** [January 15, 2016, 6:06am UTC](https://forum.ansible.com/t/bootstrapping-host-using-ansible/20214 "2016-01-15T06:06:58Z")

</div>

Forgive me this possibly naive question, I’m new to ansible. I would like to upload the public key used for ssh authentication with ansible. There is an ansible module (http://docs.ansible.com/ansible/authorized\_key\_mo…

---

## [best practice for vagrantfile in roles?](https://forum.ansible.com/t/best-practice-for-vagrantfile-in-roles/20174)

<div class="topic-metadata">

**Author:** [@pixel\_fairy](https://forum.ansible.com/u/pixel_fairy)\
**Replies:** 3\
**Last updated:** [January 15, 2016, 6:04am UTC](https://forum.ansible.com/t/best-practice-for-vagrantfile-in-roles/20174 "2016-01-15T06:04:13Z")

</div>

Is there any consensus on where to put a Vagrantfile for testing? The most straight forward ive seen is the vagrant file in the root of the roles folder with a folder called roles for vagrant to pick up on, and a symlin…

---

## [v2 callbacks for handlers inside a role](https://forum.ansible.com/t/v2-callbacks-for-handlers-inside-a-role/20224)

<div class="topic-metadata">

**Author:** [@Ash\_Caire](https://forum.ansible.com/u/Ash_Caire)\
**Replies:** 0\
**Last updated:** [January 15, 2016, 4:29am UTC](https://forum.ansible.com/t/v2-callbacks-for-handlers-inside-a-role/20224 "2016-01-15T04:29:08Z")

</div>

Hi, I’m using callbacks to hack up an AMI helper, which allows us to create AMIs in a chroot environment and tag template tasks with ‘retemplate’ that need to be run again on AMI launch - The callback handler copies any …

---

## [Issue with role variables](https://forum.ansible.com/t/issue-with-role-variables/20223)

<div class="topic-metadata">

**Author:** [@Ryan\_Hunter](https://forum.ansible.com/u/Ryan_Hunter)\
**Replies:** 0\
**Last updated:** [January 15, 2016, 3:23am UTC](https://forum.ansible.com/t/issue-with-role-variables/20223 "2016-01-15T03:23:52Z")

</div>

Hello I just upgraded to ansible 2.0.0.0 and am having some backwards compatibility issues: If I have a play like: hosts: uber user: ubuntu roles: role: zuul name: uber port: “{{ uber\_zuul\_port }}” workers: loca…

---

## [How to use variables from ansible.cfg in custom module](https://forum.ansible.com/t/how-to-use-variables-from-ansible-cfg-in-custom-module/20203)

<div class="topic-metadata">

**Author:** [@CyberCyber](https://forum.ansible.com/u/CyberCyber)\
**Replies:** 2\
**Last updated:** [January 14, 2016, 11:59pm UTC](https://forum.ansible.com/t/how-to-use-variables-from-ansible-cfg-in-custom-module/20203 "2016-01-14T23:59:06Z")

</div>

Hi, I am working on a custom module and would like to use variables from ansible.cfg in the python script. Specifically, I need to use DEFAULT\_REMOTE\_TMP. How can I access this from within my module ?

---

## [Ansible 2.0.0.2 has been pushed](https://forum.ansible.com/t/ansible-2-0-0-2-has-been-pushed/20222)

<div class="topic-metadata">

**Author:** [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Replies:** 0\
**Last updated:** [January 14, 2016, 10:40pm UTC](https://forum.ansible.com/t/ansible-2-0-0-2-has-been-pushed/20222 "2016-01-14T22:40:21Z")

</div>

Hi all, we’ve just pushed the release of Ansible 2.0.0.2 to address two issues: A traceback for Debian/Ubuntu package users, caused when python-cryptography is installed but python-setuptools is not present. This is a …

---

## [Blocks and roles](https://forum.ansible.com/t/blocks-and-roles/20207)

<div class="topic-metadata">

**Author:** [@orderedchaosdev](https://forum.ansible.com/u/orderedchaosdev)\
**Replies:** 1\
**Last updated:** [January 14, 2016, 10:11pm UTC](https://forum.ansible.com/t/blocks-and-roles/20207 "2016-01-14T22:11:51Z")

</div>

I’m trying to wrap an entire role in a block does anyone have examples of this working?

---

## [ansible 2 ping failure](https://forum.ansible.com/t/ansible-2-ping-failure/20188)

<div class="topic-metadata">

**Author:** [@Fed](https://forum.ansible.com/u/Fed)\
**Replies:** 6\
**Last updated:** [January 14, 2016, 9:33pm UTC](https://forum.ansible.com/t/ansible-2-ping-failure/20188 "2016-01-14T21:33:42Z")

</div>

Hi Guys, I’m having some trouble with the new Ansible 2 when trying to run ping on a host that works with 1.9.4. I’m getting the following: $ ansible -i test all -m ping -u root -vvvvv -c paramiko Loaded callback min…

---

## [Buggy PPA release](https://forum.ansible.com/t/buggy-ppa-release/20205)

<div class="topic-metadata">

**Author:** [@dmitri.toubelis](https://forum.ansible.com/u/dmitri.toubelis)\
**Replies:** 2\
**Last updated:** [January 14, 2016, 9:27pm UTC](https://forum.ansible.com/t/buggy-ppa-release/20205 "2016-01-14T21:27:33Z")

</div>

Hi, I’m using Ansible on Ubuntu-14.04 and the 2.0.0.1 release of ansible pushed to PPA last night introduces bugs relater to 'with\_itemswithlocal\` connector (likely https://github.com/ansible/ansible/issues/13624). Howe…

---

## [Using ansible to upgrade ansible in envronment with restrictive umask](https://forum.ansible.com/t/using-ansible-to-upgrade-ansible-in-envronment-with-restrictive-umask/20219)

<div class="topic-metadata">

**Author:** [@Michael\_Baydoun](https://forum.ansible.com/u/Michael_Baydoun)\
**Replies:** 0\
**Last updated:** [January 14, 2016, 8:28pm UTC](https://forum.ansible.com/t/using-ansible-to-upgrade-ansible-in-envronment-with-restrictive-umask/20219 "2016-01-14T20:28:19Z")

</div>

We install ansible via pip We can’t use the ansible pip module to ensure the desired version is installed, as the restrictive umask breaks the permissions on the ansible files in /usr/lib/python2.6/site-packages … The …

---

## [problem with os\_server module](https://forum.ansible.com/t/problem-with-os-server-module/20217)

<div class="topic-metadata">

**Author:** [@John\_Test](https://forum.ansible.com/u/John_Test)\
**Replies:** 3\
**Last updated:** [January 14, 2016, 6:56pm UTC](https://forum.ansible.com/t/problem-with-os-server-module/20217 "2016-01-14T18:56:43Z")

</div>

Hi All, playbook is here http://pastebin.com/jUMuatp9 output is here http://pastebin.com/E0jpnCxm Trying to figure out what I am doing wrong. Thanks!

---

## [Issues with expect](https://forum.ansible.com/t/issues-with-expect/20200)

<div class="topic-metadata">

**Author:** [@Mark\_Constant](https://forum.ansible.com/u/Mark_Constant)\
**Replies:** 3\
**Last updated:** [January 14, 2016, 6:42pm UTC](https://forum.ansible.com/t/issues-with-expect/20200 "2016-01-14T18:42:10Z")

</div>

I installed ansible 2.0 using pip. I am trying to use the expect command and it is not working. When I try to add -name: Install Program expect: command: some command responses: I get ERROR! Syntax Error while loadi…

---

## [Using powershell module in task: "no action detected"](https://forum.ansible.com/t/using-powershell-module-in-task-no-action-detected/20146)

<div class="topic-metadata">

**Author:** [@alvlin.uy](https://forum.ansible.com/u/alvlin.uy)\
**Replies:** 7\
**Last updated:** [January 14, 2016, 5:57pm UTC](https://forum.ansible.com/t/using-powershell-module-in-task-no-action-detected/20146 "2016-01-14T17:57:06Z")

</div>

Hi, I am working with a custom Windows module, to get a very specific piece of information living in my Windows machines. I followed the docs, wrote a powershell module and put it in library/windows/module.ps1. However…

---

## [Is there any config to define the windows remote\_tmp directory in ansible.cfg file?](https://forum.ansible.com/t/is-there-any-config-to-define-the-windows-remote-tmp-directory-in-ansible-cfg-file/20185)

<div class="topic-metadata">

**Author:** [@Robin\_Rocky](https://forum.ansible.com/u/Robin_Rocky)\
**Replies:** 3\
**Last updated:** [January 14, 2016, 5:54pm UTC](https://forum.ansible.com/t/is-there-any-config-to-define-the-windows-remote-tmp-directory-in-ansible-cfg-file/20185 "2016-01-14T17:54:48Z")

</div>

Hi All, I have a question regarding the ansible.cfg file entry for remote\_tmp Is there any config to define the windows remote\_tmp directory in ansible.cfg file? thanks Robin

---

## [Ansible 2.0 ec2\_lc classic\_link\_vpc\_id error](https://forum.ansible.com/t/ansible-2-0-ec2-lc-classic-link-vpc-id-error/20213)

<div class="topic-metadata">

**Author:** [@Jari\_Kujansuu](https://forum.ansible.com/u/Jari_Kujansuu)\
**Replies:** 0\
**Last updated:** [January 14, 2016, 2:08pm UTC](https://forum.ansible.com/t/ansible-2-0-ec2-lc-classic-link-vpc-id-error/20213 "2016-01-14T14:08:15Z")

</div>

Hi, I am trying to figure out what could be problem when I upgraded Ansible to 2.0 (actually 2.0.0.1) and added into ec2\_lc configuration lines for classic\_link\_vpc\_id and classic\_link\_vpc\_security\_groups but get follow…

---

## [TypeError: argument of type 'NoneType' is not iterable](https://forum.ansible.com/t/typeerror-argument-of-type-nonetype-is-not-iterable/20212)

<div class="topic-metadata">

**Author:** [@Michael\_Baydoun](https://forum.ansible.com/u/Michael_Baydoun)\
**Replies:** 1\
**Last updated:** [January 14, 2016, 2:06pm UTC](https://forum.ansible.com/t/typeerror-argument-of-type-nonetype-is-not-iterable/20212 "2016-01-14T14:06:59Z")

</div>

Worked in 1.9.x, fails with error in 2.0 (see subject line for error) roles/x/vars/main.yml

---

## [In 2.0, when is the inventory read and the special "groups" variable populated?](https://forum.ansible.com/t/in-2-0-when-is-the-inventory-read-and-the-special-groups-variable-populated/20197)

<div class="topic-metadata">

**Author:** [@Michael\_Baydoun](https://forum.ansible.com/u/Michael_Baydoun)\
**Replies:** 2\
**Last updated:** [January 14, 2016, 1:38pm UTC](https://forum.ansible.com/t/in-2-0-when-is-the-inventory-read-and-the-special-groups-variable-populated/20197 "2016-01-14T13:38:13Z")

</div>

Our playbooks set facts similar to name: illustrate problem set\_fact: monitoringServer: “{{ groups.nagios.0 }}” In 1.9.x that would evaluate to the first server in the nagios group in inventory In 2.0, groups doesn…

---

## [May I create multiple databases using rds task?](https://forum.ansible.com/t/may-i-create-multiple-databases-using-rds-task/20210)

<div class="topic-metadata">

**Author:** [@elleryq](https://forum.ansible.com/u/elleryq)\
**Replies:** 0\
**Last updated:** [January 14, 2016, 8:59am UTC](https://forum.ansible.com/t/may-i-create-multiple-databases-using-rds-task/20210 "2016-01-14T08:59:35Z")

</div>

Hi, May I create multiple databases using rds task? For example: rds: command: create instance\_name: my-instance db\_name: \[“db1”, “db2”\] other settings Thanks

---

## [vars plugin and host/group vars](https://forum.ansible.com/t/vars-plugin-and-host-group-vars/20190)

<div class="topic-metadata">

**Author:** [@John\_Dewey](https://forum.ansible.com/u/John_Dewey)\
**Replies:** 1\
**Last updated:** [January 14, 2016, 6:08am UTC](https://forum.ansible.com/t/vars-plugin-and-host-group-vars/20190 "2016-01-14T06:08:14Z")

</div>

I’m using a custom vars plugin\[1\] under ansible 1.9. In 1.9 by calling host.get\_variables(), I would get back a set of combined host and group vars. However, under ansible 2.0, this is not the case. I’ve been scouring th…

---

## [ansible 1.9.4 ignoring escaped double quotes with lineinfile?](https://forum.ansible.com/t/ansible-1-9-4-ignoring-escaped-double-quotes-with-lineinfile/20167)

<div class="topic-metadata">

**Author:** [@Joel\_Parker](https://forum.ansible.com/u/Joel_Parker)\
**Replies:** 3\
**Last updated:** [January 14, 2016, 2:00am UTC](https://forum.ansible.com/t/ansible-1-9-4-ignoring-escaped-double-quotes-with-lineinfile/20167 "2016-01-14T02:00:38Z")

</div>

I know this has been a bug in the recent past, but I’m running into this with Ansible 1.9.4 on FreeBSD. name: update loader.conf lineinfile: dest={{ item.dest }} regexp={{ item.regexp }} line={{ item.line}} state={{ i…

---

## [Enable Passwordless Sudo w/out template](https://forum.ansible.com/t/enable-passwordless-sudo-w-out-template/20204)

<div class="topic-metadata">

**Author:** [@Colin\_Byrne](https://forum.ansible.com/u/Colin_Byrne)\
**Replies:** 1\
**Last updated:** [January 13, 2016, 10:40pm UTC](https://forum.ansible.com/t/enable-passwordless-sudo-w-out-template/20204 "2016-01-13T22:40:06Z")

</div>

So I came across the issue of trying to enable passwordless sudo for a group, but didn’t find any particularly simple (I was looking for a one-task solution) solution. I did solve my issue short term with a template, but…

---

## [Ansible 2.0: Chocolatey Fails](https://forum.ansible.com/t/ansible-2-0-chocolatey-fails/20201)

<div class="topic-metadata">

**Author:** [@Jason\_Levitt](https://forum.ansible.com/u/Jason_Levitt)\
**Replies:** 2\
**Last updated:** [January 13, 2016, 7:22pm UTC](https://forum.ansible.com/t/ansible-2-0-chocolatey-fails/20201 "2016-01-13T19:22:33Z")

</div>

It’s not clear if this is just because of lack of documentation (probably) or if Chocolatey routinely fails. Here’s what I’m trying to do on Windows Server 2008R2: \` name: Add git win\_chocolatey: name: git state: …

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

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