# Latest

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

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

**Page:** 800

---

## [Not able to build debian package for ansible 1.9.4](https://forum.ansible.com/t/not-able-to-build-debian-package-for-ansible-1-9-4/20312)

<div class="topic-metadata">

**Author:** [@Ankit\_Kulkarni](https://forum.ansible.com/u/Ankit_Kulkarni)\
**Replies:** 2\
**Last updated:** [January 23, 2016, 5:18am UTC](https://forum.ansible.com/t/not-able-to-build-debian-package-for-ansible-1-9-4/20312 "2016-01-23T05:18:20Z")

</div>

Hi Guys, Quite for few times we have been using ansible 1.9.4 as CM and deployment tool( ansible-pull ) for our production systems ( Ubuntu 14.04 64bit devices) which are scattered around the world . Everything was work…

---

## [Unexpected Exception on Ansible 2.0 after installing VirtualBox 5](https://forum.ansible.com/t/unexpected-exception-on-ansible-2-0-after-installing-virtualbox-5/20208)

<div class="topic-metadata">

**Author:** [@P\_Kieran\_Etienne](https://forum.ansible.com/u/P_Kieran_Etienne)\
**Replies:** 2\
**Last updated:** [January 23, 2016, 5:15am UTC](https://forum.ansible.com/t/unexpected-exception-on-ansible-2-0-after-installing-virtualbox-5/20208 "2016-01-23T05:15:24Z")

</div>

I’m encountering the following error: Unexpected Exception: ‘module’ object has no attribute ‘\_vendor’ My environment is: Ubuntu 15.10 Python 2.7 Ansible 2.0 (via the ppa at http://ppa.launchpad.net/ansible/ansible/…

---

## [How to add current user to group？](https://forum.ansible.com/t/how-to-add-current-user-to-group/19969)

<div class="topic-metadata">

**Author:** [@Robert\_Lu](https://forum.ansible.com/u/Robert_Lu)\
**Replies:** 1\
**Last updated:** [January 23, 2016, 5:02am UTC](https://forum.ansible.com/t/how-to-add-current-user-to-group/19969 "2016-01-23T05:02:41Z")

</div>

Hi, all. I want to add current user to sudo and adm group, so I write follow task: - name: set current user to sudo and adm group user: \> name={{ ansible\_ssh\_user }} groups=sudo,adm shell=/bin/bash append=yes It work…

---

## [Generating a group based on IP subnet membership (multiple questions)](https://forum.ansible.com/t/generating-a-group-based-on-ip-subnet-membership-multiple-questions/20327)

<div class="topic-metadata">

**Author:** [@Christopher\_Young](https://forum.ansible.com/u/Christopher_Young)\
**Replies:** 0\
**Last updated:** [January 23, 2016, 12:55am UTC](https://forum.ansible.com/t/generating-a-group-based-on-ip-subnet-membership-multiple-questions/20327 "2016-01-23T00:55:50Z")

</div>

Version: Ansible 1.9.4 I’m going to try and describe this as well as a I can. Please comment and let me know any questions. I’m trying to design a role that will do the following: Get a list of interface IP addresses…

---

## [ansible \<host-pattern\> expansion is not working -\> ansible servers\[:24\] -vv  -i inventory\_file  -m shell -a "echo yes"](https://forum.ansible.com/t/ansible-host-pattern-expansion-is-not-working-ansible-servers-24-vv-i-inventory-file-m-shell-a-echo-yes/20326)

<div class="topic-metadata">

**Author:** [@v11](https://forum.ansible.com/u/v11)\
**Replies:** 0\
**Last updated:** [January 23, 2016, 12:39am UTC](https://forum.ansible.com/t/ansible-host-pattern-expansion-is-not-working-ansible-servers-24-vv-i-inventory-file-m-shell-a-echo-yes/20326 "2016-01-23T00:39:33Z")

</div>

Hi, ansible expansion is not working. Is this because it has to do double expansion in inventory? Could it possibly be a bug? I am doing something wrong? ansible --version ansible 1.9.2 configured module search path…

---

## [Remote Windows batch script says completed successful, but did not work](https://forum.ansible.com/t/remote-windows-batch-script-says-completed-successful-but-did-not-work/20321)

<div class="topic-metadata">

**Author:** [@Joe\_Levis](https://forum.ansible.com/u/Joe_Levis)\
**Replies:** 8\
**Last updated:** [January 22, 2016, 11:15pm UTC](https://forum.ansible.com/t/remote-windows-batch-script-says-completed-successful-but-did-not-work/20321 "2016-01-22T23:15:33Z")

</div>

I’m running Ansible 2.0.0.2 on a Ubuntu 14.04 Control Machine. I’m using the script module in my Playbook to run a batch file, which executes a PowerShell script to create a Windows share (Windows Server 2012 R2). The Pl…

---

## [{"failed": true, "msg": "'dict object' has no attribute 'ssh\_key\_passphrase'"}](https://forum.ansible.com/t/failed-true-msg-dict-object-has-no-attribute-ssh-key-passphrase/20325)

<div class="topic-metadata">

**Author:** [@Francisco\_Reyes](https://forum.ansible.com/u/Francisco_Reyes)\
**Replies:** 0\
**Last updated:** [January 22, 2016, 11:08pm UTC](https://forum.ansible.com/t/failed-true-msg-dict-object-has-no-attribute-ssh-key-passphrase/20325 "2016-01-22T23:08:59Z")

</div>

I manage my users with the dochang.account galaxy role (https://galaxy.ansible.com/list#/roles/2104) I was just trying the 2 branch today and got the error {“failed”: true, “msg”: “‘dict object’ has no attribute ‘ssh\_k…

---

## [How to undefine a variable?](https://forum.ansible.com/t/how-to-undefine-a-variable/20324)

<div class="topic-metadata">

**Author:** [@Weiwen\_Chen](https://forum.ansible.com/u/Weiwen_Chen)\
**Replies:** 0\
**Last updated:** [January 22, 2016, 10:11pm UTC](https://forum.ansible.com/t/how-to-undefine-a-variable/20324 "2016-01-22T22:11:33Z")

</div>

In the task I want undefine a variable. Is that possible?

---

## [Looping tasks across different hosts](https://forum.ansible.com/t/looping-tasks-across-different-hosts/20316)

<div class="topic-metadata">

**Author:** [@Peter\_Newing](https://forum.ansible.com/u/Peter_Newing)\
**Replies:** 0\
**Last updated:** [January 22, 2016, 3:22pm UTC](https://forum.ansible.com/t/looping-tasks-across-different-hosts/20316 "2016-01-22T15:22:36Z")

</div>

Hi Everyone, First post so bear with me please… We’re doing some work with Hazelcast shared memory across multiple hosts. Something will get added into the shared memory on host A and I want to check it exists from ho…

---

## [ansible + &](https://forum.ansible.com/t/ansible/20315)

<div class="topic-metadata">

**Author:** [@Christophe\_Dumont](https://forum.ansible.com/u/Christophe_Dumont)\
**Replies:** 0\
**Last updated:** [January 22, 2016, 1:49pm UTC](https://forum.ansible.com/t/ansible/20315 "2016-01-22T13:49:36Z")

</div>

I’d like to start jmeter on emote hosts and the command run in backjground, so i added & to the playbook. script1 ok - hosts: JMETER\_REMOTE\_VM sudo: True user: xxxx tasks: - shell: chdir=~/apache-jmeter-2.13/bin/ b…

---

## [ansible + &](https://forum.ansible.com/t/ansible/20314)

<div class="topic-metadata">

**Author:** [@Christophe\_Dumont](https://forum.ansible.com/u/Christophe_Dumont)\
**Replies:** 0\
**Last updated:** [January 22, 2016, 1:43pm UTC](https://forum.ansible.com/t/ansible/20314 "2016-01-22T13:43:46Z")

</div>

I’d like to start jmeter on remote host and run the command in background but the command “&” doesn’t work this playbook starts jmeter : - hosts: JMETER\_REMOTE\_VM sudo: True user: xxxx tasks: - shell: chdir=~/apach…

---

## [Enhance ec2\_eip to optionally prevent reassociation](https://forum.ansible.com/t/enhance-ec2-eip-to-optionally-prevent-reassociation/20310)

<div class="topic-metadata">

**Author:** [@Josh\_Smift1](https://forum.ansible.com/u/Josh_Smift1)\
**Replies:** 1\
**Last updated:** [January 22, 2016, 11:11am UTC](https://forum.ansible.com/t/enhance-ec2-eip-to-optionally-prevent-reassociation/20310 "2016-01-22T11:11:15Z")

</div>

We want to use the ec2\_eip module to associate an EIP with the instance that should have it (a proxy server, say), but only if the EIP is currently unassociated; if we accidentally bring up another instance that looks…

---

## [template requires write permission on parent directory?](https://forum.ansible.com/t/template-requires-write-permission-on-parent-directory/15093)

<div class="topic-metadata">

**Author:** [@Jacob\_Weber1](https://forum.ansible.com/u/Jacob_Weber1)\
**Replies:** 21\
**Last updated:** [January 22, 2016, 3:52am UTC](https://forum.ansible.com/t/template-requires-write-permission-on-parent-directory/15093 "2016-01-22T03:52:02Z")

</div>

I’m using the “template” task to modify a file that I own, and have write permissions on. I’m not using sudo; I’m just running it as my own user. But I get an error “Destination \[parent-dir\] not writable.” I’m guessing …

---

## [After upgraded to 2.0 one of my server become UNREACHABLE](https://forum.ansible.com/t/after-upgraded-to-2-0-one-of-my-server-become-unreachable/20309)

<div class="topic-metadata">

**Author:** [@Jarod\_Liu](https://forum.ansible.com/u/Jarod_Liu)\
**Replies:** 0\
**Last updated:** [January 22, 2016, 2:15am UTC](https://forum.ansible.com/t/after-upgraded-to-2-0-one-of-my-server-become-unreachable/20309 "2016-01-22T02:15:37Z")

</div>

$ ansible 'kk-fj0' -m ping -vvv Using /home/jarod/workspace/ansible/ansible.cfg as config file \<kk-fj0.myhost.com\> ESTABLISH SSH CONNECTION FOR USER: root \<kk-fj0.myhost.com\> SSH: EXEC ssh -C -q -o ForwardAgent=yes -o Kb…

---

## [external inventory, cache, and multi AWS account](https://forum.ansible.com/t/external-inventory-cache-and-multi-aws-account/20306)

<div class="topic-metadata">

**Author:** [@emmanuel.mayssat](https://forum.ansible.com/u/emmanuel.mayssat)\
**Replies:** 0\
**Last updated:** [January 21, 2016, 7:59pm UTC](https://forum.ansible.com/t/external-inventory-cache-and-multi-aws-account/20306 "2016-01-21T19:59:43Z")

</div>

If you are using ansible with AWS, you ar eprobably familiar with the ec2.py, an external invnetory script. because API calls to AWS are time consuming, the inventory is built and cached locally. Now when I run python…

---

## [Ansible-Vault Error: Unexpected Exception: integer division or modulo by zero](https://forum.ansible.com/t/ansible-vault-error-unexpected-exception-integer-division-or-modulo-by-zero/20305)

<div class="topic-metadata">

**Author:** [@Victor\_Keenan](https://forum.ansible.com/u/Victor_Keenan)\
**Replies:** 13\
**Last updated:** [January 21, 2016, 5:45pm UTC](https://forum.ansible.com/t/ansible-vault-error-unexpected-exception-integer-division-or-modulo-by-zero/20305 "2016-01-21T17:45:56Z")

</div>

When creating an Ansible vault with: ansible-vault create test.yml I receive the following error: Unexpected Exception: integer division or modulo by zero Does anyone have any tips on resolving this? Thanks for the h…

---

## [synchronize complains that it needs a password to do a sudo](https://forum.ansible.com/t/synchronize-complains-that-it-needs-a-password-to-do-a-sudo/20302)

<div class="topic-metadata">

**Author:** [@Christophe\_Meessen](https://forum.ansible.com/u/Christophe_Meessen)\
**Replies:** 8\
**Last updated:** [January 21, 2016, 4:51pm UTC](https://forum.ansible.com/t/synchronize-complains-that-it-needs-a-password-to-do-a-sudo/20302 "2016-01-21T16:51:00Z")

</div>

When executing a synchronize I get the following error. This the executed code name: Restore repositories synchronize: src=“{{ item }}” mode=push dest=“/home/git” with\_lines: “find /home/git/\*.git -type d -maydepth …

---

## [Conditional check not working since upgrading to v.2.0.0.2](https://forum.ansible.com/t/conditional-check-not-working-since-upgrading-to-v-2-0-0-2/20303)

<div class="topic-metadata">

**Author:** [@Edd\_Grant](https://forum.ansible.com/u/Edd_Grant)\
**Replies:** 3\
**Last updated:** [January 21, 2016, 4:41pm UTC](https://forum.ansible.com/t/conditional-check-not-working-since-upgrading-to-v-2-0-0-2/20303 "2016-01-21T16:41:59Z")

</div>

Hi all, Since upgrading to Ansible 2.0.0.2 the following code has stopped working: include: redhat-hosts.yml when: ansible\_os\_family == ‘RedHat’ This results in the error: ERROR! The conditional check ‘ansible\_os\_f…

---

## [Looping over directories instead of files ?](https://forum.ansible.com/t/looping-over-directories-instead-of-files/20293)

<div class="topic-metadata">

**Author:** [@Christophe\_Meessen](https://forum.ansible.com/u/Christophe_Meessen)\
**Replies:** 5\
**Last updated:** [January 21, 2016, 2:19pm UTC](https://forum.ansible.com/t/looping-over-directories-instead-of-files/20293 "2016-01-21T14:19:13Z")

</div>

I have a set of bare git directories stored as /home/git/XXX.git. I would like to synchronize all the XXX.git directories with a remote server using ansible. But this is apparently not possible. In my gitsrv role’s ma…

---

## [Is it possible to specify hosts when including a nested playbook?](https://forum.ansible.com/t/is-it-possible-to-specify-hosts-when-including-a-nested-playbook/20304)

<div class="topic-metadata">

**Author:** [@Edd\_Grant](https://forum.ansible.com/u/Edd_Grant)\
**Replies:** 0\
**Last updated:** [January 21, 2016, 12:38pm UTC](https://forum.ansible.com/t/is-it-possible-to-specify-hosts-when-including-a-nested-playbook/20304 "2016-01-21T12:38:34Z")

</div>

I have an ‘all-hosts’ playbook which contains logic common to all hosts. This playbook is nested as an include in several top-level playbooks (for example deploy-application-x and deploy-application-y). When I run each o…

---

## [Getting pieces from a list with ansible](https://forum.ansible.com/t/getting-pieces-from-a-list-with-ansible/20254)

<div class="topic-metadata">

**Author:** [@dcodix](https://forum.ansible.com/u/dcodix)\
**Replies:** 3\
**Last updated:** [January 21, 2016, 12:28pm UTC](https://forum.ansible.com/t/getting-pieces-from-a-list-with-ansible/20254 "2016-01-21T12:28:51Z")

</div>

Hi, I know I am provably misunderstanding somthing, but I am not able to find a solution to my (rather simple) problem. What I want is quite easy. I have a list and I want to get the last (or first) X elements of it: E…

---

## [Ansible Tower - win\_feature failure](https://forum.ansible.com/t/ansible-tower-win-feature-failure/20301)

<div class="topic-metadata">

**Author:** [@Mark\_Matthews](https://forum.ansible.com/u/Mark_Matthews)\
**Replies:** 0\
**Last updated:** [January 21, 2016, 11:00am UTC](https://forum.ansible.com/t/ansible-tower-win-feature-failure/20301 "2016-01-21T11:00:18Z")

</div>

I am trying to run a simple job to install IIS using Ansible Tower playbook

---

## [Changing actions in case a node fails](https://forum.ansible.com/t/changing-actions-in-case-a-node-fails/20269)

<div class="topic-metadata">

**Author:** [@dcodix](https://forum.ansible.com/u/dcodix)\
**Replies:** 6\
**Last updated:** [January 21, 2016, 9:17am UTC](https://forum.ansible.com/t/changing-actions-in-case-a-node-fails/20269 "2016-01-21T09:17:31Z")

</div>

Hi there, I’ve been looking arround trying to find a way, with no luck. When running a playbook against multiple nodes (say 5), and one of them fail a task (or block), I would like the other 4 nodes to run different ta…

---

## [Roles directory not found anymore in Ansible 2](https://forum.ansible.com/t/roles-directory-not-found-anymore-in-ansible-2/20270)

<div class="topic-metadata">

**Author:** [@Petri\_Lehtinen](https://forum.ansible.com/u/Petri_Lehtinen)\
**Replies:** 2\
**Last updated:** [January 21, 2016, 8:45am UTC](https://forum.ansible.com/t/roles-directory-not-found-anymore-in-ansible-2/20270 "2016-01-21T08:45:15Z")

</div>

Hi! I started using Ansible with 1.9 and soon upgraded to a pre-release version of 2.0.0. Today, I upgraded to 2.0.0.2 and Ansible no longer finds my roles directory. My directory hierarchy looks like this: ansible/ …

---

## [Ansible 2.0 parameter escaping problem](https://forum.ansible.com/t/ansible-2-0-parameter-escaping-problem/20286)

<div class="topic-metadata">

**Author:** [@Rob\_White](https://forum.ansible.com/u/Rob_White)\
**Replies:** 1\
**Last updated:** [January 21, 2016, 7:33am UTC](https://forum.ansible.com/t/ansible-2-0-parameter-escaping-problem/20286 "2016-01-21T07:33:31Z")

</div>

I’ve starting seeing the following problem since I upgraded to Ansible v2.0 Here’s the task: \` raw: PowerShell “C:\\Temp\\db\_scripts\\copy\_db\_file.ps1” "{{ system\_db\_default\_location }}/master.mdf" "{{ system\_db\_master\_…

---

## [Ansible 2.0 -- the "new" correct way to update??](https://forum.ansible.com/t/ansible-2-0-the-new-correct-way-to-update/20229)

<div class="topic-metadata">

**Author:** [@Jason\_Levitt](https://forum.ansible.com/u/Jason_Levitt)\
**Replies:** 8\
**Last updated:** [January 21, 2016, 7:21am UTC](https://forum.ansible.com/t/ansible-2-0-the-new-correct-way-to-update/20229 "2016-01-21T07:21:43Z")

</div>

As you may recall, I had to uninstall Ansible 1.9.4 in order to install Ansible 2.0.0.0. But now, upgrading to Ansible 2.0.0.2 succeeds but has no effect. I’m on MacOSX El Capitan (10.11.2) $ ansible --version ansible …

---

## [Duplicate dict key](https://forum.ansible.com/t/duplicate-dict-key/20300)

<div class="topic-metadata">

**Author:** [@Josef\_Fortier](https://forum.ansible.com/u/Josef_Fortier)\
**Replies:** 1\
**Last updated:** [January 20, 2016, 11:48pm UTC](https://forum.ansible.com/t/duplicate-dict-key/20300 "2016-01-20T23:48:55Z")

</div>

Updating to 2.0 throws a new error (certainly not an unreasonable error) in a play I’ve used for a while: found a duplicate dict key I know I’m likely abusing behavior, but I’m hoping someone might offer an alternate a…

---

## [ec2 mudoles can't create ec2 instances](https://forum.ansible.com/t/ec2-mudoles-cant-create-ec2-instances/20248)

<div class="topic-metadata">

**Author:** [@lwq\_Adolph](https://forum.ansible.com/u/lwq_Adolph)\
**Replies:** 1\
**Last updated:** [January 20, 2016, 11:27pm UTC](https://forum.ansible.com/t/ec2-mudoles-cant-create-ec2-instances/20248 "2016-01-20T23:27:07Z")

</div>

Hi, everyone: My base environment are below: ubuntu 14.04 64bit ansible 1.9.4 python 2.7.9 64bit ​ I am green hand to ansible.I study ansible documentation for ec2 module http://docs.ansible.com/ansible/ec2\_module.h…

---

## [Hacking on extras modules](https://forum.ansible.com/t/hacking-on-extras-modules/20298)

<div class="topic-metadata">

**Author:** [@Cliff\_Rowley](https://forum.ansible.com/u/Cliff_Rowley)\
**Replies:** 1\
**Last updated:** [January 20, 2016, 11:16pm UTC](https://forum.ansible.com/t/hacking-on-extras-modules/20298 "2016-01-20T23:16:06Z")

</div>

Hello there, I’d really like to start hacking on some extras modules (specifically some of the missing libvirt functionality that I’ve been plugging with duct tape, e.g. volumes etc) with the intent to later submit them…

---

## [Writing Modules without AnsibleModule](https://forum.ansible.com/t/writing-modules-without-ansiblemodule/20299)

<div class="topic-metadata">

**Author:** [@Jason\_Edelman](https://forum.ansible.com/u/Jason_Edelman)\
**Replies:** 2\
**Last updated:** [January 20, 2016, 11:10pm UTC](https://forum.ansible.com/t/writing-modules-without-ansiblemodule/20299 "2016-01-20T23:10:14Z")

</div>

Hi, does anyone have sample code on how to write a module not using the AnsibleModule object? I’m trying to see how to access the params in a custom module in Python without AnsibleModule as preparation for writing modu…

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

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