# Archives

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

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

**Page:** 519

---

## [Ansible play](https://forum.ansible.com/t/ansible-play/23616)

<div class="topic-metadata">

**Author:** [@belajzus](https://forum.ansible.com/u/belajzus)\
**Replies:** 3\
**Last updated:** [February 2, 2017, 2:55pm UTC](https://forum.ansible.com/t/ansible-play/23616 "2017-02-02T14:55:42Z")

</div>

Hi to all… I’ve created set of templates which I use to deploy some application config files (between 20-30 files, depends on environment) to all my servers (about 100 servers). All of that works fine, but during the e…

---

## [vmware\_guest module error: Failed to find a matching datastore](https://forum.ansible.com/t/vmware-guest-module-error-failed-to-find-a-matching-datastore/23613)

<div class="topic-metadata">

**Author:** [@DSS](https://forum.ansible.com/u/DSS)\
**Replies:** 0\
**Last updated:** [February 1, 2017, 9:08pm UTC](https://forum.ansible.com/t/vmware-guest-module-error-failed-to-find-a-matching-datastore/23613 "2017-02-01T21:08:52Z")

</div>

Hello, I am testing the vmware\_guest module to snapshot a VM but it returns an error message with any invocation of module. According to the documentation (https://docs.ansible.com/ansible/vmware\_guest\_module.html), i’m…

---

## [Ansible Yum Update revision from given version](https://forum.ansible.com/t/ansible-yum-update-revision-from-given-version/23574)

<div class="topic-metadata">

**Author:** [@Tiago\_Silva](https://forum.ansible.com/u/Tiago_Silva)\
**Replies:** 1\
**Last updated:** [February 1, 2017, 1:52pm UTC](https://forum.ansible.com/t/ansible-yum-update-revision-from-given-version/23574 "2017-02-01T13:52:13Z")

</div>

Im working on a project with several versions each version has it’s own revision in the repo Example: fooproject-2.2.1-r4000.rpm fooproject-2.2.1-r4005.rpm fooproject-3.0.1-r4015.rpm There’s a server on version 2 re…

---

## [request for module rhn\_register](https://forum.ansible.com/t/request-for-module-rhn-register/23601)

<div class="topic-metadata">

**Author:** [@pvp1932](https://forum.ansible.com/u/pvp1932)\
**Replies:** 1\
**Last updated:** [February 1, 2017, 11:34am UTC](https://forum.ansible.com/t/request-for-module-rhn-register/23601 "2017-02-01T11:34:35Z")

</div>

Hello, a request for module rhn\_register to add --proxy option of therhnreg\_ks command, to the module for target servers that do not have direct access to the public network. regards, pvp1932

---

## [Ansible evaulate dynamic varaible name from vars](https://forum.ansible.com/t/ansible-evaulate-dynamic-varaible-name-from-vars/23567)

<div class="topic-metadata">

**Author:** [@Yordan\_Borisov](https://forum.ansible.com/u/Yordan_Borisov)\
**Replies:** 3\
**Last updated:** [February 1, 2017, 10:52am UTC](https://forum.ansible.com/t/ansible-evaulate-dynamic-varaible-name-from-vars/23567 "2017-02-01T10:52:40Z")

</div>

I have vars where I put something like this: vars/main.yml hello\_port: 80 world\_port: 81 in my ansbile file I load the vars with vars\_files: ./vars/main.yml and after that I have task with iterate using with\_…

---

## [IOS\_Config Question. New User](https://forum.ansible.com/t/ios-config-question-new-user/23585)

<div class="topic-metadata">

**Author:** [@Neal\_Z](https://forum.ansible.com/u/Neal_Z)\
**Replies:** 1\
**Last updated:** [February 1, 2017, 10:20am UTC](https://forum.ansible.com/t/ios-config-question-new-user/23585 "2017-02-01T10:20:19Z")

</div>

I am a new user of Ansible. I am trying to use the IOS\_Config module and a I cannot find the syntax error in my playbook (See Below). I suspect I may be missing the IOS\_Config module? I am on Mac running 2.2. But I am u…

---

## [Using with\_dict with a loop and missing key values...](https://forum.ansible.com/t/using-with-dict-with-a-loop-and-missing-key-values/23605)

<div class="topic-metadata">

**Author:** [@Raphael\_Rabelo\_de\_Ol](https://forum.ansible.com/u/Raphael_Rabelo_de_Ol)\
**Replies:** 2\
**Last updated:** [February 1, 2017, 9:37am UTC](https://forum.ansible.com/t/using-with-dict-with-a-loop-and-missing-key-values/23605 "2017-02-01T09:37:38Z")

</div>

Hi guys, I’m trying to use a loop and with\_dict together, but I have an issue with the value of some of key are missing, for example the value ‘ssh\_key’: It’s is proposital because i don’t wanna any key in file. The ‘…

---

## [request for rhn\_register module](https://forum.ansible.com/t/request-for-rhn-register-module/23602)

<div class="topic-metadata">

**Author:** [@pvp1932](https://forum.ansible.com/u/pvp1932)\
**Replies:** 1\
**Last updated:** [February 1, 2017, 8:17am UTC](https://forum.ansible.com/t/request-for-rhn-register-module/23602 "2017-02-01T08:17:21Z")

</div>

Hello, i would like to suggest adding the --proxy option of rhnreg\_ks command to the rhn\_register core module, for target servers that can not reach the public network directly. regards,

---

## [How to obtain the actual hardware macaddress of a network interface via setup module?](https://forum.ansible.com/t/how-to-obtain-the-actual-hardware-macaddress-of-a-network-interface-via-setup-module/23600)

<div class="topic-metadata">

**Author:** [@Don\_Jackson](https://forum.ansible.com/u/Don_Jackson)\
**Replies:** 2\
**Last updated:** [January 31, 2017, 11:06pm UTC](https://forum.ansible.com/t/how-to-obtain-the-actual-hardware-macaddress-of-a-network-interface-via-setup-module/23600 "2017-01-31T23:06:51Z")

</div>

I am transitioning my network interface provisioning to be based on actual hardware/NIC macaddresses rather than trying to use device names like ethN that seem to be inconsistent between different servers and are often d…

---

## [PostgreSQL 9.5 or Higher installation on Ubuntu 14.04 LTS](https://forum.ansible.com/t/postgresql-9-5-or-higher-installation-on-ubuntu-14-04-lts/23579)

<div class="topic-metadata">

**Author:** [@Shyam\_Yenna](https://forum.ansible.com/u/Shyam_Yenna)\
**Replies:** 9\
**Last updated:** [January 31, 2017, 7:16pm UTC](https://forum.ansible.com/t/postgresql-9-5-or-higher-installation-on-ubuntu-14-04-lts/23579 "2017-01-31T19:16:44Z")

</div>

I am trying to install PostgreSQL 9.5 version on Ubuntu 14.04 LTS using ansible 2.2.1 version playbook tasks. According to my workflow design add apt key, add apt repository and later install postgresql packages. But dep…

---

## [Ansible best practice](https://forum.ansible.com/t/ansible-best-practice/23604)

<div class="topic-metadata">

**Author:** [@Rui\_Goncalves](https://forum.ansible.com/u/Rui_Goncalves)\
**Replies:** 3\
**Last updated:** [January 31, 2017, 5:01pm UTC](https://forum.ansible.com/t/ansible-best-practice/23604 "2017-01-31T17:01:28Z")

</div>

Hi all, I have no experience writing ansible roles. At the moment I’m trying to write a few ansible roles, but I’m not sure how to separate responsibilities. I have two roles. prometheus - installs and configures pro…

---

## [ansible galaxy --container-enabled option](https://forum.ansible.com/t/ansible-galaxy-container-enabled-option/23584)

<div class="topic-metadata">

**Author:** [@Vang\_Nguyen](https://forum.ansible.com/u/Vang_Nguyen)\
**Replies:** 1\
**Last updated:** [January 31, 2017, 4:57pm UTC](https://forum.ansible.com/t/ansible-galaxy-container-enabled-option/23584 "2017-01-31T16:57:17Z")

</div>

Hi, I was just reading about the --container-enabled option for ansible-galaxy init when creating new roles on http://docs.ansible.com/ansible/galaxy.html#container-enabled. However I can’t seem to find any reference to…

---

## [trying to parse a dict to add users: missing something easy...](https://forum.ansible.com/t/trying-to-parse-a-dict-to-add-users-missing-something-easy/23598)

<div class="topic-metadata">

**Author:** [@Dan\_Geist](https://forum.ansible.com/u/Dan_Geist)\
**Replies:** 1\
**Last updated:** [January 31, 2017, 2:29pm UTC](https://forum.ansible.com/t/trying-to-parse-a-dict-to-add-users-missing-something-easy/23598 "2017-01-31T14:29:44Z")

</div>

Hi, I’m trying to update user accounts on a number of linux hosts vi a dict containing the users. Here’s a sample vars: “user\_accounts”: \[ { “testusr”: { “gecos”: “Test User”, “grp”: “wheel”, “pass”: “123abc”, “st…

---

## [WHEN Conditional - When a server is a member of a list of potential groups](https://forum.ansible.com/t/when-conditional-when-a-server-is-a-member-of-a-list-of-potential-groups/23603)

<div class="topic-metadata">

**Author:** [@davros1984](https://forum.ansible.com/u/davros1984)\
**Replies:** 1\
**Last updated:** [January 31, 2017, 1:57pm UTC](https://forum.ansible.com/t/when-conditional-when-a-server-is-a-member-of-a-list-of-potential-groups/23603 "2017-01-31T13:57:02Z")

</div>

Hi, I’m hoping someone can help with this. I’m attempting to simply the when logic rather than have to have a long list of or statements. Currently, the following works for me: name: Get Web URL Status uri: url=“ht…

---

## [managing xml fragments a la lineinfile](https://forum.ansible.com/t/managing-xml-fragments-a-la-lineinfile/23599)

<div class="topic-metadata">

**Author:** [@Dick\_Davies](https://forum.ansible.com/u/Dick_Davies)\
**Replies:** 2\
**Last updated:** [January 31, 2017, 12:54pm UTC](https://forum.ansible.com/t/managing-xml-fragments-a-la-lineinfile/23599 "2017-01-31T12:54:47Z")

</div>

Does anyone here a good tip for managing parts of xml files (like lineinfile / blockinfile but xml-aware)? I have several fairly complex apps to manage, each with their own role. Ideally they'd each manage their own s…

---

## [Ansible playbook won't run.](https://forum.ansible.com/t/ansible-playbook-wont-run/23595)

<div class="topic-metadata">

**Author:** [@Jonty\_Needham](https://forum.ansible.com/u/Jonty_Needham)\
**Replies:** 2\
**Last updated:** [January 31, 2017, 10:36am UTC](https://forum.ansible.com/t/ansible-playbook-wont-run/23595 "2017-01-31T10:36:51Z")

</div>

---

## [lineinfile problem](https://forum.ansible.com/t/lineinfile-problem/23561)

<div class="topic-metadata">

**Author:** [@mark.tovey](https://forum.ansible.com/u/mark.tovey)\
**Replies:** 7\
**Last updated:** [January 30, 2017, 6:38pm UTC](https://forum.ansible.com/t/lineinfile-problem/23561 "2017-01-30T18:38:20Z")

</div>

I have a problem where a line that contains a certain space delimited string must exist in a file. The string can be anywhere in the line: start, middle, or end. If a line that contains that string does not exist, then a…

---

## [How to make an error non fatal in dry mode?](https://forum.ansible.com/t/how-to-make-an-error-non-fatal-in-dry-mode/23594)

<div class="topic-metadata">

**Author:** [@Cev\_Ing](https://forum.ansible.com/u/Cev_Ing)\
**Replies:** 1\
**Last updated:** [January 30, 2017, 6:27pm UTC](https://forum.ansible.com/t/how-to-make-an-error-non-fatal-in-dry-mode/23594 "2017-01-30T18:27:14Z")

</div>

I have a playbook with the following two tasks: copy: src: libpasswdqc.so.0 dest: /usr/lib/libpasswdqc.so.0 owner: root group: bin mode: 0755 file: src: ./libpasswdqc.so.0 dest: /usr/lib/libpasswdqc.so owne…

---

## [How to prevent git clone timeouts in playbook?](https://forum.ansible.com/t/how-to-prevent-git-clone-timeouts-in-playbook/23580)

<div class="topic-metadata">

**Author:** [@Robert\_F](https://forum.ansible.com/u/Robert_F)\
**Replies:** 2\
**Last updated:** [January 30, 2017, 5:22pm UTC](https://forum.ansible.com/t/how-to-prevent-git-clone-timeouts-in-playbook/23580 "2017-01-30T17:22:38Z")

</div>

I have a task in my Ansible playbook that uses the git module to clone my Git repository which is hosted on bitbucket.com to my Linode-hosted web server. The playbook is run from my local laptop. My problem is that this …

---

## [I can use some help with a pull request](https://forum.ansible.com/t/i-can-use-some-help-with-a-pull-request/23554)

<div class="topic-metadata">

**Author:** [@Pieter\_Voet](https://forum.ansible.com/u/Pieter_Voet)\
**Replies:** 10\
**Last updated:** [January 30, 2017, 4:20pm UTC](https://forum.ansible.com/t/i-can-use-some-help-with-a-pull-request/23554 "2017-01-30T16:20:11Z")

</div>

Hi all, I’m not sure if my actions on my pull request were correct… Hopefully someone can comment on it… Using the Github web interface, I forked ‘https://github.com/ansible/ansible’. I used that same interface to edi…

---

## [fetch the newest file in a directory.](https://forum.ansible.com/t/fetch-the-newest-file-in-a-directory/23588)

<div class="topic-metadata">

**Author:** [@Scuderia\_FormulaOne](https://forum.ansible.com/u/Scuderia_FormulaOne)\
**Replies:** 2\
**Last updated:** [January 30, 2017, 4:15pm UTC](https://forum.ansible.com/t/fetch-the-newest-file-in-a-directory/23588 "2017-01-30T16:15:19Z")

</div>

I would like to get the most recent file, in a specific directory, from remote nodes: I am thinking about running a command similar to: ls -lrt /tmp/backup |tail -1 | awk '{print $9} then putting the results of that i…

---

## [Change own password from non-root account](https://forum.ansible.com/t/change-own-password-from-non-root-account/23596)

<div class="topic-metadata">

**Author:** [@mhh](https://forum.ansible.com/u/mhh)\
**Replies:** 1\
**Last updated:** [January 30, 2017, 2:49pm UTC](https://forum.ansible.com/t/change-own-password-from-non-root-account/23596 "2017-01-30T14:49:45Z")

</div>

Is possible to change own password from non-root account ? I found example, but it is not working. I did not find any info about ansible\_ssh\_newpass variable. Playbook hosts: my tasks: shell: ‘printf “%s\\n” oldpass …

---

## [Using with\_items loop with vmware\_guest module](https://forum.ansible.com/t/using-with-items-loop-with-vmware-guest-module/23597)

<div class="topic-metadata">

**Author:** [@Matti\_Rantakomi](https://forum.ansible.com/u/Matti_Rantakomi)\
**Replies:** 0\
**Last updated:** [January 30, 2017, 2:25pm UTC](https://forum.ansible.com/t/using-with-items-loop-with-vmware-guest-module/23597 "2017-01-30T14:25:23Z")

</div>

I’m trying to create new VM with multiple disks using vmware\_guest module. VM details are defined in host\_vars file. Everything is working fine except that I can’t get disk definition working when multiple disks are defi…

---

## [unarchive.Get a name of file what is inside of src file](https://forum.ansible.com/t/unarchive-get-a-name-of-file-what-is-inside-of-src-file/23590)

<div class="topic-metadata">

**Author:** [@mhh](https://forum.ansible.com/u/mhh)\
**Replies:** 1\
**Last updated:** [January 30, 2017, 11:08am UTC](https://forum.ansible.com/t/unarchive-get-a-name-of-file-what-is-inside-of-src-file/23590 "2017-01-30T11:08:08Z")

</div>

Hello, I found, that is nearly impossible to make a symlink from compressed file, without knowing of what is in this file. For example i want to do: -name Untar unarchive: src={{ my\_tar\_gz\_file }} dest={{ dest }} -n…

---

## [Newbie needs help re-using a tasklist](https://forum.ansible.com/t/newbie-needs-help-re-using-a-tasklist/23563)

<div class="topic-metadata">

**Author:** [@rene](https://forum.ansible.com/u/rene)\
**Replies:** 3\
**Last updated:** [January 30, 2017, 9:32am UTC](https://forum.ansible.com/t/newbie-needs-help-re-using-a-tasklist/23563 "2017-01-30T09:32:40Z")

</div>

Dear community, first of all I want to apologize for my lack of knowledge but I’m relatively new to Ansible and have a weak background regarding scripting/programming. I’m more the operating type and not the dev guy. …

---

## [dynamic inventory and ungrouped hosts. might be a documentation thing](https://forum.ansible.com/t/dynamic-inventory-and-ungrouped-hosts-might-be-a-documentation-thing/23589)

<div class="topic-metadata">

**Author:** [@pixel\_fairy](https://forum.ansible.com/u/pixel_fairy)\
**Replies:** 0\
**Last updated:** [January 30, 2017, 7:54am UTC](https://forum.ansible.com/t/dynamic-inventory-and-ungrouped-hosts-might-be-a-documentation-thing/23589 "2017-01-30T07:54:20Z")

</div>

using ansible 2.2.1.0, a dynamic inventory script will leave out hosts that are not in a group, unless you list them in hosts. should this be fixed in the docs? is there a better way? \` #!/bin/sh cat \<\<EOF { “red”: …

---

## [LXC containers management on remote host](https://forum.ansible.com/t/lxc-containers-management-on-remote-host/23587)

<div class="topic-metadata">

**Author:** [@Thomas\_Szymanski](https://forum.ansible.com/u/Thomas_Szymanski)\
**Replies:** 2\
**Last updated:** [January 29, 2017, 3:47pm UTC](https://forum.ansible.com/t/lxc-containers-management-on-remote-host/23587 "2017-01-29T15:47:36Z")

</div>

Hello developers, I'm sad I can't use my favorites roles & playbooks to configure my LXC containers on a remote host as the lxc\_container module shows only "container\_command" to use shell commands. Could we talk about…

---

## [Ansible 2.3 Feature Freeze is Coming!](https://forum.ansible.com/t/ansible-2-3-feature-freeze-is-coming/23586)

<div class="topic-metadata">

**Author:** [@jmckerr](https://forum.ansible.com/u/jmckerr)\
**Replies:** 0\
**Last updated:** [January 29, 2017, 10:59am UTC](https://forum.ansible.com/t/ansible-2-3-feature-freeze-is-coming/23586 "2017-01-29T10:59:00Z")

</div>

As you all know, the next version of the open source Ansible project (version 2.3) is currently in development. Our first freeze is the Core Feature Freeze. This means that all feature work for the Ansible Core engine wi…

---

## [Module lxc\_container uses wrong path to lxc-create on CentOS](https://forum.ansible.com/t/module-lxc-container-uses-wrong-path-to-lxc-create-on-centos/23583)

<div class="topic-metadata">

**Author:** [@Johannes\_Kastl](https://forum.ansible.com/u/Johannes_Kastl)\
**Replies:** 2\
**Last updated:** [January 28, 2017, 5:34pm UTC](https://forum.ansible.com/t/module-lxc-container-uses-wrong-path-to-lxc-create-on-centos/23583 "2017-01-28T17:34:19Z")

</div>

Dear List, is it just on my machine that the lxc\_container module uses the wrong path to lxc-create? fatal: \[xyz\]: FAILED! =\> {"changed": false, "command": "/bin/lxc-create --name foobar --quiet --template download -…

---

## [Sqitch - is everything ok with my new module?](https://forum.ansible.com/t/sqitch-is-everything-ok-with-my-new-module/23573)

<div class="topic-metadata">

**Author:** [@Dawid\_Wolski](https://forum.ansible.com/u/Dawid_Wolski)\
**Replies:** 1\
**Last updated:** [January 28, 2017, 3:42pm UTC](https://forum.ansible.com/t/sqitch-is-everything-ok-with-my-new-module/23573 "2017-01-28T15:42:24Z")

</div>

Hi, I would like to ask if everything is ok with my new module. It is a module to work with sqitch - open-source database change management system. Because there is no API I just execute prepared commands. Added value o…

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

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