# Latest

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

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

**Page:** 774

---

## [creating ec2 key and save the result to a file](https://forum.ansible.com/t/creating-ec2-key-and-save-the-result-to-a-file/21116)

<div class="topic-metadata">

**Author:** [@Tzach\_Livyatan1](https://forum.ansible.com/u/Tzach_Livyatan1)\
**Replies:** 2\
**Last updated:** [April 10, 2016, 6:44pm UTC](https://forum.ansible.com/t/creating-ec2-key-and-save-the-result-to-a-file/21116 "2016-04-10T18:44:32Z")

</div>

I’m trying to use ec2\_key module, creating a new key and save it to a file for future use. The first succeed, but I have problem saving to a .pem file: Look like ec2\_key.private\_key is not returned, but ec2\_key.fingerp…

---

## [Ziploader merged to devel. New features in progress](https://forum.ansible.com/t/ziploader-merged-to-devel-new-features-in-progress/21075)

<div class="topic-metadata">

**Author:** [@Toshio\_Kuratomi](https://forum.ansible.com/u/Toshio_Kuratomi)\
**Replies:** 2\
**Last updated:** [April 10, 2016, 4:21pm UTC](https://forum.ansible.com/t/ziploader-merged-to-devel-new-features-in-progress/21075 "2016-04-10T16:21:07Z")

</div>

I merged the first ziploader PR ( https://github.com/ansible/ansible/pull/15246 ) into devel this morning. So far, everything seems to be working. So that's one step.forward. There's a few other features that I wan…

---

## [How to create multiple virtual machines in azure using ansible](https://forum.ansible.com/t/how-to-create-multiple-virtual-machines-in-azure-using-ansible/19647)

<div class="topic-metadata">

**Author:** [@naveen.kumare36](https://forum.ansible.com/u/naveen.kumare36)\
**Replies:** 1\
**Last updated:** [April 10, 2016, 10:34am UTC](https://forum.ansible.com/t/how-to-create-multiple-virtual-machines-in-azure-using-ansible/19647 "2016-04-10T10:34:30Z")

</div>

I tried with the following playbook and its not working. Not sure what I am missing here. hosts: localhost connection: local gather\_facts: no vars\_files: - vars/azure.yml tasks: - name: create VM …

---

## [Fetch from Windows Server 2012 Fails Silently?](https://forum.ansible.com/t/fetch-from-windows-server-2012-fails-silently/21052)

<div class="topic-metadata">

**Author:** [@Jason\_Levitt](https://forum.ansible.com/u/Jason_Levitt)\
**Replies:** 2\
**Last updated:** [April 10, 2016, 10:02am UTC](https://forum.ansible.com/t/fetch-from-windows-server-2012-fails-silently/21052 "2016-04-10T10:02:41Z")

</div>

I’m using the Ansible “fetch” module to fetch a file from the remote Windows Server machine, but the file never arrives on the control machine (works when Linux is the remote machine though) Configuration: Control mach…

---

## [How to create a service on a windows 10 machine?](https://forum.ansible.com/t/how-to-create-a-service-on-a-windows-10-machine/21109)

<div class="topic-metadata">

**Author:** [@Mick\_st\_john](https://forum.ansible.com/u/Mick_st_john)\
**Replies:** 1\
**Last updated:** [April 9, 2016, 7:46pm UTC](https://forum.ansible.com/t/how-to-create-a-service-on-a-windows-10-machine/21109 "2016-04-09T19:46:25Z")

</div>

I am trying to create a service of type kernel on a remote windows 10 machine from a linux ansible controller machine. To create a service I’m using sc create type=kernel binpath=c:\\path command. Ansible playbook for cr…

---

## [Generating pretty HTML report from the list-tasks option.](https://forum.ansible.com/t/generating-pretty-html-report-from-the-list-tasks-option/21096)

<div class="topic-metadata">

**Author:** [@Stanley\_Kamithi](https://forum.ansible.com/u/Stanley_Kamithi)\
**Replies:** 1\
**Last updated:** [April 9, 2016, 7:41pm UTC](https://forum.ansible.com/t/generating-pretty-html-report-from-the-list-tasks-option/21096 "2016-04-09T19:41:43Z")

</div>

Is there a plugin that exists, or a feature in the works, where I can do something like this

---

## [Ansible seems to cache the target hosts](https://forum.ansible.com/t/ansible-seems-to-cache-the-target-hosts/21115)

<div class="topic-metadata">

**Author:** [@Ashish\_Nanotkar](https://forum.ansible.com/u/Ashish_Nanotkar)\
**Replies:** 0\
**Last updated:** [April 9, 2016, 5:00pm UTC](https://forum.ansible.com/t/ansible-seems-to-cache-the-target-hosts/21115 "2016-04-09T17:00:36Z")

</div>

When executed ansible playbook it does not have any effect on the hosts mentioned. I investigated with -vvv and found that it connects to another ec2 instance than intended. I the example below, I created a file “/home…

---

## [redhat\_subscription and pool ID](https://forum.ansible.com/t/redhat-subscription-and-pool-id/21114)

<div class="topic-metadata">

**Author:** [@Uwe\_Sauter](https://forum.ansible.com/u/Uwe_Sauter)\
**Replies:** 0\
**Last updated:** [April 9, 2016, 10:19am UTC](https://forum.ansible.com/t/redhat-subscription-and-pool-id/21114 "2016-04-09T10:19:07Z")

</div>

Hi, I'm trying to use redhat\_subscription to register and subscribe hosts by pool ID, not subscription name. Is this possible? As I have several subscriptions that overlap in some features I'd like to be explicit about…

---

## [Possible bug in mount module or docs](https://forum.ansible.com/t/possible-bug-in-mount-module-or-docs/21113)

<div class="topic-metadata">

**Author:** [@Joshua\_J\_Kugler](https://forum.ansible.com/u/Joshua_J_Kugler)\
**Replies:** 0\
**Last updated:** [April 9, 2016, 6:33am UTC](https://forum.ansible.com/t/possible-bug-in-mount-module-or-docs/21113 "2016-04-09T06:33:34Z")

</div>

I am passing in these options to the mount module: - name: Create fstab entries for custom mount points, and mount mount: fstype: "{{ item.type }}" name: "{{ item.name }}" src: "{{ item.src }}" pa…

---

## [Run .exe on windows command prompt](https://forum.ansible.com/t/run-exe-on-windows-command-prompt/19367)

<div class="topic-metadata">

**Author:** [@Jugal\_Porwal](https://forum.ansible.com/u/Jugal_Porwal)\
**Replies:** 5\
**Last updated:** [April 8, 2016, 7:32pm UTC](https://forum.ansible.com/t/run-exe-on-windows-command-prompt/19367 "2016-04-08T19:32:12Z")

</div>

Hi, I want to run a .exe on windows command prompt from my centos control node. The command is as follows : wrapper.exe -t wrapper.conf Initially i tried to atleast run the .exe without any args using my following pla…

---

## [ansible 2.0.2 check if a variable contain a specific value](https://forum.ansible.com/t/ansible-2-0-2-check-if-a-variable-contain-a-specific-value/21101)

<div class="topic-metadata">

**Author:** [@imed\_khaskhoussi](https://forum.ansible.com/u/imed_khaskhoussi)\
**Replies:** 1\
**Last updated:** [April 8, 2016, 4:42pm UTC](https://forum.ansible.com/t/ansible-2-0-2-check-if-a-variable-contain-a-specific-value/21101 "2016-04-08T16:42:18Z")

</div>

i want to check if {{variable1}} contain a specific word for example i want to check if this variable contain the word “SNAPSHOT” or “RELEASE”. is there a command can do that ? thank you in advance .

---

## [pip version of Ansible out of date. rax\_dns\_record Module](https://forum.ansible.com/t/pip-version-of-ansible-out-of-date-rax-dns-record-module/21108)

<div class="topic-metadata">

**Author:** [@Reedik\_Tuuling](https://forum.ansible.com/u/Reedik_Tuuling)\
**Replies:** 1\
**Last updated:** [April 8, 2016, 4:38pm UTC](https://forum.ansible.com/t/pip-version-of-ansible-out-of-date-rax-dns-record-module/21108 "2016-04-08T16:38:10Z")

</div>

I tried to use the rax\_dns\_record module with the “overwrite” parameter and it tells me that: “unsupported parameter for module: overwrite” If you take a look at the history of that module you can see that the feature h…

---

## [Proposal for fixing playbooks with dynamic include problems](https://forum.ansible.com/t/proposal-for-fixing-playbooks-with-dynamic-include-problems/20861)

<div class="topic-metadata">

**Author:** [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Replies:** 23\
**Last updated:** [April 8, 2016, 3:37pm UTC](https://forum.ansible.com/t/proposal-for-fixing-playbooks-with-dynamic-include-problems/20861 "2016-04-08T15:37:41Z")

</div>

Hi all, we’ve been working on a solution over the last few weeks to address the problems introduced by making includes dynamic in 2.0, and would like some community feedback on my ideas. As you’re all probably well awar…

---

## [Nested loop in template](https://forum.ansible.com/t/nested-loop-in-template/21103)

<div class="topic-metadata">

**Author:** [@David\_Goodall](https://forum.ansible.com/u/David_Goodall)\
**Replies:** 1\
**Last updated:** [April 8, 2016, 2:00pm UTC](https://forum.ansible.com/t/nested-loop-in-template/21103 "2016-04-08T14:00:09Z")

</div>

Hi, I’m trying to create an Apache vhost config file using a legacy yaml file that I can’t change. I’m nearly there, but the nested loop in the template doesn’t work as expected. Here’s the yaml: sites: site1.com: v…

---

## [win\_lineinfile backrefs not working](https://forum.ansible.com/t/win-lineinfile-backrefs-not-working/21079)

<div class="topic-metadata">

**Author:** [@dr1](https://forum.ansible.com/u/dr1)\
**Replies:** 2\
**Last updated:** [April 8, 2016, 1:01pm UTC](https://forum.ansible.com/t/win-lineinfile-backrefs-not-working/21079 "2016-04-08T13:01:53Z")

</div>

Hello great people of ansible persuasion, I’m trying to do some win\_lineinfile with backrefs. Being a core module, it could be I’m doing it wrong, so here it goes - let me know if you have any clue: win\_lineinfile: de…

---

## [authorized\_key module with delegate\_to](https://forum.ansible.com/t/authorized-key-module-with-delegate-to/21107)

<div class="topic-metadata">

**Author:** [@deorene](https://forum.ansible.com/u/deorene)\
**Replies:** 0\
**Last updated:** [April 8, 2016, 11:21am UTC](https://forum.ansible.com/t/authorized-key-module-with-delegate-to/21107 "2016-04-08T11:21:29Z")

</div>

Hi, In my playbook I copy the ssh public key to my local ansible master. name: fetch pub key from server fetch: src=/home/user/.ssh/id\_rsa.pub dest=/tmp/keys/{{ inventory\_hostname\_short }}\_id\_rsa.pub flat=yes Next I…

---

## [Variable precedence](https://forum.ansible.com/t/variable-precedence/21105)

<div class="topic-metadata">

**Author:** [@Michal\_Siska](https://forum.ansible.com/u/Michal_Siska)\
**Replies:** 0\
**Last updated:** [April 8, 2016, 10:29am UTC](https://forum.ansible.com/t/variable-precedence/21105 "2016-04-08T10:29:37Z")

</div>

I’m trying to understand variable precedence in Ansible - more exactly the part about host\_vars and group\_vars in inventory or playbook. My layout looks like this: production/ ├── inventory (alfa, beta and gamma hosts) …

---

## [Throw exception when excute os\_image openstack module](https://forum.ansible.com/t/throw-exception-when-excute-os-image-openstack-module/21104)

<div class="topic-metadata">

**Author:** [@jaycoolzhao](https://forum.ansible.com/u/jaycoolzhao)\
**Replies:** 0\
**Last updated:** [April 8, 2016, 9:42am UTC](https://forum.ansible.com/t/throw-exception-when-excute-os-image-openstack-module/21104 "2016-04-08T09:42:51Z")

</div>

Hi, I’m confused why os\_image throw this exception. $ ansible-playbook -i hosts openstack.yml -c local -vvv No config file found; using defaults 1 plays in openstack.yml PLAY \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [trouble use file lookup as variable](https://forum.ansible.com/t/trouble-use-file-lookup-as-variable/21102)

<div class="topic-metadata">

**Author:** [@Louis1](https://forum.ansible.com/u/Louis1)\
**Replies:** 0\
**Last updated:** [April 8, 2016, 8:43am UTC](https://forum.ansible.com/t/trouble-use-file-lookup-as-variable/21102 "2016-04-08T08:43:40Z")

</div>

I am having trouble using the file lookup plugin with a playbook that use two roles: roles: { role: role\_1 } { role: role\_Z } “role\_1” sets a variable using the lookup plugin in: role\_1/vars/main.yml: file\_contents:…

---

## [Ansible dynamic inventory pegs CPU and RAM reading in a 54K JSON object](https://forum.ansible.com/t/ansible-dynamic-inventory-pegs-cpu-and-ram-reading-in-a-54k-json-object/20431)

<div class="topic-metadata">

**Author:** [@Aleksey\_Tsalolikhin](https://forum.ansible.com/u/Aleksey_Tsalolikhin)\
**Replies:** 2\
**Last updated:** [April 8, 2016, 12:35am UTC](https://forum.ansible.com/t/ansible-dynamic-inventory-pegs-cpu-and-ram-reading-in-a-54k-json-object/20431 "2016-04-08T00:35:48Z")

</div>

Hi, I’m trying to feed Ansible 2.0.0.2 dynamic inventory from an Enterprise CMDB system. The Enterprise CM system already has lots of groups defined, I want to be able reference them through Ansible, so I’m trying to l…

---

## [redhat\_subscription in 2.0](https://forum.ansible.com/t/redhat-subscription-in-2-0/21098)

<div class="topic-metadata">

**Author:** [@Jamie\_Duncan](https://forum.ansible.com/u/Jamie_Duncan)\
**Replies:** 0\
**Last updated:** [April 7, 2016, 7:45pm UTC](https://forum.ansible.com/t/redhat-subscription-in-2-0/21098 "2016-04-07T19:45:26Z")

</div>

I have the following task that worked in 1.9.4 on Fedora 23 name: Register System with RHN Subscription Manager redhat\_subscription: state=present username={{ rhn\_user }} password={{ rhn\_pass }} autosubscribe=true …

---

## [Add a new filter 'range'](https://forum.ansible.com/t/add-a-new-filter-range/21092)

<div class="topic-metadata">

**Author:** [@Guillaume\_Abrioux](https://forum.ansible.com/u/Guillaume_Abrioux)\
**Replies:** 6\
**Last updated:** [April 7, 2016, 6:08pm UTC](https://forum.ansible.com/t/add-a-new-filter-range/21092 "2016-04-07T18:08:45Z")

</div>

Hello, I would like to use nested loop with two array. One predefined array \[ 'one', 'two', 'three', 'four' \] One dynamically generated like \[ 1, 2, 3, 4 \] I have some issue to build the second one. I have in mind fu…

---

## ["work in progress" now supported for pull requests](https://forum.ansible.com/t/work-in-progress-now-supported-for-pull-requests/21097)

<div class="topic-metadata">

**Author:** [@Greg\_DeKoenigsberg1](https://forum.ansible.com/u/Greg_DeKoenigsberg1)\
**Replies:** 0\
**Last updated:** [April 7, 2016, 4:39pm UTC](https://forum.ansible.com/t/work-in-progress-now-supported-for-pull-requests/21097 "2016-04-07T16:39:11Z")

</div>

You know how sometimes you want to get a pull request out there so people know you're actually working on something, but you don't want the bot hassling you about it? Well, now you can just prepend \[WIP\] to the title …

---

## [AWS retries upon throttling errors](https://forum.ansible.com/t/aws-retries-upon-throttling-errors/21095)

<div class="topic-metadata">

**Author:** [@Joel\_Thompson](https://forum.ansible.com/u/Joel_Thompson)\
**Replies:** 1\
**Last updated:** [April 7, 2016, 4:32pm UTC](https://forum.ansible.com/t/aws-retries-upon-throttling-errors/21095 "2016-04-07T16:32:14Z")

</div>

Hi everybody, I’ve seen a number of Ansible module PRs lately which add retries upon throttling errors, and some have been done in different ways. For example, I just submitted https://github.com/ansible/ansible-modules…

---

## [How to get host/group name for dynamic inventory?](https://forum.ansible.com/t/how-to-get-host-group-name-for-dynamic-inventory/21072)

<div class="topic-metadata">

**Author:** [@Souren\_Abeghyan](https://forum.ansible.com/u/Souren_Abeghyan)\
**Replies:** 2\
**Last updated:** [April 7, 2016, 2:36pm UTC](https://forum.ansible.com/t/how-to-get-host-group-name-for-dynamic-inventory/21072 "2016-04-07T14:36:10Z")

</div>

Having ec2 dynamic inventory and pattern in hosts: - hosts: \[tag\_Name\_m\*\] which variable holds the full host/tag/group name?

---

## [PlaybookInclude does not support vars\_files](https://forum.ansible.com/t/playbookinclude-does-not-support-vars-files/21088)

<div class="topic-metadata">

**Author:** [@Saravanan\_KR](https://forum.ansible.com/u/Saravanan_KR)\
**Replies:** 1\
**Last updated:** [April 7, 2016, 1:42pm UTC](https://forum.ansible.com/t/playbookinclude-does-not-support-vars-files/21088 "2016-04-07T13:42:09Z")

</div>

Hello, In Ansible 2.0, PlaybookInclude \[1\] does not support vars\_files attribute. But vars attribute is supported. Is this a feature change from 1.9 to 2.0 or is it a mistake? Sample Code: vars\_files.yml \`

---

## [haw to save the output of a script in a file ansible 2.0.2](https://forum.ansible.com/t/haw-to-save-the-output-of-a-script-in-a-file-ansible-2-0-2/21087)

<div class="topic-metadata">

**Author:** [@imed\_khaskhoussi](https://forum.ansible.com/u/imed_khaskhoussi)\
**Replies:** 2\
**Last updated:** [April 7, 2016, 10:31am UTC](https://forum.ansible.com/t/haw-to-save-the-output-of-a-script-in-a-file-ansible-2-0-2/21087 "2016-04-07T10:31:09Z")

</div>

down votefavorite | i want to save the output of a command in a file , i tried to use : \<br\>- command: ./script1 \>\> file.txt 2\>&1 \<br\> but it’s give me an empty file. Is there any other method to save the …

---

## [Could not find a version that satisfies the requirement mysql-connector-python](https://forum.ansible.com/t/could-not-find-a-version-that-satisfies-the-requirement-mysql-connector-python/21086)

<div class="topic-metadata">

**Author:** [@schaf.mh](https://forum.ansible.com/u/schaf.mh)\
**Replies:** 0\
**Last updated:** [April 7, 2016, 7:03am UTC](https://forum.ansible.com/t/could-not-find-a-version-that-satisfies-the-requirement-mysql-connector-python/21086 "2016-04-07T07:03:51Z")

</div>

HI, I’m new in linux, django and ansible and I’m playing around with django and ansible and found an old playbook entry. name: djangoInst | Install requirements pip: requirements=/home/abc/req/requirements.txt extra\_ar…

---

## [Running the Following Playbook syntax appears to be correct but getting following ERROR!-  ERROR! 'blockinfile' is not a valid attribute for a Play](https://forum.ansible.com/t/running-the-following-playbook-syntax-appears-to-be-correct-but-getting-following-error-error-blockinfile-is-not-a-valid-attribute-for-a-play/21085)

<div class="topic-metadata">

**Author:** [@Karthik\_Veeragoni](https://forum.ansible.com/u/Karthik_Veeragoni)\
**Replies:** 0\
**Last updated:** [April 7, 2016, 7:03am UTC](https://forum.ansible.com/t/running-the-following-playbook-syntax-appears-to-be-correct-but-getting-following-error-error-blockinfile-is-not-a-valid-attribute-for-a-play/21085 "2016-04-07T07:03:40Z")

</div>

\` ERROR! 'blockinfile' is not a valid attribute for a Play The error appears to have been in '/root/playbook1.yml': line 2, column 3, but may be elsewhere in the file depending on the exact syntax problem. The offendi…

---

## [Is there a way to find out network speed and bandwidth using ansible](https://forum.ansible.com/t/is-there-a-way-to-find-out-network-speed-and-bandwidth-using-ansible/21076)

<div class="topic-metadata">

**Author:** [@Deepa\_Yr](https://forum.ansible.com/u/Deepa_Yr)\
**Replies:** 2\
**Last updated:** [April 7, 2016, 5:44am UTC](https://forum.ansible.com/t/is-there-a-way-to-find-out-network-speed-and-bandwidth-using-ansible/21076 "2016-04-07T05:44:07Z")

</div>

Hi I want to check machine is provisioned with proper specifications or not. As part of that I need to check the speed and bandwidth. Setup does not give any info on this., ethtool eth0 Settings for eth0: Link detect…

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

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