From 9b15b5d592186228883374c0940ed3e963fa58bc Mon Sep 17 00:00:00 2001 From: Philipp Grau Date: Mon, 15 Oct 2012 16:56:55 +0200 Subject: [PATCH 1/2] Use && for executing next command if, and only if, command1 returns an exit status of zero. --- docsite/rst/playbooks.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docsite/rst/playbooks.rst b/docsite/rst/playbooks.rst index 8dd9ce9d72..e962628e6c 100644 --- a/docsite/rst/playbooks.rst +++ b/docsite/rst/playbooks.rst @@ -212,7 +212,7 @@ who's successful exit code is not zero, you may wish to do this:: tasks: - name: run this command and ignore the result - action: shell /usr/bin/somecommand & /bin/true + action: shell /usr/bin/somecommand && /bin/true Variables can be used in action lines. Suppose you defined a variable called 'vhost' in the 'vars' section, you could do this:: From 4290a904ff38db90da84af702e3085ae30290e87 Mon Sep 17 00:00:00 2001 From: Philipp Grau Date: Mon, 15 Oct 2012 17:20:23 +0200 Subject: [PATCH 2/2] Add note: Debian Squeeze has no add-apt-repository --- library/apt_repository | 1 + 1 file changed, 1 insertion(+) diff --git a/library/apt_repository b/library/apt_repository index 5b7622b7ae..3b34bf557d 100755 --- a/library/apt_repository +++ b/library/apt_repository @@ -44,6 +44,7 @@ options: choices: [ "present", "absent" ] notes: - This module works on Debian and Ubuntu only and requires C(apt-add-repository) be available on destination server. To ensure this package is available use the C(apt) module and install the C(python-software-properties) package before using this module. + - This module works not on Debian Squeeze (Version 6) as there is no implementation of C(add-apt-repository) in C(python-software-properties) - A bug in C(apt-add-repository) always adds C(deb) and C(deb-src) types for repositories (see the issue on Launchpad U(https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/987264)), if a repo doesn't have source information (eg MongoDB repo from 10gen) the system will fail while updating repositories. author: Matt Wright examples: