Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tweaks to apt-get upgrade and ssh restart #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions bootstrap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -61,4 +64,5 @@

handlers:
- name: Restart sshd
action: service sshd state=restarted
# this fails, at least on ansible 1.1, it wants service name=ssh
action: service name=ssh state=restarted