# Latest

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

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

**Page:** 1050

---

## [Quick question about transforming variables for templates](https://forum.ansible.com/t/quick-question-about-transforming-variables-for-templates/12681)

<div class="topic-metadata">

**Author:** [@Yang\_Zhang](https://forum.ansible.com/u/Yang_Zhang)\
**Replies:** 1\
**Last updated:** [April 14, 2013, 12:57pm UTC](https://forum.ansible.com/t/quick-question-about-transforming-variables-for-templates/12681 "2013-04-14T12:57:53Z")

</div>

Probably just missed something basic in the docs, but for each host foo.internal.company.com, I'd like to create a /etc/ddclient.conf file containing the string "foo." What's the best way to do this? I'm thinking te…

---

## [Per-host sudo options](https://forum.ansible.com/t/per-host-sudo-options/12629)

<div class="topic-metadata">

**Author:** [@Brian\_Coca1](https://forum.ansible.com/u/Brian_Coca1)\
**Replies:** 4\
**Last updated:** [April 14, 2013, 1:24am UTC](https://forum.ansible.com/t/per-host-sudo-options/12629 "2013-04-14T01:24:17Z")

</div>

Since you can set the ssh user to root, sudo becomes irrelevant (normally root can sudo, even if he doesn’t need to). A diff use case though: some machines have sudo NOPASSWD, others don’t, ansible will hang on one or …

---

## [Documentation updates -- presenting the way 1.2 does variables instead of the old way + 1.1 docs snapshot](https://forum.ansible.com/t/documentation-updates-presenting-the-way-1-2-does-variables-instead-of-the-old-way-1-1-docs-snapshot/12677)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 3\
**Last updated:** [April 13, 2013, 8:16pm UTC](https://forum.ansible.com/t/documentation-updates-presenting-the-way-1-2-does-variables-instead-of-the-old-way-1-1-docs-snapshot/12677 "2013-04-13T20:16:18Z")

</div>

Hi everyone, I’ve pushed some changes to ansible.cc/docs/ The docs now include the 1.2 variables syntax {{ foo }} as favored everywhere, and don’t really mention the other way. The old variable ways still works and I …

---

## [Group/host vars files proposal.](https://forum.ansible.com/t/group-host-vars-files-proposal/12674)

<div class="topic-metadata">

**Author:** [@C\_Morgan\_Hamill](https://forum.ansible.com/u/C_Morgan_Hamill)\
**Replies:** 17\
**Last updated:** [April 13, 2013, 8:11pm UTC](https://forum.ansible.com/t/group-host-vars-files-proposal/12674 "2013-04-13T20:11:00Z")

</div>

So this is silly, but I'd like it and be willing to submit the pull request --- won't bother if it's not wanted, though. I was wondering if it would be reasonable to allow files in group\_vars/ and host\_vars/ to be hav…

---

## [Managing documentation versions](https://forum.ansible.com/t/managing-documentation-versions/12673)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 5\
**Last updated:** [April 13, 2013, 1:39pm UTC](https://forum.ansible.com/t/managing-documentation-versions/12673 "2013-04-13T13:39:17Z")

</div>

Hi everyone, I have been thinking of snapshotting the documentation. This is to say ansible.cc/docs will always point to the latest, but will have a section for “previous documentation versions”. Something like: ans…

---

## [Here's how to accessing 'lookup plugins' from new-style 1.2 variable syntax](https://forum.ansible.com/t/heres-how-to-accessing-lookup-plugins-from-new-style-1-2-variable-syntax/12667)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 2\
**Last updated:** [April 13, 2013, 12:12am UTC](https://forum.ansible.com/t/heres-how-to-accessing-lookup-plugins-from-new-style-1-2-variable-syntax/12667 "2013-04-13T00:12:28Z")

</div>

Before, looked a little bit like Perl to me: before: $ENV(HOME) using Jinja2 function: {{ lookup(‘env’,‘home’) }} I can probabably extend things such that the following is possible, but it presently is not: {{ env(…

---

## [Does 'blueprint' functionality have a place in Ansible?](https://forum.ansible.com/t/does-blueprint-functionality-have-a-place-in-ansible/12675)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 1\
**Last updated:** [April 12, 2013, 10:33pm UTC](https://forum.ansible.com/t/does-blueprint-functionality-have-a-place-in-ansible/12675 "2013-04-12T22:33:24Z")

</div>

It’s tentatively interesting to see Blueprint get a patch to support ansible playbook generation, and I believe because we are YAML based it would be simpler than the existing support for other CM tools. That being said…

---

## [new proxy feature?](https://forum.ansible.com/t/new-proxy-feature/12663)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 10\
**Last updated:** [April 12, 2013, 9:12pm UTC](https://forum.ansible.com/t/new-proxy-feature/12663 "2013-04-12T21:12:21Z")

</div>

That is the ‘environment’ keyword for setting, among other things http\_proxy and https\_proxy variables. Not entirely sure why your double jump didn’t work, but single hosts do. Is it possible to run ansible from that i…

---

## [Trigger task sequences in handlers](https://forum.ansible.com/t/trigger-task-sequences-in-handlers/12640)

<div class="topic-metadata">

**Author:** [@Asad\_Khan](https://forum.ansible.com/u/Asad_Khan)\
**Replies:** 3\
**Last updated:** [April 12, 2013, 5:47pm UTC](https://forum.ansible.com/t/trigger-task-sequences-in-handlers/12640 "2013-04-12T17:47:11Z")

</div>

You can come close to this by doing something like the following: name: Initiate notification here action: … notify: reinstall Then write the hander: handlers: name: Handler task 1 : Notification handler startin…

---

## [Change module.backup\_local behaviour](https://forum.ansible.com/t/change-module-backup-local-behaviour/12660)

<div class="topic-metadata">

**Author:** [@glaurent](https://forum.ansible.com/u/glaurent)\
**Replies:** 1\
**Last updated:** [April 12, 2013, 1:57pm UTC](https://forum.ansible.com/t/change-module-backup-local-behaviour/12660 "2013-04-12T13:57:01Z")

</div>

Hi, Still discovering Ansible, … and Python by the way, well… I’m rewriting the lineinfile module to match my enterprise’s needs, and I have an issue with the backup function. We want to backup file, with our standard…

---

## [Error when running ansible (json module not found) and python26](https://forum.ansible.com/t/error-when-running-ansible-json-module-not-found-and-python26/12669)

<div class="topic-metadata">

**Author:** [@Brian\_Coca1](https://forum.ansible.com/u/Brian_Coca1)\
**Replies:** 1\
**Last updated:** [April 12, 2013, 12:01am UTC](https://forum.ansible.com/t/error-when-running-ansible-json-module-not-found-and-python26/12669 "2013-04-12T00:01:49Z")

</div>

Targets need python + a python Jain lib. Newer versions include it, but for 2.4 you need to install separately. Brian Coca

---

## [PR #2642: apt module: update to the upgrade logic](https://forum.ansible.com/t/pr-2642-apt-module-update-to-the-upgrade-logic/12668)

<div class="topic-metadata">

**Author:** [@Serge\_van\_Ginderacht](https://forum.ansible.com/u/Serge_van_Ginderacht)\
**Replies:** 0\
**Last updated:** [April 11, 2013, 9:21pm UTC](https://forum.ansible.com/t/pr-2642-apt-module-update-to-the-upgrade-logic/12668 "2013-04-11T21:21:55Z")

</div>

Hi, A notice to my fellow Debian/Ubuntu users: I rewrote my initial “check if aptitude exists” patch to the apt module, and rewrote a better part of the upgrade function for more consistency and added support for aptitu…

---

## [Inserting multiple lines in a file after specific line](https://forum.ansible.com/t/inserting-multiple-lines-in-a-file-after-specific-line/12666)

<div class="topic-metadata">

**Author:** [@Ivan\_Lezhnjov\_IV](https://forum.ansible.com/u/Ivan_Lezhnjov_IV)\
**Replies:** 4\
**Last updated:** [April 11, 2013, 5:25pm UTC](https://forum.ansible.com/t/inserting-multiple-lines-in-a-file-after-specific-line/12666 "2013-04-11T17:25:57Z")

</div>

Hey everyone, so I want to insert multiple lines into a file after a specific line to create a blacklist. I use lineinfile module and it kinda works but it really doesn’t This is a snippet of the file where I try to in…

---

## [getting paramiko to see /etc/ssh/ssh\_config](https://forum.ansible.com/t/getting-paramiko-to-see-etc-ssh-ssh-config/12664)

<div class="topic-metadata">

**Author:** [@Timothy\_Gerla](https://forum.ansible.com/u/Timothy_Gerla)\
**Replies:** 1\
**Last updated:** [April 11, 2013, 4:38pm UTC](https://forum.ansible.com/t/getting-paramiko-to-see-etc-ssh-ssh-config/12664 "2013-04-11T16:38:04Z")

</div>

Hi Makimoto, If you want Ansible to rely on the ssh configuration file, you'll want to use the OpenSSH transport instead of the Paramiko transport. You can do this by specifying: -c ssh ..on the command line. You ca…

---

## [Comprehensive operator list / cheatsheet (needs a lot of work)](https://forum.ansible.com/t/comprehensive-operator-list-cheatsheet-needs-a-lot-of-work/12665)

<div class="topic-metadata">

**Author:** [@Timothy\_Gerla](https://forum.ansible.com/u/Timothy_Gerla)\
**Replies:** 2\
**Last updated:** [April 11, 2013, 4:27pm UTC](https://forum.ansible.com/t/comprehensive-operator-list-cheatsheet-needs-a-lot-of-work/12665 "2013-04-11T16:27:49Z")

</div>

Hi Joel, This is a great idea! I'd love to see it expanded with a short description of each item. In 1.2 this list will also get simpler, with the upgraded conditionals and the simplified variable access. But this lo…

---

## [Various variable improvements made recently](https://forum.ansible.com/t/various-variable-improvements-made-recently/12661)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 4\
**Last updated:** [April 11, 2013, 4:02pm UTC](https://forum.ansible.com/t/various-variable-improvements-made-recently/12661 "2013-04-11T16:02:48Z")

</div>

Hi everyone, I just pushed a lot of commits I made on the plane last night that further upgrade the usage of the “new” 1.2 variable/conditional syntax, as detailed here: https://github.com/ansible/ansible/blob/devel/ex…

---

## [Error when running ansible (json module not found) and python26](https://forum.ansible.com/t/error-when-running-ansible-json-module-not-found-and-python26/12662)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 0\
**Last updated:** [April 11, 2013, 2:50pm UTC](https://forum.ansible.com/t/error-when-running-ansible-json-module-not-found-and-python26/12662 "2013-04-11T14:50:11Z")

</div>

Ansible is happy running with 2.4 and you should just use that. It only requires 2.6 on the management machine. See ansible\_python\_interpreter in the docs to select another python, but this sounds like you are managing…

---

## [One playbook can load vars files which is updated by another playbook in runtime?](https://forum.ansible.com/t/one-playbook-can-load-vars-files-which-is-updated-by-another-playbook-in-runtime/12657)

<div class="topic-metadata">

**Author:** [@rella.guo](https://forum.ansible.com/u/rella.guo)\
**Replies:** 4\
**Last updated:** [April 11, 2013, 2:10pm UTC](https://forum.ansible.com/t/one-playbook-can-load-vars-files-which-is-updated-by-another-playbook-in-runtime/12657 "2013-04-11T14:10:34Z")

</div>

Hi, I have a main.yml which include 1.yml and 2.yml. 1.yml has one task to append a new variable in local vars file - “vars.yml”. 2.yml uses vars file - “vars.yml” and must use the new variable which is appended by 1.y…

---

## [Playbook cannot find out the variable which set in global vars file.](https://forum.ansible.com/t/playbook-cannot-find-out-the-variable-which-set-in-global-vars-file/12659)

<div class="topic-metadata">

**Author:** [@rella.guo](https://forum.ansible.com/u/rella.guo)\
**Replies:** 6\
**Last updated:** [April 11, 2013, 2:09pm UTC](https://forum.ansible.com/t/playbook-cannot-find-out-the-variable-which-set-in-global-vars-file/12659 "2013-04-11T14:09:24Z")

</div>

I define the global variable in group\_vars/all. But playbook cannot find out the variable. Please see the red part. My ansible is 1.1. /etc/ansible/hosts is: 192.168.126.149 /etc/ansible/group\_vars/all is: test: hel…

---

## [PR: update on URI module, retrieve filename on redirected urls](https://forum.ansible.com/t/pr-update-on-uri-module-retrieve-filename-on-redirected-urls/12656)

<div class="topic-metadata">

**Author:** [@Serge\_van\_Ginderacht](https://forum.ansible.com/u/Serge_van_Ginderacht)\
**Replies:** 1\
**Last updated:** [April 10, 2013, 7:30pm UTC](https://forum.ansible.com/t/pr-update-on-uri-module-retrieve-filename-on-redirected-urls/12656 "2013-04-10T19:30:54Z")

</div>

FYI I updated the uri module to retrieve the remote file name first when the initial url gets redirected. https://github.com/ansible/ansible/pull/2630 I tested a couple of use cases, and all seemed fine in the end, th…

---

## [Upgraded variables AND conditionals in 1.2 - feedback welcome](https://forum.ansible.com/t/upgraded-variables-and-conditionals-in-1-2-feedback-welcome/12639)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 10\
**Last updated:** [April 10, 2013, 6:51pm UTC](https://forum.ansible.com/t/upgraded-variables-and-conditionals-in-1-2-feedback-welcome/12639 "2013-04-10T18:51:52Z")

</div>

Check this out. For those looking for better variable access AND easier conditionals, I think this is good stuff. You should like this. Old ways still work for the forseeable future (we might decide to deprecate them i…

---

## [Customizing ansible install location and along with dependencies - RHEL 5](https://forum.ansible.com/t/customizing-ansible-install-location-and-along-with-dependencies-rhel-5/12658)

<div class="topic-metadata">

**Author:** [@VK1](https://forum.ansible.com/u/VK1)\
**Replies:** 4\
**Last updated:** [April 10, 2013, 3:34pm UTC](https://forum.ansible.com/t/customizing-ansible-install-location-and-along-with-dependencies-rhel-5/12658 "2013-04-10T15:34:27Z")

</div>

Q: What's the easiest way to install ansible along with its python dependencies under say /opt/ansible/... ? Took a quick look at the Makefile and it doesn't seem built for this. However, I don't do this often so maybe …

---

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

<div class="topic-metadata">

**Author:** [@Lorin\_Hochstein1](https://forum.ansible.com/u/Lorin_Hochstein1)\
**Replies:** 1\
**Last updated:** [April 9, 2013, 10:06pm UTC](https://forum.ansible.com/t/module-module/12654 "2013-04-09T22:06:40Z")

</div>

I’m thinking of writing a module for loading Linux kernel modules. Basically, if you did something like: kernel\_module: name=8021q Then it will “modprobe” the kernel module, and it would also edit the appropriate confi…

---

## [Link to last newsletter](https://forum.ansible.com/t/link-to-last-newsletter/12655)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 1\
**Last updated:** [April 9, 2013, 6:35pm UTC](https://forum.ansible.com/t/link-to-last-newsletter/12655 "2013-04-09T18:35:14Z")

</div>

Here’s a copy of our last monthly newsletter for those not subscribed to the newsletter itself: http://eepurl.com/xH4A9 There are a couple of new whitepapers posted, in particular one on agentless architecture, which m…

---

## [Using ansible modules as normal python modules](https://forum.ansible.com/t/using-ansible-modules-as-normal-python-modules/12644)

<div class="topic-metadata">

**Author:** [@Steven\_Kryskalla](https://forum.ansible.com/u/Steven_Kryskalla)\
**Replies:** 2\
**Last updated:** [April 9, 2013, 3:11pm UTC](https://forum.ansible.com/t/using-ansible-modules-as-normal-python-modules/12644 "2013-04-09T15:11:06Z")

</div>

Hello, I did a small experiment with turning the ansible "library" modules into python modules that can be imported and used from normal python code and wanted to see what other people think. Here is a demo of what i…

---

## [How to mount tmpfs?](https://forum.ansible.com/t/how-to-mount-tmpfs/12651)

<div class="topic-metadata">

**Author:** [@Steven\_Truong](https://forum.ansible.com/u/Steven_Truong)\
**Replies:** 1\
**Last updated:** [April 9, 2013, 6:01am UTC](https://forum.ansible.com/t/how-to-mount-tmpfs/12651 "2013-04-09T06:01:35Z")

</div>

Hi all, I tried to use this: mount: name=/tmpfs/varnish src=tmpfs fstype=tmpfs opts=“size=2048m” state=present And ansible played through without indicating any error, however, the actual mount point did not show up o…

---

## [ansible-playbook --start-at-task](https://forum.ansible.com/t/ansible-playbook-start-at-task/12653)

<div class="topic-metadata">

**Author:** [@Seth\_Vidal](https://forum.ansible.com/u/Seth_Vidal)\
**Replies:** 0\
**Last updated:** [April 9, 2013, 5:58am UTC](https://forum.ansible.com/t/ansible-playbook-start-at-task/12653 "2013-04-09T05:58:52Z")

</div>

I posted a pull request: https://github.com/ansible/ansible/pull/2622 to implement --start-at-task. It uses the same infrastructure --step uses to skip over tasks. usage: ansible-playbook --start-at-task="my task\*" …

---

## [host\_vars/group\_vars issue with ansible 1.1+](https://forum.ansible.com/t/host-vars-group-vars-issue-with-ansible-1-1/12650)

<div class="topic-metadata">

**Author:** [@Fabian\_Arrotin](https://forum.ansible.com/u/Fabian_Arrotin)\
**Replies:** 1\
**Last updated:** [April 8, 2013, 11:40pm UTC](https://forum.ansible.com/t/host-vars-group-vars-issue-with-ansible-1-1/12650 "2013-04-08T23:40:54Z")

</div>

Well, in fact I already answered on myself on ansible with a "/me slaps himself : since 1.1+ ${environment} can’t be used and it’s now internally used … time to update my inventory/playbooks/templates " We use(d) a vari…

---

## [Ansible approach suggestions: multiple app server deployment with centralized database server](https://forum.ansible.com/t/ansible-approach-suggestions-multiple-app-server-deployment-with-centralized-database-server/12636)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 5\
**Last updated:** [April 8, 2013, 8:14pm UTC](https://forum.ansible.com/t/ansible-approach-suggestions-multiple-app-server-deployment-with-centralized-database-server/12636 "2013-04-08T20:14:35Z")

</div>

Replies inline…

---

## [Including playbooks into other playbooks: variable hosts](https://forum.ansible.com/t/including-playbooks-into-other-playbooks-variable-hosts/12643)

<div class="topic-metadata">

**Author:** [@Tin\_Tvrtkovic](https://forum.ansible.com/u/Tin_Tvrtkovic)\
**Replies:** 10\
**Last updated:** [April 8, 2013, 3:48pm UTC](https://forum.ansible.com/t/including-playbooks-into-other-playbooks-variable-hosts/12643 "2013-04-08T15:48:18Z")

</div>

Hi, suppose I have a playbook with variable hosts, like this: --- - user: ... hosts: $hosts tasks: - ... (example from the official documentation), so that I can control the hosts via the command line (--extr…

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

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