# Latest

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

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

**Page:** 691

---

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

---

## [List all ansible-vault encrypted files?](https://forum.ansible.com/t/list-all-ansible-vault-encrypted-files/23572)

<div class="topic-metadata">

**Author:** [@Alicia\_Smith](https://forum.ansible.com/u/Alicia_Smith)\
**Replies:** 4\
**Last updated:** [January 28, 2017, 11:33am UTC](https://forum.ansible.com/t/list-all-ansible-vault-encrypted-files/23572 "2017-01-28T11:33:47Z")

</div>

Is there a way to list all files in a repo that are encrypted via ansible-vault? If there is I haven’t figured it out yet. I’ve searched on google and everything just points to how to use view or edit. I was hoping the…

---

## [Adding, removing and updating mount options in /etc/fstab (3rdparty Module + Feature suggestion)](https://forum.ansible.com/t/adding-removing-and-updating-mount-options-in-etc-fstab-3rdparty-module-feature-suggestion/23582)

<div class="topic-metadata">

**Author:** [@Michael\_Lutonsky](https://forum.ansible.com/u/Michael_Lutonsky)\
**Replies:** 0\
**Last updated:** [January 28, 2017, 12:31am UTC](https://forum.ansible.com/t/adding-removing-and-updating-mount-options-in-etc-fstab-3rdparty-module-feature-suggestion/23582 "2017-01-28T00:31:15Z")

</div>

Hi all, ansibles mount-module\[1\] already offers almost everything you'd want to do with a mount point. Of course it is also able to set the whole list of mount options as a string (for example \`rw,noatime\`). But there…

---

## [I promise you.... I'm pretty smart!!](https://forum.ansible.com/t/i-promise-you-im-pretty-smart/23581)

<div class="topic-metadata">

**Author:** [@Leroy\_Walker\_Jr](https://forum.ansible.com/u/Leroy_Walker_Jr)\
**Replies:** 1\
**Last updated:** [January 27, 2017, 8:52pm UTC](https://forum.ansible.com/t/i-promise-you-im-pretty-smart/23581 "2017-01-27T20:52:59Z")

</div>

But I can’t seem to wrap my head around this! I’ve started working for a new company as a Linux admin. I’ve dabbled in ansible a bit, but in a lab setting. We have about 300 plus existing servers and I will be building…

---

## [Version dependency management](https://forum.ansible.com/t/version-dependency-management/23578)

<div class="topic-metadata">

**Author:** [@Adam](https://forum.ansible.com/u/Adam)\
**Replies:** 2\
**Last updated:** [January 27, 2017, 7:55pm UTC](https://forum.ansible.com/t/version-dependency-management/23578 "2017-01-27T19:55:26Z")

</div>

Hi all - We’re using Ansible, but haven’t gotten super advanced. I have a challenge where I’m doing rolling upgrades across thousands of systems. Due to business reasons (i.e. different groups owning different systems, …

---

## [How to manage the crontab entries that were not done by Ansible's cron module](https://forum.ansible.com/t/how-to-manage-the-crontab-entries-that-were-not-done-by-ansibles-cron-module/23571)

<div class="topic-metadata">

**Author:** [@Manas\_Shukla](https://forum.ansible.com/u/Manas_Shukla)\
**Replies:** 2\
**Last updated:** [January 27, 2017, 4:46pm UTC](https://forum.ansible.com/t/how-to-manage-the-crontab-entries-that-were-not-done-by-ansibles-cron-module/23571 "2017-01-27T16:46:31Z")

</div>

Hi All, I am noob to ansible and hence this basic question. I am trying to manage the crontabs on my servers through ansible. My servers already have a set of cronjobs. As I understand the ansible cron module prefixes…

---

## [how use aws profile when using ansible ec2.py module](https://forum.ansible.com/t/how-use-aws-profile-when-using-ansible-ec2-py-module/23577)

<div class="topic-metadata">

**Author:** [@Ronak\_Patel](https://forum.ansible.com/u/Ronak_Patel)\
**Replies:** 0\
**Last updated:** [January 27, 2017, 3:24pm UTC](https://forum.ansible.com/t/how-use-aws-profile-when-using-ansible-ec2-py-module/23577 "2017-01-27T15:24:37Z")

</div>

I wrote a quick ansible playbook to launch a simple ec2 instance but I think I have an issue on how I want to authenticate. What I don’t want to do is set my aws access/secret keys as env variables since they expire eac…

---

## [Authorize nginx reload without providing become-pass and full sudo privileges](https://forum.ansible.com/t/authorize-nginx-reload-without-providing-become-pass-and-full-sudo-privileges/23570)

<div class="topic-metadata">

**Author:** [@Jonathan\_Bouzekri](https://forum.ansible.com/u/Jonathan_Bouzekri)\
**Replies:** 5\
**Last updated:** [January 27, 2017, 3:14pm UTC](https://forum.ansible.com/t/authorize-nginx-reload-without-providing-become-pass-and-full-sudo-privileges/23570 "2017-01-27T15:14:10Z")

</div>

Hi, I am migrating to a new architecture and I have provisioned my servers with an ansible playbook. I am also using ansible to deploy my source code. I want to be able to reload nginx when the configuration change wit…

---

## [Allowed specific commands with NOPASSWD in sudoers file, Ansible complains...](https://forum.ansible.com/t/allowed-specific-commands-with-nopasswd-in-sudoers-file-ansible-complains/19716)

<div class="topic-metadata">

**Author:** [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Replies:** 5\
**Last updated:** [January 27, 2017, 2:36pm UTC](https://forum.ansible.com/t/allowed-specific-commands-with-nopasswd-in-sudoers-file-ansible-complains/19716 "2017-01-27T14:36:52Z")

</div>

no, the issue is that ansible does not support fine grained sudo permissions, it executes a python file which might execute the commands you see, but the sudo wraps the entire thing, not just the command.

---

## [How to define and use the environment (production/development)?](https://forum.ansible.com/t/how-to-define-and-use-the-environment-production-development/23575)

<div class="topic-metadata">

**Author:** [@Cev\_Ing](https://forum.ansible.com/u/Cev_Ing)\
**Replies:** 2\
**Last updated:** [January 27, 2017, 2:03pm UTC](https://forum.ansible.com/t/how-to-define-and-use-the-environment-production-development/23575 "2017-01-27T14:03:06Z")

</div>

I have different environments and for each an inventory: production.ini and development.ini. I have a users.yml containing user data: users: username: foo uid: 1001 gid: 1001 pw\_hash: $6$… ssh\_key: ssh-rsa AAAA… …

---

## [Multiple Hostnames in AWS Dynamic Inventory list](https://forum.ansible.com/t/multiple-hostnames-in-aws-dynamic-inventory-list/23549)

<div class="topic-metadata">

**Author:** [@Kishor\_Ramanan](https://forum.ansible.com/u/Kishor_Ramanan)\
**Replies:** 4\
**Last updated:** [January 27, 2017, 1:21pm UTC](https://forum.ansible.com/t/multiple-hostnames-in-aws-dynamic-inventory-list/23549 "2017-01-27T13:21:59Z")

</div>

I have configured Ansible to use dynamic inventory list but I am able to use only one hostname instead of multiple hostnames. Even if I give multiple hostname, it takes only one Is there a way to add dynamic multiple h…

---

## [Trouble with regex\_replace](https://forum.ansible.com/t/trouble-with-regex-replace/23568)

<div class="topic-metadata">

**Author:** [@Yuval\_Mund](https://forum.ansible.com/u/Yuval_Mund)\
**Replies:** 1\
**Last updated:** [January 27, 2017, 8:30am UTC](https://forum.ansible.com/t/trouble-with-regex-replace/23568 "2017-01-27T08:30:46Z")

</div>

Hello, I’m having trouble parsing a string. The situation: parameters: full: \[‘hostname1:abcdefg1’,‘hostname2:-vip2’,‘hostname3:abc-vip3’\] It is required of me to have a parameter/list of hostnames without the rest…

---

## [Pull Request Build failure](https://forum.ansible.com/t/pull-request-build-failure/23566)

<div class="topic-metadata">

**Author:** [@johnny.sheppard.isod](https://forum.ansible.com/u/johnny.sheppard.isod)\
**Replies:** 2\
**Last updated:** [January 27, 2017, 7:54am UTC](https://forum.ansible.com/t/pull-request-build-failure/23566 "2017-01-27T07:54:58Z")

</div>

Hi, I’ve just submitted a pull request but the automatic build has failed with the message: ERROR: 500: An error occurred (InstanceLimitExceeded) when calling the RunInstances operation: Your quota allows for 0 more ru…

---

## [Tabulator in jinja2 template?](https://forum.ansible.com/t/tabulator-in-jinja2-template/23558)

<div class="topic-metadata">

**Author:** [@Johannes\_Kastl](https://forum.ansible.com/u/Johannes_Kastl)\
**Replies:** 2\
**Last updated:** [January 26, 2017, 4:50pm UTC](https://forum.ansible.com/t/tabulator-in-jinja2-template/23558 "2017-01-26T16:50:58Z")

</div>

Dear all, is there a way to add a tabulator to a template in ansible? I mean without actually using a tabulator, so it would be easier to spot while checking the template. The lineinfile module supports {{\\t}}, but t…

---

## [How to emulate Make semantics?](https://forum.ansible.com/t/how-to-emulate-make-semantics/23565)

<div class="topic-metadata">

**Author:** [@Cev\_Ing](https://forum.ansible.com/u/Cev_Ing)\
**Replies:** 5\
**Last updated:** [January 26, 2017, 4:19pm UTC](https://forum.ansible.com/t/how-to-emulate-make-semantics/23565 "2017-01-26T16:19:59Z")

</div>

I need to execute a play, which uses file A to generate file B, if B does not exist or if B exists and is older than A. How can I compare file dates in the when condition?

---

## [Does an ansible-vault module exist?](https://forum.ansible.com/t/does-an-ansible-vault-module-exist/23569)

<div class="topic-metadata">

**Author:** [@Cev\_Ing](https://forum.ansible.com/u/Cev_Ing)\
**Replies:** 2\
**Last updated:** [January 26, 2017, 4:07pm UTC](https://forum.ansible.com/t/does-an-ansible-vault-module-exist/23569 "2017-01-26T16:07:30Z")

</div>

Does an ansible-vault module exist, which does the same as the shell task: shell: ansible-vault encrypt {{ users\_pw\_hash }} Or even better: does a module exist, which can be used to update some data in encrypted YAML v…

---

## [Testing for a defined but non empty string](https://forum.ansible.com/t/testing-for-a-defined-but-non-empty-string/14467)

<div class="topic-metadata">

**Author:** [@Stephen\_Ryan](https://forum.ansible.com/u/Stephen_Ryan)\
**Replies:** 11\
**Last updated:** [January 26, 2017, 3:53pm UTC](https://forum.ansible.com/t/testing-for-a-defined-but-non-empty-string/14467 "2017-01-26T15:53:45Z")

</div>

Best to explain with an example We have tasks setup like name: do something shell: do task when: foo is defined This works perfectly for most situations however we have a number of places where we need to unset the…

---

## [connection\_type lxd and remote machine?](https://forum.ansible.com/t/connection-type-lxd-and-remote-machine/23559)

<div class="topic-metadata">

**Author:** [@Hadmut\_Danisch](https://forum.ansible.com/u/Hadmut_Danisch)\
**Replies:** 3\
**Last updated:** [January 26, 2017, 2:39pm UTC](https://forum.ansible.com/t/connection-type-lxd-and-remote-machine/23559 "2017-01-26T14:39:36Z")

</div>

Hi, if I have a machine running in an Ubuntu lxd container (without a sshd ), I can tell ansible in the inventory something like someserver ansible\_connection=lxd which makes ansible use the lxc exec command instead o…

---

## [Using ldap\_attr to set root password works but shows failed](https://forum.ansible.com/t/using-ldap-attr-to-set-root-password-works-but-shows-failed/23555)

<div class="topic-metadata">

**Author:** [@Kevin\_Hughes](https://forum.ansible.com/u/Kevin_Hughes)\
**Replies:** 1\
**Last updated:** [January 26, 2017, 10:40am UTC](https://forum.ansible.com/t/using-ldap-attr-to-set-root-password-works-but-shows-failed/23555 "2017-01-26T10:40:03Z")

</div>

I’m using the following to set my LDAP root password: \` name: generate ldap admin password hash command: “/usr/sbin/slappasswd -s PASSWORD” register: slapd\_admin\_password\_hash tags: ldap name: set ldap admin passwo…

---

## [async fails after running vsphere\_guest](https://forum.ansible.com/t/async-fails-after-running-vsphere-guest/23557)

<div class="topic-metadata">

**Author:** [@Tim3](https://forum.ansible.com/u/Tim3)\
**Replies:** 2\
**Last updated:** [January 26, 2017, 7:48am UTC](https://forum.ansible.com/t/async-fails-after-running-vsphere-guest/23557 "2017-01-26T07:48:26Z")

</div>

I try to run the following tasks like shown below. \` name: add test host (fire and forget) vsphere\_guest: vcenter\_hostname: srv-vcenter01.ansible.local username: administrator@vsphere.ansible.local password: P@ss…

---

## [ec2\_ami\_copy not supporting encryption](https://forum.ansible.com/t/ec2-ami-copy-not-supporting-encryption/23562)

<div class="topic-metadata">

**Author:** [@challa.tek](https://forum.ansible.com/u/challa.tek)\
**Replies:** 0\
**Last updated:** [January 26, 2017, 4:39am UTC](https://forum.ansible.com/t/ec2-ami-copy-not-supporting-encryption/23562 "2017-01-26T04:39:19Z")

</div>

my task: ec2\_ami\_copy: source\_region: us-east-1 region: us-east-1 source\_image\_id: “{{ ami\_find.results\[0\].ami\_id }}” wait: yes encrypted: yes tags: Name: “{{ unencrypted\_ami\_name }}” encrypted: yes Error: fa…

---

## [Ansible variable question.](https://forum.ansible.com/t/ansible-variable-question/23560)

<div class="topic-metadata">

**Author:** [@Jason\_Morgan](https://forum.ansible.com/u/Jason_Morgan)\
**Replies:** 1\
**Last updated:** [January 25, 2017, 8:40pm UTC](https://forum.ansible.com/t/ansible-variable-question/23560 "2017-01-25T20:40:13Z")

</div>

Hi , I have a variable declared as shown below. When the playbook run, the two tasks shown below are skipped. Can someone please clarify the best practice to declare the variable and use as detailed below. mariadb\_vers…

---

## [remote access to lxc containers on lxc-host without ssh inside the containers](https://forum.ansible.com/t/remote-access-to-lxc-containers-on-lxc-host-without-ssh-inside-the-containers/23546)

<div class="topic-metadata">

**Author:** [@Mario\_Keller](https://forum.ansible.com/u/Mario_Keller)\
**Replies:** 7\
**Last updated:** [January 25, 2017, 6:29pm UTC](https://forum.ansible.com/t/remote-access-to-lxc-containers-on-lxc-host-without-ssh-inside-the-containers/23546 "2017-01-25T18:29:15Z")

</div>

Hello, I’m trying to configure lxc containers via ansible running on a remote host. I have ssh access to the remote host, but inside the containers there are no ssh services running. There is a lxc connection plugin tha…

---

## [Is it possible to use templates as a source when using the patch module?](https://forum.ansible.com/t/is-it-possible-to-use-templates-as-a-source-when-using-the-patch-module/23556)

<div class="topic-metadata">

**Author:** [@chrstphrptrs](https://forum.ansible.com/u/chrstphrptrs)\
**Replies:** 1\
**Last updated:** [January 25, 2017, 5:15pm UTC](https://forum.ansible.com/t/is-it-possible-to-use-templates-as-a-source-when-using-the-patch-module/23556 "2017-01-25T17:15:59Z")

</div>

Hi, I’m wondering whether it’s possible to use a Jinja2 template as a source in a patch task. (Documentation of the module: http://docs.ansible.com/ansible/patch\_module.html) An example: name: Copy patch template t…

---

## [update  /etc/cron.allow  on multiple nodes diff values](https://forum.ansible.com/t/update-etc-cron-allow-on-multiple-nodes-diff-values/23543)

<div class="topic-metadata">

**Author:** [@Kiran\_Kumar](https://forum.ansible.com/u/Kiran_Kumar)\
**Replies:** 1\
**Last updated:** [January 25, 2017, 7:31am UTC](https://forum.ansible.com/t/update-etc-cron-allow-on-multiple-nodes-diff-values/23543 "2017-01-25T07:31:38Z")

</div>

hello all i need to update /etc/cron.allow on many servers below is eg x oracle y db x prod … …

---

## [any "pave and rebuild" modules?](https://forum.ansible.com/t/any-pave-and-rebuild-modules/23553)

<div class="topic-metadata">

**Author:** [@Tim1](https://forum.ansible.com/u/Tim1)\
**Replies:** 0\
**Last updated:** [January 25, 2017, 6:33am UTC](https://forum.ansible.com/t/any-pave-and-rebuild-modules/23553 "2017-01-25T06:33:27Z")

</div>

hi folks, I’m faced with an API that only behaves in a “pave and rebuild” sort of model that I want to build a module for I was wondering if anyone was familiar with any existing modules that operate with similar APIs. …

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

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