# Latest

**URL:** https://forum.ansible.com/latest.md?page=689

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

**Page:** 690

---

## [Ansible Date struggle](https://forum.ansible.com/t/ansible-date-struggle/23625)

<div class="topic-metadata">

**Author:** [@ns273520](https://forum.ansible.com/u/ns273520)\
**Replies:** 0\
**Last updated:** [February 2, 2017, 9:43pm UTC](https://forum.ansible.com/t/ansible-date-struggle/23625 "2017-02-02T21:43:59Z")

</div>

Hi I am new to Ansible . I am some issues working with dates .I want to get the difference between two dates in seconds or minutes . I created two ec2 instance and was able to retrieve the launch times using below nam…

---

## [Ansible date Struggle](https://forum.ansible.com/t/ansible-date-struggle/23624)

<div class="topic-metadata">

**Author:** [@ns273520](https://forum.ansible.com/u/ns273520)\
**Replies:** 0\
**Last updated:** [February 2, 2017, 9:34pm UTC](https://forum.ansible.com/t/ansible-date-struggle/23624 "2017-02-02T21:34:53Z")

</div>

I am new to ansible . Issue:- I created 2 ec2 instances successfully and i am able to retrieve the launch\_dates using below . name: launch time and date of Ec2 debug: var: item.launch\_time with\_items: “{{ ec2\_fact…

---

## [adding a repo](https://forum.ansible.com/t/adding-a-repo/23620)

<div class="topic-metadata">

**Author:** [@jithendra\_myla](https://forum.ansible.com/u/jithendra_myla)\
**Replies:** 2\
**Last updated:** [February 2, 2017, 5:16pm UTC](https://forum.ansible.com/t/adding-a-repo/23620 "2017-02-02T17:16:56Z")

</div>

Hi Sir/Madam, Does ansible have any module for adding new repository in Centos/Redhat Linux, i know it have apt\_repository for debian. Thank you very much for helping me, Jithendra Myla

---

## [what is &quot](https://forum.ansible.com/t/what-is-quot/23621)

<div class="topic-metadata">

**Author:** [@jithendra\_myla](https://forum.ansible.com/u/jithendra_myla)\
**Replies:** 2\
**Last updated:** [February 2, 2017, 4:18pm UTC](https://forum.ansible.com/t/what-is-quot/23621 "2017-02-02T16:18:09Z")

</div>

I am trying to understand one galaxy role, i see below line in variable section, i can't understand what is &quot is used for https://galaxy.ansible.com/bennojoy/mysql/ ----\> mysql\_bind\_address: &quot;0.0.0.0&quot; …

---

## [Ansible hangs and does not progress](https://forum.ansible.com/t/ansible-hangs-and-does-not-progress/23540)

<div class="topic-metadata">

**Author:** [@Oscar\_Martinez](https://forum.ansible.com/u/Oscar_Martinez)\
**Replies:** 1\
**Last updated:** [February 2, 2017, 3:12pm UTC](https://forum.ansible.com/t/ansible-hangs-and-does-not-progress/23540 "2017-02-02T15:12:18Z")

</div>

I explain my problem I get an inventory of 10,000 servers (Linux) through a python in json format, I have a playbook that is responsible for collecting information from the servers and at the end with java I assemble a …

---

## [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. …

[Previous page](https://forum.ansible.com/latest.md?page=688)

[Next page](https://forum.ansible.com/latest.md?page=690)
