# Archives

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

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

**Page:** 509

---

## [Split inventory in multiple .yml files?](https://forum.ansible.com/t/split-inventory-in-multiple-yml-files/23875)

<div class="topic-metadata">

**Author:** [@belajzus](https://forum.ansible.com/u/belajzus)\
**Replies:** 2\
**Last updated:** [March 6, 2017, 10:40am UTC](https://forum.ansible.com/t/split-inventory-in-multiple-yml-files/23875 "2017-03-06T10:40:46Z")

</div>

Hi, is it possible to split inventory in multiple files… eg. I have 3 projects on one virtual machine1, so I created group machine which consists of 3 subelements (projects), ProjectA, ProjectB and ProjectC \[Machine1…

---

## [Ansible synchronize module fails between vagrant box and remote host](https://forum.ansible.com/t/ansible-synchronize-module-fails-between-vagrant-box-and-remote-host/23889)

<div class="topic-metadata">

**Author:** [@Patrick\_Heneghan](https://forum.ansible.com/u/Patrick_Heneghan)\
**Replies:** 0\
**Last updated:** [March 6, 2017, 10:11am UTC](https://forum.ansible.com/t/ansible-synchronize-module-fails-between-vagrant-box-and-remote-host/23889 "2017-03-06T10:11:55Z")

</div>

Hi all, I’m having trouble using the Ansible synchronize module between a vagrant box and a remote host. Meanwhile, I can use the same module between two remote hosts without issue. I’ve opened a new Stack Overflow que…

---

## [Ansible Core is in Freeze for 2.3](https://forum.ansible.com/t/ansible-core-is-in-freeze-for-2-3/23888)

<div class="topic-metadata">

**Author:** [@jmckerr](https://forum.ansible.com/u/jmckerr)\
**Replies:** 0\
**Last updated:** [March 5, 2017, 5:48pm UTC](https://forum.ansible.com/t/ansible-core-is-in-freeze-for-2-3/23888 "2017-03-05T17:48:40Z")

</div>

As you all know, the next version of the open source Ansible project (version 2.3) is currently in development. We are now in feature freeze for all modules and Core Engine work for the 2.3 release. Bug fixes only will g…

---

## [Ansible Dynamic Inventory - generate inventory with ip addresses under specific tag with underscore instead of dot](https://forum.ansible.com/t/ansible-dynamic-inventory-generate-inventory-with-ip-addresses-under-specific-tag-with-underscore-instead-of-dot/23885)

<div class="topic-metadata">

**Author:** [@Berlin](https://forum.ansible.com/u/Berlin)\
**Replies:** 1\
**Last updated:** [March 4, 2017, 11:01pm UTC](https://forum.ansible.com/t/ansible-dynamic-inventory-generate-inventory-with-ip-addresses-under-specific-tag-with-underscore-instead-of-dot/23885 "2017-03-04T23:01:48Z")

</div>

I am new to Ansible. When I am using ec2.py dynamic inventory to generate inventory, after the playbook is finished to run, the results are shown as list of IP addresses under specific tag with underscore instead of dot. …

---

## [Pulling MySQL Table/Field data for Jinja templates](https://forum.ansible.com/t/pulling-mysql-table-field-data-for-jinja-templates/23879)

<div class="topic-metadata">

**Author:** [@Gilberto\_Valentin](https://forum.ansible.com/u/Gilberto_Valentin)\
**Replies:** 2\
**Last updated:** [March 4, 2017, 3:55pm UTC](https://forum.ansible.com/t/pulling-mysql-table-field-data-for-jinja-templates/23879 "2017-03-04T15:55:43Z")

</div>

Hello, I am interested in pulling specific data from a table/field and apply that data to a .j2 template. For example, if I have a license key in a table on a field called RedHat license, I want to pull that license valu…

---

## [conditional query](https://forum.ansible.com/t/conditional-query/23872)

<div class="topic-metadata">

**Author:** [@jb795333](https://forum.ansible.com/u/jb795333)\
**Replies:** 3\
**Last updated:** [March 4, 2017, 10:55am UTC](https://forum.ansible.com/t/conditional-query/23872 "2017-03-04T10:55:02Z")

</div>

Hello, I am trying to enforce a conditional match to check if a VLAN is configured on a switch before applying changes I can see that the variable is being recorded, but the match against it always results in the skipp…

---

## [I am new to ansible modules / playbooks and I simply can not get the archive module to work](https://forum.ansible.com/t/i-am-new-to-ansible-modules-playbooks-and-i-simply-can-not-get-the-archive-module-to-work/23884)

<div class="topic-metadata">

**Author:** [@David\_Brendlinger](https://forum.ansible.com/u/David_Brendlinger)\
**Replies:** 1\
**Last updated:** [March 4, 2017, 9:18am UTC](https://forum.ansible.com/t/i-am-new-to-ansible-modules-playbooks-and-i-simply-can-not-get-the-archive-module-to-work/23884 "2017-03-04T09:18:36Z")

</div>

I just want to make a very simple playbook using the archive module: http://docs.ansible.com/ansible/archive\_module.html I tried many things including:

---

## [question about introducing a dependency in a module](https://forum.ansible.com/t/question-about-introducing-a-dependency-in-a-module/23881)

<div class="topic-metadata">

**Author:** [@nihlaeth](https://forum.ansible.com/u/nihlaeth)\
**Replies:** 2\
**Last updated:** [March 4, 2017, 9:17am UTC](https://forum.ansible.com/t/question-about-introducing-a-dependency-in-a-module/23881 "2017-03-04T09:17:48Z")

</div>

Hello everyone! I’m working on a pull request for the slackpkg module, and I found myself needing to compare version strings. I used packaging.version.parse() for this purpose, thinking that this wouldn’t be a problem s…

---

## [win\_shell hangs](https://forum.ansible.com/t/win-shell-hangs/23770)

<div class="topic-metadata">

**Author:** [@Hamdi\_Ben\_Zekri](https://forum.ansible.com/u/Hamdi_Ben_Zekri)\
**Replies:** 4\
**Last updated:** [March 4, 2017, 7:04am UTC](https://forum.ansible.com/t/win-shell-hangs/23770 "2017-03-04T07:04:01Z")

</div>

hello, I tried to execute a bash script ( the script is inside the remote windows server) the bash script was executed but the win\_shell task hangs. win\_shell: chdir=“C:\\someApp\\bin” ./start.bat

---

## [Ansible 2.1.5 and 2.2.2 RC2 are ready for testing](https://forum.ansible.com/t/ansible-2-1-5-and-2-2-2-rc2-are-ready-for-testing/23883)

<div class="topic-metadata">

**Author:** [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Replies:** 0\
**Last updated:** [March 3, 2017, 10:49pm UTC](https://forum.ansible.com/t/ansible-2-1-5-and-2-2-2-rc2-are-ready-for-testing/23883 "2017-03-03T22:49:23Z")

</div>

Hi all, we’re very happy to announce that RC2 for Ansible 2.1.5 and 2.2.2 are ready for testing! These rc’s include one fix for both 2.2.2 and 2.1.5, and two more fixes just for 2.2.2: Fix azure\_rm version checks (#22…

---

## [Dynamic Includes: assigning dynamic tags to included files](https://forum.ansible.com/t/dynamic-includes-assigning-dynamic-tags-to-included-files/22725)

<div class="topic-metadata">

**Author:** [@rszalski](https://forum.ansible.com/u/rszalski)\
**Replies:** 1\
**Last updated:** [March 3, 2017, 10:04pm UTC](https://forum.ansible.com/t/dynamic-includes-assigning-dynamic-tags-to-included-files/22725 "2017-03-03T22:04:44Z")

</div>

Hi, I’m using dynamic includes and wonder if there is a way to dynamically tag them. The following usage of ‘tags’: \` include: ‘{{ item }}.yml’ tags: ‘{{ item }}’ with\_items: a b c \` results in an error: ERROR!…

---

## [Setting Target Machine Environment Variables](https://forum.ansible.com/t/setting-target-machine-environment-variables/22872)

<div class="topic-metadata">

**Author:** [@hgebrekidan](https://forum.ansible.com/u/hgebrekidan)\
**Replies:** 1\
**Last updated:** [March 3, 2017, 10:04pm UTC](https://forum.ansible.com/t/setting-target-machine-environment-variables/22872 "2017-03-03T22:04:05Z")

</div>

Hello, Ansible newbie here. I seem to be having a hard time understanding how to set target machine environmental variables, even after trying the several example solutions that I’ve found around the web. Here are a few…

---

## [lineinfile transiently results in empty file](https://forum.ansible.com/t/lineinfile-transiently-results-in-empty-file/23730)

<div class="topic-metadata">

**Author:** [@watsonb](https://forum.ansible.com/u/watsonb)\
**Replies:** 4\
**Last updated:** [March 3, 2017, 7:46pm UTC](https://forum.ansible.com/t/lineinfile-transiently-results-in-empty-file/23730 "2017-03-03T19:46:40Z")

</div>

Greetings, I’m using the devel branch on Ansible Github (e.g. version 2.3) and have run into a curious problem the past few weeks regarding the use of lineinfile that was seemingly bulletproof in prior versions (e.g. 2.…

---

## [Random inclusion of irrelevant hosts](https://forum.ansible.com/t/random-inclusion-of-irrelevant-hosts/22083)

<div class="topic-metadata">

**Author:** [@Rodion\_Zudin](https://forum.ansible.com/u/Rodion_Zudin)\
**Replies:** 1\
**Last updated:** [March 3, 2017, 7:42pm UTC](https://forum.ansible.com/t/random-inclusion-of-irrelevant-hosts/22083 "2017-03-03T19:42:02Z")

</div>

I have a question related to random inclusion of irrelevant hosts. Below is a part of my playbook: - hosts: machine01 machine02 machine03 machine04 gather\_facts: no connection: docker tasks: - include: common/setup3…

---

## [download jts-1.13.jar](https://forum.ansible.com/t/download-jts-1-13-jar/23878)

<div class="topic-metadata">

**Author:** [@Pedro\_Ferro](https://forum.ansible.com/u/Pedro_Ferro)\
**Replies:** 1\
**Last updated:** [March 3, 2017, 6:54pm UTC](https://forum.ansible.com/t/download-jts-1-13-jar/23878 "2017-03-03T18:54:13Z")

</div>

Hi, I’m tryning to make this on a file \` name: download jts-1.13.jar get\_url: url: http://search.maven.org/remotecontent?filepath=com/vividsolutions/jts/1.13/jts-1.13.jar -O jts-1.13.jar dest: /tmp/jts-1.13.jar \` …

---

## [with\_items fail condition](https://forum.ansible.com/t/with-items-fail-condition/23880)

<div class="topic-metadata">

**Author:** [@Strung6013](https://forum.ansible.com/u/Strung6013)\
**Replies:** 0\
**Last updated:** [March 3, 2017, 6:51pm UTC](https://forum.ansible.com/t/with-items-fail-condition/23880 "2017-03-03T18:51:52Z")

</div>

got a script that is trying to check to see if a path exists, both in “Program Files” and “Program Files x86” and that part works, in that I can iterate over and check both paths, but what I am having trouble doing is ha…

---

## [Pull Request - stuck](https://forum.ansible.com/t/pull-request-stuck/23738)

<div class="topic-metadata">

**Author:** [@johnny.sheppard.isod](https://forum.ansible.com/u/johnny.sheppard.isod)\
**Replies:** 1\
**Last updated:** [March 3, 2017, 5:47pm UTC](https://forum.ansible.com/t/pull-request-stuck/23738 "2017-03-03T17:47:36Z")

</div>

Hi, I have a pull request (https://github.com/ansible/ansible/pull/20926) which seems to have been approved by other contributors, but seems to be stuck “waiting\_on: maintainer”. It appears (from a quick look around git…

---

## [Includes with limits and tags?](https://forum.ansible.com/t/includes-with-limits-and-tags/23877)

<div class="topic-metadata">

**Author:** [@Josh\_Smift1](https://forum.ansible.com/u/Josh_Smift1)\
**Replies:** 2\
**Last updated:** [March 3, 2017, 4:34pm UTC](https://forum.ansible.com/t/includes-with-limits-and-tags/23877 "2017-03-03T16:34:55Z")

</div>

We have a playbook that restores some data from a backup to a host, and afterwards we want to run another playbook that fixes up some things in the backup, but that other playbook is more general, and does a whole bun…

---

## [Ansible-galaxy requirements.yml meta-dependencies.](https://forum.ansible.com/t/ansible-galaxy-requirements-yml-meta-dependencies/23874)

<div class="topic-metadata">

**Author:** [@Leigh\_Hayward](https://forum.ansible.com/u/Leigh_Hayward)\
**Replies:** 0\
**Last updated:** [March 3, 2017, 11:53am UTC](https://forum.ansible.com/t/ansible-galaxy-requirements-yml-meta-dependencies/23874 "2017-03-03T11:53:59Z")

</div>

Hi all, I have a quick question regarding the install -r requirements.yml functionality in ansible-galaxy. I have role A which has a requirements.yml file which defines role B as a requirement. Role B in turn has a req…

---

## [Ansible and Jenkins integration](https://forum.ansible.com/t/ansible-and-jenkins-integration/23852)

<div class="topic-metadata">

**Author:** [@belajzus](https://forum.ansible.com/u/belajzus)\
**Replies:** 4\
**Last updated:** [March 3, 2017, 11:16am UTC](https://forum.ansible.com/t/ansible-and-jenkins-integration/23852 "2017-03-03T11:16:13Z")

</div>

Hi to all! I would like to integrate Ansible and Jenkins using ansible plugin from Jenkins. Is it possible to run Ansible commands on remote host from Jenkins, or the idea of Ansible plugin for Jenkins is that both of …

---

## [template module on top of symlink always returns "changed"](https://forum.ansible.com/t/template-module-on-top-of-symlink-always-returns-changed/23871)

<div class="topic-metadata">

**Author:** [@Ioannis\_Cherouvim](https://forum.ansible.com/u/Ioannis_Cherouvim)\
**Replies:** 0\
**Last updated:** [March 3, 2017, 9:10am UTC](https://forum.ansible.com/t/template-module-on-top-of-symlink-always-returns-changed/23871 "2017-03-03T09:10:23Z")

</div>

Hello My playbook contains: \` name: configure mysql template: src=my.cnf.j2 dest=/etc/mysql/my.cnf notify: restart mysql \` In ubuntu 14 /etc/mysql/my.cnf is an actual file. In ubuntu 16 /etc/mysql/my.cnf is a sy…

---

## [Showing Syntax error in a module](https://forum.ansible.com/t/showing-syntax-error-in-a-module/23858)

<div class="topic-metadata">

**Author:** [@nexio.global](https://forum.ansible.com/u/nexio.global)\
**Replies:** 4\
**Last updated:** [March 3, 2017, 9:01am UTC](https://forum.ansible.com/t/showing-syntax-error-in-a-module/23858 "2017-03-03T09:01:41Z")

</div>

Hello, I am trying to deploying wordpress using Ansible for first time. I installed LAMP on my remote server using Ansible but there was a syntax error while I was trying to install wordpress. it shows– The error appear…

---

## [Shouldn’t --user on command line overwrite ansible\_user?](https://forum.ansible.com/t/shouldn-t-user-on-command-line-overwrite-ansible-user/23870)

<div class="topic-metadata">

**Author:** [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Replies:** 0\
**Last updated:** [March 3, 2017, 8:17am UTC](https://forum.ansible.com/t/shouldn-t-user-on-command-line-overwrite-ansible-user/23870 "2017-03-03T08:17:19Z")

</div>

Hi In the host\_var file for the server I have ansible\_user set like this. $ cat host\_vars/u1.yml

---

## [Playbook doesn't fail with EC2 when no hosts return](https://forum.ansible.com/t/playbook-doesnt-fail-with-ec2-when-no-hosts-return/23869)

<div class="topic-metadata">

**Author:** [@irfad](https://forum.ansible.com/u/irfad)\
**Replies:** 0\
**Last updated:** [March 3, 2017, 6:29am UTC](https://forum.ansible.com/t/playbook-doesnt-fail-with-ec2-when-no-hosts-return/23869 "2017-03-03T06:29:54Z")

</div>

Usually ansible playbook task fails when there’s no host found when using static inventory. But when using EC2.py and when there’s no host returns playbook doesn’t fail which prevents us from notifying that task has not …

---

## [idempotent way to convert directory into a link?](https://forum.ansible.com/t/idempotent-way-to-convert-directory-into-a-link/23752)

<div class="topic-metadata">

**Author:** [@sunnz](https://forum.ansible.com/u/sunnz)\
**Replies:** 2\
**Last updated:** [March 3, 2017, 5:24am UTC](https://forum.ansible.com/t/idempotent-way-to-convert-directory-into-a-link/23752 "2017-03-03T05:24:53Z")

</div>

hi, can ansible force a path to be a link even when it is a directory with files? currently i am deleting the directory before making it a link and it is not idempotent. on the first run it deletes the directory. but i…

---

## [uri module and curl](https://forum.ansible.com/t/uri-module-and-curl/23839)

<div class="topic-metadata">

**Author:** [@John\_Norris](https://forum.ansible.com/u/John_Norris)\
**Replies:** 9\
**Last updated:** [March 2, 2017, 8:48pm UTC](https://forum.ansible.com/t/uri-module-and-curl/23839 "2017-03-02T20:48:19Z")

</div>

Hi, is the uri module a curl substitute? I ask because if, on the command line, I run curl, I get the expected json output from a tomcat rest application. In the logs is a 200 result. But if I run the same in uri then…

---

## [Manage Openstack with salt/ansible.](https://forum.ansible.com/t/manage-openstack-with-salt-ansible/23864)

<div class="topic-metadata">

**Author:** [@Pratik\_Bandarkar](https://forum.ansible.com/u/Pratik_Bandarkar)\
**Replies:** 2\
**Last updated:** [March 2, 2017, 8:10pm UTC](https://forum.ansible.com/t/manage-openstack-with-salt-ansible/23864 "2017-03-02T20:10:30Z")

</div>

I am plaining to work on automating tasks which admin generally performs after deploying Openstack.For ex. create/delete/manage instances/volumes/network/heat-stack etc. But, I am bit confused in between salt and ansibl…

---

## [How to automatically handle slight difference in configuring Master-slave setup](https://forum.ansible.com/t/how-to-automatically-handle-slight-difference-in-configuring-master-slave-setup/23860)

<div class="topic-metadata">

**Author:** [@ishan\_jain](https://forum.ansible.com/u/ishan_jain)\
**Replies:** 1\
**Last updated:** [March 2, 2017, 7:35pm UTC](https://forum.ansible.com/t/how-to-automatically-handle-slight-difference-in-configuring-master-slave-setup/23860 "2017-03-02T19:35:25Z")

</div>

I am preparing some Ansible scripts for a service that works in a master/slave setup. There is a single docker image for both but the master/slave behavior will be acquired after configuring some environment variables. W…

---

## [ansible gives AttributeError: 'AnsibleModule' object has no attribute '\_selinux\_special\_fs' when selinux enable](https://forum.ansible.com/t/ansible-gives-attributeerror-ansiblemodule-object-has-no-attribute-selinux-special-fs-when-selinux-enable/23868)

<div class="topic-metadata">

**Author:** [@Gowtham\_Shanmugam](https://forum.ansible.com/u/Gowtham_Shanmugam)\
**Replies:** 0\
**Last updated:** [March 2, 2017, 4:24pm UTC](https://forum.ansible.com/t/ansible-gives-attributeerror-ansiblemodule-object-has-no-attribute-selinux-special-fs-when-selinux-enable/23868 "2017-03-02T16:24:24Z")

</div>

ansible gives AttributeError: ‘AnsibleModule’ object has no attribute ‘\_selinux\_special\_fs’ when selinux enable

---

## [Ansible gives AttributeError: 'AnsibleModule' object has no attribute '\_selinux\_special\_fs'](https://forum.ansible.com/t/ansible-gives-attributeerror-ansiblemodule-object-has-no-attribute-selinux-special-fs/23867)

<div class="topic-metadata">

**Author:** [@Gowtham\_Shanmugam](https://forum.ansible.com/u/Gowtham_Shanmugam)\
**Replies:** 0\
**Last updated:** [March 2, 2017, 4:22pm UTC](https://forum.ansible.com/t/ansible-gives-attributeerror-ansiblemodule-object-has-no-attribute-selinux-special-fs/23867 "2017-03-02T16:22:19Z")

</div>

ansible gives AttributeError error when selinux is enables but if i disable selinux then this error is not came, why this problem is this bug or any problem with my setup. Anyone please give solution for this

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

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