From 5d07c5c3ea19bf03232ab6c90c3176f1ab0388f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= Date: Mon, 3 May 2021 20:21:31 +0200 Subject: sshdns: Refactor role for _workstation only --- playbooks/workstation.yml | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) (limited to 'playbooks') diff --git a/playbooks/workstation.yml b/playbooks/workstation.yml index 6363a71..2a3534e 100644 --- a/playbooks/workstation.yml +++ b/playbooks/workstation.yml @@ -5,28 +5,23 @@ --- - hosts: localhost - tasks: - - debug: - msg: RUN AS ROOT + pre_tasks: + - fail: + msg: must be run as root! + when: lookup('env', 'USER') != "root" roles: - - - role: sshdns - tags: sshdns - - role: _workstation/env tags: env, always + - role: _workstation/sshdns + tags: sshdns + - role: _workstation/packages tags: packages - role: _workstation/sysconf tags: sysconf - #- role: _workstation/weechat-matrix - #tags: role_workstation_weechat - #become: true - #become_method: su - - role: update tags: update -- cgit v1.2.3