# Archives

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

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

**Page:** 537

---

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

---

## [Set the "changed" value when using the raw module](https://forum.ansible.com/t/set-the-changed-value-when-using-the-raw-module/23049)

<div class="topic-metadata">

**Author:** [@Justin\_Dugan](https://forum.ansible.com/u/Justin_Dugan)\
**Replies:** 3\
**Last updated:** [November 17, 2016, 7:52pm UTC](https://forum.ansible.com/t/set-the-changed-value-when-using-the-raw-module/23049 "2016-11-17T19:52:23Z")

</div>

Hi all, I am using the following task in a playbook: name: Install .Net 4.6.2 raw: c:/temp/NDP462-KB3151800-x86-x64-AllOS-ENU.exe /q /norestart when: raw\_output.stdout | version\_compare(‘394806’, ‘\<’) notify: reboo…

---

## [Ansible 2.2.0 - Module shell & win\_shell - possible issue when output is empty](https://forum.ansible.com/t/ansible-2-2-0-module-shell-win-shell-possible-issue-when-output-is-empty/23048)

<div class="topic-metadata">

**Author:** [@fabrice.perko](https://forum.ansible.com/u/fabrice.perko)\
**Replies:** 2\
**Last updated:** [November 17, 2016, 5:30pm UTC](https://forum.ansible.com/t/ansible-2-2-0-module-shell-win-shell-possible-issue-when-output-is-empty/23048 "2016-11-17T17:30:17Z")

</div>

Hello, I encounter a bizarre behavior with these the shell module and the new win\_shell module. It appears that, if the execution of the shell command does not produce anything in the standard output, the module consid…

---

## [expect module does not like an int I am passing in](https://forum.ansible.com/t/expect-module-does-not-like-an-int-i-am-passing-in/23028)

<div class="topic-metadata">

**Author:** [@matt\_shepherd](https://forum.ansible.com/u/matt_shepherd)\
**Replies:** 3\
**Last updated:** [November 17, 2016, 3:13pm UTC](https://forum.ansible.com/t/expect-module-does-not-like-an-int-i-am-passing-in/23028 "2016-11-17T15:13:02Z")

</div>

All, I did some searching here and did not find this specific issue. I am trying to use the expect module to work with fdisk to automatically provision new space on VMs. tasks: name: “DISK | Create a partition for the…

---

## [Using facts with Ansible Tower does not appear to work](https://forum.ansible.com/t/using-facts-with-ansible-tower-does-not-appear-to-work/23042)

<div class="topic-metadata">

**Author:** [@Jon\_Kent](https://forum.ansible.com/u/Jon_Kent)\
**Replies:** 2\
**Last updated:** [November 17, 2016, 9:52am UTC](https://forum.ansible.com/t/using-facts-with-ansible-tower-does-not-appear-to-work/23042 "2016-11-17T09:52:02Z")

</div>

Hi, I’ve been trying to get Ansible Tower to run a playbook/role which should update the /etc/hosts file across all hosts in a group. I have the following playbook: name: Update hosts file if required hosts: all ga…

---

## [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/23047)

<div class="topic-metadata">

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

</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…

---

## [Not sure why this when: is not working.](https://forum.ansible.com/t/not-sure-why-this-when-is-not-working/23031)

<div class="topic-metadata">

**Author:** [@Steven\_Smith](https://forum.ansible.com/u/Steven_Smith)\
**Replies:** 3\
**Last updated:** [November 17, 2016, 5:45am UTC](https://forum.ansible.com/t/not-sure-why-this-when-is-not-working/23031 "2016-11-17T05:45:12Z")

</div>

This is the play I am trying to get to run: name: Install httpd yum: name=httpd state=latest disable\_gpg\_check=yes when: (inventory\_hostname in groups\[“web”\]) or (inventory\_hostname in groups\[“web\_backend”\]) ignore\_…

---

## [Galaxy update tonight at 10:00 PM](https://forum.ansible.com/t/galaxy-update-tonight-at-10-00-pm/23044)

<div class="topic-metadata">

**Author:** [@Chris\_Houseknecht](https://forum.ansible.com/u/Chris_Houseknecht)\
**Replies:** 1\
**Last updated:** [November 17, 2016, 3:45am UTC](https://forum.ansible.com/t/galaxy-update-tonight-at-10-00-pm/23044 "2016-11-17T03:45:51Z")

</div>

We will be pushing an update to Galaxy this evening that fixes broken Travis notifications and automatic role imports. See issue 189 for details. The update will be quick, and we do not anticipate any downtime. Will upd…

---

## [Writing an endless playbook strategy plugin](https://forum.ansible.com/t/writing-an-endless-playbook-strategy-plugin/23041)

<div class="topic-metadata">

**Author:** [@Florian\_Dambrine](https://forum.ansible.com/u/Florian_Dambrine)\
**Replies:** 3\
**Last updated:** [November 16, 2016, 9:24pm UTC](https://forum.ansible.com/t/writing-an-endless-playbook-strategy-plugin/23041 "2016-11-16T21:24:57Z")

</div>

Hey everyone, I would like to have your input on that question. I have a really special use case where I want to run an endless playbook (on localhost only). I basically want to implement an endless loop on my playbook…

---

## [\--syntax-ckeck won't check syntax from variable-included files](https://forum.ansible.com/t/syntax-ckeck-wont-check-syntax-from-variable-included-files/23039)

<div class="topic-metadata">

**Author:** [@Thomas\_Faucher](https://forum.ansible.com/u/Thomas_Faucher)\
**Replies:** 1\
**Last updated:** [November 16, 2016, 7:32pm UTC](https://forum.ansible.com/t/syntax-ckeck-wont-check-syntax-from-variable-included-files/23039 "2016-11-16T19:32:33Z")

</div>

Hello, I noticed that --syntax-check won't check the syntax from included files if the include statement is based on a variable. I have an include statement such as: $ head -n 3 roles/mongodb/tasks/main.yml

---

## [multiple variables](https://forum.ansible.com/t/multiple-variables/23043)

<div class="topic-metadata">

**Author:** [@Luigi\_Crozzoli](https://forum.ansible.com/u/Luigi_Crozzoli)\
**Replies:** 1\
**Last updated:** [November 16, 2016, 5:57pm UTC](https://forum.ansible.com/t/multiple-variables/23043 "2016-11-16T17:57:24Z")

</div>

Is there a way to register two or more variables echoed from shell script? I want to do something like this: script.sh A=“hello” B=“world” echo $A echo $B ROLE shell: "{{ script }} " register: result ignore\_err…

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

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