# Latest

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

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

**Page:** 989

---

## [with\_items/iterations over dictionary for a sysctl task.](https://forum.ansible.com/t/with-items-iterations-over-dictionary-for-a-sysctl-task/14594)

<div class="topic-metadata">

**Author:** [@Walid](https://forum.ansible.com/u/Walid)\
**Replies:** 7\
**Last updated:** [February 24, 2014, 8:00pm UTC](https://forum.ansible.com/t/with-items-iterations-over-dictionary-for-a-sysctl-task/14594 "2014-02-24T20:00:49Z")

</div>

Hi, I have defined under group\_vars, something like the following :

---

## [setting remote\_user at top level of playbook has no effect on tasks!?](https://forum.ansible.com/t/setting-remote-user-at-top-level-of-playbook-has-no-effect-on-tasks/14635)

<div class="topic-metadata">

**Author:** [@MidGe](https://forum.ansible.com/u/MidGe)\
**Replies:** 1\
**Last updated:** [February 24, 2014, 7:34pm UTC](https://forum.ansible.com/t/setting-remote-user-at-top-level-of-playbook-has-no-effect-on-tasks/14635 "2014-02-24T19:34:44Z")

</div>

There is something I do not understand about remote\_user. When I set a remote\_user at the top level of a playbook, when it comes to tasks, it seems to use my user name on the invoking machine (there is a similarly named…

---

## [recursive copy in v1.3](https://forum.ansible.com/t/recursive-copy-in-v1-3/13478)

<div class="topic-metadata">

**Author:** [@Jason\_Harris](https://forum.ansible.com/u/Jason_Harris)\
**Replies:** 10\
**Last updated:** [February 24, 2014, 7:34pm UTC](https://forum.ansible.com/t/recursive-copy-in-v1-3/13478 "2014-02-24T19:34:06Z")

</div>

I seem to recall seeing somewhere that v1.3 allowed some sort of recursive copying without resorting to a local command of rsync. But I can’t seem to find this again after looking again… Am I missing something or do we s…

---

## [apt module adding/removing packages always results in "changed" state](https://forum.ansible.com/t/apt-module-adding-removing-packages-always-results-in-changed-state/14637)

<div class="topic-metadata">

**Author:** [@i\_iordanov](https://forum.ansible.com/u/i_iordanov)\
**Replies:** 1\
**Last updated:** [February 24, 2014, 7:32pm UTC](https://forum.ansible.com/t/apt-module-adding-removing-packages-always-results-in-changed-state/14637 "2014-02-24T19:32:34Z")

</div>

I’m running Ansible 1.4.4. I have this in one of my roles to force the presence of certain packages: name: Remove packages apt: pkg={{ item }} state=absent with\_items: dmidecode The result is that I always get a “c…

---

## [Inventory variables](https://forum.ansible.com/t/inventory-variables/14640)

<div class="topic-metadata">

**Author:** [@Stuart\_Golightly](https://forum.ansible.com/u/Stuart_Golightly)\
**Replies:** 1\
**Last updated:** [February 24, 2014, 7:25pm UTC](https://forum.ansible.com/t/inventory-variables/14640 "2014-02-24T19:25:26Z")

</div>

Afternoon all I’ve got a bunch of servers, each running two instances of an application, which results in a mapping like this: serverA inst-1 serverA inst-2 serverB inst-3 serverB inst-4 serverC inst-5 serverC ins…

---

## [multi-user vault processes](https://forum.ansible.com/t/multi-user-vault-processes/14642)

<div class="topic-metadata">

**Author:** [@Kesten\_Broughton2](https://forum.ansible.com/u/Kesten_Broughton2)\
**Replies:** 0\
**Last updated:** [February 24, 2014, 4:50pm UTC](https://forum.ansible.com/t/multi-user-vault-processes/14642 "2014-02-24T16:50:04Z")

</div>

Hi, Thanks for getting vault into trunk! I have a few questions. If we have multiple users that need to edit an encrypted vars file, is there any way to avoid distributing a shared key amongst all them? Is there an…

---

## [playbook linting](https://forum.ansible.com/t/playbook-linting/14629)

<div class="topic-metadata">

**Author:** [@Jesse\_Keating](https://forum.ansible.com/u/Jesse_Keating)\
**Replies:** 2\
**Last updated:** [February 24, 2014, 4:22pm UTC](https://forum.ansible.com/t/playbook-linting/14629 "2014-02-24T16:22:18Z")

</div>

We're growing the number of contributors, and some books are under rapid development. I'd love to be able to put a linter to the task of linting pull requests and yelling if something doesn't look right. Any of you doin…

---

## [Is it possible to get facts from host which are not in the current play?](https://forum.ansible.com/t/is-it-possible-to-get-facts-from-host-which-are-not-in-the-current-play/14641)

<div class="topic-metadata">

**Author:** [@Vidar\_Langseid](https://forum.ansible.com/u/Vidar_Langseid)\
**Replies:** 2\
**Last updated:** [February 24, 2014, 4:10pm UTC](https://forum.ansible.com/t/is-it-possible-to-get-facts-from-host-which-are-not-in-the-current-play/14641 "2014-02-24T16:10:05Z")

</div>

Hi I have a inventory ( hosts ): \[webservers\] web-1 web-2 \[nfsserver\] nfs-1 I then have a nfs role ( nfs.yml) : hosts: nfsserver user: root any\_errors\_fatal: yes roles: role: common role: nfsserver For vario…

---

## [\[feature #5785\] Reboot module merits](https://forum.ansible.com/t/feature-5785-reboot-module-merits/14631)

<div class="topic-metadata">

**Author:** [@Geoff\_Oakham](https://forum.ansible.com/u/Geoff_Oakham)\
**Replies:** 7\
**Last updated:** [February 24, 2014, 3:33pm UTC](https://forum.ansible.com/t/feature-5785-reboot-module-merits/14631 "2014-02-24T15:33:16Z")

</div>

Hi guys, I suggested a “reboot module” as a feature request (#5785) and it was suggested I bring it to the mailing list for discussion. Here I am! So… what are the cons of having a reboot module? In the feature discus…

---

## [library/system/cron pull request to add AIX support.](https://forum.ansible.com/t/library-system-cron-pull-request-to-add-aix-support/14277)

<div class="topic-metadata">

**Author:** [@Adam\_Morris](https://forum.ansible.com/u/Adam_Morris)\
**Replies:** 2\
**Last updated:** [February 24, 2014, 1:15pm UTC](https://forum.ansible.com/t/library-system-cron-pull-request-to-add-aix-support/14277 "2014-02-24T13:15:08Z")

</div>

Greetings, I just submitted a really small pull request (3 adds, one deletion) that adds AIX support for cron functionality. It has been tested on AIX and works perfectly for me. I don’t know how many other people are…

---

## [Notified handler, but skipped](https://forum.ansible.com/t/notified-handler-but-skipped/14588)

<div class="topic-metadata">

**Author:** [@dcodix](https://forum.ansible.com/u/dcodix)\
**Replies:** 8\
**Last updated:** [February 24, 2014, 1:06pm UTC](https://forum.ansible.com/t/notified-handler-but-skipped/14588 "2014-02-24T13:06:08Z")

</div>

I’m having some trouble having a handler executed. It is notified but skipped. Is there any particular reason why a handler is notified but yet skipped? I mean, from my point of view, if a handler is notified means somet…

---

## [Default value for \`hosts: {{ host }}\` substitution doesn't work](https://forum.ansible.com/t/default-value-for-hosts-host-substitution-doesnt-work/14625)

<div class="topic-metadata">

**Author:** [@anatoly\_techtonik](https://forum.ansible.com/u/anatoly_techtonik)\
**Replies:** 6\
**Last updated:** [February 23, 2014, 1:54pm UTC](https://forum.ansible.com/t/default-value-for-hosts-host-substitution-doesnt-work/14625 "2014-02-23T13:54:39Z")

</div>

I try to set default value for hosts field in playbook with Jinja2 filter, but it doesn’t work: hosts: “{{ host | default(localhost) }}” tasks: name: show OS version info debug: msg=“{{ansible\_distribution}} {{ansi…

---

## [record remote SSH session of Ansible as a commands transcript](https://forum.ansible.com/t/record-remote-ssh-session-of-ansible-as-a-commands-transcript/14622)

<div class="topic-metadata">

**Author:** [@anatoly\_techtonik](https://forum.ansible.com/u/anatoly_techtonik)\
**Replies:** 5\
**Last updated:** [February 23, 2014, 6:37am UTC](https://forum.ansible.com/t/record-remote-ssh-session-of-ansible-as-a-commands-transcript/14622 "2014-02-23T06:37:09Z")

</div>

Debian upgrade instructions contain very useful advice - record shell session of upgrade process with screen: It is strongly recommended that you use the /usr/bin/script program to record a transcript of the upgrade s…

---

## [Unbuffered python output](https://forum.ansible.com/t/unbuffered-python-output/14634)

<div class="topic-metadata">

**Author:** [@Peter\_Sankauskas](https://forum.ansible.com/u/Peter_Sankauskas)\
**Replies:** 3\
**Last updated:** [February 22, 2014, 6:25pm UTC](https://forum.ansible.com/t/unbuffered-python-output/14634 "2014-02-22T18:25:02Z")

</div>

The top line of ansible-playbook (and other files in bin) start with this: #!/usr/bin/env python I am wondering if it is only me who wishes they started like this instead #!/usr/bin/env python -u Reason being, Py…

---

## [Help with the "authorized\_key" Modul](https://forum.ansible.com/t/help-with-the-authorized-key-modul/14619)

<div class="topic-metadata">

**Author:** [@Yaniv\_Ferszt](https://forum.ansible.com/u/Yaniv_Ferszt)\
**Replies:** 13\
**Last updated:** [February 22, 2014, 6:21pm UTC](https://forum.ansible.com/t/help-with-the-authorized-key-modul/14619 "2014-02-22T18:21:28Z")

</div>

Hi, I am just starting to learn ansible and have a question regarding the “authorized\_key” Modul. what i am trying to accomplish is add multiple ssh public keys to a remote systems root user. in the documentation http…

---

## [Minor Change for Standalone Plays](https://forum.ansible.com/t/minor-change-for-standalone-plays/14636)

<div class="topic-metadata">

**Author:** [@Aaron\_Hunter](https://forum.ansible.com/u/Aaron_Hunter)\
**Replies:** 6\
**Last updated:** [February 22, 2014, 6:16pm UTC](https://forum.ansible.com/t/minor-change-for-standalone-plays/14636 "2014-02-22T18:16:11Z")

</div>

I often want to create and share stand-alone, single plays (i.e., some\_task.yml). Ansible makes it very easy to automate tedious admin tasks so I like to use it instead of old-school shell scripting. This works fine of c…

---

## [Disable logging in syslog, logging in general, how to implement it?](https://forum.ansible.com/t/disable-logging-in-syslog-logging-in-general-how-to-implement-it/14632)

<div class="topic-metadata">

**Author:** [@Strahinja\_Kustudic2](https://forum.ansible.com/u/Strahinja_Kustudic2)\
**Replies:** 12\
**Last updated:** [February 22, 2014, 6:04pm UTC](https://forum.ansible.com/t/disable-logging-in-syslog-logging-in-general-how-to-implement-it/14632 "2014-02-22T18:04:39Z")

</div>

I would like to disable logging of module invocation in syslog, so I wanted to submit a pull request. Than I saw that there are (were) already two pull requests which implemented this change, one of them was rejected, wh…

---

## [Vars Module](https://forum.ansible.com/t/vars-module/14628)

<div class="topic-metadata">

**Author:** [@Kyle\_James\_Walker](https://forum.ansible.com/u/Kyle_James_Walker)\
**Replies:** 6\
**Last updated:** [February 22, 2014, 2:41am UTC](https://forum.ansible.com/t/vars-module/14628 "2014-02-22T02:41:34Z")

</div>

Original Post (Asked to post here): https://groups.google.com/d/msg/ansible-project/7NABAfO745E/O4xfFcDQotUJ I have a fews questions: Is there a way to turn on stdout for a task, to allow user prompting? Is there supp…

---

## [unable to run plays with sudo rights](https://forum.ansible.com/t/unable-to-run-plays-with-sudo-rights/14623)

<div class="topic-metadata">

**Author:** [@SLS](https://forum.ansible.com/u/SLS)\
**Replies:** 2\
**Last updated:** [February 21, 2014, 10:45pm UTC](https://forum.ansible.com/t/unable-to-run-plays-with-sudo-rights/14623 "2014-02-21T22:45:33Z")

</div>

I’m having trouble running ansible plays as root. I have a user (user\_x) on an Ubuntu server (12.04) who has sudo rights and I can run sudo commands on the server. I am able to ping the server and gather facts as user\_x.…

---

## [Vars Module](https://forum.ansible.com/t/vars-module/14627)

<div class="topic-metadata">

**Author:** [@Kyle\_James\_Walker](https://forum.ansible.com/u/Kyle_James_Walker)\
**Replies:** 2\
**Last updated:** [February 21, 2014, 9:07pm UTC](https://forum.ansible.com/t/vars-module/14627 "2014-02-21T21:07:12Z")

</div>

I have a fews questions: Is there a way to turn on stdout for a task, to allow user prompting? Is there support for creating a ‘vars module’, run before any tasks like vars and vars\_prompt? Any recommendations on anoth…

---

## [Using existing modules to determine whether to run a script?](https://forum.ansible.com/t/using-existing-modules-to-determine-whether-to-run-a-script/14626)

<div class="topic-metadata">

**Author:** [@Kim\_Betti](https://forum.ansible.com/u/Kim_Betti)\
**Replies:** 1\
**Last updated:** [February 21, 2014, 8:51pm UTC](https://forum.ansible.com/t/using-existing-modules-to-determine-whether-to-run-a-script/14626 "2014-02-21T20:51:45Z")

</div>

I’ve started looking into Ansible and I quite like it. Is it possible to run a shell script only if the yum module determines that a given package is -not- installed? Or in more general terms, is there a convenient way…

---

## [Ansible-playbook report](https://forum.ansible.com/t/ansible-playbook-report/14621)

<div class="topic-metadata">

**Author:** [@Eloy\_Coto\_Pereiro](https://forum.ansible.com/u/Eloy_Coto_Pereiro)\
**Replies:** 4\
**Last updated:** [February 21, 2014, 5:16pm UTC](https://forum.ansible.com/t/ansible-playbook-report/14621 "2014-02-21T17:16:41Z")

</div>

Hi, I use Ansible from 1 year ago, and I’m happy user. Now we want to monitoring our deploy, how many actions/changes/failures and report to our database/graphite/etc… I don’t know if possible any method into the playbo…

---

## [security token for ec2\* modules](https://forum.ansible.com/t/security-token-for-ec2-modules/14611)

<div class="topic-metadata">

**Author:** [@Yves\_Dorfsman](https://forum.ansible.com/u/Yves_Dorfsman)\
**Replies:** 4\
**Last updated:** [February 21, 2014, 4:04pm UTC](https://forum.ansible.com/t/security-token-for-ec2-modules/14611 "2014-02-21T16:04:00Z")

</div>

We want to use AWS temporary security token (actually anybody not using them should look into them). But to make it work with ansible, we need to make a small change to: lib/ansible/module\_utiles/ec2.py library/cloud/…

---

## [Tower - Job Parameters](https://forum.ansible.com/t/tower-job-parameters/14617)

<div class="topic-metadata">

**Author:** [@Nick\_Doyle](https://forum.ansible.com/u/Nick_Doyle)\
**Replies:** 1\
**Last updated:** [February 21, 2014, 1:50pm UTC](https://forum.ansible.com/t/tower-job-parameters/14617 "2014-02-21T13:50:39Z")

</div>

I was just checking out Tower, looks awesome. Is it possible to have “parameterized” tasks? Things like: Set up a new web server with server\_name=\[ enter server name \] (freetext) SSL \[ x \] (boolean) Type \[ Apache …

---

## [Per-environment SSH keys](https://forum.ansible.com/t/per-environment-ssh-keys/14613)

<div class="topic-metadata">

**Author:** [@Nick\_Doyle](https://forum.ansible.com/u/Nick_Doyle)\
**Replies:** 2\
**Last updated:** [February 21, 2014, 1:48pm UTC](https://forum.ansible.com/t/per-environment-ssh-keys/14613 "2014-02-21T13:48:04Z")

</div>

The use case is 3 devs, 3 environments (dev/staging/prod) Adding ssh keys to the deployment user’s authorized\_keys, in each environment. In Dev, add all, in Staging just 2, and in Production just 1. This is not the fi…

---

## [Set environment variables for a whole playbook or a role](https://forum.ansible.com/t/set-environment-variables-for-a-whole-playbook-or-a-role/14618)

<div class="topic-metadata">

**Author:** [@judauphant](https://forum.ansible.com/u/judauphant)\
**Replies:** 2\
**Last updated:** [February 21, 2014, 1:36pm UTC](https://forum.ansible.com/t/set-environment-variables-for-a-whole-playbook-or-a-role/14618 "2014-02-21T13:36:26Z")

</div>

Hi every body, I know that It’s possible to set environnement variables for one task. Is that possible to setup environment variables for a whole playbook or eventually a role ? (without add environnement keyword in ev…

---

## [rvm install succeeds, but Ansible fails](https://forum.ansible.com/t/rvm-install-succeeds-but-ansible-fails/14608)

<div class="topic-metadata">

**Author:** [@Michael\_Mahemoff](https://forum.ansible.com/u/Michael_Mahemoff)\
**Replies:** 2\
**Last updated:** [February 21, 2014, 1:11am UTC](https://forum.ansible.com/t/rvm-install-succeeds-but-ansible-fails/14608 "2014-02-21T01:11:37Z")

</div>

I have this task in a playbook: name: install ruby 2.1.0 rvm: ruby=2.1.0 It causes the following error, with no real explanation. Yet, when I check on the remote machine, it seems to have installed fine. Also, on the…

---

## [Add egress rules in ec2\_group](https://forum.ansible.com/t/add-egress-rules-in-ec2-group/14494)

<div class="topic-metadata">

**Author:** [@Codezerk](https://forum.ansible.com/u/Codezerk)\
**Replies:** 2\
**Last updated:** [February 21, 2014, 1:09am UTC](https://forum.ansible.com/t/add-egress-rules-in-ec2-group/14494 "2014-02-21T01:09:04Z")

</div>

I’m not sure why this option didn’t exist to begin with but I certainly use it all the time. I have the necessary changes over at https://github.com/codezerk/ansible One thing to note here is that it will remove the de…

---

## [nooBQ: How do I diagnose SSH failures](https://forum.ansible.com/t/noobq-how-do-i-diagnose-ssh-failures/14604)

<div class="topic-metadata">

**Author:** [@Larry\_Fast](https://forum.ansible.com/u/Larry_Fast)\
**Replies:** 2\
**Last updated:** [February 21, 2014, 1:01am UTC](https://forum.ansible.com/t/noobq-how-do-i-diagnose-ssh-failures/14604 "2014-02-21T01:01:30Z")

</div>

I’m just getting started with Ansible and trying to get my first SSH connections working. When I run “ansible all -m ping” it comes back with | FAILED =\> FAILED: Authentication failed. How do I dig into the source of …

---

## [Using user-specific settings with Vagrant and shared playbooks](https://forum.ansible.com/t/using-user-specific-settings-with-vagrant-and-shared-playbooks/14614)

<div class="topic-metadata">

**Author:** [@Jacob\_Weber1](https://forum.ansible.com/u/Jacob_Weber1)\
**Replies:** 0\
**Last updated:** [February 21, 2014, 12:14am UTC](https://forum.ansible.com/t/using-user-specific-settings-with-vagrant-and-shared-playbooks/14614 "2014-02-21T00:14:07Z")

</div>

I’m using Ansible with Vagrant. I’m planning to store the playbooks and Vagrantfiles in version control, so everyone on my team can all create similar virtual machines for testing. But some Ansible variables and tasks s…

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

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