From 91c85bf4da6cf55ec4ccc89b8c2f7cddcce90ddb Mon Sep 17 00:00:00 2001 From: Joshua Barratt Date: Thu, 14 Mar 2013 09:12:56 -0700 Subject: [PATCH] Tweaks to apt-get upgrade and ssh restart --- bootstrap.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/bootstrap.yml b/bootstrap.yml index fa4c762..ea4dd6d 100644 --- a/bootstrap.yml +++ b/bootstrap.yml @@ -10,9 +10,12 @@ tasks: - name: Update APT package cache action: apt update_cache=yes - + + # was: apt-get upgrade, which hangs forever waiting for input if there are actually updates + # Also, as of 1.1 (devel), ansible supports + # action: apt upgrade=yes - name: Run apt-get upgrade - action: command apt-get upgrade + action: command apt-get -y upgrade - name: Install fail2ban action: apt pkg=fail2ban state=installed @@ -61,4 +64,5 @@ handlers: - name: Restart sshd - action: service sshd state=restarted \ No newline at end of file + # this fails, at least on ansible 1.1, it wants service name=ssh + action: service name=ssh state=restarted