From 596b11cb31fdd73999b22a7d126cba24296fa70d Mon Sep 17 00:00:00 2001 From: Vladimir Still <git@vstill.eu> Date: Fri, 18 Feb 2022 21:17:29 +0100 Subject: [PATCH] ansible: Auxiliary users & tools for course automation --- ansible/hesperia.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/ansible/hesperia.yml b/ansible/hesperia.yml index d5f2f09..299870f 100644 --- a/ansible/hesperia.yml +++ b/ansible/hesperia.yml @@ -201,3 +201,40 @@ - user: rc-ib015 - user: rc-ib016 extra_pkgs: [mtl, exceptions, base-unicode-symbols, HUnit] + + - name: Auxiliary course helpers + block: + - name: Auxiliary course group + group: + name: '{{item}}' + system: true + loop: + - ib015-adm + - fja-adm + + - name: Auxiliary course user + user: + name: '{{item}}' + home: '/home/{{item}}' + create_home: true + move_home: true + system: true + group: '{{item}}' + loop: + - ib015-adm + - fja-adm + + - name: FCGI handlers + systemd: + name: 'fcgiwrap@{{item}}.socket' + state: started + enabled: true + loop: + - ib015-adm + - fja-adm + - www-data + + - name: Extra utilities for course + apt: + pkg: + - python3-tabulate -- GitLab