From 0503efd396782781124f8c2f76748b376fb2407f Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Wed, 22 Aug 2018 09:18:32 +0100 Subject: [PATCH] Remove unneeded non-mastodon steps. --- roles/common/handlers/main.yml | 2 -- roles/common/tasks/main.yml | 16 ++-------------- 2 files changed, 2 insertions(+), 16 deletions(-) delete mode 100644 roles/common/handlers/main.yml diff --git a/roles/common/handlers/main.yml b/roles/common/handlers/main.yml deleted file mode 100644 index ec7373e..0000000 --- a/roles/common/handlers/main.yml +++ /dev/null @@ -1,2 +0,0 @@ -- name: restart rsyslog - service: name=rsyslog state=restarted diff --git a/roles/common/tasks/main.yml b/roles/common/tasks/main.yml index ad3085b..f664cbe 100644 --- a/roles/common/tasks/main.yml +++ b/roles/common/tasks/main.yml @@ -1,20 +1,8 @@ --- # This role installs packages that every Mastodon server needs and does common # node setup -- name: Install python-apt, aptitude, and debconf-utils - shell: apt-get update && apt-get -y install python-apt aptitude debconf-utils -- name: Do any package upgrades - apt: upgrade=dist -- name: Set default locale to en_US.UTF-8 - debconf: name=locales question='locales/default_environment_locale' value=en_US.UTF-8 vtype='select' -- name: Generate locales - debconf: name=locales question='locales/locales_to_be_generated' value='en_US.UTF-8 UTF-8' vtype='multiselect' -- name: Set timezone area - debconf: name=tzdata question='tzdata/Areas' value='Etc' vtype='select' -- name: Set timezone - debconf: name=tzdata question='tzdata/Zones/Etc' value='UTC' vtype='select' - notify: - - restart rsyslog +- name: Install required ansible things + shell: apt-get update && apt-get -y install python-apt apt-transport-https git sudo - name: Add Nodesource apt key apt_key: url="https://deb.nodesource.com/gpgkey/nodesource.gpg.key" state=present - name: Add Nodesource apt repositories