# Latest

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

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

**Page:** 656

---

## [How to edit a variable in a later variable file](https://forum.ansible.com/t/how-to-edit-a-variable-in-a-later-variable-file/24544)

<div class="topic-metadata">

**Author:** [@Adam\_Lininger](https://forum.ansible.com/u/Adam_Lininger)\
**Replies:** 1\
**Last updated:** [May 28, 2017, 5:29pm UTC](https://forum.ansible.com/t/how-to-edit-a-variable-in-a-later-variable-file/24544 "2017-05-28T17:29:48Z")

</div>

I would like to be able to edit a variable (per host) that was originally defined in a default file. The larger situation is this. We have a large number of servers with a defined set of local accounts. The list of acco…

---

## [Error doing ansible ping on VM](https://forum.ansible.com/t/error-doing-ansible-ping-on-vm/24587)

<div class="topic-metadata">

**Author:** [@Bob\_Nian](https://forum.ansible.com/u/Bob_Nian)\
**Replies:** 0\
**Last updated:** [May 28, 2017, 3:33pm UTC](https://forum.ansible.com/t/error-doing-ansible-ping-on-vm/24587 "2017-05-28T15:33:57Z")

</div>

I am running CentOS on my bare-metal installation of esxi 6.5 host . While I am able to do ansible ping to my esxi 6.5 host from my Master Node that’s running Ubuntu, I am unable to do ansible ping my CentOS using ‘ansib…

---

## [tagging in vmware modules](https://forum.ansible.com/t/tagging-in-vmware-modules/24583)

<div class="topic-metadata">

**Author:** [@Robert\_Foreman](https://forum.ansible.com/u/Robert_Foreman)\
**Replies:** 0\
**Last updated:** [May 26, 2017, 6:32pm UTC](https://forum.ansible.com/t/tagging-in-vmware-modules/24583 "2017-05-26T18:32:11Z")

</div>

I’ve been looking into ways to support tagging in vmware from Ansible. It appears that pyVmomi is never going to be able to support this functionality directly https://github.com/vmware/pyvmomi/issues/307. This functiona…

---

## [unable to sudo su to another user and execute commands](https://forum.ansible.com/t/unable-to-sudo-su-to-another-user-and-execute-commands/24529)

<div class="topic-metadata">

**Author:** [@vish\_man](https://forum.ansible.com/u/vish_man)\
**Replies:** 1\
**Last updated:** [May 26, 2017, 6:11pm UTC](https://forum.ansible.com/t/unable-to-sudo-su-to-another-user-and-execute-commands/24529 "2017-05-26T18:11:11Z")

</div>

Hi, Thanks in advance for helping me. my ladap user on production server is “viman” my sudo su user on production server is “cassdb” I am trying to execute commands as cassdb user like id, ps -ef|grep …, but it give…

---

## [Unreachable, msg: Authentication failure](https://forum.ansible.com/t/unreachable-msg-authentication-failure/24534)

<div class="topic-metadata">

**Author:** [@Luvpreet\_Singh](https://forum.ansible.com/u/Luvpreet_Singh)\
**Replies:** 1\
**Last updated:** [May 26, 2017, 6:05pm UTC](https://forum.ansible.com/t/unreachable-msg-authentication-failure/24534 "2017-05-26T18:05:01Z")

</div>

This is my first time, and I am facing this issue. I have used ansible\_ssh\_pass, and ansible\_ssh\_user also. But this message is coming, luvpreet@DHARI-Inspiron-3542:/etc/ansible$ sudo ansible -m ping all vogo-alpha.c…

---

## [msg: hostname module cannot be used on platform Linux (Neon)](https://forum.ansible.com/t/msg-hostname-module-cannot-be-used-on-platform-linux-neon/24581)

<div class="topic-metadata">

**Author:** [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Replies:** 0\
**Last updated:** [May 26, 2017, 4:59pm UTC](https://forum.ansible.com/t/msg-hostname-module-cannot-be-used-on-platform-linux-neon/24581 "2017-05-26T16:59:03Z")

</div>

I recently upgraded to Ansible 2.3 for KDE Neon support and ran into the following failure when running a playbook against it: msg: hostname module cannot be used on platform Linux (Neon) There is noting about Neon …

---

## [Tower jobs failing after upgrade - SCM update failed](https://forum.ansible.com/t/tower-jobs-failing-after-upgrade-scm-update-failed/23968)

<div class="topic-metadata">

**Author:** [@Nicholas\_Chrysandrea](https://forum.ansible.com/u/Nicholas_Chrysandrea)\
**Replies:** 4\
**Last updated:** [May 26, 2017, 6:43am UTC](https://forum.ansible.com/t/tower-jobs-failing-after-upgrade-scm-update-failed/23968 "2017-05-26T06:43:02Z")

</div>

Hi, We are running ansible 2.2.1.0 and upgraded tower from 3.0.2 to 3.1.1 After the tower upgrade, when we run a job template, the job fails because the with “SCM Update failed for Ops with ID 46720” The issue I reali…

---

## [Install rpm from control machine to ansible managed hosts](https://forum.ansible.com/t/install-rpm-from-control-machine-to-ansible-managed-hosts/18154)

<div class="topic-metadata">

**Author:** [@satheesh\_kumar](https://forum.ansible.com/u/satheesh_kumar)\
**Replies:** 4\
**Last updated:** [May 26, 2017, 3:51am UTC](https://forum.ansible.com/t/install-rpm-from-control-machine-to-ansible-managed-hosts/18154 "2017-05-26T03:51:58Z")

</div>

I tried to install rpm in ansible control machine to target machines using playbook name: Install local rpm in server yum: pkg=files/mod\_jk-1.2.40-5.el6.x86\_64.rpm state=present when: ansible\_os\_family == ‘RedHat’ I…

---

## [vmware tagging](https://forum.ansible.com/t/vmware-tagging/24569)

<div class="topic-metadata">

**Author:** [@Robert\_Foreman](https://forum.ansible.com/u/Robert_Foreman)\
**Replies:** 1\
**Last updated:** [May 26, 2017, 3:06am UTC](https://forum.ansible.com/t/vmware-tagging/24569 "2017-05-26T03:06:51Z")

</div>

Is it possible to manage vmware tags, either tags themselves and/or tag assignments for resources, using Ansible? It looks like the vmware\_guest module has customvalues for key value pairs, but that’s not quite the same …

---

## [Ansible Hands-On Beginners Tutorial](https://forum.ansible.com/t/ansible-hands-on-beginners-tutorial/24579)

<div class="topic-metadata">

**Author:** [@Mumshad\_Mannambeth](https://forum.ansible.com/u/Mumshad_Mannambeth)\
**Replies:** 0\
**Last updated:** [May 26, 2017, 12:35am UTC](https://forum.ansible.com/t/ansible-hands-on-beginners-tutorial/24579 "2017-05-26T00:35:51Z")

</div>

Hi, I just authored a free hands-on course on Ansible at Udemy. Please check it out and let me know your thoughts. The course consists of some lectures for introducing the absolute beginner to Ansible and coding exercis…

---

## [ansible 2.2.1.0 and Jinja2 2.9.5](https://forum.ansible.com/t/ansible-2-2-1-0-and-jinja2-2-9-5/24021)

<div class="topic-metadata">

**Author:** [@Michael\_Stroder](https://forum.ansible.com/u/Michael_Stroder)\
**Replies:** 4\
**Last updated:** [May 25, 2017, 8:51pm UTC](https://forum.ansible.com/t/ansible-2-2-1-0-and-jinja2-2-9-5/24021 "2017-05-25T20:51:25Z")

</div>

HI! When invoking ansible 2.2.1.0 with Python module Jinja2 2.9.5 installed it fails with: ERROR! Unexpected Exception: The 'jinja2\<2.9' distribution was not found and is required by ansible Are there really serious …

---

## [Cisco asa auth option](https://forum.ansible.com/t/cisco-asa-auth-option/24563)

<div class="topic-metadata">

**Author:** [@Adrian\_Tolley](https://forum.ansible.com/u/Adrian_Tolley)\
**Replies:** 1\
**Last updated:** [May 25, 2017, 8:27pm UTC](https://forum.ansible.com/t/cisco-asa-auth-option/24563 "2017-05-25T20:27:17Z")

</div>

Hi, I have the follow basic playbook for a Cisco IOS router, running ansible 2.3

---

## [Ansible Yum module to install multiple RPMs from local filesystem](https://forum.ansible.com/t/ansible-yum-module-to-install-multiple-rpms-from-local-filesystem/24558)

<div class="topic-metadata">

**Author:** [@SatIng](https://forum.ansible.com/u/SatIng)\
**Replies:** 1\
**Last updated:** [May 25, 2017, 8:01pm UTC](https://forum.ansible.com/t/ansible-yum-module-to-install-multiple-rpms-from-local-filesystem/24558 "2017-05-25T20:01:02Z")

</div>

I am trying to install Libreoffice using ansible yum module Downloaded from https://downloadarchive.documentfoundation.org/libreoffice/old/4.4.1.2/rpm/x86\_64/LibreOffice\_4.4.1.2\_Linux\_x86-64\_rpm.tar.gz Extracted and al…

---

## [Ansible Jinja Templating For issue - Help :)](https://forum.ansible.com/t/ansible-jinja-templating-for-issue-help/24553)

<div class="topic-metadata">

**Author:** [@Owen\_Corcoran](https://forum.ansible.com/u/Owen_Corcoran)\
**Replies:** 3\
**Last updated:** [May 25, 2017, 7:45pm UTC](https://forum.ansible.com/t/ansible-jinja-templating-for-issue-help/24553 "2017-05-25T19:45:23Z")

</div>

Hi Guys, Im trying to get my ansible script to use the below for loop to populate a configfile template generated from Jinja2. The line i cant get working is {% for hostname in {{ redishosts }} %} server “{{ hostname…

---

## [Struggling with optional arguments to a playbook](https://forum.ansible.com/t/struggling-with-optional-arguments-to-a-playbook/24576)

<div class="topic-metadata">

**Author:** [@Martin\_Brooks](https://forum.ansible.com/u/Martin_Brooks)\
**Replies:** 3\
**Last updated:** [May 25, 2017, 7:00pm UTC](https://forum.ansible.com/t/struggling-with-optional-arguments-to-a-playbook/24576 "2017-05-25T19:00:19Z")

</div>

Hello I have a simple playbook that distributes my SSH key. I tried to make a more generic version of the playbook that would accept arguments via -e so that the same playbook could distribute either a different key or …

---

## [Ansible expect module to prompt yes to a question (with spl characters)](https://forum.ansible.com/t/ansible-expect-module-to-prompt-yes-to-a-question-with-spl-characters/22676)

<div class="topic-metadata">

**Author:** [@Vikas\_Kumar](https://forum.ansible.com/u/Vikas_Kumar)\
**Replies:** 5\
**Last updated:** [May 25, 2017, 6:52pm UTC](https://forum.ansible.com/t/ansible-expect-module-to-prompt-yes-to-a-question-with-spl-characters/22676 "2017-05-25T18:52:16Z")

</div>

Hello Everyone, How can I use Ansible expect module to say yes for this prompt. Are you sure you want to continue (yes/no)? I tried to use this in vain. I think Ansible does not like characters like these - ( , / , ) …

---

## [Http proxy and global environment settings](https://forum.ansible.com/t/http-proxy-and-global-environment-settings/24577)

<div class="topic-metadata">

**Author:** [@Sam\_Matzek](https://forum.ansible.com/u/Sam_Matzek)\
**Replies:** 2\
**Last updated:** [May 25, 2017, 5:30pm UTC](https://forum.ansible.com/t/http-proxy-and-global-environment-settings/24577 "2017-05-25T17:30:57Z")

</div>

I’m trying to run pre-existing playbooks against a set of nodes that require an HTTP proxy to reach the internet but not to reach each other. It looks like the existing environment support in Ansible requires you to set…

---

## [Task launch playbook with variables and --limit](https://forum.ansible.com/t/task-launch-playbook-with-variables-and-limit/24575)

<div class="topic-metadata">

**Author:** [@Pierre\_Mavro](https://forum.ansible.com/u/Pierre_Mavro)\
**Replies:** 2\
**Last updated:** [May 25, 2017, 4:35pm UTC](https://forum.ansible.com/t/task-launch-playbook-with-variables-and-limit/24575 "2017-05-25T16:35:01Z")

</div>

Hi, I have to run something like this in a playbook task: ansible-playbook sites/playbook.yml --limit=server1,server2 I would like to include this playbook in another playbook. How to add the --limit parameter: \` n…

---

## [wait\_for using bastion host](https://forum.ansible.com/t/wait-for-using-bastion-host/21831)

<div class="topic-metadata">

**Author:** [@Vincent\_Van\_der\_Kuss](https://forum.ansible.com/u/Vincent_Van_der_Kuss)\
**Replies:** 4\
**Last updated:** [May 25, 2017, 7:12am UTC](https://forum.ansible.com/t/wait-for-using-bastion-host/21831 "2017-05-25T07:12:21Z")

</div>

Hi, I’m currently testing Ansible for deploying instances on AWS. To reach hosts in private subnets, I’m using a bastion host. When deploying new instances I have a task that waits for the ssh port of the new instance t…

---

## [Co-life of Cloud Instances and Ansible Users](https://forum.ansible.com/t/co-life-of-cloud-instances-and-ansible-users/24574)

<div class="topic-metadata">

**Author:** [@Soujanya\_Naganuri](https://forum.ansible.com/u/Soujanya_Naganuri)\
**Replies:** 0\
**Last updated:** [May 25, 2017, 5:15am UTC](https://forum.ansible.com/t/co-life-of-cloud-instances-and-ansible-users/24574 "2017-05-25T05:15:57Z")

</div>

I simply have solved one small inconvenient difficulty I were traumatic approximately for a while. after I create a new instance, there may be a unique ‘cloud’ user. On maximum distribution username is about to distro ca…

---

## [msg: hostname module cannot be used on platform Linux (Neon)](https://forum.ansible.com/t/msg-hostname-module-cannot-be-used-on-platform-linux-neon/24573)

<div class="topic-metadata">

**Author:** [@Emmet\_Ryan](https://forum.ansible.com/u/Emmet_Ryan)\
**Replies:** 0\
**Last updated:** [May 24, 2017, 9:42pm UTC](https://forum.ansible.com/t/msg-hostname-module-cannot-be-used-on-platform-linux-neon/24573 "2017-05-24T21:42:55Z")

</div>

Has anyone else run into issues using the hostname module on KDE Neon hosts? I recently updated to 2.3 which introduces Neon support. This is the task: name: set hostname hostname: name: “{{ host }}” and the resulti…

---

## [InvalidAMIID.Unavailable: The image ID 'ami-XXXXXXX' is no longer available](https://forum.ansible.com/t/invalidamiid-unavailable-the-image-id-ami-xxxxxxx-is-no-longer-available/24572)

<div class="topic-metadata">

**Author:** [@Radhika\_Karthik](https://forum.ansible.com/u/Radhika_Karthik)\
**Replies:** 0\
**Last updated:** [May 24, 2017, 9:34pm UTC](https://forum.ansible.com/t/invalidamiid-unavailable-the-image-id-ami-xxxxxxx-is-no-longer-available/24572 "2017-05-24T21:34:47Z")

</div>

The following lines of code is not working in Ansible version 2.3. Same code works fine in ansible version 2.0.0 If dm\_ami-AMI ID already exists, ansible throws below error “msg”: “Image ami-957313f5 does not exist” I…

---

## [Load variables based on the environnement (test, val, prod)](https://forum.ansible.com/t/load-variables-based-on-the-environnement-test-val-prod/24540)

<div class="topic-metadata">

**Author:** [@Wilfried\_Anuzet](https://forum.ansible.com/u/Wilfried_Anuzet)\
**Replies:** 4\
**Last updated:** [May 24, 2017, 7:42pm UTC](https://forum.ansible.com/t/load-variables-based-on-the-environnement-test-val-prod/24540 "2017-05-24T19:42:21Z")

</div>

Hello to all Ansible guru :slight\_smile: I write a playbook to deploy a newest Jboss infrastructure. I want to use a loop to iterate over a list of items to deploy all the datasource I need, all the datasources change …

---

## [Redis Inventory Variable Template issue](https://forum.ansible.com/t/redis-inventory-variable-template-issue/24568)

<div class="topic-metadata">

**Author:** [@Owen\_Corcoran](https://forum.ansible.com/u/Owen_Corcoran)\
**Replies:** 1\
**Last updated:** [May 24, 2017, 7:33pm UTC](https://forum.ansible.com/t/redis-inventory-variable-template-issue/24568 "2017-05-24T19:33:06Z")

</div>

So I’m in a rut… I have this line in my template. Basically I have set a variable in my inventory file and im trying to access it in my Jinja2 template but as you can guess it’s not working. I need to have the template …

---

## [Ansible-OpenStack:cannot ssh into the containers](https://forum.ansible.com/t/ansible-openstack-cannot-ssh-into-the-containers/19850)

<div class="topic-metadata">

**Author:** [@kakifilip](https://forum.ansible.com/u/kakifilip)\
**Replies:** 4\
**Last updated:** [May 24, 2017, 1:59pm UTC](https://forum.ansible.com/t/ansible-openstack-cannot-ssh-into-the-containers/19850 "2017-05-24T13:59:44Z")

</div>

Hi, I am trying to deploy openstack using openstack-ansible project. I am using Liberty release (tag 12.0.0). The problem i have is that Ansible is not able to SSH into the containers: TASK: \[Wait for ssh to be availa…

---

## [Can't find documentation on including relative modules](https://forum.ansible.com/t/cant-find-documentation-on-including-relative-modules/24566)

<div class="topic-metadata">

**Author:** [@Kamran\_Ayub](https://forum.ansible.com/u/Kamran_Ayub)\
**Replies:** 0\
**Last updated:** [May 24, 2017, 12:58pm UTC](https://forum.ansible.com/t/cant-find-documentation-on-including-relative-modules/24566 "2017-05-24T12:58:05Z")

</div>

I’m fairly new to Ansible and noticed while looking at some OSS modules that you can include them relative to the Playbook file in a library folder. However, I scoured the docs and couldn’t find a reference to this (at l…

---

## [Hardening guideline for Ansible itself](https://forum.ansible.com/t/hardening-guideline-for-ansible-itself/24565)

<div class="topic-metadata">

**Author:** [@Pawel](https://forum.ansible.com/u/Pawel)\
**Replies:** 0\
**Last updated:** [May 24, 2017, 12:16pm UTC](https://forum.ansible.com/t/hardening-guideline-for-ansible-itself/24565 "2017-05-24T12:16:47Z")

</div>

Hi, I’m looking for best practices describing how to harden Ansible installation itself. Unauthorized access to Ansible host can do a lot of harm to the organization especially if someone could get access to playbooks o…

---

## [Perform an action on a host if at least one of the other hosts has a certain feature](https://forum.ansible.com/t/perform-an-action-on-a-host-if-at-least-one-of-the-other-hosts-has-a-certain-feature/24564)

<div class="topic-metadata">

**Author:** [@Martino\_Vigano](https://forum.ansible.com/u/Martino_Vigano)\
**Replies:** 0\
**Last updated:** [May 24, 2017, 12:00pm UTC](https://forum.ansible.com/t/perform-an-action-on-a-host-if-at-least-one-of-the-other-hosts-has-a-certain-feature/24564 "2017-05-24T12:00:55Z")

</div>

Good morning, My playboy works on all hosts and is invoked like this: Ansible-playbook -l customer main.yml The customer group in the inventory is done this way: \[Customer\] customer-ecas1 customer-ecas2 customer-e…

---

## [Blockinfile first loop is not written](https://forum.ansible.com/t/blockinfile-first-loop-is-not-written/24561)

<div class="topic-metadata">

**Author:** [@rcst.eoin.kim](https://forum.ansible.com/u/rcst.eoin.kim)\
**Replies:** 0\
**Last updated:** [May 24, 2017, 7:45am UTC](https://forum.ansible.com/t/blockinfile-first-loop-is-not-written/24561 "2017-05-24T07:45:36Z")

</div>

Hi all, I am having problem with looping Blockinfile module. It seems as if the first loop doesn’t insert a new block into the target file. When I run the playbook the log shows that new block is inserted but it actuall…

---

## [merging inventory plugins soon.](https://forum.ansible.com/t/merging-inventory-plugins-soon/24477)

<div class="topic-metadata">

**Author:** [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Replies:** 2\
**Last updated:** [May 24, 2017, 7:40am UTC](https://forum.ansible.com/t/merging-inventory-plugins-soon/24477 "2017-05-24T07:40:51Z")

</div>

https://github.com/ansible/ansible/pull/23001 \<= new inventory plugins almost ready to merge, please review, test, poke before i make /devel unstable next week.

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

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