# Latest

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

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

**Page:** 708

---

## [Failed to install ansible on Ubuntu 14](https://forum.ansible.com/t/failed-to-install-ansible-on-ubuntu-14/23071)

<div class="topic-metadata">

**Author:** [@Boris\_Modylevsky](https://forum.ansible.com/u/Boris_Modylevsky)\
**Replies:** 1\
**Last updated:** [November 22, 2016, 11:02pm UTC](https://forum.ansible.com/t/failed-to-install-ansible-on-ubuntu-14/23071 "2016-11-22T23:02:30Z")

</div>

I am getting an error while installing ansible on Ubuntu 14: x86\_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DUSE\_\_THREAD -I/usr/include/ffi -I/usr/include/lib…

---

## [error while creaing Big IP pool ussing anisble yaml script](https://forum.ansible.com/t/error-while-creaing-big-ip-pool-ussing-anisble-yaml-script/23078)

<div class="topic-metadata">

**Author:** [@santu\_chaitu](https://forum.ansible.com/u/santu_chaitu)\
**Replies:** 1\
**Last updated:** [November 22, 2016, 10:25pm UTC](https://forum.ansible.com/t/error-while-creaing-big-ip-pool-ussing-anisble-yaml-script/23078 "2016-11-22T22:25:10Z")

</div>

I am trying to create a pool using YAML as below (Note: I tried to executed the script as root user and as non-rrot user) IN both cases i am getting two different errors. inventory file webl22-p1.gain.tcprod.local ans…

---

## [Problem With Simple Template](https://forum.ansible.com/t/problem-with-simple-template/23069)

<div class="topic-metadata">

**Author:** [@Jon\_Forrest](https://forum.ansible.com/u/Jon_Forrest)\
**Replies:** 5\
**Last updated:** [November 22, 2016, 9:27pm UTC](https://forum.ansible.com/t/problem-with-simple-template/23069 "2016-11-22T21:27:03Z")

</div>

(This might appear twice, sorry). (Ansible 2.2 - Mac OS 12.1) I’m having trouble with a template I’m trying to create. So, I cut it down to a bare minimum. Consider the following: jon.yml

---

## [Scaling the Ansible Hierarchy?](https://forum.ansible.com/t/scaling-the-ansible-hierarchy/23064)

<div class="topic-metadata">

**Author:** [@Jeffrey\_Wen](https://forum.ansible.com/u/Jeffrey_Wen)\
**Replies:** 7\
**Last updated:** [November 22, 2016, 8:41pm UTC](https://forum.ansible.com/t/scaling-the-ansible-hierarchy/23064 "2016-11-22T20:41:05Z")

</div>

Hello, I am currently following the directory layout provided by Ansible. I understand that if I keep all of my roles/\* in a directory, I can easily call each role from the top level directory like so: site.yml # mast…

---

## [Ansible in the docker container?](https://forum.ansible.com/t/ansible-in-the-docker-container/22978)

<div class="topic-metadata">

**Author:** [@Steven\_Truong](https://forum.ansible.com/u/Steven_Truong)\
**Replies:** 5\
**Last updated:** [November 22, 2016, 7:29pm UTC](https://forum.ansible.com/t/ansible-in-the-docker-container/22978 "2016-11-22T19:29:32Z")

</div>

Hi all, Am I being too picky here or just being naive in the ways I approach my works with Docker? There are times when I build a Docker image and then when I run the container with some environment variables then my st…

---

## [Make ansible-playbook accept a roles-path argument?](https://forum.ansible.com/t/make-ansible-playbook-accept-a-roles-path-argument/17482)

<div class="topic-metadata">

**Author:** [@Daniel\_Upton](https://forum.ansible.com/u/Daniel_Upton)\
**Replies:** 5\
**Last updated:** [November 22, 2016, 6:38pm UTC](https://forum.ansible.com/t/make-ansible-playbook-accept-a-roles-path-argument/17482 "2016-11-22T18:38:27Z")

</div>

Is it possible to pass the roles\_path parameter (from ansible.cfg) or an equivalent as an argument to ansible-playbook? My use case is: I’m using the ansible-galaxy (tool not web service) to pull my shared ansible roles…

---

## [Ansible Playbook - when: list?](https://forum.ansible.com/t/ansible-playbook-when-list/23065)

<div class="topic-metadata">

**Author:** [@Jeffrey\_Wen](https://forum.ansible.com/u/Jeffrey_Wen)\
**Replies:** 2\
**Last updated:** [November 22, 2016, 6:26pm UTC](https://forum.ansible.com/t/ansible-playbook-when-list/23065 "2016-11-22T18:26:42Z")

</div>

\` localhost | SUCCESS =\> { “ansible\_facts”: { “ansible\_dns”: { “nameservers”: \[ “192.168.1.1”, “192.168.1.2” \], “search”: \[ “example.com”, \] } }, “changed”: false } \` I am trying to reference my nameserve…

---

## [Adding dict key to a list](https://forum.ansible.com/t/adding-dict-key-to-a-list/23075)

<div class="topic-metadata">

**Author:** [@William\_Hirsch](https://forum.ansible.com/u/William_Hirsch)\
**Replies:** 1\
**Last updated:** [November 22, 2016, 6:18pm UTC](https://forum.ansible.com/t/adding-dict-key-to-a-list/23075 "2016-11-22T18:18:27Z")

</div>

All, I need some help writing the following task. Need to find all devices on a RHEL system, but only if they don’t match sr0 For each of those devices found, run a number of tasks against them Thought this would be …

---

## [Changing variable depending on the host within a role](https://forum.ansible.com/t/changing-variable-depending-on-the-host-within-a-role/23072)

<div class="topic-metadata">

**Author:** [@Adnan\_Arab](https://forum.ansible.com/u/Adnan_Arab)\
**Replies:** 1\
**Last updated:** [November 22, 2016, 6:02pm UTC](https://forum.ansible.com/t/changing-variable-depending-on-the-host-within-a-role/23072 "2016-11-22T18:02:37Z")

</div>

Hi, I want to be able to change the value of a variable depending on a host. What I tried was roles/x/vars/host\_vars//main.yml but this does not seem to work. Could you please let me know how I can change a variable d…

---

## [Can conditional "OR" operator be syntactically indented similar to the "AND" operator?](https://forum.ansible.com/t/can-conditional-or-operator-be-syntactically-indented-similar-to-the-and-operator/23066)

<div class="topic-metadata">

**Author:** [@burns498](https://forum.ansible.com/u/burns498)\
**Replies:** 2\
**Last updated:** [November 22, 2016, 5:51pm UTC](https://forum.ansible.com/t/can-conditional-or-operator-be-syntactically-indented-similar-to-the-and-operator/23066 "2016-11-22T17:51:33Z")

</div>

Hello - Can the conditional “OR” operator be syntactically indented similar to the “AND” operator? “AND” can be written in either of these ways: Source when: django\_migration\_result|changed and ('Applying auth.0001\_…

---

## [How to create .yml file to work with 10 routers with 2 different command.](https://forum.ansible.com/t/how-to-create-yml-file-to-work-with-10-routers-with-2-different-command/23074)

<div class="topic-metadata">

**Author:** [@Satish](https://forum.ansible.com/u/Satish)\
**Replies:** 0\
**Last updated:** [November 22, 2016, 11:20am UTC](https://forum.ansible.com/t/how-to-create-yml-file-to-work-with-10-routers-with-2-different-command/23074 "2016-11-22T11:20:18Z")

</div>

Hello Team, I need your support to create .yml file. Scenario :: I have installed and configured Ansible and it is properly working. I have manually executed command (show isis neighbors) for one device and its return …

---

## [BSD jexec module](https://forum.ansible.com/t/bsd-jexec-module/23040)

<div class="topic-metadata">

**Author:** [@Goran\_Mekic](https://forum.ansible.com/u/Goran_Mekic)\
**Replies:** 4\
**Last updated:** [November 22, 2016, 10:14am UTC](https://forum.ansible.com/t/bsd-jexec-module/23040 "2016-11-22T10:14:45Z")

</div>

Hello, Is there a module that can use jexec on FreeBSD (e.g. "execute in jail")? In my oppinion, as jexec executes command in existing jail, something like wrapping existing modules in "jexec" when needed would be great…

---

## [vyos\_config question](https://forum.ansible.com/t/vyos-config-question/22976)

<div class="topic-metadata">

**Author:** [@Carl\_Betts](https://forum.ansible.com/u/Carl_Betts)\
**Replies:** 4\
**Last updated:** [November 22, 2016, 4:40am UTC](https://forum.ansible.com/t/vyos-config-question/22976 "2016-11-22T04:40:07Z")

</div>

Have been trying to get the vyos\_config module to work (https://docs.ansible.com/ansible/vyos\_config\_module.html). However always getting this error: fatal: \[localhost\]: FAILED! =\> {“changed”: false, “commands”: \[“show …

---

## [find out the ansible version within ansible without shell/cmd?](https://forum.ansible.com/t/find-out-the-ansible-version-within-ansible-without-shell-cmd/23060)

<div class="topic-metadata">

**Author:** [@Nusenu1](https://forum.ansible.com/u/Nusenu1)\
**Replies:** 1\
**Last updated:** [November 21, 2016, 10:31pm UTC](https://forum.ansible.com/t/find-out-the-ansible-version-within-ansible-without-shell-cmd/23060 "2016-11-21T22:31:33Z")

</div>

Hi, is there a better way for this than to use shell+register? - name: get ansible version shell: ansible --version|head -1|cut -d" " -f2 delegate\_to: 127.0.0.1 register: ansibleversion thanks, nuse…

---

## [replace module and lineinfile are not editing the file](https://forum.ansible.com/t/replace-module-and-lineinfile-are-not-editing-the-file/23067)

<div class="topic-metadata">

**Author:** [@challa.tek](https://forum.ansible.com/u/challa.tek)\
**Replies:** 2\
**Last updated:** [November 21, 2016, 8:46pm UTC](https://forum.ansible.com/t/replace-module-and-lineinfile-are-not-editing-the-file/23067 "2016-11-21T20:46:39Z")

</div>

I want to change the value of "readahead" to 256, i have tried using both replace and lineinfile modules, both modules don’t seem to work. they show the task as changed but when i log in and see the value stays the same. …

---

## [host\_vars mystery](https://forum.ansible.com/t/host-vars-mystery/23045)

<div class="topic-metadata">

**Author:** [@Bill\_Carlson](https://forum.ansible.com/u/Bill_Carlson)\
**Replies:** 1\
**Last updated:** [November 21, 2016, 4:02pm UTC](https://forum.ansible.com/t/host-vars-mystery/23045 "2016-11-21T16:02:35Z")

</div>

Hello, Have an odd problem with host\_vars, work different on two systems. Using 2.1.2.0, Centos 6 on both. On problem system, a run with only one host from inventory is failing to pickup host\_vars for other hosts, whi…

---

## [Reconfigure network with cs\_instance, using the force](https://forum.ansible.com/t/reconfigure-network-with-cs-instance-using-the-force/23063)

<div class="topic-metadata">

**Author:** [@Werner\_Dijkerman](https://forum.ansible.com/u/Werner_Dijkerman)\
**Replies:** 0\
**Last updated:** [November 21, 2016, 12:01pm UTC](https://forum.ansible.com/t/reconfigure-network-with-cs-instance-using-the-force/23063 "2016-11-21T12:01:53Z")

</div>

Hi, I need to update the network configuration for a instance in cloudstack. I’m using the ‘cs\_instance’ module to manage the vms. I’m under the impression that when using the 'force: yes" option, it would reconfigure …

---

## [Could Ansible Network Modules(New developing) support connect switch by telnet?](https://forum.ansible.com/t/could-ansible-network-modules-new-developing-support-connect-switch-by-telnet/23062)

<div class="topic-metadata">

**Author:** [@jacky.gao2016](https://forum.ansible.com/u/jacky.gao2016)\
**Replies:** 0\
**Last updated:** [November 21, 2016, 6:05am UTC](https://forum.ansible.com/t/could-ansible-network-modules-new-developing-support-connect-switch-by-telnet/23062 "2016-11-21T06:05:02Z")

</div>

Could Ansible Network Modules(New developing) support connect switch by telnet? Using connect Plugin technical with telnet instead of SSH, does it working ? It’s not normal, for a customer’s urgent upgrade scenario. W…

---

## [ansible can't clone VM through pysphere module](https://forum.ansible.com/t/ansible-cant-clone-vm-through-pysphere-module/22939)

<div class="topic-metadata">

**Author:** [@jian.li3hpe](https://forum.ansible.com/u/jian.li3hpe)\
**Replies:** 2\
**Last updated:** [November 21, 2016, 2:42am UTC](https://forum.ansible.com/t/ansible-cant-clone-vm-through-pysphere-module/22939 "2016-11-21T02:42:12Z")

</div>

Hi guys, I have met an issue, I can’t operate VMware Vsphere to clone VMs with pysphere python module. I have administrator control for our VMware pool! Below are my playbook, python environment, and issue info. Who can…

---

## [adding roles at run time and include\_role](https://forum.ansible.com/t/adding-roles-at-run-time-and-include-role/23059)

<div class="topic-metadata">

**Author:** [@Spike1](https://forum.ansible.com/u/Spike1)\
**Replies:** 0\
**Last updated:** [November 20, 2016, 7:36pm UTC](https://forum.ansible.com/t/adding-roles-at-run-time-and-include-role/23059 "2016-11-20T19:36:58Z")

</div>

Hi there, first post here so just a quick thank you to everybody who has contributed to ansible, it’a fantastic piece of software. I’m trying to specify hosts and roles at run time from cli while using a template playb…

---

## [Wrapping roles inside blocks to catch failures](https://forum.ansible.com/t/wrapping-roles-inside-blocks-to-catch-failures/19947)

<div class="topic-metadata">

**Author:** [@rfc2549](https://forum.ansible.com/u/rfc2549)\
**Replies:** 1\
**Last updated:** [November 20, 2016, 12:57pm UTC](https://forum.ansible.com/t/wrapping-roles-inside-blocks-to-catch-failures/19947 "2016-11-20T12:57:54Z")

</div>

I love the idea around the new block feature in Ansible 2. The example in the documentation includes tasks, I wanted to know if there was other areas/scopes in which we could include them ? It doesn’t look like I can g…

---

## [ansible\_default\_ipv4 not getting populated](https://forum.ansible.com/t/ansible-default-ipv4-not-getting-populated/23057)

<div class="topic-metadata">

**Author:** [@Vikram\_Ranabhatt](https://forum.ansible.com/u/Vikram_Ranabhatt)\
**Replies:** 8\
**Last updated:** [November 20, 2016, 1:45am UTC](https://forum.ansible.com/t/ansible-default-ipv4-not-getting-populated/23057 "2016-11-20T01:45:44Z")

</div>

I setting up kubernetes cluster with 3 master and 5 node.I am deploying through ansible. I am able to create these node. I am using ansible 2.2.0.0. on host machine from where I am launching my script. ansible\_default…

---

## [ansible yml error](https://forum.ansible.com/t/ansible-yml-error/23053)

<div class="topic-metadata">

**Author:** [@stack4cl](https://forum.ansible.com/u/stack4cl)\
**Replies:** 6\
**Last updated:** [November 19, 2016, 7:31pm UTC](https://forum.ansible.com/t/ansible-yml-error/23053 "2016-11-19T19:31:03Z")

</div>

Any idea about the below error - \[sysadm@pclprdftsnsoft1 ~\]$ ansible-playbook 2.yml \[WARNING\]: While constructing a mapping from /home/sysadm/2.yml, line 14, column 6, found a duplicate dict key (shell). Using last de…

---

## [Ansible 2.2.1 RC1 is ready for testing](https://forum.ansible.com/t/ansible-2-2-1-rc1-is-ready-for-testing/23056)

<div class="topic-metadata">

**Author:** [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Replies:** 0\
**Last updated:** [November 19, 2016, 7:23am UTC](https://forum.ansible.com/t/ansible-2-2-1-rc1-is-ready-for-testing/23056 "2016-11-19T07:23:05Z")

</div>

Hi all, we’re very happy to announce that Ansible 2.2.1 RC1 is ready for testing! Some bug fix highlights: Fixes a bug where undefined variables in with\_\* loops would cause a task failure even if the when condition wo…

---

## [Can you add guestinfo. to a VM in vsphere through ansible?](https://forum.ansible.com/t/can-you-add-guestinfo-to-a-vm-in-vsphere-through-ansible/23055)

<div class="topic-metadata">

**Author:** [@Brandon\_Hudlemeyer](https://forum.ansible.com/u/Brandon_Hudlemeyer)\
**Replies:** 0\
**Last updated:** [November 18, 2016, 5:07pm UTC](https://forum.ansible.com/t/can-you-add-guestinfo-to-a-vm-in-vsphere-through-ansible/23055 "2016-11-18T17:07:07Z")

</div>

I searched and couldn’t find anything saying one way or the other but I am trying to basically build a bunch of Coreos VMs(just for lab and practice) using ansible. I can deploy them just fine but I would like to do what…

---

## [Can somebody help me understand hostvars and jinja's intersect?](https://forum.ansible.com/t/can-somebody-help-me-understand-hostvars-and-jinjas-intersect/23054)

<div class="topic-metadata">

**Author:** [@Dan\_Rough](https://forum.ansible.com/u/Dan_Rough)\
**Replies:** 0\
**Last updated:** [November 18, 2016, 1:44pm UTC](https://forum.ansible.com/t/can-somebody-help-me-understand-hostvars-and-jinjas-intersect/23054 "2016-11-18T13:44:29Z")

</div>

Hi, I have two testing environments, located in different regions. Within each of those environments, among all the servers, there is a monitoring server. In one of my ansible roles I would like to be able to select the…

---

## [Some question about the ansible 2.3 roadmap of Networking](https://forum.ansible.com/t/some-question-about-the-ansible-2-3-roadmap-of-networking/23052)

<div class="topic-metadata">

**Author:** [@jacky.gao2016](https://forum.ansible.com/u/jacky.gao2016)\
**Replies:** 0\
**Last updated:** [November 18, 2016, 9:18am UTC](https://forum.ansible.com/t/some-question-about-the-ansible-2-3-roadmap-of-networking/23052 "2016-11-18T09:18:59Z")

</div>

I have some question about the ansible 2.3 roadmap of Networking as below blue: Networking Persistent connection manager è Does it supported by openssh? Netconf/YANG implementation (only feature) è We now using ncclie…

---

## [Looping over tasks in 1.9.4](https://forum.ansible.com/t/looping-over-tasks-in-1-9-4/23051)

<div class="topic-metadata">

**Author:** [@Ali\_Jabir](https://forum.ansible.com/u/Ali_Jabir)\
**Replies:** 0\
**Last updated:** [November 18, 2016, 8:19am UTC](https://forum.ansible.com/t/looping-over-tasks-in-1-9-4/23051 "2016-11-18T08:19:38Z")

</div>

Hi all, I am trying to do name: Check if package-1 is installed command: dpkg-query -l package-1 register: deb\_check ignore\_errors: yes name: Check that package-1 designated ports are free wait\_for: port={{ item }…

---

## [Problem while ping server 2008 r2 machine with ansible server](https://forum.ansible.com/t/problem-while-ping-server-2008-r2-machine-with-ansible-server/23050)

<div class="topic-metadata">

**Author:** [@Amit\_Saxena](https://forum.ansible.com/u/Amit_Saxena)\
**Replies:** 0\
**Last updated:** [November 18, 2016, 4:06am UTC](https://forum.ansible.com/t/problem-while-ping-server-2008-r2-machine-with-ansible-server/23050 "2016-11-18T04:06:47Z")

</div>

Dear Team First i wish you good morning I am new engineer in ansible field, about linux i have good knowledge but i got project of ansible time complition is very short time. i am feeling too much happy with ansible fe…

---

## [Need help to understand the output of ansible-playbook](https://forum.ansible.com/t/need-help-to-understand-the-output-of-ansible-playbook/23046)

<div class="topic-metadata">

**Author:** [@niraj\_pandey](https://forum.ansible.com/u/niraj_pandey)\
**Replies:** 1\
**Last updated:** [November 17, 2016, 8:21pm UTC](https://forum.ansible.com/t/need-help-to-understand-the-output-of-ansible-playbook/23046 "2016-11-17T20:21:34Z")

</div>

Hi , Can someone please explain me this output format (what is ok , changed ,unrechable ,failed and it’s values meanings)? Thanks in advance. ansible-playbook uptime.yaml -e “hosts=all” PLAY RECAP \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

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

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