# Archives

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

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

**Page:** 582

---

## [Conditional check failed](https://forum.ansible.com/t/conditional-check-failed/21749)

<div class="topic-metadata">

**Author:** [@plat00n](https://forum.ansible.com/u/plat00n)\
**Replies:** 2\
**Last updated:** [June 13, 2016, 3:06pm UTC](https://forum.ansible.com/t/conditional-check-failed/21749 "2016-06-13T15:06:42Z")

</div>

Hello, I’m posting here because bcoca told me do that ! ( I have already opened a ticket but bcoca has closed it \>\> LINK HERE \<\< ) I hope someone will help me :slight\_smile: Thanks ANSIBLE VERSION ansible 2.1.0.0 OS …

---

## [Is it possible to generate Inventory from CMDB (Configuration Management Database)](https://forum.ansible.com/t/is-it-possible-to-generate-inventory-from-cmdb-configuration-management-database/21751)

<div class="topic-metadata">

**Author:** [@Raghava\_Krishna](https://forum.ansible.com/u/Raghava_Krishna)\
**Replies:** 1\
**Last updated:** [June 13, 2016, 2:41pm UTC](https://forum.ansible.com/t/is-it-possible-to-generate-inventory-from-cmdb-configuration-management-database/21751 "2016-06-13T14:41:23Z")

</div>

I’am planning to generate dynamic inventory file from configuration management database system instead of writing in files. Is it possible to write a script,so that when i run ansible playbook it should pick up inven…

---

## [Need help copying file from specific host to all targets](https://forum.ansible.com/t/need-help-copying-file-from-specific-host-to-all-targets/21674)

<div class="topic-metadata">

**Author:** [@Gordon\_Cooke](https://forum.ansible.com/u/Gordon_Cooke)\
**Replies:** 9\
**Last updated:** [June 13, 2016, 1:53pm UTC](https://forum.ansible.com/t/need-help-copying-file-from-specific-host-to-all-targets/21674 "2016-06-13T13:53:41Z")

</div>

I am trying to figure out how to copy a cert file generated on a specific host (ca-server) to the list of hosts defined in the playbook. The scenario is something like this: using delegate\_to go to the ca-server and ge…

---

## [Ansible Tower: error running Apache Ant.exe command](https://forum.ansible.com/t/ansible-tower-error-running-apache-ant-exe-command/21661)

<div class="topic-metadata">

**Author:** [@JeffElep](https://forum.ansible.com/u/JeffElep)\
**Replies:** 5\
**Last updated:** [June 13, 2016, 1:06pm UTC](https://forum.ansible.com/t/ansible-tower-error-running-apache-ant-exe-command/21661 "2016-06-13T13:06:29Z")

</div>

we are currently running Ansible Tower 2.1 target is Windows Server 2012 with SP2 \\ running WinRM 3.0 in a playbook i have the following task name: string text togeter raw: cmd /c ant -buildfile deploy.xml stop-srvc…

---

## [Task execution for host within multiple host groups and different aliases](https://forum.ansible.com/t/task-execution-for-host-within-multiple-host-groups-and-different-aliases/21750)

<div class="topic-metadata">

**Author:** [@Thms\_Hmm](https://forum.ansible.com/u/Thms_Hmm)\
**Replies:** 0\
**Last updated:** [June 13, 2016, 8:13am UTC](https://forum.ansible.com/t/task-execution-for-host-within-multiple-host-groups-and-different-aliases/21750 "2016-06-13T08:13:54Z")

</div>

I’m struggling with hosts that belong to multiple host groups and have different aliases. The problem i’m facing is, that if i try to execute a task on group “all\_hosts” where each group belongs to, the task is executed …

---

## [creating users - how to filter a vars dict from within a given playbook per inventory class](https://forum.ansible.com/t/creating-users-how-to-filter-a-vars-dict-from-within-a-given-playbook-per-inventory-class/21748)

<div class="topic-metadata">

**Author:** [@dch](https://forum.ansible.com/u/dch)\
**Replies:** 2\
**Last updated:** [June 12, 2016, 10:45pm UTC](https://forum.ansible.com/t/creating-users-how-to-filter-a-vars-dict-from-within-a-given-playbook-per-inventory-class/21748 "2016-06-12T22:45:30Z")

</div>

Hi folks, I have a presumably typical setup - see end for the yaml files. - a generic role to create users - a vars file with all the users across my environment Which works fine if I want all users on every box. Ho…

---

## [ansible stdout](https://forum.ansible.com/t/ansible-stdout/21743)

<div class="topic-metadata">

**Author:** [@John.1209](https://forum.ansible.com/u/John.1209)\
**Replies:** 1\
**Last updated:** [June 12, 2016, 6:18pm UTC](https://forum.ansible.com/t/ansible-stdout/21743 "2016-06-12T18:18:54Z")

</div>

Is there a way to extract stdout variables from Ansible? Here is my script: hosts: myhost sudo: yes tasks: name: output bash command: rpm -q bash register: result debug: msg=“{{ result.stderr }}” Here is…

---

## [Agentless architecture in Ansible](https://forum.ansible.com/t/agentless-architecture-in-ansible/21730)

<div class="topic-metadata">

**Author:** [@Kaushal\_Shriyan](https://forum.ansible.com/u/Kaushal_Shriyan)\
**Replies:** 4\
**Last updated:** [June 12, 2016, 4:05pm UTC](https://forum.ansible.com/t/agentless-architecture-in-ansible/21730 "2016-06-12T16:05:32Z")

</div>

Hi, I am new to Ansible. I am not sure what is agent less in Ansible and how is it advantageous over agent based? I also read the whitepaper https://www.ansible.com/benefits-of-agentless-architecture and still have not …

---

## [IPv6 filter broken in ansible 2.x - light at the end of the tunnel?](https://forum.ansible.com/t/ipv6-filter-broken-in-ansible-2-x-light-at-the-end-of-the-tunnel/21746)

<div class="topic-metadata">

**Author:** [@Nusenu1](https://forum.ansible.com/u/Nusenu1)\
**Replies:** 0\
**Last updated:** [June 12, 2016, 1:11pm UTC](https://forum.ansible.com/t/ipv6-filter-broken-in-ansible-2-x-light-at-the-end-of-the-tunnel/21746 "2016-06-12T13:11:25Z")

</div>

Hi, a bit over 3 months ago I reported a regression in ansible 2.x \[1\] that prevents me from migrating my role \[2\] to ansible 2.x. On 2016-03-17 James Cammarata labeled the issue 'in progress', but since then nothing…

---

## [Ansible error when running yml file for network switch](https://forum.ansible.com/t/ansible-error-when-running-yml-file-for-network-switch/21745)

<div class="topic-metadata">

**Author:** [@ansnewbie2016](https://forum.ansible.com/u/ansnewbie2016)\
**Replies:** 0\
**Last updated:** [June 12, 2016, 4:40am UTC](https://forum.ansible.com/t/ansible-error-when-running-yml-file-for-network-switch/21745 "2016-06-12T04:40:52Z")

</div>

Hi, I am relatively new to Ansible and exploring the feature as best as I can. I am trying to build the Nexus 9000 series switch config based off the following website: https://pynet.twb-tech.com/blog/ansible/ansible-c…

---

## [urgent, please help: any way to get ansible to work over an unstable connection?](https://forum.ansible.com/t/urgent-please-help-any-way-to-get-ansible-to-work-over-an-unstable-connection/21359)

<div class="topic-metadata">

**Author:** [@nrser](https://forum.ansible.com/u/nrser)\
**Replies:** 7\
**Last updated:** [June 11, 2016, 11:37am UTC](https://forum.ansible.com/t/urgent-please-help-any-way-to-get-ansible-to-work-over-an-unstable-connection/21359 "2016-06-11T11:37:45Z")

</div>

this is preventing me from deploying so it’s kind of a serious and time-sensitive issue… i’m in China and the internet connection out of the country (to where our servers are) is unstable. i’ve been trying to run a pla…

---

## [which rpm version??](https://forum.ansible.com/t/which-rpm-version/21740)

<div class="topic-metadata">

**Author:** [@John.1209](https://forum.ansible.com/u/John.1209)\
**Replies:** 1\
**Last updated:** [June 11, 2016, 8:17am UTC](https://forum.ansible.com/t/which-rpm-version/21740 "2016-06-11T08:17:32Z")

</div>

I’m trying to write an ansible script to tell me which version of bash RPM a host is running. Here is what I have so far: \[root@ansi playbooks\]$ more which\_bash.yml

---

## [New to Ansinble](https://forum.ansible.com/t/new-to-ansinble/21729)

<div class="topic-metadata">

**Author:** [@suneel\_mallela](https://forum.ansible.com/u/suneel_mallela)\
**Replies:** 1\
**Last updated:** [June 10, 2016, 10:02pm UTC](https://forum.ansible.com/t/new-to-ansinble/21729 "2016-06-10T22:02:27Z")

</div>

Hello Ansibles, I am very much interested to learn Ansible and very new to auto configuration and management (CICD). Where can I start to understand and learn these tools (Automation tools). I have working experience i…

---

## [multiple env's + combine dynamic and static inventory + same group\_vars/host\_vars](https://forum.ansible.com/t/multiple-envs-combine-dynamic-and-static-inventory-same-group-vars-host-vars/21739)

<div class="topic-metadata">

**Author:** [@Bert](https://forum.ansible.com/u/Bert)\
**Replies:** 0\
**Last updated:** [June 10, 2016, 9:58pm UTC](https://forum.ansible.com/t/multiple-envs-combine-dynamic-and-static-inventory-same-group-vars-host-vars/21739 "2016-06-10T21:58:03Z")

</div>

Hi, I have the following inventory structure: inventory ├── development ├── group\_vars │ └── all │ └── group ├── host\_vars │ ├── host └── production ├── gce.py └── production # static hosts So the development…

---

## [Ansible-2.1.0 - "connection=local" does not work](https://forum.ansible.com/t/ansible-2-1-0-connection-local-does-not-work/21731)

<div class="topic-metadata">

**Author:** [@Cuong\_Nguyen](https://forum.ansible.com/u/Cuong_Nguyen)\
**Replies:** 1\
**Last updated:** [June 10, 2016, 8:01pm UTC](https://forum.ansible.com/t/ansible-2-1-0-connection-local-does-not-work/21731 "2016-06-10T20:01:53Z")

</div>

Hi all, I am using Ansible 2.1.0 on Ubuntu. I’m trying to use “ios\_command” to execute command on Cisco router. In playbook, I set connection to local (connection=local). However, when run ansible-playbook, ansible sti…

---

## [Ansible Logs for Different Host/Client/Server](https://forum.ansible.com/t/ansible-logs-for-different-host-client-server/21711)

<div class="topic-metadata">

**Author:** [@Dominique\_Adam\_Igles](https://forum.ansible.com/u/Dominique_Adam_Igles)\
**Replies:** 1\
**Last updated:** [June 10, 2016, 7:40pm UTC](https://forum.ansible.com/t/ansible-logs-for-different-host-client-server/21711 "2016-06-10T19:40:11Z")

</div>

Hi. I would like to ask if there is a work around in ansible logs. What i want is that in every server that i manage with ansible, there is a separate log for each of server. Ex. Ansible Server , Server A, Server B a…

---

## [Jenkins-\>Ansible(Proxy)-\>Remote Ansible](https://forum.ansible.com/t/jenkins-ansible-proxy-remote-ansible/21738)

<div class="topic-metadata">

**Author:** [@mhh](https://forum.ansible.com/u/mhh)\
**Replies:** 0\
**Last updated:** [June 10, 2016, 7:08pm UTC](https://forum.ansible.com/t/jenkins-ansible-proxy-remote-ansible/21738 "2016-06-10T19:08:40Z")

</div>

Hello, I want to know if is possible to use Ansible as a Proxy. I have a deploy job (jenkins), which is triggered right after build job, but in this job i want to trigger ansible to run playbook. There are some security …

---

## [Reliable way to detect when EC2 instance is ready for login](https://forum.ansible.com/t/reliable-way-to-detect-when-ec2-instance-is-ready-for-login/21736)

<div class="topic-metadata">

**Author:** [@Michael\_Spiegle](https://forum.ansible.com/u/Michael_Spiegle)\
**Replies:** 1\
**Last updated:** [June 10, 2016, 5:38pm UTC](https://forum.ansible.com/t/reliable-way-to-detect-when-ec2-instance-is-ready-for-login/21736 "2016-06-10T17:38:04Z")

</div>

When I provision an EC2 instance, I add a user\_data script which drops an SSH pubkey so I can login as root. The problem is that it’s difficult to tell exactly when cloud-init has been completed. Even if port 22 is accep…

---

## [jboss config and ansible](https://forum.ansible.com/t/jboss-config-and-ansible/21737)

<div class="topic-metadata">

**Author:** [@Dick\_Davies](https://forum.ansible.com/u/Dick_Davies)\
**Replies:** 0\
**Last updated:** [June 10, 2016, 5:34pm UTC](https://forum.ansible.com/t/jboss-config-and-ansible/21737 "2016-06-10T17:34:42Z")

</div>

Have a new gig which is JBoss heavy, and I'm trying to come up with a sane approach to manage configuration. As far as I can make out changes via the jboss cli immediately update the underlying XML configuration, so t…

---

## [Using module vs copying conf file](https://forum.ansible.com/t/using-module-vs-copying-conf-file/21727)

<div class="topic-metadata">

**Author:** [@Pat\_Roy](https://forum.ansible.com/u/Pat_Roy)\
**Replies:** 2\
**Last updated:** [June 10, 2016, 4:42pm UTC](https://forum.ansible.com/t/using-module-vs-copying-conf-file/21727 "2016-06-10T16:42:47Z")

</div>

I’m using the sysctl module to add a bunch of parameters to the /etc/sysctl.conf but should I just keep a local copy of my updated sysctl.conf file and upload it? It does take longer to run one sysctl command at a time …

---

## [Variable in a variable](https://forum.ansible.com/t/variable-in-a-variable/21734)

<div class="topic-metadata">

**Author:** [@Wawrzek\_Niewodniczan](https://forum.ansible.com/u/Wawrzek_Niewodniczan)\
**Replies:** 3\
**Last updated:** [June 10, 2016, 4:05pm UTC](https://forum.ansible.com/t/variable-in-a-variable/21734 "2016-06-10T16:05:06Z")

</div>

Hi, In a Jijna2 template I need a following variable from hostvars. hostvars\['{{project}}-example.com'\].ansible\_eth0.ipv4.address As you can see part of the hostname is dynamical created based external variable. I do…

---

## [Recommended way to run core module tests in Travis?](https://forum.ansible.com/t/recommended-way-to-run-core-module-tests-in-travis/21728)

<div class="topic-metadata">

**Author:** [@Mark\_Maglana](https://forum.ansible.com/u/Mark_Maglana)\
**Replies:** 1\
**Last updated:** [June 10, 2016, 3:54pm UTC](https://forum.ansible.com/t/recommended-way-to-run-core-module-tests-in-travis/21728 "2016-06-10T15:54:25Z")

</div>

I’m learning how to write modules that I’d like to eventually submit to this repo. In the meantime, I’m working on it from my fork. I’m writing unit tests alongside my module under the test directory and would like for t…

---

## [How to debug 'changed' files from template module?](https://forum.ansible.com/t/how-to-debug-changed-files-from-template-module/21651)

<div class="topic-metadata">

**Author:** [@Johannes\_Kastl](https://forum.ansible.com/u/Johannes_Kastl)\
**Replies:** 1\
**Last updated:** [June 10, 2016, 2:50pm UTC](https://forum.ansible.com/t/how-to-debug-changed-files-from-template-module/21651 "2016-06-10T14:50:02Z")

</div>

Dear all, I sometimes see files being reported as changed, although the contents (apart from the ansible\_managed) have not changed. The permissions are the same. I thought that in these cases, where only the ansible\_…

---

## [Template problem with bash array length syntax](https://forum.ansible.com/t/template-problem-with-bash-array-length-syntax/13304)

<div class="topic-metadata">

**Author:** [@Dmitry\_Horbach](https://forum.ansible.com/u/Dmitry_Horbach)\
**Replies:** 5\
**Last updated:** [June 10, 2016, 2:39pm UTC](https://forum.ansible.com/t/template-problem-with-bash-array-length-syntax/13304 "2016-06-10T14:39:18Z")

</div>

Hi, Having simple template file with bash valid content like: ${#ArrayName\[@\]} will break template module: template: src=template dest=template2 TASK: \[template src=template dest=template2\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [Anisble - host file](https://forum.ansible.com/t/anisble-host-file/21725)

<div class="topic-metadata">

**Author:** [@Paulh](https://forum.ansible.com/u/Paulh)\
**Replies:** 1\
**Last updated:** [June 10, 2016, 2:25pm UTC](https://forum.ansible.com/t/anisble-host-file/21725 "2016-06-10T14:25:19Z")

</div>

Hello, Can the vars\_file be passed into the hosts file using the -include: statment? eg: vars\_file.yml DBserver\_1\_FDQN: host1.us.com DBserver\_1\_IP: 10.15.87.220 DBserver\_2\_FDQN: host2.us.com DBserver\_2\_IP: 10.15.8…

---

## [Disable Handlers?](https://forum.ansible.com/t/disable-handlers/21682)

<div class="topic-metadata">

**Author:** [@james4](https://forum.ansible.com/u/james4)\
**Replies:** 4\
**Last updated:** [June 10, 2016, 2:23pm UTC](https://forum.ansible.com/t/disable-handlers/21682 "2016-06-10T14:23:07Z")

</div>

Any one know a good way to disable all handlers in a role w/o putting conditionals on each of the handlers/tasks?

---

## [\[os\_port\] Add allowed-address-pairs to an existing openstack server port](https://forum.ansible.com/t/os-port-add-allowed-address-pairs-to-an-existing-openstack-server-port/21018)

<div class="topic-metadata">

**Author:** [@Jorge\_L](https://forum.ansible.com/u/Jorge_L)\
**Replies:** 1\
**Last updated:** [June 10, 2016, 9:57am UTC](https://forum.ansible.com/t/os-port-add-allowed-address-pairs-to-an-existing-openstack-server-port/21018 "2016-06-10T09:57:14Z")

</div>

I want to set up nginx HA with keepalived and I’m preparing an ansible role for this purpose in an openstack environment (I’m using ansible 2). I would like to update the server port, that is already existing, to add all…

---

## [Installing latest Ansible Version 2.1.0.0 on CentOS 6.8](https://forum.ansible.com/t/installing-latest-ansible-version-2-1-0-0-on-centos-6-8/21722)

<div class="topic-metadata">

**Author:** [@Kaushal\_Shriyan](https://forum.ansible.com/u/Kaushal_Shriyan)\
**Replies:** 1\
**Last updated:** [June 9, 2016, 11:39pm UTC](https://forum.ansible.com/t/installing-latest-ansible-version-2-1-0-0-on-centos-6-8/21722 "2016-06-09T23:39:28Z")

</div>

Hi, I have installed Ansible application on CentOS 6.8 using yum after installing epel repo and i see the below version ansible --version ansible 2.0.2.0 config file = /etc/ansible/ansible.cfg configured module sear…

---

## [Netconf module for Ansible](https://forum.ansible.com/t/netconf-module-for-ansible/21712)

<div class="topic-metadata">

**Author:** [@K\_Krishna](https://forum.ansible.com/u/K_Krishna)\
**Replies:** 1\
**Last updated:** [June 9, 2016, 11:31pm UTC](https://forum.ansible.com/t/netconf-module-for-ansible/21712 "2016-06-09T23:31:26Z")

</div>

Hi, Is there a generic Netconf module support ? Is there any plan to add such as module ? Thanks, Krishna

---

## [Trying to put output in Sqlite3](https://forum.ansible.com/t/trying-to-put-output-in-sqlite3/21685)

<div class="topic-metadata">

**Author:** [@Kevin\_Csuka](https://forum.ansible.com/u/Kevin_Csuka)\
**Replies:** 3\
**Last updated:** [June 9, 2016, 10:58pm UTC](https://forum.ansible.com/t/trying-to-put-output-in-sqlite3/21685 "2016-06-09T22:58:00Z")

</div>

Hi, I’m kinda new to Ansible, love the program so far. I want two facts, hostname and serial number,in a Sqlite database. I’m trying to achieve it with the callback plugin, which is written in Python. I came across th…

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

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