# Archives

**URL:** https://forum.ansible.com/c/archives/31.md?page=539

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

**Page:** 540

---

## [How to save stdout\_lines to a file without losing the newlines](https://forum.ansible.com/t/how-to-save-stdout-lines-to-a-file-without-losing-the-newlines/22973)

<div class="topic-metadata">

**Author:** [@actionmystique](https://forum.ansible.com/u/actionmystique)\
**Replies:** 8\
**Last updated:** [November 8, 2016, 3:10pm UTC](https://forum.ansible.com/t/how-to-save-stdout-lines-to-a-file-without-losing-the-newlines/22973 "2016-11-08T15:10:13Z")

</div>

Hi everyone, Considering a variable {{ table.stdout\_lines \]\] containing the following when printing it out on the terminal: TASK \[save\_table : Printing the returned table\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [Unreachable host breaks a template?](https://forum.ansible.com/t/unreachable-host-breaks-a-template/22967)

<div class="topic-metadata">

**Author:** [@autogun](https://forum.ansible.com/u/autogun)\
**Replies:** 3\
**Last updated:** [November 8, 2016, 2:56pm UTC](https://forum.ansible.com/t/unreachable-host-breaks-a-template/22967 "2016-11-08T14:56:47Z")

</div>

Hi all, I’m building an HTML report based on a template that looks something like this: \` {% for i in ansible\_play\_hosts %} {{ i }} {{ hostvars\[i\].ansible\_os\_name }} {{ hostvars\[i\].ansible\_distribution }} {{ hostvar…

---

## [Accessing "Step" option from the Ansible API 2.0](https://forum.ansible.com/t/accessing-step-option-from-the-ansible-api-2-0/22979)

<div class="topic-metadata">

**Author:** [@Evelio\_VILA](https://forum.ansible.com/u/Evelio_VILA)\
**Replies:** 1\
**Last updated:** [November 8, 2016, 6:14am UTC](https://forum.ansible.com/t/accessing-step-option-from-the-ansible-api-2-0/22979 "2016-11-08T06:14:40Z")

</div>

Hello list! Using the Ansible API 2.x what would be the easiest way to pass the “–step” option to the PlaybookExecutor call? eg from: PlaybookExecutor(playbooks=playbooks, inventory=inventory, variable\_manager=variab…

---

## [Yum install latest should take into consideration of release numbers](https://forum.ansible.com/t/yum-install-latest-should-take-into-consideration-of-release-numbers/22977)

<div class="topic-metadata">

**Author:** [@Steven\_Truong](https://forum.ansible.com/u/Steven_Truong)\
**Replies:** 0\
**Last updated:** [November 8, 2016, 12:35am UTC](https://forum.ansible.com/t/yum-install-latest-should-take-into-consideration-of-release-numbers/22977 "2016-11-08T00:35:02Z")

</div>

Hi all, I have a situation where I have to resort to using the shell instead of yum module: \[root@qa-s1-sm1 ansible\]# ansible localhost -c local -m yum -a “name=myrpm-db1.5.1 state=latest enablerepo=repo-Snapshots disa…

---

## [win\_regedit  "found a duplicate dict key"](https://forum.ansible.com/t/win-regedit-found-a-duplicate-dict-key/22974)

<div class="topic-metadata">

**Author:** [@Todd\_Schaal](https://forum.ansible.com/u/Todd_Schaal)\
**Replies:** 2\
**Last updated:** [November 7, 2016, 9:06pm UTC](https://forum.ansible.com/t/win-regedit-found-a-duplicate-dict-key/22974 "2016-11-07T21:06:12Z")

</div>

I get the warning “found a duplicate dict key” when trying to modify multiple values under a single key. What’s the appropriate way to do this? I’ve tried using separate tasks or using a like as below, but I still get th…

---

## [Windows wait\_for module](https://forum.ansible.com/t/windows-wait-for-module/22821)

<div class="topic-metadata">

**Author:** [@paul.northrop.oz](https://forum.ansible.com/u/paul.northrop.oz)\
**Replies:** 5\
**Last updated:** [November 7, 2016, 8:33pm UTC](https://forum.ansible.com/t/windows-wait-for-module/22821 "2016-11-07T20:33:57Z")

</div>

Hi, I have developed a Windows version of the wait\_for module that mimics part of functionality of the Linux wait\_for module. Currently my module is capable of the following: wait for the existence of a file (path p…

---

## [Ansible Loops](https://forum.ansible.com/t/ansible-loops/20738)

<div class="topic-metadata">

**Author:** [@a\_akin](https://forum.ansible.com/u/a_akin)\
**Replies:** 4\
**Last updated:** [November 7, 2016, 5:40pm UTC](https://forum.ansible.com/t/ansible-loops/20738 "2016-11-07T17:40:41Z")

</div>

I am trying to update several values under a particular Registry Key name for example: win\_regedit: key: HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\WindowsUpdate\\AU value: DetectionFrequency data: 00000001 datatype: …

---

## [Pattern First after intersection](https://forum.ansible.com/t/pattern-first-after-intersection/22961)

<div class="topic-metadata">

**Author:** [@Edgardo\_Vega](https://forum.ansible.com/u/Edgardo_Vega)\
**Replies:** 5\
**Last updated:** [November 7, 2016, 5:08pm UTC](https://forum.ansible.com/t/pattern-first-after-intersection/22961 "2016-11-07T17:08:19Z")

</div>

I can’t figure out how to create the correct pattern. Currently I am about to get a list of three zookeeper boxes from the pattern tag\_zookeeper:&tag\_env\_test.What I need is to get the first (really just any 1) one that …

---

## [First Post for middleware engineer](https://forum.ansible.com/t/first-post-for-middleware-engineer/22971)

<div class="topic-metadata">

**Author:** [@ackwdw123](https://forum.ansible.com/u/ackwdw123)\
**Replies:** 1\
**Last updated:** [November 7, 2016, 3:37pm UTC](https://forum.ansible.com/t/first-post-for-middleware-engineer/22971 "2016-11-07T15:37:40Z")

</div>

Hi everyone, I am a middleware engineer and am looking at possibilities to use Ansible for extremely complex middleware use-cases. I have read over some of the various projects at the Ansible Galaxy site. I wanted to ask…

---

## [How to get a sorted list of the last n files?](https://forum.ansible.com/t/how-to-get-a-sorted-list-of-the-last-n-files/22953)

<div class="topic-metadata">

**Author:** [@Greg\_Langford](https://forum.ansible.com/u/Greg_Langford)\
**Replies:** 2\
**Last updated:** [November 7, 2016, 8:42am UTC](https://forum.ansible.com/t/how-to-get-a-sorted-list-of-the-last-n-files/22953 "2016-11-07T08:42:38Z")

</div>

Good Afternoon All, I am looking for a way to get a list of files in a directory sorted by name. At the moment I am using the command module to run ls on the remote system. Is it possible with the find module to sort …

---

## [Problem using results of 'find' module...](https://forum.ansible.com/t/problem-using-results-of-find-module/22969)

<div class="topic-metadata">

**Author:** [@Will\_Dennis](https://forum.ansible.com/u/Will_Dennis)\
**Replies:** 2\
**Last updated:** [November 7, 2016, 1:41am UTC](https://forum.ansible.com/t/problem-using-results-of-find-module/22969 "2016-11-07T01:41:40Z")

</div>

Hi all, Trying to use the ‘find’ module to collect a list of files that I will then operate on. To test this out, I wrote a simple playbook as follows: name: test playbook #remote\_user: root hosts: localhost tasks: …

---

## [How to clone oracle database using ansible](https://forum.ansible.com/t/how-to-clone-oracle-database-using-ansible/22963)

<div class="topic-metadata">

**Author:** [@Shaikh\_Abdul](https://forum.ansible.com/u/Shaikh_Abdul)\
**Replies:** 4\
**Last updated:** [November 6, 2016, 10:54pm UTC](https://forum.ansible.com/t/how-to-clone-oracle-database-using-ansible/22963 "2016-11-06T22:54:05Z")

</div>

Hi All, Please advise, How to clone oracle database using ansible Regards, Abdul

---

## [Newbie dev wants to contribute](https://forum.ansible.com/t/newbie-dev-wants-to-contribute/22966)

<div class="topic-metadata">

**Author:** [@David\_Fozo](https://forum.ansible.com/u/David_Fozo)\
**Replies:** 3\
**Last updated:** [November 6, 2016, 5:01pm UTC](https://forum.ansible.com/t/newbie-dev-wants-to-contribute/22966 "2016-11-06T17:01:22Z")

</div>

Dear devs, I came from the community page. I was wondering how to help developing Ansible. Is there a ticket system somewhere? With what should I start with? Thank you, David

---

## [How to use include\_vars  with "name=" in playbook?](https://forum.ansible.com/t/how-to-use-include-vars-with-name-in-playbook/22960)

<div class="topic-metadata">

**Author:** [@LXC-dev\_Koha-Lappi](https://forum.ansible.com/u/LXC-dev_Koha-Lappi)\
**Replies:** 6\
**Last updated:** [November 6, 2016, 2:04am UTC](https://forum.ansible.com/t/how-to-use-include-vars-with-name-in-playbook/22960 "2016-11-06T02:04:24Z")

</div>

Hi Ansible-project, I’m trying to use “include\_vars” in my playbook, but have some problems understanding how should it be used. Here is the relevant part of the playbook in role “myrole” tasks: (partial) file: roles/…

---

## [Ansible 2.1.3 FINAL has been released!](https://forum.ansible.com/t/ansible-2-1-3-final-has-been-released/22964)

<div class="topic-metadata">

**Author:** [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Replies:** 2\
**Last updated:** [November 5, 2016, 2:13am UTC](https://forum.ansible.com/t/ansible-2-1-3-final-has-been-released/22964 "2016-11-05T02:13:00Z")

</div>

Hi all, we’re very happy to announce that Ansible 2.1.3 has been released! This release fixes many bugs, including the two CVE-related bugs also fixed in the 2.2.0 release: Security fix for CVE-2016-8628 - Command inj…

---

## [Patch Recap -- Can we access the PLAY RECAP data?](https://forum.ansible.com/t/patch-recap-can-we-access-the-play-recap-data/22947)

<div class="topic-metadata">

**Author:** [@John\_Leo\_Huetter](https://forum.ansible.com/u/John_Leo_Huetter)\
**Replies:** 1\
**Last updated:** [November 4, 2016, 6:56pm UTC](https://forum.ansible.com/t/patch-recap-can-we-access-the-play-recap-data/22947 "2016-11-04T18:56:26Z")

</div>

Hello, I am running a playbook and would like to know the name of the object where I can access the PLAY RECAP statuses/return code. For example here: PLAY RECAP \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [How to clone oracle database using ansible](https://forum.ansible.com/t/how-to-clone-oracle-database-using-ansible/22965)

<div class="topic-metadata">

**Author:** [@Shaikh\_Abdul](https://forum.ansible.com/u/Shaikh_Abdul)\
**Replies:** 0\
**Last updated:** [November 4, 2016, 5:29pm UTC](https://forum.ansible.com/t/how-to-clone-oracle-database-using-ansible/22965 "2016-11-04T17:29:50Z")

</div>

Hi, Please advise, How to clone oracle database using ansible

---

## [Module management meeting: Wednesday 9 November, 1900 UTC](https://forum.ansible.com/t/module-management-meeting-wednesday-9-november-1900-utc/22962)

<div class="topic-metadata">

**Author:** [@Greg\_DeKoenigsberg1](https://forum.ansible.com/u/Greg_DeKoenigsberg1)\
**Replies:** 0\
**Last updated:** [November 4, 2016, 4:44pm UTC](https://forum.ansible.com/t/module-management-meeting-wednesday-9-november-1900-utc/22962 "2016-11-04T16:44:47Z")

</div>

We've tried to set this meeting up a couple of times, so hoping that third time is the charm. :slight\_smile: This meeting is to clarify the proposal for management of our ever-growing set of Ansible modules. If you ar…

---

## [Hi, why can't I post?](https://forum.ansible.com/t/hi-why-cant-i-post/22959)

<div class="topic-metadata">

**Author:** [@LXC-dev\_Koha-Lappi](https://forum.ansible.com/u/LXC-dev_Koha-Lappi)\
**Replies:** 2\
**Last updated:** [November 4, 2016, 2:27pm UTC](https://forum.ansible.com/t/hi-why-cant-i-post/22959 "2016-11-04T14:27:07Z")

</div>

I joined this group some time ago, but can not post, why? -jukka PS. Just testing if this post gets thru :wink:

---

## [letsencrypt module behaviour](https://forum.ansible.com/t/letsencrypt-module-behaviour/22958)

<div class="topic-metadata">

**Author:** [@Tom\_Paine1](https://forum.ansible.com/u/Tom_Paine1)\
**Replies:** 0\
**Last updated:** [November 4, 2016, 12:44pm UTC](https://forum.ansible.com/t/letsencrypt-module-behaviour/22958 "2016-11-04T12:44:28Z")

</div>

Searching the group for letsencrypt produces zero results, so I wonder if this might help people: Trying to understand the functioning of the LE module - there are some oddities. The steps for LE are described in the d…

---

## [Using ansible for software deployments – are we doing it right?](https://forum.ansible.com/t/using-ansible-for-software-deployments-are-we-doing-it-right/22941)

<div class="topic-metadata">

**Author:** [@fredsted](https://forum.ansible.com/u/fredsted)\
**Replies:** 6\
**Last updated:** [November 4, 2016, 11:25am UTC](https://forum.ansible.com/t/using-ansible-for-software-deployments-are-we-doing-it-right/22941 "2016-11-04T11:25:43Z")

</div>

Hi, We are using ansible to provision new servers, as well as deploy new code on those servers. We run the same playbook when provisioning a new server and deploying code (we just run it on all servers) The whole proce…

---

## [Openstack Ansible - keystone Ensure Service tenant error "http.GatewayTimeout \\ndebug3: mux\_client\_read\_packet: read header failed: Broken pipe"](https://forum.ansible.com/t/openstack-ansible-keystone-ensure-service-tenant-error-http-gatewaytimeout-ndebug3-mux-client-read-packet-read-header-failed-broken-pipe/21655)

<div class="topic-metadata">

**Author:** [@Abhijeet\_Karve](https://forum.ansible.com/u/Abhijeet_Karve)\
**Replies:** 1\
**Last updated:** [November 4, 2016, 9:42am UTC](https://forum.ansible.com/t/openstack-ansible-keystone-ensure-service-tenant-error-http-gatewaytimeout-ndebug3-mux-client-read-packet-read-header-failed-broken-pipe/21655 "2016-11-04T09:42:20Z")

</div>

Dear All, We can not create keystone service tenant with OSA liberty, Getting an error “Max request retrieve Failed”. Log is as below:

---

## [Force another host to fail upon task failure?](https://forum.ansible.com/t/force-another-host-to-fail-upon-task-failure/22957)

<div class="topic-metadata">

**Author:** [@Cody\_John](https://forum.ansible.com/u/Cody_John)\
**Replies:** 0\
**Last updated:** [November 4, 2016, 2:50am UTC](https://forum.ansible.com/t/force-another-host-to-fail-upon-task-failure/22957 "2016-11-04T02:50:04Z")

</div>

I am building a playbook which upgrades firmware on network switches. These switches are deployed in pairs, and the general procedure goes something like this: Remove B switch from service Upgrade/Reboot B switch Failo…

---

## [Ansible 2.2.0 Final has been released!](https://forum.ansible.com/t/ansible-2-2-0-final-has-been-released/22933)

<div class="topic-metadata">

**Author:** [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Replies:** 6\
**Last updated:** [November 3, 2016, 9:42pm UTC](https://forum.ansible.com/t/ansible-2-2-0-final-has-been-released/22933 "2016-11-03T21:42:25Z")

</div>

Hi all, we’re very happy to announce that Ansible 2.2.0 has been released! This release includes many new features and improvements (from the RC1 release announcement): Almost 200 new modules! Major performance im…

---

## [bastion host with python venv](https://forum.ansible.com/t/bastion-host-with-python-venv/22954)

<div class="topic-metadata">

**Author:** [@Jason\_Edelman](https://forum.ansible.com/u/Jason_Edelman)\
**Replies:** 1\
**Last updated:** [November 3, 2016, 7:47pm UTC](https://forum.ansible.com/t/bastion-host-with-python-venv/22954 "2016-11-03T19:47:23Z")

</div>

Hi, I need to use a bastion host that only uses Python virtual environments. This bastion is also not technically under Ansible inventory mgmt, but I’m open to having it in the inventory file if needed. What directives …

---

## [facts from set\_fact aren't working](https://forum.ansible.com/t/facts-from-set-fact-arent-working/22893)

<div class="topic-metadata">

**Author:** [@Dayton\_Jones](https://forum.ansible.com/u/Dayton_Jones)\
**Replies:** 2\
**Last updated:** [November 3, 2016, 5:44pm UTC](https://forum.ansible.com/t/facts-from-set-fact-arent-working/22893 "2016-11-03T17:44:21Z")

</div>

I’m setting 2 facts from a custom filter, which appears to be working, but when I go to use those facts in the playbook they aren’t there… set\_fact: ilom\_gw: “{{ ilom\_ip | ilom\_net(item.gateway,item.mask) }}” ilom\_mas…

---

## [Libcloud supports \>50 cloud providers… fallback and use it?](https://forum.ansible.com/t/libcloud-supports-50-cloud-providers-fallback-and-use-it/22930)

<div class="topic-metadata">

**Author:** [@Samuel\_Marks](https://forum.ansible.com/u/Samuel_Marks)\
**Replies:** 8\
**Last updated:** [November 3, 2016, 3:36pm UTC](https://forum.ansible.com/t/libcloud-supports-50-cloud-providers-fallback-and-use-it/22930 "2016-11-03T15:36:02Z")

</div>

Greetings Ansible! - I like your philosophy, although enjoy reinventing the wheel also :wink: as you can see from my \[open-source\] Fabric-centric DSL. However I don’t like being one of \[the only?\] that supports so many …

---

## [Ansible module ec2\_ami\_copy](https://forum.ansible.com/t/ansible-module-ec2-ami-copy/22899)

<div class="topic-metadata">

**Author:** [@Cvijan\_Uros](https://forum.ansible.com/u/Cvijan_Uros)\
**Replies:** 3\
**Last updated:** [November 3, 2016, 3:35pm UTC](https://forum.ansible.com/t/ansible-module-ec2-ami-copy/22899 "2016-11-03T15:35:17Z")

</div>

Hi all, I have a question regarding this module and creating encrypted image. I have the latest version of Ansible tower,asnible, boto. On centos 7, all installed from repositories. (i even tested it with ansible 2.2 r…

---

## [How to ignore a variable if it's not defined](https://forum.ansible.com/t/how-to-ignore-a-variable-if-its-not-defined/22942)

<div class="topic-metadata">

**Author:** [@Sam\_S](https://forum.ansible.com/u/Sam_S)\
**Replies:** 1\
**Last updated:** [November 3, 2016, 2:50pm UTC](https://forum.ansible.com/t/how-to-ignore-a-variable-if-its-not-defined/22942 "2016-11-03T14:50:41Z")

</div>

I have a var file with mount points that should be mounted. A common entry for /home goes on all servers. Some servers (e.g. web and perl) have their own set of mount points. I’m using Ansible pull and I build the elemen…

---

## [Changes to when and conditionals in Ansible 2.2](https://forum.ansible.com/t/changes-to-when-and-conditionals-in-ansible-2-2/22949)

<div class="topic-metadata">

**Author:** [@Dan\_Lang](https://forum.ansible.com/u/Dan_Lang)\
**Replies:** 4\
**Last updated:** [November 3, 2016, 1:53pm UTC](https://forum.ansible.com/t/changes-to-when-and-conditionals-in-ansible-2-2/22949 "2016-11-03T13:53:40Z")

</div>

I’m testing existing roles and playbooks against Ansible 2.2, and I’ve noticed that several roles that I have written that take advantage of “when: variable is defined” or “when: variable is undefined” in tasks no longer…

[Previous page](https://forum.ansible.com/c/archives/31.md?page=538)

[Next page](https://forum.ansible.com/c/archives/31.md?page=540)
