# Latest

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

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

**Page:** 950

---

## [Ansible parameter "run\_once" not working](https://forum.ansible.com/t/ansible-parameter-run-once-not-working/15834)

<div class="topic-metadata">

**Author:** [@elwood218](https://forum.ansible.com/u/elwood218)\
**Replies:** 3\
**Last updated:** [August 1, 2014, 5:45pm UTC](https://forum.ansible.com/t/ansible-parameter-run-once-not-working/15834 "2014-08-01T17:45:51Z")

</div>

Hello to all, according to http://docs.ansible.com/playbooks\_delegation.html#run-once there is a parameter run\_once to execute a task only on one target. For me this is not runnung! :frowning: Gettting this error messa…

---

## [MySQL\_replication module](https://forum.ansible.com/t/mysql-replication-module/12988)

<div class="topic-metadata">

**Author:** [@Balazs\_Pocze](https://forum.ansible.com/u/Balazs_Pocze)\
**Replies:** 3\
**Last updated:** [August 1, 2014, 11:38am UTC](https://forum.ansible.com/t/mysql-replication-module/12988 "2014-08-01T11:38:55Z")

</div>

Hi Guys, I've finished a module for ansible, it is called as 'mysql\_replication' and of course you can manage mysql replication features with that. It can operate in different ways, you can check replication master's …

---

## [Ansible 1.7 officially released?](https://forum.ansible.com/t/ansible-1-7-officially-released/15828)

<div class="topic-metadata">

**Author:** [@celine](https://forum.ansible.com/u/celine)\
**Replies:** 3\
**Last updated:** [August 1, 2014, 11:34am UTC](https://forum.ansible.com/t/ansible-1-7-officially-released/15828 "2014-08-01T11:34:15Z")

</div>

Hi, I wish to ask if Ansible 1.7 has been officially released? I was searching for ansible 1.7 tarball from here: http://releases.ansible.com/ansible/ but it is not there. Any idea when tarball for Ansible 1.7 will be …

---

## [Handlers are called for all hosts (not only for the changed hosts)](https://forum.ansible.com/t/handlers-are-called-for-all-hosts-not-only-for-the-changed-hosts/15818)

<div class="topic-metadata">

**Author:** [@Oliver\_Laumann](https://forum.ansible.com/u/Oliver_Laumann)\
**Replies:** 2\
**Last updated:** [August 1, 2014, 11:18am UTC](https://forum.ansible.com/t/handlers-are-called-for-all-hosts-not-only-for-the-changed-hosts/15818 "2014-08-01T11:18:53Z")

</div>

Hello list, I’m trying to roll out some mysql configuration files. The playbook itself is not the problem. My problem are the handlers that are for every given host and not only for the changed hosts. I’ve got three se…

---

## [\[ansible\] add doc to stat module + function to display doc (#8382)](https://forum.ansible.com/t/ansible-add-doc-to-stat-module-function-to-display-doc-8382/15831)

<div class="topic-metadata">

**Author:** [@Diogene\_Laerce](https://forum.ansible.com/u/Diogene_Laerce)\
**Replies:** 0\
**Last updated:** [August 1, 2014, 7:06am UTC](https://forum.ansible.com/t/ansible-add-doc-to-stat-module-function-to-display-doc-8382/15831 "2014-08-01T07:06:49Z")

</div>

Hi, I really would not like to see a separate doc page for the stat module (the new stat.rst), and would like to see this accounted for in the inline documentation for the stat module if possible. Sorry I forgot to…

---

## [Ansible JSON module?](https://forum.ansible.com/t/ansible-json-module/15825)

<div class="topic-metadata">

**Author:** [@Ryan\_VanGundy](https://forum.ansible.com/u/Ryan_VanGundy)\
**Replies:** 7\
**Last updated:** [August 1, 2014, 1:02am UTC](https://forum.ansible.com/t/ansible-json-module/15825 "2014-08-01T01:02:05Z")

</div>

Is there a module for manipulating JSON data? Say I have a settings file that’s written in JSON, and I’d like to set or modify a value. As a task, this might look like: \` name: Modify author name json: src=config.jso…

---

## [Storing private ssh keys in variables](https://forum.ansible.com/t/storing-private-ssh-keys-in-variables/15779)

<div class="topic-metadata">

**Author:** [@Ben\_Stokes](https://forum.ansible.com/u/Ben_Stokes)\
**Replies:** 7\
**Last updated:** [July 31, 2014, 11:24pm UTC](https://forum.ansible.com/t/storing-private-ssh-keys-in-variables/15779 "2014-07-31T23:24:28Z")

</div>

I’m trying to store ssh private keys in variables in a vault-protected file, and I’m having problems. The issue is with the variables spanning many lines, when they are injected during the playbook run, on the destinatio…

---

## [Invalid OpenStack Identity credentials.](https://forum.ansible.com/t/invalid-openstack-identity-credentials/15820)

<div class="topic-metadata">

**Author:** [@shailendra\_acharya](https://forum.ansible.com/u/shailendra_acharya)\
**Replies:** 1\
**Last updated:** [July 31, 2014, 10:40pm UTC](https://forum.ansible.com/t/invalid-openstack-identity-credentials/15820 "2014-07-31T22:40:20Z")

</div>

hello friends i m shailendra i need ur help in installation of openstack. i m trying icehouse manual but i got stuck here when it comes to create user using keystone user-create --name=admin --pass=shail123 --email=exa…

---

## [How to skip optional arguments to a module after new security patch?](https://forum.ansible.com/t/how-to-skip-optional-arguments-to-a-module-after-new-security-patch/15796)

<div class="topic-metadata">

**Author:** [@Victor\_Lin](https://forum.ansible.com/u/Victor_Lin)\
**Replies:** 6\
**Last updated:** [July 31, 2014, 10:39pm UTC](https://forum.ansible.com/t/how-to-skip-optional-arguments-to-a-module-after-new-security-patch/15796 "2014-07-31T22:39:09Z")

</div>

I noticed that since the new ansible with security patched is released, many our roles and playbooks are broken. For example, our role depends on this, it is also broken https://github.com/Ansibles/generic-users/blob/ma…

---

## [Some changes in backup mechanism](https://forum.ansible.com/t/some-changes-in-backup-mechanism/13665)

<div class="topic-metadata">

**Author:** [@Vadim\_Shkolin](https://forum.ansible.com/u/Vadim_Shkolin)\
**Replies:** 8\
**Last updated:** [July 31, 2014, 9:36pm UTC](https://forum.ansible.com/t/some-changes-in-backup-mechanism/13665 "2014-07-31T21:36:16Z")

</div>

File modules of ansible (“copy”, module and some others) can do backup of changed data. The standard naiming schema (timestamping and adding ‘~’ in original directory) can have bad effects in “conf.d”-like distros. Main…

---

## [Structure for Ansible and handling of config](https://forum.ansible.com/t/structure-for-ansible-and-handling-of-config/15810)

<div class="topic-metadata">

**Author:** [@Daniel\_Schroeder](https://forum.ansible.com/u/Daniel_Schroeder)\
**Replies:** 3\
**Last updated:** [July 31, 2014, 8:58pm UTC](https://forum.ansible.com/t/structure-for-ansible-and-handling-of-config/15810 "2014-07-31T20:58:18Z")

</div>

Heya, I’m currently evaluating Ansible for our company but I’m having problems to understand how we would set up our global structure. We have like 10.000 hosts and hundreds of different projects with different teams an…

---

## [Can lineinfile insert text into a line?](https://forum.ansible.com/t/can-lineinfile-insert-text-into-a-line/15804)

<div class="topic-metadata">

**Author:** [@John\_Oliver](https://forum.ansible.com/u/John_Oliver)\
**Replies:** 4\
**Last updated:** [July 31, 2014, 8:45pm UTC](https://forum.ansible.com/t/can-lineinfile-insert-text-into-a-line/15804 "2014-07-31T20:45:16Z")

</div>

Example: password sufficient pam\_unix.so shadow nullok try\_first\_pass use\_authtok And I want to wind up with: password sufficient pam\_unix.so sha512 shadow nullok try\_first\_pass use\_authtok And let’s assume I don’t k…

---

## [Role Composition Suggestions](https://forum.ansible.com/t/role-composition-suggestions/15808)

<div class="topic-metadata">

**Author:** [@Agrajag\_Petunia](https://forum.ansible.com/u/Agrajag_Petunia)\
**Replies:** 4\
**Last updated:** [July 31, 2014, 7:11pm UTC](https://forum.ansible.com/t/role-composition-suggestions/15808 "2014-07-31T19:11:53Z")

</div>

Hi, This could be a stupid question, but what is the best approach to nested role construction (or role composition)? Here is an example: I was needing to set up a postgres role, so rather than re-invent the wheel I we…

---

## [using gathered fact in another play in the same playbook](https://forum.ansible.com/t/using-gathered-fact-in-another-play-in-the-same-playbook/15823)

<div class="topic-metadata">

**Author:** [@Eugene\_Dementiev](https://forum.ansible.com/u/Eugene_Dementiev)\
**Replies:** 2\
**Last updated:** [July 31, 2014, 5:38pm UTC](https://forum.ansible.com/t/using-gathered-fact-in-another-play-in-the-same-playbook/15823 "2014-07-31T17:38:24Z")

</div>

Hi all! Let’s say I have a few hosts (a.local, b.local) with postgresql installed, and I want to add them to bacula system on a backup host (backup.local). Basically, each database host would have have a file named {{ …

---

## [How do I recursively set directory/file permissions](https://forum.ansible.com/t/how-do-i-recursively-set-directory-file-permissions/12375)

<div class="topic-metadata">

**Author:** [@Fff\_Fff](https://forum.ansible.com/u/Fff_Fff)\
**Replies:** 12\
**Last updated:** [July 31, 2014, 4:22pm UTC](https://forum.ansible.com/t/how-do-i-recursively-set-directory-file-permissions/12375 "2014-07-31T16:22:12Z")

</div>

The documentation for file says there is an option to do this: http://ansible.cc/docs/modules.html#file In my playbook I have: file: path=/pathto/somedirectory owner=someowner group=somegroup state=directory recurse=y…

---

## [ec2 module, "state: running" doesn't return the public\_dns\_name, ip etc...](https://forum.ansible.com/t/ec2-module-state-running-doesnt-return-the-public-dns-name-ip-etc/15813)

<div class="topic-metadata">

**Author:** [@Damjan\_Georgievski](https://forum.ansible.com/u/Damjan_Georgievski)\
**Replies:** 2\
**Last updated:** [July 31, 2014, 4:20pm UTC](https://forum.ansible.com/t/ec2-module-state-running-doesnt-return-the-public-dns-name-ip-etc/15813 "2014-07-31T16:20:35Z")

</div>

I have this simple task: name: Starting ec2 instance… ec2: region: ‘us-east-1’ instance\_ids: ‘{{ instance\_ids }}’ state: running wait: True register: ec2\_info I run ansible-playbook with -vv and the output is: T…

---

## [\`ansible\_ssh\_user\` overriding \`remote\_user\`](https://forum.ansible.com/t/ansible-ssh-user-overriding-remote-user/15816)

<div class="topic-metadata">

**Author:** [@Steven\_Ringo](https://forum.ansible.com/u/Steven_Ringo)\
**Replies:** 6\
**Last updated:** [July 31, 2014, 2:01pm UTC](https://forum.ansible.com/t/ansible-ssh-user-overriding-remote-user/15816 "2014-07-31T14:01:48Z")

</div>

Hi, I seem to be having issues when remote\_user is used in conjunction with ansible\_ssh\_user For this playbook: - hosts: tag\_application\_csds tasks: - command: "whoami" remote\_user: deploy register: …

---

## [using a variable as a key to a dictionary](https://forum.ansible.com/t/using-a-variable-as-a-key-to-a-dictionary/15819)

<div class="topic-metadata">

**Author:** [@Yves\_Dorfsman](https://forum.ansible.com/u/Yves_Dorfsman)\
**Replies:** 1\
**Last updated:** [July 31, 2014, 9:23am UTC](https://forum.ansible.com/t/using-a-variable-as-a-key-to-a-dictionary/15819 "2014-07-31T09:23:32Z")

</div>

With jinja2, is it possible to use a variable as a key to a dictionary? The following doesn't work: var file: db\_names: - prod - dev - qa databases: prod: connection\_string: prod\_conn\_string qa: …

---

## [Enable Kerberos Authentication for WinRM and Powershell exection on Windows Hosts](https://forum.ansible.com/t/enable-kerberos-authentication-for-winrm-and-powershell-exection-on-windows-hosts/15815)

<div class="topic-metadata">

**Author:** [@Ian\_Clegg](https://forum.ansible.com/u/Ian_Clegg)\
**Replies:** 6\
**Last updated:** [July 31, 2014, 7:16am UTC](https://forum.ansible.com/t/enable-kerberos-authentication-for-winrm-and-powershell-exection-on-windows-hosts/15815 "2014-07-31T07:16:20Z")

</div>

Hi All, I think its great ansible is leveraging powershell and avoids unnecessary agents, but using basic authentication which forces local admin accounts on Windows wont cut it. Local Admin accounts are generally viewe…

---

## [Providing password for script](https://forum.ansible.com/t/providing-password-for-script/15814)

<div class="topic-metadata">

**Author:** [@profhase85](https://forum.ansible.com/u/profhase85)\
**Replies:** 2\
**Last updated:** [July 30, 2014, 1:17pm UTC](https://forum.ansible.com/t/providing-password-for-script/15814 "2014-07-30T13:17:08Z")

</div>

For a deployment, a script needs to be called, which either asks for password or accepts password from command line. As there are many users using ansible from a central machine to deploy stuff there is a question about…

---

## [Dockerfile for control machine](https://forum.ansible.com/t/dockerfile-for-control-machine/15795)

<div class="topic-metadata">

**Author:** [@ToBeReplaced](https://forum.ansible.com/u/ToBeReplaced)\
**Replies:** 8\
**Last updated:** [July 30, 2014, 12:31pm UTC](https://forum.ansible.com/t/dockerfile-for-control-machine/15795 "2014-07-30T12:31:50Z")

</div>

Ansible should support its own official build with the Docker Hub Registry. This was originally posted as an issue on github: https://github.com/ansible/ansible/issues/8212 The summary is copied below: Ansib…

---

## [Pull req #8283: doco fix](https://forum.ansible.com/t/pull-req-8283-doco-fix/15807)

<div class="topic-metadata">

**Author:** [@Philip\_Jay](https://forum.ansible.com/u/Philip_Jay)\
**Replies:** 1\
**Last updated:** [July 30, 2014, 12:28pm UTC](https://forum.ansible.com/t/pull-req-8283-doco-fix/15807 "2014-07-30T12:28:38Z")

</div>

Hi all, pull req #8283 was closed, but I think perhaps it was misunderstood? All I intended in the pull request was to fix the documentation for the mount module, not add any code. Can this be reviewed & reconsidered? …

---

## [setup module fails](https://forum.ansible.com/t/setup-module-fails/14599)

<div class="topic-metadata">

**Author:** [@Marc\_Patermann](https://forum.ansible.com/u/Marc_Patermann)\
**Replies:** 10\
**Last updated:** [July 30, 2014, 12:28pm UTC](https://forum.ansible.com/t/setup-module-fails/14599 "2014-07-30T12:28:00Z")

</div>

Hi, I added about 70 (mostly?) identical servers to my inventory. On two I get this error: # ansible -m setup -i produktion paps077\* paps077.example.com | FAILED \>\> { "failed": true, "msg": "Traceback (mos…

---

## [delegate\_to with target server's context?](https://forum.ansible.com/t/delegate-to-with-target-servers-context/15811)

<div class="topic-metadata">

**Author:** [@Hagai\_Kariti](https://forum.ansible.com/u/Hagai_Kariti)\
**Replies:** 1\
**Last updated:** [July 30, 2014, 12:07pm UTC](https://forum.ansible.com/t/delegate-to-with-target-servers-context/15811 "2014-07-30T12:07:36Z")

</div>

Hi all I need to trigger an action (generating a file using template) on another server during a play run. Naturally I used delegation. However, if I use variables like ansible\_hostname I get the values from the origina…

---

## [Skipping a role makes it skip all dependencies](https://forum.ansible.com/t/skipping-a-role-makes-it-skip-all-dependencies/15788)

<div class="topic-metadata">

**Author:** [@John\_Anderson](https://forum.ansible.com/u/John_Anderson)\
**Replies:** 9\
**Last updated:** [July 30, 2014, 11:49am UTC](https://forum.ansible.com/t/skipping-a-role-makes-it-skip-all-dependencies/15788 "2014-07-30T11:49:32Z")

</div>

So if I have a role with this as their meta:

---

## [Accessing variables from within a plugin (callback)](https://forum.ansible.com/t/accessing-variables-from-within-a-plugin-callback/15790)

<div class="topic-metadata">

**Author:** [@Daniel\_Schroeder](https://forum.ansible.com/u/Daniel_Schroeder)\
**Replies:** 2\
**Last updated:** [July 30, 2014, 7:10am UTC](https://forum.ansible.com/t/accessing-variables-from-within-a-plugin-callback/15790 "2014-07-30T07:10:58Z")

</div>

Hello list, is there a way how I can access host/group vars from within a callback plugin? Basically I want to modify the Hipchat callback plugin to use a room ID configured via group\_vars (or maybe registered as a var …

---

## [Nesting multiple with\_items?](https://forum.ansible.com/t/nesting-multiple-with-items/15803)

<div class="topic-metadata">

**Author:** [@John\_Oliver](https://forum.ansible.com/u/John_Oliver)\
**Replies:** 3\
**Last updated:** [July 29, 2014, 11:14pm UTC](https://forum.ansible.com/t/nesting-multiple-with-items/15803 "2014-07-29T23:14:50Z")

</div>

So, I want to add two lines to each of two files. Looking to see if lineinfile could add multiple lines, I found a post that seemed to indicate it could not. Is it possible to make lineinfile add multiple lines? If…

---

## [Slow ansible-playbook start up with vaults (and possible solution)](https://forum.ansible.com/t/slow-ansible-playbook-start-up-with-vaults-and-possible-solution/15407)

<div class="topic-metadata">

**Author:** [@jok](https://forum.ansible.com/u/jok)\
**Replies:** 11\
**Last updated:** [July 29, 2014, 9:02pm UTC](https://forum.ansible.com/t/slow-ansible-playbook-start-up-with-vaults-and-possible-solution/15407 "2014-07-29T21:02:58Z")

</div>

Hello, We recently started using a vault and discovered that using it slowed down ansible start up significantly. A bit of digging made it obvious why: perhaps because of how we were using it, the vault opened and decry…

---

## [How to install/use tweaked roles from ansible galaxy?](https://forum.ansible.com/t/how-to-install-use-tweaked-roles-from-ansible-galaxy/15805)

<div class="topic-metadata">

**Author:** [@Gabriel\_Birke](https://forum.ansible.com/u/Gabriel_Birke)\
**Replies:** 1\
**Last updated:** [July 29, 2014, 6:30pm UTC](https://forum.ansible.com/t/how-to-install-use-tweaked-roles-from-ansible-galaxy/15805 "2014-07-29T18:30:52Z")

</div>

I found many nice roles on Ansible Galaxy but most of them I’d like to tweak - removing an unneeded task here, adding another task there, splitting playbooks, removing/adding dependencies, etc. I don’t feel I’m contribut…

---

## [Adding a new module location](https://forum.ansible.com/t/adding-a-new-module-location/15801)

<div class="topic-metadata">

**Author:** [@Mzp45](https://forum.ansible.com/u/Mzp45)\
**Replies:** 6\
**Last updated:** [July 29, 2014, 3:39pm UTC](https://forum.ansible.com/t/adding-a-new-module-location/15801 "2014-07-29T15:39:58Z")

</div>

Hi, The default location for ansible modules is /usr/share/ansible. Is there a way to append another location to this one. In the .cfg I only see the option to replace the default. Thanks

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

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