# Latest

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

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

**Page:** 947

---

## [configuration organization](https://forum.ansible.com/t/configuration-organization/15929)

<div class="topic-metadata">

**Author:** [@Dan\_Benson](https://forum.ansible.com/u/Dan_Benson)\
**Replies:** 1\
**Last updated:** [August 13, 2014, 12:37pm UTC](https://forum.ansible.com/t/configuration-organization/15929 "2014-08-13T12:37:41Z")

</div>

I suspect this question comes up from time to time, but I’m struggling to wrap my brain around how we should organize our playbooks. We have a few different types of configuration: role - run on regular time intervals …

---

## [jinja json template adds an extra comma breaking json structure](https://forum.ansible.com/t/jinja-json-template-adds-an-extra-comma-breaking-json-structure/15927)

<div class="topic-metadata">

**Author:** [@david.neudorfer](https://forum.ansible.com/u/david.neudorfer)\
**Replies:** 0\
**Last updated:** [August 13, 2014, 6:05am UTC](https://forum.ansible.com/t/jinja-json-template-adds-an-extra-comma-breaking-json-structure/15927 "2014-08-13T06:05:47Z")

</div>

How can I stop the look inside the jinja template so when it gets the the last item it doesn’t add a comma at the end breaking the json format. I can clearly the very last command on the 5th to last line is whats wrong b…

---

## [New way to expose ones playbook to untrusted variables](https://forum.ansible.com/t/new-way-to-expose-ones-playbook-to-untrusted-variables/15926)

<div class="topic-metadata">

**Author:** [@Tomasz\_Kontusz](https://forum.ansible.com/u/Tomasz_Kontusz)\
**Replies:** 2\
**Last updated:** [August 12, 2014, 8:42pm UTC](https://forum.ansible.com/t/new-way-to-expose-ones-playbook-to-untrusted-variables/15926 "2014-08-12T20:42:18Z")

</div>

Hi! I'm not sending this in as a security issue, as I don't think there are playbooks like that in the wild. If I understood the changes in 1.6.7+ properly, they were about protecting against injecting arguments like t…

---

## [JSON log callback\_plugin questions](https://forum.ansible.com/t/json-log-callback-plugin-questions/15922)

<div class="topic-metadata">

**Author:** [@Peter\_M\_Souter](https://forum.ansible.com/u/Peter_M_Souter)\
**Replies:** 1\
**Last updated:** [August 12, 2014, 7:07pm UTC](https://forum.ansible.com/t/json-log-callback-plugin-questions/15922 "2014-08-12T19:07:53Z")

</div>

Hello All! I’ve made a basic callback\_plugin for creating logs as json, check it out: https://github.com/petems/ansible-json So far so good, it all works. My plan is to a have a toggableable ability to write the logs …

---

## [1.8 update news: By popular demand, no\_log True has increased censorship](https://forum.ansible.com/t/1-8-update-news-by-popular-demand-no-log-true-has-increased-censorship/15925)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Replies:** 0\
**Last updated:** [August 12, 2014, 5:37pm UTC](https://forum.ansible.com/t/1-8-update-news-by-popular-demand-no-log-true-has-increased-censorship/15925 "2014-08-12T17:37:29Z")

</div>

Previously in ansible the no\_log: True attribute on a task or a play hides any logging from hitting syslog on the remote system. In addition to this, on 1.8, I’ve also implemented a much requested new feature that als…

---

## [How to read automatic environment variables such as DO\_CLIENT\_ID in digtal\_ocean module?](https://forum.ansible.com/t/how-to-read-automatic-environment-variables-such-as-do-client-id-in-digtal-ocean-module/15917)

<div class="topic-metadata">

**Author:** [@Ryan\_VanGundy](https://forum.ansible.com/u/Ryan_VanGundy)\
**Replies:** 2\
**Last updated:** [August 12, 2014, 3:52pm UTC](https://forum.ansible.com/t/how-to-read-automatic-environment-variables-such-as-do-client-id-in-digtal-ocean-module/15917 "2014-08-12T15:52:01Z")

</div>

I’m attempting to implement a deployment playbook that deploys to digital ocean. In the ansible docs on the digital\_ocean module it states, “Two environment variables can be used, DO\_CLIENT\_ID and DO\_API\_KEY” I haven’t…

---

## [RHEL 6 STIG Role](https://forum.ansible.com/t/rhel-6-stig-role/15910)

<div class="topic-metadata">

**Author:** [@Sam\_Doran](https://forum.ansible.com/u/Sam_Doran)\
**Replies:** 3\
**Last updated:** [August 12, 2014, 3:16pm UTC](https://forum.ansible.com/t/rhel-6-stig-role/15910 "2014-08-12T15:16:05Z")

</div>

I’m working an a role for the RHEL 6 DISA STIG for anyone that is interested. The project is hosted on GitHub. Once I get 1.0 complete, I’ll add it on Ansible Galaxy. The main philosophy behind the role is a remediation…

---

## [Role specific file selection](https://forum.ansible.com/t/role-specific-file-selection/15921)

<div class="topic-metadata">

**Author:** [@Mark\_Olliver](https://forum.ansible.com/u/Mark_Olliver)\
**Replies:** 0\
**Last updated:** [August 12, 2014, 12:52pm UTC](https://forum.ansible.com/t/role-specific-file-selection/15921 "2014-08-12T12:52:25Z")

</div>

How in a playbook would i select a file based on which group of servers is being used. I.e I have 3 different logstash config files which are completely different but similar groups of servers need the same file. So a t…

---

## [ASK to pass variable over another host](https://forum.ansible.com/t/ask-to-pass-variable-over-another-host/15918)

<div class="topic-metadata">

**Author:** [@Muhammad\_Yusuf](https://forum.ansible.com/u/Muhammad_Yusuf)\
**Replies:** 1\
**Last updated:** [August 12, 2014, 11:29am UTC](https://forum.ansible.com/t/ask-to-pass-variable-over-another-host/15918 "2014-08-12T11:29:32Z")

</div>

i got some situation : host file : development \[master\] 1.2.3.4 \[client\] 1.2.3.5 dump\_var=“testing” 1.2.3.10 dump\_var=“test2” yml file : site.yml

---

## [File mode with SetGID bit set gets wrong permissions.](https://forum.ansible.com/t/file-mode-with-setgid-bit-set-gets-wrong-permissions/15905)

<div class="topic-metadata">

**Author:** [@Deon\_Bredenhann](https://forum.ansible.com/u/Deon_Bredenhann)\
**Replies:** 3\
**Last updated:** [August 12, 2014, 8:32am UTC](https://forum.ansible.com/t/file-mode-with-setgid-bit-set-gets-wrong-permissions/15905 "2014-08-12T08:32:14Z")

</div>

name: Create test file: path: /srv/test state: directory mode: 2770 owner: root group: admin Output of -v {“changed”: true, “gid”: 6003, “group”: “admin”, “mode”: “05322”, “owner”: “root”, “path”: “/srv/test”, “…

---

## [Ansible command line got stuck with shell module](https://forum.ansible.com/t/ansible-command-line-got-stuck-with-shell-module/15902)

<div class="topic-metadata">

**Author:** [@Hoffmann\_Liu](https://forum.ansible.com/u/Hoffmann_Liu)\
**Replies:** 3\
**Last updated:** [August 12, 2014, 2:03am UTC](https://forum.ansible.com/t/ansible-command-line-got-stuck-with-shell-module/15902 "2014-08-12T02:03:09Z")

</div>

Hi, I am new to Ansible and immediately fall in love with its simplicity and power. I have tried Cfengine, Puppet, Chef and even Salt before. I went nowhere with any of them. Now with Ansible I can fast and effectively …

---

## [AnsibleFest Submissions Reminder - Oct 14 in San Francisco](https://forum.ansible.com/t/ansiblefest-submissions-reminder-oct-14-in-san-francisco/15914)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Replies:** 0\
**Last updated:** [August 11, 2014, 9:04pm UTC](https://forum.ansible.com/t/ansiblefest-submissions-reminder-oct-14-in-san-francisco/15914 "2014-08-11T21:04:04Z")

</div>

Hi folks, Just as a reminder the call for submissions for speakers at AnsibleFest in San Francisco for Oct 14 is open. If you’d like to speak, submit your abstracts to cfp@ansible.com, ideally in the next week or two, …

---

## [Ansible Patterns](https://forum.ansible.com/t/ansible-patterns/15908)

<div class="topic-metadata">

**Author:** [@Rob\_Zissou](https://forum.ansible.com/u/Rob_Zissou)\
**Replies:** 5\
**Last updated:** [August 11, 2014, 8:52pm UTC](https://forum.ansible.com/t/ansible-patterns/15908 "2014-08-11T20:52:12Z")

</div>

Hi All, I’ve been trying to work out the best layout for our playbooks and roles. I’ve been attempting to conform to DRY principles but trying to leave things as loosely coupled as possible. Our infrastructure involves…

---

## [Lookup plugins and complex data](https://forum.ansible.com/t/lookup-plugins-and-complex-data/13974)

<div class="topic-metadata">

**Author:** [@Paul\_Totterman](https://forum.ansible.com/u/Paul_Totterman)\
**Replies:** 10\
**Last updated:** [August 11, 2014, 7:54pm UTC](https://forum.ansible.com/t/lookup-plugins-and-complex-data/13974 "2014-08-11T19:54:59Z")

</div>

Hi, I’m quite new to Ansible, and I’ve been asking some questions on the IRC channel the past few days. We have a lot of data in LDAP and other databases, which we would like to use in our Ansible plays (?). So I wrote…

---

## [New Sensu module](https://forum.ansible.com/t/new-sensu-module/15888)

<div class="topic-metadata">

**Author:** [@Amr\_Ali](https://forum.ansible.com/u/Amr_Ali)\
**Replies:** 5\
**Last updated:** [August 11, 2014, 6:05pm UTC](https://forum.ansible.com/t/new-sensu-module/15888 "2014-08-11T18:05:47Z")

</div>

Hey, i’v been working on a sensu module to interact and manage sensu through sensu-api, it’s done and tested but i’d like to see your opinions about it before doing a PR, being my first module and all wanted to make sur…

---

## [Preliminary fact-caching support now available on the development branch](https://forum.ansible.com/t/preliminary-fact-caching-support-now-available-on-the-development-branch/15912)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Replies:** 0\
**Last updated:** [August 11, 2014, 4:27pm UTC](https://forum.ansible.com/t/preliminary-fact-caching-support-now-available-on-the-development-branch/15912 "2014-08-11T16:27:06Z")

</div>

Thanks to Brian Coca, Josh Drake, and some minor fiddling from myself, I’m pleased to announce the 1.8 development branch now has the popular “fact caching” feature implemented and is ready for testing. What is fact cac…

---

## [Building docker images with ansible](https://forum.ansible.com/t/building-docker-images-with-ansible/15906)

<div class="topic-metadata">

**Author:** [@Victor\_Lin](https://forum.ansible.com/u/Victor_Lin)\
**Replies:** 1\
**Last updated:** [August 11, 2014, 12:31pm UTC](https://forum.ansible.com/t/building-docker-images-with-ansible/15906 "2014-08-11T12:31:01Z")

</div>

I have been using ansible for building and deploying docker images for a while. Surprisingly I felt this is a really nice solution for leveraging docker, so I wrote an article about it, you can read it here: http://vict…

---

## [How to reference a role not located the roles directory?](https://forum.ansible.com/t/how-to-reference-a-role-not-located-the-roles-directory/15904)

<div class="topic-metadata">

**Author:** [@Weston\_Platter](https://forum.ansible.com/u/Weston_Platter)\
**Replies:** 4\
**Last updated:** [August 11, 2014, 12:28pm UTC](https://forum.ansible.com/t/how-to-reference-a-role-not-located-the-roles-directory/15904 "2014-08-11T12:28:42Z")

</div>

I’m using a galaxy package that I modified. I would like to reference this modified role from a playbook. How do I declare that the roles File System location is not in the roles folder (as expected) but else where on my…

---

## [Setting Environment Variables for inventory scripts from vault.](https://forum.ansible.com/t/setting-environment-variables-for-inventory-scripts-from-vault/15900)

<div class="topic-metadata">

**Author:** [@Darrel\_O\_Pry](https://forum.ansible.com/u/Darrel_O_Pry)\
**Replies:** 1\
**Last updated:** [August 8, 2014, 11:42pm UTC](https://forum.ansible.com/t/setting-environment-variables-for-inventory-scripts-from-vault/15900 "2014-08-08T23:42:52Z")

</div>

I’m working with digital ocean and I would really like to wrap our DO keys we use for deployment in a vault. I also want to use digital ocean for my inventory. Unfortunately the inventory is instantiated before any playb…

---

## [Issue with relative paths when creating directories in Ansible 1.7.0](https://forum.ansible.com/t/issue-with-relative-paths-when-creating-directories-in-ansible-1-7-0/15891)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Replies:** 2\
**Last updated:** [August 8, 2014, 11:39pm UTC](https://forum.ansible.com/t/issue-with-relative-paths-when-creating-directories-in-ansible-1-7-0/15891 "2014-08-08T23:39:55Z")

</div>

(A) This is probably a better question for ansible-project in the future. (B) So I noticed you already filed a ticket on this one and it’s on our list to look at. In general, we’ve never really specified what relativ…

---

## [Merging of host\_vars and group\_vars?](https://forum.ansible.com/t/merging-of-host-vars-and-group-vars/15895)

<div class="topic-metadata">

**Author:** [@ryan2](https://forum.ansible.com/u/ryan2)\
**Replies:** 1\
**Last updated:** [August 8, 2014, 11:31pm UTC](https://forum.ansible.com/t/merging-of-host-vars-and-group-vars/15895 "2014-08-08T23:31:32Z")

</div>

I have a playbook with a role that creates users that are defined in group\_vars/all, similar to this role https://galaxy.ansible.com/list#/roles/51. When I define a user in the host\_vars/foo it takes over precedence and …

---

## [EC2 module : dependency between exact\_count and count\_tag](https://forum.ansible.com/t/ec2-module-dependency-between-exact-count-and-count-tag/15889)

<div class="topic-metadata">

**Author:** [@casimir\_Jeanjean](https://forum.ansible.com/u/casimir_Jeanjean)\
**Replies:** 1\
**Last updated:** [August 8, 2014, 11:29pm UTC](https://forum.ansible.com/t/ec2-module-dependency-between-exact-count-and-count-tag/15889 "2014-08-08T23:29:06Z")

</div>

Hi everyone, In one of my plays, in a EC2 action, I used the “exact\_count” parameter and forgot to specify “count\_tag”. Ansible tried to kill one of my EC2 machines randomly (fortunately it had API termination disabled)…

---

## [Loop over a list that points at structures](https://forum.ansible.com/t/loop-over-a-list-that-points-at-structures/15897)

<div class="topic-metadata">

**Author:** [@mtovey](https://forum.ansible.com/u/mtovey)\
**Replies:** 1\
**Last updated:** [August 8, 2014, 11:27pm UTC](https://forum.ansible.com/t/loop-over-a-list-that-points-at-structures/15897 "2014-08-08T23:27:22Z")

</div>

I have structures in group\_vars files that looks roughly like the following: Accounts1: files: { src: ‘src\_path/filename1’, dest: ‘dest\_path/filename1’ } { src: ‘src\_path/filename2’, dest: ‘dest\_path/filename2’ } ap…

---

## [Is there a Pattern for having one machine in a cluster perform an action?](https://forum.ansible.com/t/is-there-a-pattern-for-having-one-machine-in-a-cluster-perform-an-action/15890)

<div class="topic-metadata">

**Author:** [@Guy\_Matz1](https://forum.ansible.com/u/Guy_Matz1)\
**Replies:** 3\
**Last updated:** [August 8, 2014, 11:25pm UTC](https://forum.ansible.com/t/is-there-a-pattern-for-having-one-machine-in-a-cluster-perform-an-action/15890 "2014-08-08T23:25:18Z")

</div>

Hi! I have a few django servers . . . I would like to run a syncdb in my playbook, but only need/want one of the django servers in the group to run that play . . . do I need to designate a machine to run that or is there…

---

## [ec2 module alarm creation](https://forum.ansible.com/t/ec2-module-alarm-creation/14765)

<div class="topic-metadata">

**Author:** [@Bernat\_Rafales](https://forum.ansible.com/u/Bernat_Rafales)\
**Replies:** 3\
**Last updated:** [August 8, 2014, 11:23pm UTC](https://forum.ansible.com/t/ec2-module-alarm-creation/14765 "2014-08-08T23:23:51Z")

</div>

Hi guys, I’ve been spending some days tweaking some ansible playbooks to create ec2 instances using the ec2 module. I was wondering if the current module allows creation of alarms and if not if it’s on the development p…

---

## [Trouble updating alternatives on CentOS via shell/command modules](https://forum.ansible.com/t/trouble-updating-alternatives-on-centos-via-shell-command-modules/15892)

<div class="topic-metadata">

**Author:** [@Gary\_Malouf](https://forum.ansible.com/u/Gary_Malouf)\
**Replies:** 1\
**Last updated:** [August 8, 2014, 7:51pm UTC](https://forum.ansible.com/t/trouble-updating-alternatives-on-centos-via-shell-command-modules/15892 "2014-08-08T19:51:25Z")

</div>

I tried using the debian-specific update-alternatives module but this did not work. Very simply, I have a command that when executed from the command line on the server itself works fine but via a task in our playbook sa…

---

## [template module bombing out](https://forum.ansible.com/t/template-module-bombing-out/15884)

<div class="topic-metadata">

**Author:** [@John\_Oliver](https://forum.ansible.com/u/John_Oliver)\
**Replies:** 2\
**Last updated:** [August 8, 2014, 2:43pm UTC](https://forum.ansible.com/t/template-module-bombing-out/15884 "2014-08-08T14:43:24Z")

</div>

ansible 1.6.10 This task: name: Copy admin pwd chg ldif to target template: src=admin-pwd-chg.ldif.j2 dest=/tmp/ is leaving /tmp/admin-pwd-chg.ldif.j2 instead of admin-pwd-chg.ldif The variables in it are being expa…

---

## [Ideal permissions setup?](https://forum.ansible.com/t/ideal-permissions-setup/15886)

<div class="topic-metadata">

**Author:** [@Gary\_Malouf](https://forum.ansible.com/u/Gary_Malouf)\
**Replies:** 3\
**Last updated:** [August 8, 2014, 2:41pm UTC](https://forum.ansible.com/t/ideal-permissions-setup/15886 "2014-08-08T14:41:37Z")

</div>

Today, we have a setup where all of our playbooks, roles, etc are owned and run by root on our ‘management instance’. Some important key files are protected/encrypted in the root home directory that playbooks need to acc…

---

## [ansible verison 1.7 and pycrpto problems](https://forum.ansible.com/t/ansible-verison-1-7-and-pycrpto-problems/15885)

<div class="topic-metadata">

**Author:** [@guanwen](https://forum.ansible.com/u/guanwen)\
**Replies:** 1\
**Last updated:** [August 8, 2014, 2:39pm UTC](https://forum.ansible.com/t/ansible-verison-1-7-and-pycrpto-problems/15885 "2014-08-08T14:39:40Z")

</div>

I installed ansible 1.7, when I played my playbook, I got the following error messages: \[\*\*\*@xxxx openstack\]$ ansible-playbook -i …/inventory --ask-vault-pass keystone.yml Vault password: ERROR: ansible-vault requires…

---

## [access to ansible\_ssh\_host and ansible\_ssh\_port in a play](https://forum.ansible.com/t/access-to-ansible-ssh-host-and-ansible-ssh-port-in-a-play/15887)

<div class="topic-metadata">

**Author:** [@Stefan\_Lapers](https://forum.ansible.com/u/Stefan_Lapers)\
**Replies:** 1\
**Last updated:** [August 8, 2014, 1:42pm UTC](https://forum.ansible.com/t/access-to-ansible-ssh-host-and-ansible-ssh-port-in-a-play/15887 "2014-08-08T13:42:32Z")

</div>

Hi, Is it possible to access ansible\_ssh\_host (and other inventory parameters) in a playbook ? The goal is to copy/backup files from a remote machine to the local ansible station or a machine specified with delegate\_to…

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

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