# Latest

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

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

**Page:** 756

---

## [Install software to Windows machine...](https://forum.ansible.com/t/install-software-to-windows-machine/21618)

<div class="topic-metadata">

**Author:** [@aaron.trujillo](https://forum.ansible.com/u/aaron.trujillo)\
**Replies:** 5\
**Last updated:** [June 4, 2016, 5:56pm UTC](https://forum.ansible.com/t/install-software-to-windows-machine/21618 "2016-06-04T17:56:42Z")

</div>

Thanks for all your help earlier, it was greatly appreciated. Now I am attempting to automate installation of some software across all my Windows VM’s . I have found some documentation on the web but am still having tro…

---

## [Connection problem with a windows client from redhat server](https://forum.ansible.com/t/connection-problem-with-a-windows-client-from-redhat-server/21652)

<div class="topic-metadata">

**Author:** [@Mahi](https://forum.ansible.com/u/Mahi)\
**Replies:** 4\
**Last updated:** [June 4, 2016, 2:24pm UTC](https://forum.ansible.com/t/connection-problem-with-a-windows-client-from-redhat-server/21652 "2016-06-04T14:24:27Z")

</div>

Im new to ansible .Getting connection refused error while doing ping to windows client machines. Could any one help me where i am doing wrong. ansible server OS version: REDHAT 6.7 client os: windows 2012 R2 client fi…

---

## [Accessing via SSH in Ansible](https://forum.ansible.com/t/accessing-via-ssh-in-ansible/21645)

<div class="topic-metadata">

**Author:** [@Tom\_Hanson](https://forum.ansible.com/u/Tom_Hanson)\
**Replies:** 5\
**Last updated:** [June 4, 2016, 9:15am UTC](https://forum.ansible.com/t/accessing-via-ssh-in-ansible/21645 "2016-06-04T09:15:36Z")

</div>

I am fairly new working with ansible and am operating some playbooks that were built by someone else who is gone. The current playbooks will set up a new server and work fine. It installs several standard packages and wi…

---

## [ansible-relayor 0.1.0 released](https://forum.ansible.com/t/ansible-relayor-0-1-0-released/21666)

<div class="topic-metadata">

**Author:** [@Nusenu1](https://forum.ansible.com/u/Nusenu1)\
**Replies:** 0\
**Last updated:** [June 4, 2016, 7:52am UTC](https://forum.ansible.com/t/ansible-relayor-0-1-0-released/21666 "2016-06-04T07:52:46Z")

</div>

Hi, ansible-relayor is an ansible role for tor relay operators. Whether you setup/operate a single or many relays, ansible-relayor can help you automate all steps including secure offline key \[2\] generation, multi-in…

---

## [Error fetching server list on defaults::](https://forum.ansible.com/t/error-fetching-server-list-on-defaults/21665)

<div class="topic-metadata">

**Author:** [@Abhi\_Auradkar](https://forum.ansible.com/u/Abhi_Auradkar)\
**Replies:** 0\
**Last updated:** [June 4, 2016, 4:30am UTC](https://forum.ansible.com/t/error-fetching-server-list-on-defaults/21665 "2016-06-04T04:30:36Z")

</div>

Hi, I am trying to deploy VM’s using os\_server module. I am seeing the error Error fetching server list on defaults:: It does not give a specific reason like connection error or auth error or whatever. Any help will …

---

## [Ansible reports “permission denied” when issuing command on remote host](https://forum.ansible.com/t/ansible-reports-permission-denied-when-issuing-command-on-remote-host/21648)

<div class="topic-metadata">

**Author:** [@Howard\_Lee](https://forum.ansible.com/u/Howard_Lee)\
**Replies:** 4\
**Last updated:** [June 4, 2016, 2:48am UTC](https://forum.ansible.com/t/ansible-reports-permission-denied-when-issuing-command-on-remote-host/21648 "2016-06-04T02:48:32Z")

</div>

Ansible 2.1 Ansible host: Ubuntu 16.04 Remote host: CentOS 6.5 I have a simple ansible project: ├── hosts ├── roles │ └── setup │ ├── defaults │ │ └── main.yml │ ├── tasks │ │ └── main.y…

---

## [Trouble with expect:  passing creds](https://forum.ansible.com/t/trouble-with-expect-passing-creds/21568)

<div class="topic-metadata">

**Author:** [@Jeff\_Rogers](https://forum.ansible.com/u/Jeff_Rogers)\
**Replies:** 2\
**Last updated:** [June 3, 2016, 9:19pm UTC](https://forum.ansible.com/t/trouble-with-expect-passing-creds/21568 "2016-06-03T21:19:49Z")

</div>

I'm getting the following error: ...... "msg": "argument responses is of type \<type 'list'\> and we were unable to convert to dict" I'm trying to do this. - name: Name of the thing I'm doing hosts: '{{ target }}' …

---

## [Syntax for skip\_missing flag for with\_subelements?](https://forum.ansible.com/t/syntax-for-skip-missing-flag-for-with-subelements/21647)

<div class="topic-metadata">

**Author:** [@jdelaporte](https://forum.ansible.com/u/jdelaporte)\
**Replies:** 1\
**Last updated:** [June 3, 2016, 7:47pm UTC](https://forum.ansible.com/t/syntax-for-skip-missing-flag-for-with-subelements/21647 "2016-06-03T19:47:20Z")

</div>

What is the syntax for the third element that can be used with\_subelements to use to skip missing subelements? “Optionally, you can add a third element to the subelements list, that holds a dictionary of flags. Currentl…

---

## [Check if a software package is installed](https://forum.ansible.com/t/check-if-a-software-package-is-installed/21656)

<div class="topic-metadata">

**Author:** [@Werner\_Flamme](https://forum.ansible.com/u/Werner_Flamme)\
**Replies:** 1\
**Last updated:** [June 3, 2016, 4:47pm UTC](https://forum.ansible.com/t/check-if-a-software-package-is-installed/21656 "2016-06-03T16:47:42Z")

</div>

Hello everyone, I am quite new to Ansible, and I think it is much easier to use than e. g. Puppet. I have to make sure that software package A is installed on a host, if software package B is not. Since I use this r…

---

## [Ansible templating.](https://forum.ansible.com/t/ansible-templating/21658)

<div class="topic-metadata">

**Author:** [@Jason\_Morgan](https://forum.ansible.com/u/Jason_Morgan)\
**Replies:** 1\
**Last updated:** [June 3, 2016, 4:41pm UTC](https://forum.ansible.com/t/ansible-templating/21658 "2016-06-03T16:41:23Z")

</div>

Hi I am writing an Ansible playbook for a specific piece of software. I would be interested in hearing experience/recommendations/best practice of how to deal with managinf config files between software versions where pa…

---

## [Can't ping ESXi 5.5](https://forum.ansible.com/t/cant-ping-esxi-5-5/21573)

<div class="topic-metadata">

**Author:** [@Huan\_He](https://forum.ansible.com/u/Huan_He)\
**Replies:** 2\
**Last updated:** [June 3, 2016, 3:45pm UTC](https://forum.ansible.com/t/cant-ping-esxi-5-5/21573 "2016-06-03T15:45:08Z")

</div>

Hi, I did the cmd “ansible esxi -u root -m ping -vvvv” and got “ImportError: No module named grp”. see full msg below. What I understand is that the ESXi 5.5 has python 2.6.8 and it may not have the full python standard…

---

## [NEED HELP - connecting via winrm](https://forum.ansible.com/t/need-help-connecting-via-winrm/21660)

<div class="topic-metadata">

**Author:** [@aaron.trujillo](https://forum.ansible.com/u/aaron.trujillo)\
**Replies:** 1\
**Last updated:** [June 3, 2016, 3:39pm UTC](https://forum.ansible.com/t/need-help-connecting-via-winrm/21660 "2016-06-03T15:39:59Z")

</div>

I am having trouble connecting to a windows vm via the ansible winrm connection. I am using ansible 2.0.2 host settings \[Windows\] GP1-LAB-OPSTST2.com 192.168.30.101.com \[Windows\_var\] ansible\_ssh\_user= ansible\_ssh…

---

## [How to specify explicit version requirements for external module](https://forum.ansible.com/t/how-to-specify-explicit-version-requirements-for-external-module/21659)

<div class="topic-metadata">

**Author:** [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Replies:** 1\
**Last updated:** [June 3, 2016, 3:13pm UTC](https://forum.ansible.com/t/how-to-specify-explicit-version-requirements-for-external-module/21659 "2016-06-03T15:13:00Z")

</div>

Either is fine, currently this is only for display, so whatever conveys the message. We might change this in the future as we automate validation of requirements.

---

## [Service now dynamic inventory](https://forum.ansible.com/t/service-now-dynamic-inventory/18730)

<div class="topic-metadata">

**Author:** [@Michael\_Perzel](https://forum.ansible.com/u/Michael_Perzel)\
**Replies:** 5\
**Last updated:** [June 3, 2016, 1:25pm UTC](https://forum.ansible.com/t/service-now-dynamic-inventory/18730 "2016-06-03T13:25:04Z")

</div>

Has anyone written a dynamic inventory script that integrates with service now's cmdb/discovery? My company has decided to use service now's cmdb so I guess I should leverage it for our inventory.

---

## [OSA Keystone error tenant service failed](https://forum.ansible.com/t/osa-keystone-error-tenant-service-failed/21657)

<div class="topic-metadata">

**Author:** [@Abhijeet\_Karve](https://forum.ansible.com/u/Abhijeet_Karve)\
**Replies:** 0\
**Last updated:** [June 3, 2016, 10:05am UTC](https://forum.ansible.com/t/osa-keystone-error-tenant-service-failed/21657 "2016-06-03T10:05:18Z")

</div>

Hi Folks, We are trying to setup openstack liberty with OSA playbooks, But it seems while running os-keystone-install.yml we are getting some error with “http.GatewayTimeout: Gateway Timeout mux\_client\_read\_packet: read…

---

## [ansible-pull only from git?](https://forum.ansible.com/t/ansible-pull-only-from-git/19228)

<div class="topic-metadata">

**Author:** [@Stephan\_Hradek](https://forum.ansible.com/u/Stephan_Hradek)\
**Replies:** 3\
**Last updated:** [June 3, 2016, 8:55am UTC](https://forum.ansible.com/t/ansible-pull-only-from-git/19228 "2016-06-03T08:55:39Z")

</div>

Is it correct that ansible-pull can only pull from a git repository? I’m asking because my ansible 1.9 tells me: ERROR! Unsuported repo module subversion, choices are git

---

## [percentage sign in raw command](https://forum.ansible.com/t/percentage-sign-in-raw-command/21654)

<div class="topic-metadata">

**Author:** [@ishan\_jain](https://forum.ansible.com/u/ishan_jain)\
**Replies:** 1\
**Last updated:** [June 3, 2016, 6:51am UTC](https://forum.ansible.com/t/percentage-sign-in-raw-command/21654 "2016-06-03T06:51:58Z")

</div>

I am trying to add a key-value to %PATH% variable in windows and for that i am using a raw module. But when i use something like: PATH=E:\\jre;%PATH% then i get error saying, "%PATH% : The term ‘%PATH%’ is not recogniz…

---

## [How to i get list of all hosts in playbook\_on\_task\_start ?](https://forum.ansible.com/t/how-to-i-get-list-of-all-hosts-in-playbook-on-task-start/21269)

<div class="topic-metadata">

**Author:** [@Ritesh\_Shetty](https://forum.ansible.com/u/Ritesh_Shetty)\
**Replies:** 2\
**Last updated:** [June 3, 2016, 1:50am UTC](https://forum.ansible.com/t/how-to-i-get-list-of-all-hosts-in-playbook-on-task-start/21269 "2016-06-03T01:50:54Z")

</div>

I used to have this code in ansible 1.x

---

## [How to check the result of a lineinfile task?](https://forum.ansible.com/t/how-to-check-the-result-of-a-lineinfile-task/21650)

<div class="topic-metadata">

**Author:** [@Johannes\_Kastl](https://forum.ansible.com/u/Johannes_Kastl)\
**Replies:** 0\
**Last updated:** [June 2, 2016, 7:10pm UTC](https://forum.ansible.com/t/how-to-check-the-result-of-a-lineinfile-task/21650 "2016-06-02T19:10:30Z")

</div>

Dear all, how to check the result of a lineinfile task? I got one that outputs the following: "backup": "", "changed": true, "diff": \[ { "after": "", …

---

## [elasticache subnet group](https://forum.ansible.com/t/elasticache-subnet-group/21649)

<div class="topic-metadata">

**Author:** [@Eric\_S1](https://forum.ansible.com/u/Eric_S1)\
**Replies:** 1\
**Last updated:** [June 2, 2016, 6:36pm UTC](https://forum.ansible.com/t/elasticache-subnet-group/21649 "2016-06-02T18:36:35Z")

</div>

using the elasticache\_subnet\_group module and trying to populate the list of subnet ids using a variable but its only populating one of the ids. Here’s the task: name: create elasticache subnet group elasticache\_subne…

---

## [Bug in shell module? Wrong syntax not noticed](https://forum.ansible.com/t/bug-in-shell-module-wrong-syntax-not-noticed/21633)

<div class="topic-metadata">

**Author:** [@Johannes\_Kastl](https://forum.ansible.com/u/Johannes_Kastl)\
**Replies:** 4\
**Last updated:** [June 2, 2016, 5:36pm UTC](https://forum.ansible.com/t/bug-in-shell-module-wrong-syntax-not-noticed/21633 "2016-06-02T17:36:13Z")

</div>

Dear all, I stumbled upon this code, because it was not idempotent and reported as changed each time I ran the playbook: - name: "copy file" shell: "cp /some/path/to/a/file.txt /home/foobar/some/other/path" args…

---

## [Connection refused when sending mail with ansible](https://forum.ansible.com/t/connection-refused-when-sending-mail-with-ansible/21642)

<div class="topic-metadata">

**Author:** [@Colin\_MacKenzie\_III](https://forum.ansible.com/u/Colin_MacKenzie_III)\
**Replies:** 3\
**Last updated:** [June 2, 2016, 5:17pm UTC](https://forum.ansible.com/t/connection-refused-when-sending-mail-with-ansible/21642 "2016-06-02T17:17:06Z")

</div>

I am running ansible on a macbook pro. when i use mail Mod like this… name: Send Emails local\_action: mail subject=“Company WFI Report – Automated email” body=“This email is automated contact Colin Mackenzie if you …

---

## [Can update\_cache be used with package module?](https://forum.ansible.com/t/can-update-cache-be-used-with-package-module/21644)

<div class="topic-metadata">

**Author:** [@jdelaporte](https://forum.ansible.com/u/jdelaporte)\
**Replies:** 1\
**Last updated:** [June 2, 2016, 3:20pm UTC](https://forum.ansible.com/t/can-update-cache-be-used-with-package-module/21644 "2016-06-02T15:20:13Z")

</div>

I often have playbooks fail to install because my apt or yum cache is out of date. Can I use update\_cache: yes in the package module, or do I need to go back to using apt module and yum module? Thanks! Joanna

---

## [mysql\_db single\_transaction breaks import](https://forum.ansible.com/t/mysql-db-single-transaction-breaks-import/21643)

<div class="topic-metadata">

**Author:** [@Chris\_Short](https://forum.ansible.com/u/Chris_Short)\
**Replies:** 3\
**Last updated:** [June 2, 2016, 3:18pm UTC](https://forum.ansible.com/t/mysql-db-single-transaction-breaks-import/21643 "2016-06-02T15:18:01Z")

</div>

Out of curiosity I have a mysql\_db play in a playbook that imports a database into a pre-production environment. I added single\_transaction=yes to it and the import never fully finished. Not sure if this is a bug or some…

---

## [running a python script through Ansible](https://forum.ansible.com/t/running-a-python-script-through-ansible/21640)

<div class="topic-metadata">

**Author:** [@shreya\_mittal](https://forum.ansible.com/u/shreya_mittal)\
**Replies:** 1\
**Last updated:** [June 2, 2016, 2:06pm UTC](https://forum.ansible.com/t/running-a-python-script-through-ansible/21640 "2016-06-02T14:06:14Z")

</div>

Hello Friends, I am a bit stuck in proceeding with ansible. I would like to be guided for how Can I run a python script using Ansible. As far as i understood we are supposed to make an ansible module and then use it in…

---

## [Running a Python Script using Ansible](https://forum.ansible.com/t/running-a-python-script-using-ansible/21641)

<div class="topic-metadata">

**Author:** [@shreya\_mittal](https://forum.ansible.com/u/shreya_mittal)\
**Replies:** 0\
**Last updated:** [June 2, 2016, 9:15am UTC](https://forum.ansible.com/t/running-a-python-script-using-ansible/21641 "2016-06-02T09:15:12Z")

</div>

Hello Friends , I have a python Flask Script and I would like to run the script using ansible. Or lets say , I would like to sync ansible with that script. It will be really kind of you if you can help me with the abov…

---

## [Handling status codes in get\_url module](https://forum.ansible.com/t/handling-status-codes-in-get-url-module/21639)

<div class="topic-metadata">

**Author:** [@Tobias\_Carlsson](https://forum.ansible.com/u/Tobias_Carlsson)\
**Replies:** 0\
**Last updated:** [June 2, 2016, 7:58am UTC](https://forum.ansible.com/t/handling-status-codes-in-get-url-module/21639 "2016-06-02T07:58:41Z")

</div>

Code to talk about https://github.com/tecarlsson/ansible-modules-core/commit/8fb54c65d545417d515b35ecea1c5e63f0882eed The implementation is not superb, but it shows which status codes I would like to talk about. …

---

## [template substitution](https://forum.ansible.com/t/template-substitution/21623)

<div class="topic-metadata">

**Author:** [@Peter\_Gray](https://forum.ansible.com/u/Peter_Gray)\
**Replies:** 4\
**Last updated:** [June 2, 2016, 4:01am UTC](https://forum.ansible.com/t/template-substitution/21623 "2016-06-02T04:01:28Z")

</div>

If I have in a template file

---

## [Cloudformation module: output json](https://forum.ansible.com/t/cloudformation-module-output-json/21624)

<div class="topic-metadata">

**Author:** [@Tom\_De\_Blende](https://forum.ansible.com/u/Tom_De_Blende)\
**Replies:** 1\
**Last updated:** [June 2, 2016, 12:38am UTC](https://forum.ansible.com/t/cloudformation-module-output-json/21624 "2016-06-02T00:38:54Z")

</div>

Hi all, I am looking into deploying AWS environments using Cloudformation and Ansible. Since a little while, you can now check what effect changes in a Cloudformation template will have prior to deploying it using the A…

---

## [Unlock and Lock users across multiple machines](https://forum.ansible.com/t/unlock-and-lock-users-across-multiple-machines/21637)

<div class="topic-metadata">

**Author:** [@Alan\_Harkleroad1](https://forum.ansible.com/u/Alan_Harkleroad1)\
**Replies:** 5\
**Last updated:** [June 1, 2016, 6:34pm UTC](https://forum.ansible.com/t/unlock-and-lock-users-across-multiple-machines/21637 "2016-06-01T18:34:38Z")

</div>

Right now my system consists of 20 machines. When we make user accounts it locks them by default on creation with a default password they must change upon initial login. Instead of locking the same account on each syste…

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

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