aboutsummaryrefslogtreecommitdiffstats
path: root/playbooks
diff options
context:
space:
mode:
authorRomain Gonçalves <me@rgoncalves.se>2021-05-03 20:21:31 +0200
committerRomain Gonçalves <me@rgoncalves.se>2021-05-03 20:21:31 +0200
commit5d07c5c3ea19bf03232ab6c90c3176f1ab0388f2 (patch)
tree4e992c28bb8114ac9cbb412146f5fbcf1b42ddb1 /playbooks
parent2a4483132d4fea880c19283c9fadfe1e4e3a1b06 (diff)
downloadinfrastructure-5d07c5c3ea19bf03232ab6c90c3176f1ab0388f2.tar.gz
sshdns: Refactor role for _workstation only
Diffstat (limited to 'playbooks')
-rw-r--r--playbooks/workstation.yml19
1 files changed, 7 insertions, 12 deletions
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
remember that computers suck.