# Latest

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

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

**Page:** 723

---

## [docker-py version comparison fail](https://forum.ansible.com/t/docker-py-version-comparison-fail/22640)

<div class="topic-metadata">

**Author:** [@Andrew\_Ehrlich](https://forum.ansible.com/u/Andrew_Ehrlich)\
**Replies:** 1\
**Last updated:** [September 26, 2016, 6:13pm UTC](https://forum.ansible.com/t/docker-py-version-comparison-fail/22640 "2016-09-26T18:13:25Z")

</div>

I installed docker-py on my Centos host like this: $ sudo yum install python27-pip and $ sudo pip install docker-py Then when I run an ansible playbook containing a “docker\_container” task, it responds with: FAILED!…

---

## [cron: idempotent trouble - duplicates lines added](https://forum.ansible.com/t/cron-idempotent-trouble-duplicates-lines-added/22645)

<div class="topic-metadata">

**Author:** [@Tom\_Ekberg](https://forum.ansible.com/u/Tom_Ekberg)\
**Replies:** 0\
**Last updated:** [September 26, 2016, 3:48pm UTC](https://forum.ansible.com/t/cron-idempotent-trouble-duplicates-lines-added/22645 "2016-09-26T15:48:37Z")

</div>

I have a playbook that has 2 cron tasks that run back-to-back for the same user: \` This puts MAILTO at the top of the crontab. name: “transfers crontab setup” cron: name=“MAILTO section” minute=“MAILTO = \[email addr…

---

## [Can i create a Tower Label in a yml playbook?](https://forum.ansible.com/t/can-i-create-a-tower-label-in-a-yml-playbook/22643)

<div class="topic-metadata">

**Author:** [@Aitor\_Gomez](https://forum.ansible.com/u/Aitor_Gomez)\
**Replies:** 1\
**Last updated:** [September 26, 2016, 3:40pm UTC](https://forum.ansible.com/t/can-i-create-a-tower-label-in-a-yml-playbook/22643 "2016-09-26T15:40:50Z")

</div>

Can i create a Tower Label in a yml playbook? is posible créate a label in the yml?

---

## [register variable value + string](https://forum.ansible.com/t/register-variable-value-string/22639)

<div class="topic-metadata">

**Author:** [@Anthony\_Cheng](https://forum.ansible.com/u/Anthony_Cheng)\
**Replies:** 1\
**Last updated:** [September 26, 2016, 3:13pm UTC](https://forum.ansible.com/t/register-variable-value-string/22639 "2016-09-26T15:13:48Z")

</div>

Does anyone know how I would go about to register values into variable + string (within a loop), so something like: \` register: “{{ item }}”\_LIST with\_items: “{{ LIST.stdout\_lines }}” or register: {{ item }}\_LIST \` …

---

## [Best way of writting inventory file](https://forum.ansible.com/t/best-way-of-writting-inventory-file/22642)

<div class="topic-metadata">

**Author:** [@fanvalt](https://forum.ansible.com/u/fanvalt)\
**Replies:** 3\
**Last updated:** [September 26, 2016, 2:41pm UTC](https://forum.ansible.com/t/best-way-of-writting-inventory-file/22642 "2016-09-26T14:41:19Z")

</div>

Hello, I have an inventory file to install for one user many ways, it looks like this: \[USER1\_DEV1\] PARAM=“\[app1’,‘1.0.1’,‘1’\]” \[USER1\_DEV2\] PARAM=“\[‘app1’,‘1.1.0’,‘5’\]” \[USER1\_REC1\] PARAM=“\[‘app1’,‘1.0.4’,‘2’\]” \[…

---

## [Example on bastion Host](https://forum.ansible.com/t/example-on-bastion-host/22641)

<div class="topic-metadata">

**Author:** [@jagadishm.middleware](https://forum.ansible.com/u/jagadishm.middleware)\
**Replies:** 0\
**Last updated:** [September 26, 2016, 7:27am UTC](https://forum.ansible.com/t/example-on-bastion-host/22641 "2016-09-26T07:27:06Z")

</div>

HI, I recently started working on Ansible i would like to have an example on ansible bastion Host. I have a few examples available when i google but they are kind of confusing me. Is there any example out there so that …

---

## [How to customise privilege escalation using sudo](https://forum.ansible.com/t/how-to-customise-privilege-escalation-using-sudo/22638)

<div class="topic-metadata">

**Author:** [@Nigel\_Owen](https://forum.ansible.com/u/Nigel_Owen)\
**Replies:** 0\
**Last updated:** [September 25, 2016, 4:37am UTC](https://forum.ansible.com/t/how-to-customise-privilege-escalation-using-sudo/22638 "2016-09-25T04:37:12Z")

</div>

Hi, I think I need to create my own privilege escalation module for ansible. The problem I am trying to address is that due to security concerns, the process of becoming a privileged user requires the following steps. …

---

## [How to specify variables to be used in roles?](https://forum.ansible.com/t/how-to-specify-variables-to-be-used-in-roles/22623)

<div class="topic-metadata">

**Author:** [@Chethan\_S](https://forum.ansible.com/u/Chethan_S)\
**Replies:** 4\
**Last updated:** [September 24, 2016, 2:28am UTC](https://forum.ansible.com/t/how-to-specify-variables-to-be-used-in-roles/22623 "2016-09-24T02:28:32Z")

</div>

I am in the process of migrating to Ansible roles model and I have the following structure - …/roles/vms/tasks/main.yml \`

---

## [Tmp files still being](https://forum.ansible.com/t/tmp-files-still-being/22636)

<div class="topic-metadata">

**Author:** [@harold\_T](https://forum.ansible.com/u/harold_T)\
**Replies:** 0\
**Last updated:** [September 24, 2016, 2:07am UTC](https://forum.ansible.com/t/tmp-files-still-being/22636 "2016-09-24T02:07:18Z")

</div>

https://github.com/ansible/ansible/issues/17716 I have been post my questions in here. now I found I used official api example, it will also create tmp files and not delete it. http://docs.ansible.com/ansible/developi…

---

## [tmp files still being](https://forum.ansible.com/t/tmp-files-still-being/22635)

<div class="topic-metadata">

**Author:** [@harold\_T](https://forum.ansible.com/u/harold_T)\
**Replies:** 0\
**Last updated:** [September 24, 2016, 1:47am UTC](https://forum.ansible.com/t/tmp-files-still-being/22635 "2016-09-24T01:47:21Z")

</div>

each time I use ansible python api to do sth, it will create tmp files in\` \`\` ~/.ansible/tmp update: I used the office code http://docs.ansible.com/ansible/developing\_api.html and run it, it will appear tmp file to…

---

## [Ansible lookup on file format issue](https://forum.ansible.com/t/ansible-lookup-on-file-format-issue/22633)

<div class="topic-metadata">

**Author:** [@Anthony\_Cheng](https://forum.ansible.com/u/Anthony_Cheng)\
**Replies:** 1\
**Last updated:** [September 23, 2016, 8:27pm UTC](https://forum.ansible.com/t/ansible-lookup-on-file-format-issue/22633 "2016-09-23T20:27:04Z")

</div>

I have been struggling to use the lookup for vars feature, specifically tried something like: \` vars: BUCKET\_LIST: “{{ lookup(‘file’, ‘test’) }}” vars: BUCKET\_LIST: “{{ lookup(‘file’, ‘test’) |to\_json }}” \` Where …

---

## [Run a handler as a different user](https://forum.ansible.com/t/run-a-handler-as-a-different-user/22626)

<div class="topic-metadata">

**Author:** [@Gordon\_Ross](https://forum.ansible.com/u/Gordon_Ross)\
**Replies:** 2\
**Last updated:** [September 23, 2016, 7:11pm UTC](https://forum.ansible.com/t/run-a-handler-as-a-different-user/22626 "2016-09-23T19:11:19Z")

</div>

I have a handler that I wish to run as a different user to the user Ansible normal logs in as. My playbooks execute with the “—become” flag so they run as root, but this particular task needs to run as the application u…

---

## [Deployment issue](https://forum.ansible.com/t/deployment-issue/22627)

<div class="topic-metadata">

**Author:** [@fgbane](https://forum.ansible.com/u/fgbane)\
**Replies:** 1\
**Last updated:** [September 23, 2016, 6:57pm UTC](https://forum.ansible.com/t/deployment-issue/22627 "2016-09-23T18:57:47Z")

</div>

Hi, I am running a deployment on remote node PLAY \[configuring instances\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* TASK \[setup\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* e\[0;32mok:…

---

## [Ansiblefest + Contributor Summit Brooklyn, updates!](https://forum.ansible.com/t/ansiblefest-contributor-summit-brooklyn-updates/22632)

<div class="topic-metadata">

**Author:** [@Greg\_DeKoenigsberg1](https://forum.ansible.com/u/Greg_DeKoenigsberg1)\
**Replies:** 0\
**Last updated:** [September 23, 2016, 6:20pm UTC](https://forum.ansible.com/t/ansiblefest-contributor-summit-brooklyn-updates/22632 "2016-09-23T18:20:17Z")

</div>

Update #1: Community Discount Code for Ansiblefest Brooklyn We’ve got a 30% discount for all contributors who want to join us at AnsibleFest on Tuesday, October 11th in Brooklyn. Just go sign up at https://www.ansible.c…

---

## [Ansible hangs indefinitely when trying to sudo apt-get install on Ubuntu machine](https://forum.ansible.com/t/ansible-hangs-indefinitely-when-trying-to-sudo-apt-get-install-on-ubuntu-machine/22631)

<div class="topic-metadata">

**Author:** [@H\_Cui](https://forum.ansible.com/u/H_Cui)\
**Replies:** 1\
**Last updated:** [September 23, 2016, 5:51pm UTC](https://forum.ansible.com/t/ansible-hangs-indefinitely-when-trying-to-sudo-apt-get-install-on-ubuntu-machine/22631 "2016-09-23T17:51:36Z")

</div>

Hello, I’m testing an Ansible playbook and kept getting this indefinite hangs on sudo apt-get install command Ubuntu machine, I’m using Ansible version 1.4.8. server and client are both Ubuntu 14.04 since currently I’m u…

---

## [Need help with Ansible Deployment](https://forum.ansible.com/t/need-help-with-ansible-deployment/22630)

<div class="topic-metadata">

**Author:** [@venkat\_r](https://forum.ansible.com/u/venkat_r)\
**Replies:** 0\
**Last updated:** [September 23, 2016, 5:23pm UTC](https://forum.ansible.com/t/need-help-with-ansible-deployment/22630 "2016-09-23T17:23:08Z")

</div>

Hi All, I am new to Ansible. I need to install the following softwares in server using Anisble . 1 Java 1.8 M MongoDB 3.2.8 Redis 2.4.6 I am using this playbook. However, it installs mongodb 3.2.9 and a higher versi…

---

## [How to point \`vars\` to matching \`vault\_\`?](https://forum.ansible.com/t/how-to-point-vars-to-matching-vault/22622)

<div class="topic-metadata">

**Author:** [@jason.bornhoft](https://forum.ansible.com/u/jason.bornhoft)\
**Replies:** 5\
**Last updated:** [September 23, 2016, 4:45pm UTC](https://forum.ansible.com/t/how-to-point-vars-to-matching-vault/22622 "2016-09-23T16:45:44Z")

</div>

I’m using vault for the first time (previously used dotenv) and am following the instructions here. Specifically, the line: You should adjust the variables in the vars file to point to the matchingvault\_ variables A…

---

## [How to refresh Ansible Dynamic Inventory (vCenter Server)?](https://forum.ansible.com/t/how-to-refresh-ansible-dynamic-inventory-vcenter-server/22462)

<div class="topic-metadata">

**Author:** [@Chethan\_S](https://forum.ansible.com/u/Chethan_S)\
**Replies:** 6\
**Last updated:** [September 23, 2016, 4:14pm UTC](https://forum.ansible.com/t/how-to-refresh-ansible-dynamic-inventory-vcenter-server/22462 "2016-09-23T16:14:14Z")

</div>

We are building an Ansible playbook which takes care of creating VMs in VMware vCenter and is later expected to perform some operations inside the newly created VMs. While the creation of VMs is successful, there seems t…

---

## [Role played on all hosts, condition  "when: 'group' in group\_names" not correctly evaluated](https://forum.ansible.com/t/role-played-on-all-hosts-condition-when-group-in-group-names-not-correctly-evaluated/22616)

<div class="topic-metadata">

**Author:** [@Valerie\_P](https://forum.ansible.com/u/Valerie_P)\
**Replies:** 2\
**Last updated:** [September 23, 2016, 4:06pm UTC](https://forum.ansible.com/t/role-played-on-all-hosts-condition-when-group-in-group-names-not-correctly-evaluated/22616 "2016-09-23T16:06:28Z")

</div>

Hi, I am using Ansible 2.2.0 to configure network devices. I have a problem with the evaluation of a condition using "when: ‘group’ in group\_names’. The playbook is : \` name: Configure topologies hosts: “{{ TOPO }}…

---

## [Ansible tower installation Prablem](https://forum.ansible.com/t/ansible-tower-installation-prablem/22624)

<div class="topic-metadata">

**Author:** [@Vasanth\_Kasirajan](https://forum.ansible.com/u/Vasanth_Kasirajan)\
**Replies:** 1\
**Last updated:** [September 23, 2016, 3:33pm UTC](https://forum.ansible.com/t/ansible-tower-installation-prablem/22624 "2016-09-23T15:33:09Z")

</div>

Hi Team We are trying to install ansible tower trial version “ansible-tower-setup-3.0.2”. When we run ./setup.sh we are getting below exception. Could you please let us know what should be done to fix this. Note: We ha…

---

## [JSON formatting on register value.](https://forum.ansible.com/t/json-formatting-on-register-value/22620)

<div class="topic-metadata">

**Author:** [@Anthony\_Cheng](https://forum.ansible.com/u/Anthony_Cheng)\
**Replies:** 1\
**Last updated:** [September 23, 2016, 3:32pm UTC](https://forum.ansible.com/t/json-formatting-on-register-value/22620 "2016-09-23T15:32:26Z")

</div>

I have a playbook that use the S3 module to list items: \` name: List s3 bucket local\_action: module: s3 bucket: “{{ S3\_BUCKET\_NAME }}” mode: list register: S3\_LIST\_ITEM \` The result I output to a file using lin…

---

## [Cloudformation Boto3 Update](https://forum.ansible.com/t/cloudformation-boto3-update/22127)

<div class="topic-metadata">

**Author:** [@Soren\_Olegnowicz](https://forum.ansible.com/u/Soren_Olegnowicz)\
**Replies:** 2\
**Last updated:** [September 23, 2016, 3:14pm UTC](https://forum.ansible.com/t/cloudformation-boto3-update/22127 "2016-09-23T15:14:18Z")

</div>

Is anybody updating the Cloudformation module for the new features from boto3? i.e. Change Sets, Event Description, etc… https://docs.aws.amazon.com/cli/latest/reference/cloudformation/index.html#cli-aws-cloudformatio…

---

## [Support for Cloudformation change sets](https://forum.ansible.com/t/support-for-cloudformation-change-sets/22589)

<div class="topic-metadata">

**Author:** [@Toni\_Juvani](https://forum.ansible.com/u/Toni_Juvani)\
**Replies:** 2\
**Last updated:** [September 23, 2016, 3:11pm UTC](https://forum.ansible.com/t/support-for-cloudformation-change-sets/22589 "2016-09-23T15:11:58Z")

</div>

Hi, We have implemented our AWS resource stacks using Cloudformation templates chained using Ansible. Previously the problem has been that I don’t know for sure what is going to happen after schanges to the templates an…

---

## [How to conditionally include other playbooks?](https://forum.ansible.com/t/how-to-conditionally-include-other-playbooks/22608)

<div class="topic-metadata">

**Author:** [@Tristan\_Muntsinger](https://forum.ansible.com/u/Tristan_Muntsinger)\
**Replies:** 4\
**Last updated:** [September 23, 2016, 2:13pm UTC](https://forum.ansible.com/t/how-to-conditionally-include-other-playbooks/22608 "2016-09-23T14:13:36Z")

</div>

I tried this and it isn’t working as expected: test.yml \`

---

## [SSH agent forwarding doesn't work after upgrading from 1.9 to 2.1](https://forum.ansible.com/t/ssh-agent-forwarding-doesnt-work-after-upgrading-from-1-9-to-2-1/22625)

<div class="topic-metadata">

**Author:** [@Mikael\_Wallin](https://forum.ansible.com/u/Mikael_Wallin)\
**Replies:** 0\
**Last updated:** [September 23, 2016, 1:01pm UTC](https://forum.ansible.com/t/ssh-agent-forwarding-doesnt-work-after-upgrading-from-1-9-to-2-1/22625 "2016-09-23T13:01:01Z")

</div>

I had working playbooks that work with agent forwarding. I upgraded to ansible 2.1 and I seem not to be able to get agent forwarding to work. //inventory \[machines\] machine\[07:07\] //main.yml

---

## [ansible ec2.py discovery with assume\_role & MFA](https://forum.ansible.com/t/ansible-ec2-py-discovery-with-assume-role-mfa/22609)

<div class="topic-metadata">

**Author:** [@matthieu.isoard](https://forum.ansible.com/u/matthieu.isoard)\
**Replies:** 1\
**Last updated:** [September 23, 2016, 12:41pm UTC](https://forum.ansible.com/t/ansible-ec2-py-discovery-with-assume-role-mfa/22609 "2016-09-23T12:41:41Z")

</div>

Hi Before using Ansible with some roles I prepared, I wanted to check the ec2.py autodiscovery script. However, all the accounts I have setup on AWS need to login to a first account which uses MFA & then assume a role b…

---

## [Critical fix needed in stable-2.1](https://forum.ansible.com/t/critical-fix-needed-in-stable-2-1/22399)

<div class="topic-metadata">

**Author:** [@kalambur2179](https://forum.ansible.com/u/kalambur2179)\
**Replies:** 4\
**Last updated:** [September 23, 2016, 7:03am UTC](https://forum.ansible.com/t/critical-fix-needed-in-stable-2-1/22399 "2016-09-23T07:03:04Z")

</div>

Hi We use ansible heavily and the following bug fix is very critical in 2.1 https://github.com/ansible/ansible/pull/16680/commits/16a3f28f6efa7ac3ab59970863bcc12434585350 Its basically blocks using docker\_container mo…

---

## [How Network Modules using openssh controlpersist  feature?](https://forum.ansible.com/t/how-network-modules-using-openssh-controlpersist-feature/22594)

<div class="topic-metadata">

**Author:** [@jacky.gao2016](https://forum.ansible.com/u/jacky.gao2016)\
**Replies:** 3\
**Last updated:** [September 22, 2016, 9:21pm UTC](https://forum.ansible.com/t/how-network-modules-using-openssh-controlpersist-feature/22594 "2016-09-22T21:21:38Z")

</div>

I find that the Network Modules must use paramiko, does paramiko support openssh ControlPersist similar feature? building ssh connection by paramiko: Code in module\_util/shell.py def open(self, host, port=22, username…

---

## [Which of .bashrc, .profile, .bash\_profile, .bash\_login or .login is used?](https://forum.ansible.com/t/which-of-bashrc-profile-bash-profile-bash-login-or-login-is-used/22582)

<div class="topic-metadata">

**Author:** [@Harald\_Kubota](https://forum.ansible.com/u/Harald_Kubota)\
**Replies:** 6\
**Last updated:** [September 22, 2016, 9:16pm UTC](https://forum.ansible.com/t/which-of-bashrc-profile-bash-profile-bash-login-or-login-is-used/22582 "2016-09-22T21:16:28Z")

</div>

Hi, Still learning Ansible, so if this is a stupid question, let me know. I’d like to know which (if any) of the typical shell init files are used when executing commands via the shell module. Specifically I’d like to …

---

## [How do I use openSSH instead of paramiko (i.e. no connection:local) for IOS modules?](https://forum.ansible.com/t/how-do-i-use-openssh-instead-of-paramiko-i-e-no-connection-local-for-ios-modules/22613)

<div class="topic-metadata">

**Author:** [@Johann\_Lo](https://forum.ansible.com/u/Johann_Lo)\
**Replies:** 1\
**Last updated:** [September 22, 2016, 9:14pm UTC](https://forum.ansible.com/t/how-do-i-use-openssh-instead-of-paramiko-i-e-no-connection-local-for-ios-modules/22613 "2016-09-22T21:14:15Z")

</div>

I’m trying to use the ios networking modules (ios\_config, ios\_template etc.) and the only way I can get them to work properly is via connection: local and passing the parameters to each task via something like this hos…

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

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