# Latest

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

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

**Page:** 712

---

## [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…

---

## [Wait for image pull and deployer pod](https://forum.ansible.com/t/wait-for-image-pull-and-deployer-pod/22952)

<div class="topic-metadata">

**Author:** [@Shaun\_Glass](https://forum.ansible.com/u/Shaun_Glass)\
**Replies:** 0\
**Last updated:** [November 3, 2016, 10:26am UTC](https://forum.ansible.com/t/wait-for-image-pull-and-deployer-pod/22952 "2016-11-03T10:26:06Z")

</div>

Good Day, Deploying Openshift Origin via Ansible and get the following errors : FAILED - RETRYING: TASK: openshift\_metrics : Wait for image pull and deployer pod (8 retries left). FAILED - RETRYING: TASK: openshift\_ho…

---

## [Unable to grant privileges using mysql\_user module](https://forum.ansible.com/t/unable-to-grant-privileges-using-mysql-user-module/22951)

<div class="topic-metadata">

**Author:** [@Mona\_Gopal](https://forum.ansible.com/u/Mona_Gopal)\
**Replies:** 0\
**Last updated:** [November 3, 2016, 5:57am UTC](https://forum.ansible.com/t/unable-to-grant-privileges-using-mysql-user-module/22951 "2016-11-03T05:57:00Z")

</div>

Hi, I am trying to create a mysql user ‘webaxnuser’ and grant privileges to it. Below is the task to do the same. - name: create use with all priv mysql\_user: login\_user=root login\_password=pass login\_host=188.16.2.3…

---

## [executable: /bin/bash not always respected](https://forum.ansible.com/t/executable-bin-bash-not-always-respected/22950)

<div class="topic-metadata">

**Author:** [@DigitalHermit](https://forum.ansible.com/u/DigitalHermit)\
**Replies:** 0\
**Last updated:** [November 2, 2016, 11:47pm UTC](https://forum.ansible.com/t/executable-bin-bash-not-always-respected/22950 "2016-11-02T23:47:35Z")

</div>

Hello all: First post here. I am a relatively new user to Ansible and find it quite powerful. Alas, I’ve run into some oddness that I haven’t been able to figure out. I have a playbook here: https://github.com/kwanlow…

---

## [failed\_when - multiple conditions](https://forum.ansible.com/t/failed-when-multiple-conditions/16773)

<div class="topic-metadata">

**Author:** [@profhase85](https://forum.ansible.com/u/profhase85)\
**Replies:** 5\
**Last updated:** [November 2, 2016, 10:06pm UTC](https://forum.ansible.com/t/failed-when-multiple-conditions/16773 "2016-11-02T22:06:45Z")

</div>

Hi, when trying to install keys to a java keystore I am using the following task: \` name: java install ssl certs shell: source /etc/profile.d/java.sh; cd $JAVA\_HOME/jre/lib/security; $JAVA\_HOME/bin/keytool -impor…

---

## [Retaining double-quotes in resulting file created from template](https://forum.ansible.com/t/retaining-double-quotes-in-resulting-file-created-from-template/22948)

<div class="topic-metadata">

**Author:** [@ZillaYT](https://forum.ansible.com/u/ZillaYT)\
**Replies:** 1\
**Last updated:** [November 2, 2016, 8:10pm UTC](https://forum.ansible.com/t/retaining-double-quotes-in-resulting-file-created-from-template/22948 "2016-11-02T20:10:46Z")

</div>

I have a template that does has this line host\_ip = "http://{{ ansible\_default\_ipv4.address }}" which results into a line in the dest file that has, for example \` host\_ip = http://10.10.10.10 \` However, how do modi…

---

## [commiter docs](https://forum.ansible.com/t/commiter-docs/22944)

<div class="topic-metadata">

**Author:** [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Replies:** 1\
**Last updated:** [November 2, 2016, 6:33pm UTC](https://forum.ansible.com/t/commiter-docs/22944 "2016-11-02T18:33:43Z")

</div>

Just to make sure everyone is on the same page and our process is clear to all, I’ve added a PR for ‘committer docs’ to the community repo. https://github.com/ansible/community/pull/134 ​

---

## [How to get fetch files from non-inventory servers ?](https://forum.ansible.com/t/how-to-get-fetch-files-from-non-inventory-servers/22937)

<div class="topic-metadata">

**Author:** [@kapil](https://forum.ansible.com/u/kapil)\
**Replies:** 4\
**Last updated:** [November 2, 2016, 6:00pm UTC](https://forum.ansible.com/t/how-to-get-fetch-files-from-non-inventory-servers/22937 "2016-11-02T18:00:50Z")

</div>

Hi all, How to get fetch files from non-inventory servers ? After searching in docs for 2 days, I cannot find any explicit scp/sftp module. This could be due to fact that ansible already does file transfers bw servers…

---

## [openstack instance creation](https://forum.ansible.com/t/openstack-instance-creation/22946)

<div class="topic-metadata">

**Author:** [@Javier\_Rojas](https://forum.ansible.com/u/Javier_Rojas)\
**Replies:** 0\
**Last updated:** [November 2, 2016, 5:15pm UTC](https://forum.ansible.com/t/openstack-instance-creation/22946 "2016-11-02T17:15:46Z")

</div>

Hi, this is my first playbook, so please be gentle (I’m pretty sure I’ve depleted my google searches for 1 month) I’m trying to create an image with the os\_server module $cat tasks/main.yml

---

## [A question about the S3 Lifecyle module](https://forum.ansible.com/t/a-question-about-the-s3-lifecyle-module/22879)

<div class="topic-metadata">

**Author:** [@Benjamin\_Copeland1](https://forum.ansible.com/u/Benjamin_Copeland1)\
**Replies:** 1\
**Last updated:** [November 2, 2016, 4:41pm UTC](https://forum.ansible.com/t/a-question-about-the-s3-lifecyle-module/22879 "2016-11-02T16:41:57Z")

</div>

Hello All, I want to be able to use the S3 lifecycle module to have exclude rules? I want to be able to delete most files in a bucket, but exclude a couple of folders. I want to be able to setup lifecycle rules for eve…

---

## [Issues with 'when' filter on with\_items loop](https://forum.ansible.com/t/issues-with-when-filter-on-with-items-loop/22945)

<div class="topic-metadata">

**Author:** [@Jon\_Langemak](https://forum.ansible.com/u/Jon_Langemak)\
**Replies:** 0\
**Last updated:** [November 2, 2016, 4:26pm UTC](https://forum.ansible.com/t/issues-with-when-filter-on-with-items-loop/22945 "2016-11-02T16:26:59Z")

</div>

Hi All, been tearing my hair out this AM on this one so I think Im just doing something wrong. Long story short, I have two lists in my playbook. One that contains a set of commands from a device and another that contain…

---

## [Need to import code from ansible module](https://forum.ansible.com/t/need-to-import-code-from-ansible-module/22938)

<div class="topic-metadata">

**Author:** [@Evelio\_VILA](https://forum.ansible.com/u/Evelio_VILA)\
**Replies:** 1\
**Last updated:** [November 2, 2016, 2:00pm UTC](https://forum.ansible.com/t/need-to-import-code-from-ansible-module/22938 "2016-11-02T14:00:15Z")

</div>

Hello list! So basically I need to import some python code from an Ansible custom module. I can’t put that code under the Ansible utils repo. What would be the best solution to accomplish this? From what I can see Ans…

---

## [Long running install task sometimes fails with ssh broken pipe issue](https://forum.ansible.com/t/long-running-install-task-sometimes-fails-with-ssh-broken-pipe-issue/22940)

<div class="topic-metadata">

**Author:** [@Deepa\_Yr](https://forum.ansible.com/u/Deepa_Yr)\
**Replies:** 2\
**Last updated:** [November 2, 2016, 1:10pm UTC](https://forum.ansible.com/t/long-running-install-task-sometimes-fails-with-ssh-broken-pipe-issue/22940 "2016-11-02T13:10:52Z")

</div>

Hi I have a task which installs my product. Installation takes couple of hours to complete. Sometimes the task completes fine. Sometimes it fails with broken pipe issue. {“failed”: true, “msg”: “SSH encountered an unkn…

---

## [Question on Ansible remote copy](https://forum.ansible.com/t/question-on-ansible-remote-copy/22934)

<div class="topic-metadata">

**Author:** [@GC-Ansible-User](https://forum.ansible.com/u/GC-Ansible-User)\
**Replies:** 1\
**Last updated:** [November 2, 2016, 12:49am UTC](https://forum.ansible.com/t/question-on-ansible-remote-copy/22934 "2016-11-02T00:49:39Z")

</div>

Have a question regarding remote to remote copy of files. I have a situation where I need to generate a file on one remote server. The file then has to be copied across multiple servers (the list of servers is specified…

---

## [Ansible 2.2 behaviour on includes.](https://forum.ansible.com/t/ansible-2-2-behaviour-on-includes/22936)

<div class="topic-metadata">

**Author:** [@ansible.user14](https://forum.ansible.com/u/ansible.user14)\
**Replies:** 1\
**Last updated:** [November 2, 2016, 12:16am UTC](https://forum.ansible.com/t/ansible-2-2-behaviour-on-includes/22936 "2016-11-02T00:16:45Z")

</div>

Hi, I have one script which includes another and now with ansible 2.2 it generates a fatal error: script 1: t.yml

---

## [Task fails when using ansible-pull, but works when running remotely?](https://forum.ansible.com/t/task-fails-when-using-ansible-pull-but-works-when-running-remotely/22913)

<div class="topic-metadata">

**Author:** [@Ben\_Sebborn](https://forum.ansible.com/u/Ben_Sebborn)\
**Replies:** 5\
**Last updated:** [November 1, 2016, 10:13pm UTC](https://forum.ansible.com/t/task-fails-when-using-ansible-pull-but-works-when-running-remotely/22913 "2016-11-01T22:13:27Z")

</div>

Hi We are using EC2, with auto scale. When a new server is built, we install ansible and initiate ansible-pull. This pulls down the playscript from our repo. It always gets stuck here: hosts: localhost name: Ins…

---

## [Juniper Network Automation using Ansible Tower Network Credentials](https://forum.ansible.com/t/juniper-network-automation-using-ansible-tower-network-credentials/22915)

<div class="topic-metadata">

**Author:** [@Lance\_Le\_Roux](https://forum.ansible.com/u/Lance_Le_Roux)\
**Replies:** 2\
**Last updated:** [November 1, 2016, 10:01pm UTC](https://forum.ansible.com/t/juniper-network-automation-using-ansible-tower-network-credentials/22915 "2016-11-01T22:01:55Z")

</div>

I am trying to use the network credentials in Ansible Tower however it doesn’t seem to work. I am using variable ANSIBLE\_NET\_USERNAME and ANSIBLE\_NET\_PASSWORD however they don’t exist when I run my template. playbook.ya…

---

## [error: TypeError: run\_command() got an unexpected keyword argument 'encoding'](https://forum.ansible.com/t/error-typeerror-run-command-got-an-unexpected-keyword-argument-encoding/22935)

<div class="topic-metadata">

**Author:** [@eric.anderson](https://forum.ansible.com/u/eric.anderson)\
**Replies:** 0\
**Last updated:** [November 1, 2016, 9:46pm UTC](https://forum.ansible.com/t/error-typeerror-run-command-got-an-unexpected-keyword-argument-encoding/22935 "2016-11-01T21:46:43Z")

</div>

I’m using ansible 2.2.0.0 and running in to a problem every time I use “sh”. I’ve run this same playbook against a vm on virtualbox on my local machine, but the user had very broad permissions. Now I’m trying to run agai…

---

## [How to convert a csv file](https://forum.ansible.com/t/how-to-convert-a-csv-file/22931)

<div class="topic-metadata">

**Author:** [@Takeshi\_Kuramochi](https://forum.ansible.com/u/Takeshi_Kuramochi)\
**Replies:** 0\
**Last updated:** [November 1, 2016, 10:14am UTC](https://forum.ansible.com/t/how-to-convert-a-csv-file/22931 "2016-11-01T10:14:39Z")

</div>

Hi Everyone, I have created a playbook which reads a csv file and converts it into variables then executes the task. My playbook is actually fine – and gives me what I expect to see, but I want to make my csv file forma…

---

## [Certificate issuance and copying files across servers](https://forum.ansible.com/t/certificate-issuance-and-copying-files-across-servers/22925)

<div class="topic-metadata">

**Author:** [@marko](https://forum.ansible.com/u/marko)\
**Replies:** 3\
**Last updated:** [November 1, 2016, 6:42am UTC](https://forum.ansible.com/t/certificate-issuance-and-copying-files-across-servers/22925 "2016-11-01T06:42:39Z")

</div>

During our server provisioning process we issue certificates for new servers. Certificates are issued by running a script on our CA host after which the certificate files need to be copied to the provisioned server. We’…

---

## [Module documentation fails to parse](https://forum.ansible.com/t/module-documentation-fails-to-parse/22929)

<div class="topic-metadata">

**Author:** [@Ted\_Timmons](https://forum.ansible.com/u/Ted_Timmons)\
**Replies:** 2\
**Last updated:** [October 31, 2016, 9:10pm UTC](https://forum.ansible.com/t/module-documentation-fails-to-parse/22929 "2016-10-31T21:10:07Z")

</div>

Hi, I added a PR for a new module in -extras, but something is wrong in the documentation causing it to fail to parse. Can someone tell me what’s wrong? https://github.com/tedder/ansible-modules-extras/blob/7d6c2e7d614a…

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

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