# Latest

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

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

**Page:** 786

---

## [packages = p\['package'\].split(',')\\r\\nAttributeError:](https://forum.ansible.com/t/packages-p-package-split-r-nattributeerror/20728)

<div class="topic-metadata">

**Author:** [@hilali\_lui](https://forum.ansible.com/u/hilali_lui)\
**Replies:** 4\
**Last updated:** [March 2, 2016, 11:46pm UTC](https://forum.ansible.com/t/packages-p-package-split-r-nattributeerror/20728 "2016-03-02T23:46:07Z")

</div>

Hello, When I use this: name: Install {{ install\_name }} required tools apt: pkg={{ item }} state=installed update\_cache=yes I found this error : failed: \[192.168.8.123\] =\> (item=\[u’sudo’, u’vim’, u’tree’, u’git’…

---

## [Uri module uses CONNECT instead of GET when going through a proxy and fails](https://forum.ansible.com/t/uri-module-uses-connect-instead-of-get-when-going-through-a-proxy-and-fails/20752)

<div class="topic-metadata">

**Author:** [@Benoit\_Tremblay](https://forum.ansible.com/u/Benoit_Tremblay)\
**Replies:** 2\
**Last updated:** [March 2, 2016, 9:31pm UTC](https://forum.ansible.com/t/uri-module-uses-connect-instead-of-get-when-going-through-a-proxy-and-fails/20752 "2016-03-02T21:31:46Z")

</div>

I have a problem using uri when behind a proxy. There is an exception in the python module. This works well when not going through a proxy. But fails when a proxy is set. uri: url=“http://www.google.com” dest=“/tmp/te…

---

## [Python - ValueError: I/O operation on closed file](https://forum.ansible.com/t/python-valueerror-i-o-operation-on-closed-file/20712)

<div class="topic-metadata">

**Author:** [@Jason\_Levitt](https://forum.ansible.com/u/Jason_Levitt)\
**Replies:** 3\
**Last updated:** [March 2, 2016, 8:22pm UTC](https://forum.ansible.com/t/python-valueerror-i-o-operation-on-closed-file/20712 "2016-03-02T20:22:57Z")

</div>

Ansible 2.0.1 When I ssh into a Linux server and run: $ ansible-playbook -vvvvvv build.yml it runs fine. But if I ssh into the Linux server and run: $ nohup ansible-playbook -vvvvvv build.yml or $ ansible-playbook…

---

## [ansible\_env is undefined](https://forum.ansible.com/t/ansible-env-is-undefined/20713)

<div class="topic-metadata">

**Author:** [@cohen.ben](https://forum.ansible.com/u/cohen.ben)\
**Replies:** 3\
**Last updated:** [March 2, 2016, 7:32pm UTC](https://forum.ansible.com/t/ansible-env-is-undefined/20713 "2016-03-02T19:32:13Z")

</div>

After upgrading ansible versions: ncohen@breathe ~/s/f/fn-ansible (master)\> ansible --version ansible 2.0.1.0 config file = /Users/ncohen/software/face/fn-ansible/ansible.cfg configured module search path = Default w…

---

## [Docker container always reloaded](https://forum.ansible.com/t/docker-container-always-reloaded/20753)

<div class="topic-metadata">

**Author:** [@Guy\_Knights](https://forum.ansible.com/u/Guy_Knights)\
**Replies:** 0\
**Last updated:** [March 2, 2016, 6:22pm UTC](https://forum.ansible.com/t/docker-container-always-reloaded/20753 "2016-03-02T18:22:35Z")

</div>

I have a particular task that starts a docker container, and for some reason every time it runs it reloads the container. The task definition is below: docker: name: zabbix image: “zabbix/zabbix-{{ zabbix.version }}” …

---

## [How to delete multiple lines after a match?](https://forum.ansible.com/t/how-to-delete-multiple-lines-after-a-match/20692)

<div class="topic-metadata">

**Author:** [@Weiwen\_Chen](https://forum.ansible.com/u/Weiwen_Chen)\
**Replies:** 1\
**Last updated:** [March 2, 2016, 5:11pm UTC](https://forum.ansible.com/t/how-to-delete-multiple-lines-after-a-match/20692 "2016-03-02T17:11:01Z")

</div>

Hello Expert, Is there a way in ansible to delete multiple lines after a pattern matched? For example, I have a file with following contents, and need to delete lines ‘bbbbbb’, ‘cccccc’. However I really do not know wh…

---

## [docker "restarted" deletes the container!](https://forum.ansible.com/t/docker-restarted-deletes-the-container/20586)

<div class="topic-metadata">

**Author:** [@alexk4work](https://forum.ansible.com/u/alexk4work)\
**Replies:** 8\
**Last updated:** [March 2, 2016, 4:58pm UTC](https://forum.ansible.com/t/docker-restarted-deletes-the-container/20586 "2016-03-02T16:58:58Z")

</div>

Hi all. I’ve just found out that my deploy is broken because an action with “state=restarted” just removes the container! I didn’t dig into yet, though I saw in the sources stuff like def restarted(manager, containers,…

---

## [Executing a command remotely using ansible](https://forum.ansible.com/t/executing-a-command-remotely-using-ansible/20747)

<div class="topic-metadata">

**Author:** [@Akash\_John](https://forum.ansible.com/u/Akash_John)\
**Replies:** 2\
**Last updated:** [March 2, 2016, 4:01pm UTC](https://forum.ansible.com/t/executing-a-command-remotely-using-ansible/20747 "2016-03-02T16:01:15Z")

</div>

Hi Team, I would like to execute a command on a remote windows host as we are performing on Linux Machines ansible webserver -s -m shell -a “/etc/init.d/httpd status” -u user1 -k Some could you please help me how can w…

---

## [Windows 7 Ansible 2.0](https://forum.ansible.com/t/windows-7-ansible-2-0/20740)

<div class="topic-metadata">

**Author:** [@sjacobs](https://forum.ansible.com/u/sjacobs)\
**Replies:** 1\
**Last updated:** [March 2, 2016, 3:38pm UTC](https://forum.ansible.com/t/windows-7-ansible-2-0/20740 "2016-03-02T15:38:52Z")

</div>

I have a Windows 7 Enterprise VM that I cannot get to function with Ansible 2.0 Control Server: Centos 7 Ansible Version: ansible 2.0.1.0 and previously 1.9.4 I have followed the setup guide, run the Prep-Script on Wi…

---

## [Cloned Ansible from github, now I have 'module' object has no attribute 'COLOER\_ERROR'](https://forum.ansible.com/t/cloned-ansible-from-github-now-i-have-module-object-has-no-attribute-coloer-error/20736)

<div class="topic-metadata">

**Author:** [@jdelaporte](https://forum.ansible.com/u/jdelaporte)\
**Replies:** 14\
**Last updated:** [March 2, 2016, 3:17pm UTC](https://forum.ansible.com/t/cloned-ansible-from-github-now-i-have-module-object-has-no-attribute-coloer-error/20736 "2016-03-02T15:17:07Z")

</div>

When running ad-hoc ansible commands, I get the following error: $ ansible slackware-lab-64 -m setup \[WARNING\]: Error when using \<bound method CallbackModule.v2\_runner\_on\_failed of \</home/ansible-user/ansible/lib/ansib…

---

## [Ansible pause module fails to abort when more than one host is in inventory list](https://forum.ansible.com/t/ansible-pause-module-fails-to-abort-when-more-than-one-host-is-in-inventory-list/20723)

<div class="topic-metadata">

**Author:** [@binbash\_root](https://forum.ansible.com/u/binbash_root)\
**Replies:** 3\
**Last updated:** [March 2, 2016, 2:02pm UTC](https://forum.ansible.com/t/ansible-pause-module-fails-to-abort-when-more-than-one-host-is-in-inventory-list/20723 "2016-03-02T14:02:45Z")

</div>

Originally opened bug #14252 but this bug for Ansible 2.0.0.1, but this still appears to be in Ansible 2.0.1.0. It doesn’t matter whether the first host is remote or local connection. The first host will fail but subsequ…

---

## [ERROR! 'expect' is not a valid attribute for a Play](https://forum.ansible.com/t/error-expect-is-not-a-valid-attribute-for-a-play/20745)

<div class="topic-metadata">

**Author:** [@Nor\_Idzuwan\_Mohammad](https://forum.ansible.com/u/Nor_Idzuwan_Mohammad)\
**Replies:** 1\
**Last updated:** [March 2, 2016, 1:48pm UTC](https://forum.ansible.com/t/error-expect-is-not-a-valid-attribute-for-a-play/20745 "2016-03-02T13:48:01Z")

</div>

I’m trying to use the expect modules but only getting error ansible-playbook -vv --syntax-check passwd.yml ERROR! ‘expect’ is not a valid attribute for a Play The error appears to have been in ‘/home/users/.local/an…

---

## [looping over list to use as role variables](https://forum.ansible.com/t/looping-over-list-to-use-as-role-variables/20746)

<div class="topic-metadata">

**Author:** [@basnijholt](https://forum.ansible.com/u/basnijholt)\
**Replies:** 0\
**Last updated:** [March 2, 2016, 1:38pm UTC](https://forum.ansible.com/t/looping-over-list-to-use-as-role-variables/20746 "2016-03-02T13:38:56Z")

</div>

Hi all, I would like to use ansible to spawn (and later prune) a list of jupyter notebook servers. I now do the following:

---

## [Generating password randomly when user is created](https://forum.ansible.com/t/generating-password-randomly-when-user-is-created/20719)

<div class="topic-metadata">

**Author:** [@Deepa\_Yr](https://forum.ansible.com/u/Deepa_Yr)\
**Replies:** 3\
**Last updated:** [March 2, 2016, 12:54pm UTC](https://forum.ansible.com/t/generating-password-randomly-when-user-is-created/20719 "2016-03-02T12:54:01Z")

</div>

I am running this task name: Create users with auto generated password user: name=deepa state=present password=“{{ lookup(‘password’, ‘/tmp/deepapassword.txt chars=ascii\_letters’) }}” It is creating the file /tmp/dee…

---

## [Creating pull requests for ansible-modules-extras](https://forum.ansible.com/t/creating-pull-requests-for-ansible-modules-extras/20731)

<div class="topic-metadata">

**Author:** [@kevin.e.kenny](https://forum.ansible.com/u/kevin.e.kenny)\
**Replies:** 4\
**Last updated:** [March 2, 2016, 7:46am UTC](https://forum.ansible.com/t/creating-pull-requests-for-ansible-modules-extras/20731 "2016-03-02T07:46:56Z")

</div>

I’ve got a fix for an outstanding issue in “ansible-modules-extras” (in one of the windows modules), and probably a few others. However this being the first time I’ve done the Github thing to submit a patch/fix I’m a bi…

---

## [2.1 devel; templating changes?](https://forum.ansible.com/t/2-1-devel-templating-changes/20686)

<div class="topic-metadata">

**Author:** [@j.r.hawkesworth](https://forum.ansible.com/u/j.r.hawkesworth)\
**Replies:** 5\
**Last updated:** [March 2, 2016, 6:43am UTC](https://forum.ansible.com/t/2-1-devel-templating-changes/20686 "2016-03-02T06:43:26Z")

</div>

Hello, I’m investigating https://github.com/ansible/ansible-modules-core/issues/3032 at the moment and have found the windows integration tests for win\_template no longer pass against latest devel. It appears re templat…

---

## [win\_template always changing?](https://forum.ansible.com/t/win-template-always-changing/20704)

<div class="topic-metadata">

**Author:** [@Chris\_Bennett](https://forum.ansible.com/u/Chris_Bennett)\
**Replies:** 6\
**Last updated:** [March 2, 2016, 6:40am UTC](https://forum.ansible.com/t/win-template-always-changing/20704 "2016-03-02T06:40:34Z")

</div>

Hi there, I've just starting hitting some Windows hosts with Ansible & winrm and when I use the win\_template module, it changes every run: conf:

---

## [How to use information from ec2 facts](https://forum.ansible.com/t/how-to-use-information-from-ec2-facts/20743)

<div class="topic-metadata">

**Author:** [@Adithya\_Khamithkar](https://forum.ansible.com/u/Adithya_Khamithkar)\
**Replies:** 0\
**Last updated:** [March 2, 2016, 3:23am UTC](https://forum.ansible.com/t/how-to-use-information-from-ec2-facts/20743 "2016-03-02T03:23:06Z")

</div>

Hi, I am using ec2\_remote\_facts to find the ec2 facts of an instance based on the tags. \` name: Search ec2 ec2\_remote\_facts: filters: “tag:Name”: “{{hostname}}” aws\_access\_key: “{{aws\_access\_key}}” aws\_secret\_ke…

---

## [service "started" is creating multiple copies when run with playbook](https://forum.ansible.com/t/service-started-is-creating-multiple-copies-when-run-with-playbook/20742)

<div class="topic-metadata">

**Author:** [@Stuart\_Cracraft](https://forum.ansible.com/u/Stuart_Cracraft)\
**Replies:** 0\
**Last updated:** [March 2, 2016, 2:57am UTC](https://forum.ansible.com/t/service-started-is-creating-multiple-copies-when-run-with-playbook/20742 "2016-03-02T02:57:06Z")

</div>

Not sure what to make of this. I have a service X running on host Y After running the playbook with tasks/main.yml: name: keep process running but do not recycle it service: name=X state=started enabled=yes ansible…

---

## [Incorrect variable substition in command module cause command to fail](https://forum.ansible.com/t/incorrect-variable-substition-in-command-module-cause-command-to-fail/20733)

<div class="topic-metadata">

**Author:** [@David\_MacBride](https://forum.ansible.com/u/David_MacBride)\
**Replies:** 1\
**Last updated:** [March 2, 2016, 1:10am UTC](https://forum.ansible.com/t/incorrect-variable-substition-in-command-module-cause-command-to-fail/20733 "2016-03-02T01:10:58Z")

</div>

I’m running some sudo commands via the command module. In one of the commands, when I use a variable to specify the path to a script there is an error during the variable substitution and the command fails. In some comma…

---

## [with\_subelements tasks warn with "not all arguments converted during string formatting" #12501](https://forum.ansible.com/t/with-subelements-tasks-warn-with-not-all-arguments-converted-during-string-formatting-12501/20739)

<div class="topic-metadata">

**Author:** [@nicclabcd](https://forum.ansible.com/u/nicclabcd)\
**Replies:** 0\
**Last updated:** [March 2, 2016, 12:54am UTC](https://forum.ansible.com/t/with-subelements-tasks-warn-with-not-all-arguments-converted-during-string-formatting-12501/20739 "2016-03-02T00:54:14Z")

</div>

hi people There’s still an issue with this. in commit 9acb5aa176bf71c10975c0a92b8cc225e72d1228, line 178 of /ansible/plugins/callback/default.py also needs a comma so tuples don’t cause problems on printing. I’m not su…

---

## [Updated ansible to track latest, now I have error 'Connection' object has no attribute '\_split\_ssh\_args'](https://forum.ansible.com/t/updated-ansible-to-track-latest-now-i-have-error-connection-object-has-no-attribute-split-ssh-args/20684)

<div class="topic-metadata">

**Author:** [@jdelaporte](https://forum.ansible.com/u/jdelaporte)\
**Replies:** 6\
**Last updated:** [March 1, 2016, 10:52pm UTC](https://forum.ansible.com/t/updated-ansible-to-track-latest-now-i-have-error-connection-object-has-no-attribute-split-ssh-args/20684 "2016-03-01T22:52:24Z")

</div>

I just git pulled the latest build from GitHub, and then ran the following two commands as recommended on the Installation page: $ git pull --rebase $ git submodule update --init --recursive However, I am now getting a…

---

## [extra-vars behavior](https://forum.ansible.com/t/extra-vars-behavior/20735)

<div class="topic-metadata">

**Author:** [@Arthur\_Reyes](https://forum.ansible.com/u/Arthur_Reyes)\
**Replies:** 2\
**Last updated:** [March 1, 2016, 10:01pm UTC](https://forum.ansible.com/t/extra-vars-behavior/20735 "2016-03-01T22:01:17Z")

</div>

I didn’t see it listed in Issues, so I thought I would ask here if a recent discovery was actually a bug. I’m working on some shell wrappers for the ansible-playbook and wanted to maintain a certain level of pedantry. I…

---

## [Problem running ConfigureRemotingforAnsible.ps1 on Windows Server 2008 R2 SP1](https://forum.ansible.com/t/problem-running-configureremotingforansible-ps1-on-windows-server-2008-r2-sp1/20737)

<div class="topic-metadata">

**Author:** [@Fahd\_Ajmal](https://forum.ansible.com/u/Fahd_Ajmal)\
**Replies:** 0\
**Last updated:** [March 1, 2016, 9:59pm UTC](https://forum.ansible.com/t/problem-running-configureremotingforansible-ps1-on-windows-server-2008-r2-sp1/20737 "2016-03-01T21:59:11Z")

</div>

Hi All, I am try to run {ConfigureAnsibleforRemoting.ps1} on Windows Server 2008 R2 SP1. it works on most servers but is throwing the following exception on some: \` PS C:\\Windows\\system32\> E:\\staging\\ConfigureRemoting…

---

## [tarballs failing](https://forum.ansible.com/t/tarballs-failing/20727)

<div class="topic-metadata">

**Author:** [@Niche\_Meister](https://forum.ansible.com/u/Niche_Meister)\
**Replies:** 1\
**Last updated:** [March 1, 2016, 9:37pm UTC](https://forum.ansible.com/t/tarballs-failing/20727 "2016-03-01T21:37:34Z")

</div>

In the middle of multiple tarball installations, ansible started throwing the below error… help! \` TASK: \[install-tarball | download the file if the tag is missing or doesn’t match\] \*\*\* \<10.226.21.111\> ESTABLISH CONNE…

---

## [Ansible 2 multiple extra vars files](https://forum.ansible.com/t/ansible-2-multiple-extra-vars-files/20445)

<div class="topic-metadata">

**Author:** [@Mark\_Olliver2](https://forum.ansible.com/u/Mark_Olliver2)\
**Replies:** 2\
**Last updated:** [March 1, 2016, 9:36pm UTC](https://forum.ansible.com/t/ansible-2-multiple-extra-vars-files/20445 "2016-03-01T21:36:26Z")

</div>

Hi When running a playbook via Ansible-playbook with the --extra-vars flag I can supply the argument multiple times and all the vars get combined. My question is what is the order of inheritance within the files if I w…

---

## [Auditing and Reporting on Hosts](https://forum.ansible.com/t/auditing-and-reporting-on-hosts/20729)

<div class="topic-metadata">

**Author:** [@John\_Leo\_Huetter](https://forum.ansible.com/u/John_Leo_Huetter)\
**Replies:** 2\
**Last updated:** [March 1, 2016, 9:06pm UTC](https://forum.ansible.com/t/auditing-and-reporting-on-hosts/20729 "2016-03-01T21:06:00Z")

</div>

Hello, is there an effort to enhance Ansible to collect and synthesize auditing and reporting of remote hosts? I would like to see that all my remote hosts have the same files. We have a standby site and before we fail…

---

## [Connection password precedence and command line options](https://forum.ansible.com/t/connection-password-precedence-and-command-line-options/20730)

<div class="topic-metadata">

**Author:** [@marc.petrivelli](https://forum.ansible.com/u/marc.petrivelli)\
**Replies:** 0\
**Last updated:** [March 1, 2016, 7:35pm UTC](https://forum.ansible.com/t/connection-password-precedence-and-command-line-options/20730 "2016-03-01T19:35:56Z")

</div>

I am running off the stable-1.9 branch. I have an vault password file that is part of the inventory. I use the variables from that file to populate ansible\_ssh\_pass in the appropriate group\_vars/group file. So for examp…

---

## [Ansible 2.1](https://forum.ansible.com/t/ansible-2-1/20724)

<div class="topic-metadata">

**Author:** [@Franky\_G](https://forum.ansible.com/u/Franky_G)\
**Replies:** 4\
**Last updated:** [March 1, 2016, 5:58pm UTC](https://forum.ansible.com/t/ansible-2-1/20724 "2016-03-01T17:58:53Z")

</div>

Hello When will the 2.1 branch be made available? Regards

---

## [Trying to dynamically load var files](https://forum.ansible.com/t/trying-to-dynamically-load-var-files/20711)

<div class="topic-metadata">

**Author:** [@Chris5](https://forum.ansible.com/u/Chris5)\
**Replies:** 2\
**Last updated:** [March 1, 2016, 5:03pm UTC](https://forum.ansible.com/t/trying-to-dynamically-load-var-files/20711 "2016-03-01T17:03:16Z")

</div>

I’m not seeing a clear way on how to do this in the docs, and maybe there is some other way to go about it. Basically I want to load up data about multiple applications to use in a template. I tried using include\_vars, b…

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

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