# Archives

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

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

**Page:** 571

---

## [iptables module with port forwarding](https://forum.ansible.com/t/iptables-module-with-port-forwarding/22075)

<div class="topic-metadata">

**Author:** [@Chun-Hung\_Huang](https://forum.ansible.com/u/Chun-Hung_Huang)\
**Replies:** 0\
**Last updated:** [July 21, 2016, 6:41am UTC](https://forum.ansible.com/t/iptables-module-with-port-forwarding/22075 "2016-07-21T06:41:53Z")

</div>

Hi ALL I want to use iptables module to manage port forwarding ----\> EXT\_IP:EXT\_PORT ----\> INT\_IP:INT:PORT If user request EXT\_IP with port 8001, it will forward to INT\_IP ( 192.168.100.131 ) and port 22. I use iptab…

---

## [Convert Json into YAML language](https://forum.ansible.com/t/convert-json-into-yaml-language/22072)

<div class="topic-metadata">

**Author:** [@GBANE\_FETIGUE](https://forum.ansible.com/u/GBANE_FETIGUE)\
**Replies:** 0\
**Last updated:** [July 21, 2016, 2:01am UTC](https://forum.ansible.com/t/convert-json-into-yaml-language/22072 "2016-07-21T02:01:50Z")

</div>

I have trying to run the following Json; It seems to run fine but It supposed to run a result but I am not seeing nothing. Is anybody could tell me what’s going on ? Her is the Json : curl --basic -u admin:admin -F fil…

---

## [using Module apt: only\_upgrade is wrong](https://forum.ansible.com/t/using-module-apt-only-upgrade-is-wrong/22070)

<div class="topic-metadata">

**Author:** [@richard934935](https://forum.ansible.com/u/richard934935)\
**Replies:** 0\
**Last updated:** [July 21, 2016, 1:30am UTC](https://forum.ansible.com/t/using-module-apt-only-upgrade-is-wrong/22070 "2016-07-21T01:30:34Z")

</div>

Hello, Having either apt: only\_upgrade=docker-engine in my playbook or running it on the command line as ansible all --sudo -m apt -a ‘only\_upgrade=docker-engine’ fails with xx.xxx.xx.xxx | FAILED! =\> { "changed": fals…

---

## [OpenSwitch Ansible user with non-bash access](https://forum.ansible.com/t/openswitch-ansible-user-with-non-bash-access/22063)

<div class="topic-metadata">

**Author:** [@Ganesh\_Ragavan](https://forum.ansible.com/u/Ganesh_Ragavan)\
**Replies:** 1\
**Last updated:** [July 21, 2016, 12:10am UTC](https://forum.ansible.com/t/openswitch-ansible-user-with-non-bash-access/22063 "2016-07-21T00:10:11Z")

</div>

Hi, We have been using Ansible playbooks to configure OpenSwitch using the ops\_template module. For this we have been using admin account that has access to the bash prompt in the OpenSwitch and it has been working fine…

---

## [is this thing working?](https://forum.ansible.com/t/is-this-thing-working/22069)

<div class="topic-metadata">

**Author:** [@Ian\_Dennison](https://forum.ansible.com/u/Ian_Dennison)\
**Replies:** 0\
**Last updated:** [July 20, 2016, 11:37pm UTC](https://forum.ansible.com/t/is-this-thing-working/22069 "2016-07-20T23:37:09Z")

</div>

No updates on several browsers for 3 hours now. Did someone fall asleep?

---

## [when Host Unreachable, execute a command or a script only for the failed host](https://forum.ansible.com/t/when-host-unreachable-execute-a-command-or-a-script-only-for-the-failed-host/22067)

<div class="topic-metadata">

**Author:** [@Sudarsan\_Mukundhan](https://forum.ansible.com/u/Sudarsan_Mukundhan)\
**Replies:** 0\
**Last updated:** [July 20, 2016, 9:07pm UTC](https://forum.ansible.com/t/when-host-unreachable-execute-a-command-or-a-script-only-for-the-failed-host/22067 "2016-07-20T21:07:42Z")

</div>

Hi, I have a group of hosts (say 3 hosts) of which one becomes unresponsive (due to heavy load or sshd is not running etc reasons). So eventually Ansible Playbook would fail with unreachable host message for that host. …

---

## [need to pull value from mysql (or elsewhere) as a variable](https://forum.ansible.com/t/need-to-pull-value-from-mysql-or-elsewhere-as-a-variable/22056)

<div class="topic-metadata">

**Author:** [@gforster](https://forum.ansible.com/u/gforster)\
**Replies:** 1\
**Last updated:** [July 20, 2016, 8:47pm UTC](https://forum.ansible.com/t/need-to-pull-value-from-mysql-or-elsewhere-as-a-variable/22056 "2016-07-20T20:47:28Z")

</div>

The servers here have nfs-mounted volumes. I need to get that volume name (stored in mysql) and make a symlink to it. Any idea how to accomplish this without manual intervention? Thanks!

---

## [Syntax question, please](https://forum.ansible.com/t/syntax-question-please/22059)

<div class="topic-metadata">

**Author:** [@Tiglath](https://forum.ansible.com/u/Tiglath)\
**Replies:** 2\
**Last updated:** [July 20, 2016, 8:10pm UTC](https://forum.ansible.com/t/syntax-question-please/22059 "2016-07-20T20:10:50Z")

</div>

I have this:

---

## [lvg/jinja issue](https://forum.ansible.com/t/lvg-jinja-issue/22055)

<div class="topic-metadata">

**Author:** [@oravirt](https://forum.ansible.com/u/oravirt)\
**Replies:** 2\
**Last updated:** [July 20, 2016, 7:12pm UTC](https://forum.ansible.com/t/lvg-jinja-issue/22055 "2016-07-20T19:12:48Z")

</div>

Hi, ansible --version ansible 2.1.0.0 config file = /Users/miksan/.ansible.cfg configured module search path = Default w/o overrides I’ve got this gist where I’m attempting to create a volumegroup with multiple devi…

---

## [\[feat req\] Improving set\_fact scoping and lifetime](https://forum.ansible.com/t/feat-req-improving-set-fact-scoping-and-lifetime/22065)

<div class="topic-metadata">

**Author:** [@Danny\_Kimsey](https://forum.ansible.com/u/Danny_Kimsey)\
**Replies:** 0\
**Last updated:** [July 20, 2016, 7:01pm UTC](https://forum.ansible.com/t/feat-req-improving-set-fact-scoping-and-lifetime/22065 "2016-07-20T19:01:04Z")

</div>

tl;dr Add a scope parameter to set\_fact module, improving usability. The current behavior of set\_fact is to create a run-time only variable, in 2.x with private\_role\_vars this variable is scoped(\*) to the role it is def…

---

## [Recommendation on how best to implement Jenkins with Ansible](https://forum.ansible.com/t/recommendation-on-how-best-to-implement-jenkins-with-ansible/22064)

<div class="topic-metadata">

**Author:** [@Eric\_Marquez](https://forum.ansible.com/u/Eric_Marquez)\
**Replies:** 0\
**Last updated:** [July 20, 2016, 6:56pm UTC](https://forum.ansible.com/t/recommendation-on-how-best-to-implement-jenkins-with-ansible/22064 "2016-07-20T18:56:01Z")

</div>

I’m looking at adding some additional automation using a Jenkins server. I don’t need Ansible to build a Jenkins server I want Jenkins to kickoff my Ansible Plays. My Jenkins server is running on a windows platform and i…

---

## [Use a yaml/json/xml file to drive ansible?](https://forum.ansible.com/t/use-a-yaml-json-xml-file-to-drive-ansible/22044)

<div class="topic-metadata">

**Author:** [@K\_Dawg](https://forum.ansible.com/u/K_Dawg)\
**Replies:** 1\
**Last updated:** [July 20, 2016, 6:11pm UTC](https://forum.ansible.com/t/use-a-yaml-json-xml-file-to-drive-ansible/22044 "2016-07-20T18:11:44Z")

</div>

Is there a way to use a yaml/json/xml or other similar config file to drive ansible playbooks?

---

## [ansible-playbook fails with error regarding module:setup](https://forum.ansible.com/t/ansible-playbook-fails-with-error-regarding-module-setup/22061)

<div class="topic-metadata">

**Author:** [@gforster](https://forum.ansible.com/u/gforster)\
**Replies:** 1\
**Last updated:** [July 20, 2016, 5:23pm UTC](https://forum.ansible.com/t/ansible-playbook-fails-with-error-regarding-module-setup/22061 "2016-07-20T17:23:07Z")

</div>

When I run the playbook on the local computer against the target server, I get a very long error telling me the setup module failed. \` $ ansible-playbook -i “server.fqdn,” playbooks/server\_build.yml -K --ask-pass --che…

---

## [lineinfile with backrefs and create: yes is failing with path does not exist](https://forum.ansible.com/t/lineinfile-with-backrefs-and-create-yes-is-failing-with-path-does-not-exist/22062)

<div class="topic-metadata">

**Author:** [@jdelaporte](https://forum.ansible.com/u/jdelaporte)\
**Replies:** 1\
**Last updated:** [July 20, 2016, 5:00pm UTC](https://forum.ansible.com/t/lineinfile-with-backrefs-and-create-yes-is-failing-with-path-does-not-exist/22062 "2016-07-20T17:00:19Z")

</div>

Is this expected behaviour? I am trying to change a line in a file if it is already present, or create the file if it isn’t: \` name: set ypserver to localhost lineinfile: dest: /etc/yp.conf create: yes state: pres…

---

## [What does the \[0\] mean in   when: inventory\_hostname ==  groups\['mongo\_servers'\]\[0\]  ?](https://forum.ansible.com/t/what-does-the-0-mean-in-when-inventory-hostname-groups-mongo-servers-0/14039)

<div class="topic-metadata">

**Author:** [@David\_Coronel](https://forum.ansible.com/u/David_Coronel)\
**Replies:** 3\
**Last updated:** [July 20, 2016, 4:18pm UTC](https://forum.ansible.com/t/what-does-the-0-mean-in-when-inventory-hostname-groups-mongo-servers-0/14039 "2016-07-20T16:18:24Z")

</div>

I saw this in the ansible-examples / openshift / openshift\_ec2 / roles / mongodb / tasks / main.yml name: Initialize the replication set shell: /usr/bin/mongo --port “{{ mongod\_port }}” /tmp/repset\_init.js;touch /opt/…

---

## [Execute Python file in remore machines](https://forum.ansible.com/t/execute-python-file-in-remore-machines/22051)

<div class="topic-metadata">

**Author:** [@Amrit\_Bhandari](https://forum.ansible.com/u/Amrit_Bhandari)\
**Replies:** 1\
**Last updated:** [July 20, 2016, 3:56pm UTC](https://forum.ansible.com/t/execute-python-file-in-remore-machines/22051 "2016-07-20T15:56:15Z")

</div>

Hello everyone, I am new to Ansible.I have been trying to execute a Python script in remote nodes however am confused how to do it.I wrote a playbook and tried to execute it however I get some errors.I am using Fedora L…

---

## [error: shade is required for this module](https://forum.ansible.com/t/error-shade-is-required-for-this-module/22034)

<div class="topic-metadata">

**Author:** [@Maurizio\_Santovito](https://forum.ansible.com/u/Maurizio_Santovito)\
**Replies:** 2\
**Last updated:** [July 20, 2016, 3:20pm UTC](https://forum.ansible.com/t/error-shade-is-required-for-this-module/22034 "2016-07-20T15:20:58Z")

</div>

Hello, we have an openstack setup with one controller, a neutron machine and a couple of compute nodes. I have first installed ansible on the controller but somehow the installation failed. The command ansible localh…

---

## [wait\_for stopped working in 2.1.0.0 ?](https://forum.ansible.com/t/wait-for-stopped-working-in-2-1-0-0/22057)

<div class="topic-metadata">

**Author:** [@Kai1](https://forum.ansible.com/u/Kai1)\
**Replies:** 0\
**Last updated:** [July 20, 2016, 1:12pm UTC](https://forum.ansible.com/t/wait-for-stopped-working-in-2-1-0-0/22057 "2016-07-20T13:12:35Z")

</div>

Hello! I have a playbook which worked well in ansbile 2.0 . After upgrading to 2.1.0.0 a wait\_for (port) times out although the port is up and even returns nice HTML pages. Does anyone know of any changes to wait\_for…

---

## [Content low error message](https://forum.ansible.com/t/content-low-error-message/22053)

<div class="topic-metadata">

**Author:** [@Barry\_Kaplan](https://forum.ansible.com/u/Barry_Kaplan)\
**Replies:** 1\
**Last updated:** [July 20, 2016, 1:32am UTC](https://forum.ansible.com/t/content-low-error-message/22053 "2016-07-20T01:32:29Z")

</div>

I am getting these errors. This is the output with -vvv. Would really be helpful the variable that is not defined was identified. Anybody have idea how to debug this? (ansible 2.2.RC3) TASK \[setup\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [ansible 2.1.0 failures](https://forum.ansible.com/t/ansible-2-1-0-failures/22052)

<div class="topic-metadata">

**Author:** [@Dimon](https://forum.ansible.com/u/Dimon)\
**Replies:** 0\
**Last updated:** [July 19, 2016, 10:27pm UTC](https://forum.ansible.com/t/ansible-2-1-0-failures/22052 "2016-07-19T22:27:07Z")

</div>

I keep on stepping on the same issue that I do not believe I’ve ever had in pre-2.1.0 versions (mind you I’ve had long gap since list I’ve built playbooks… so my references could go as far back as 1.9) Here’s the issue: …

---

## [Trying to copy a directories contents but not the other directories with in. Any help is appreciated](https://forum.ansible.com/t/trying-to-copy-a-directories-contents-but-not-the-other-directories-with-in-any-help-is-appreciated/22048)

<div class="topic-metadata">

**Author:** [@Alan\_Harkleroad1](https://forum.ansible.com/u/Alan_Harkleroad1)\
**Replies:** 3\
**Last updated:** [July 19, 2016, 7:28pm UTC](https://forum.ansible.com/t/trying-to-copy-a-directories-contents-but-not-the-other-directories-with-in-any-help-is-appreciated/22048 "2016-07-19T19:28:42Z")

</div>

I am currently trying to copy a directories contents to a new directory so we can do our SHA-384 and TLS upgrades to the system. When I have to copy the variable list results to the new folder is where I am confusing my …

---

## [replace a word in a file with o/p of command](https://forum.ansible.com/t/replace-a-word-in-a-file-with-o-p-of-command/21733)

<div class="topic-metadata">

**Author:** [@pallaveet](https://forum.ansible.com/u/pallaveet)\
**Replies:** 2\
**Last updated:** [July 19, 2016, 5:58pm UTC](https://forum.ansible.com/t/replace-a-word-in-a-file-with-o-p-of-command/21733 "2016-07-19T17:58:35Z")

</div>

Hi, I have a file in which i need to replace worrd with hostname of my machine. I am trying below code and getting error. Pls let me know ho can i do this … i am new to ansible name: hostame shell: hostname regi…

---

## [Deprecation warning when using variable that is a list](https://forum.ansible.com/t/deprecation-warning-when-using-variable-that-is-a-list/22050)

<div class="topic-metadata">

**Author:** [@Eric\_Secrist](https://forum.ansible.com/u/Eric_Secrist)\
**Replies:** 0\
**Last updated:** [July 19, 2016, 5:15pm UTC](https://forum.ansible.com/t/deprecation-warning-when-using-variable-that-is-a-list/22050 "2016-07-19T17:15:59Z")

</div>

Hello, This is my first post in this group. Please bear with my newbieness. I am trying to clean up a deprecation warning in my ansible code, related to a variable I am using called ‘netgroups’, which is a list. The c…

---

## [Handling (delta) changes/updates after initially provisioning](https://forum.ansible.com/t/handling-delta-changes-updates-after-initially-provisioning/22049)

<div class="topic-metadata">

**Author:** [@James6](https://forum.ansible.com/u/James6)\
**Replies:** 0\
**Last updated:** [July 19, 2016, 5:05pm UTC](https://forum.ansible.com/t/handling-delta-changes-updates-after-initially-provisioning/22049 "2016-07-19T17:05:59Z")

</div>

Hello… So I have a semi-elaborate set of Ansible roles that provision a handful of different system types based on variable configuration and all is working well. In total provisioning a new system may take ~400 tasks. …

---

## [AWS dynamic inventory and filter out unreachable host](https://forum.ansible.com/t/aws-dynamic-inventory-and-filter-out-unreachable-host/22045)

<div class="topic-metadata">

**Author:** [@Anthony\_Cheng](https://forum.ansible.com/u/Anthony_Cheng)\
**Replies:** 2\
**Last updated:** [July 19, 2016, 12:48pm UTC](https://forum.ansible.com/t/aws-dynamic-inventory-and-filter-out-unreachable-host/22045 "2016-07-19T12:48:45Z")

</div>

I want to use the ec2\_facts module to gather info, e.g. \` hosts: all gather\_facts: false become: no tasks: name: Get instance ec2 facts action: ec2\_facts register: ec2\_facts \` Is there a way to filter out the S…

---

## [Lost item in hash when call it in include task file....](https://forum.ansible.com/t/lost-item-in-hash-when-call-it-in-include-task-file/22047)

<div class="topic-metadata">

**Author:** [@Clement\_VALENTIN](https://forum.ansible.com/u/Clement_VALENTIN)\
**Replies:** 0\
**Last updated:** [July 19, 2016, 12:36pm UTC](https://forum.ansible.com/t/lost-item-in-hash-when-call-it-in-include-task-file/22047 "2016-07-19T12:36:06Z")

</div>

Hi, I lost all hash variable & data when i call hash var in include file (with\_items only)… Exemple: host\_vars : mysql\_instances: port: ‘XXXX’ mysql\_databases: database: “XXXX” encoding: “utf8” mysql\_user: name:…

---

## [Need playbook values from mysql (or other external source)](https://forum.ansible.com/t/need-playbook-values-from-mysql-or-other-external-source/22046)

<div class="topic-metadata">

**Author:** [@gforster](https://forum.ansible.com/u/gforster)\
**Replies:** 0\
**Last updated:** [July 19, 2016, 11:24am UTC](https://forum.ansible.com/t/need-playbook-values-from-mysql-or-other-external-source/22046 "2016-07-19T11:24:37Z")

</div>

I have a set of servers to migrate to new hosts. We want to keep a specific nfs mounted volume from the old host and apply the same volume with the same IP to the new host. These values are stored in mysql as well as, ob…

---

## [Stdout processing](https://forum.ansible.com/t/stdout-processing/22040)

<div class="topic-metadata">

**Author:** [@Eric\_Marquez](https://forum.ansible.com/u/Eric_Marquez)\
**Replies:** 1\
**Last updated:** [July 19, 2016, 10:42am UTC](https://forum.ansible.com/t/stdout-processing/22040 "2016-07-19T10:42:40Z")

</div>

Simple question, what’s the best way to capture stdout from a task that is performed? For example I want to run a command to gather some telemetry from a switch but is using the debug the best way to get the stdout data?…

---

## [Why is package management so convoluted with Ansible and Windows?](https://forum.ansible.com/t/why-is-package-management-so-convoluted-with-ansible-and-windows/22036)

<div class="topic-metadata">

**Author:** [@Bob\_Tanner](https://forum.ansible.com/u/Bob_Tanner)\
**Replies:** 2\
**Last updated:** [July 19, 2016, 9:32am UTC](https://forum.ansible.com/t/why-is-package-management-so-convoluted-with-ansible-and-windows/22036 "2016-07-19T09:32:43Z")

</div>

Can someone send me some links about why it’s so convoluted to get Ansible manage of software packages on Windows? Even with all the flavors of package managers on the Linux side of things Ansible does a great job. Mov…

---

## [Ansible 2.1.1 RC3 is ready for testing](https://forum.ansible.com/t/ansible-2-1-1-rc3-is-ready-for-testing/22042)

<div class="topic-metadata">

**Author:** [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Replies:** 0\
**Last updated:** [July 18, 2016, 8:29pm UTC](https://forum.ansible.com/t/ansible-2-1-1-rc3-is-ready-for-testing/22042 "2016-07-18T20:29:42Z")

</div>

Hi all, we’re happy to announce that RC3 for 2.1.1 is now available for testing. This release candidate fixes several more bugs since the RC2 release: Fix for Azure modules to work with most recent Azure python librar…

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

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