# Passwordless access isn't configured yet; use `ssh` connection sharing.
# `sudo` isn't configured yet too; use `su` and ask for root password.
-exec ansible-playbook debian-init-system.yml debian-init-user-phd.yml \
- "$@" --become-method=su -Kv
+exec ansible-playbook debian-init-system.yml "$@" --become-method=su -Kv
roles:
- debian-init-system
- debian-sudo
+ - debian-phd
+++ /dev/null
-- name: Create user phd
- hosts: "{{ hosts | default('servers') }}"
- gather_facts: false
- roles:
- - debian-phd
--- /dev/null
+#! /bin/sh
+
+if [ -z "$1" ]; then
+ echo "Usage: $0 role" >&2
+ exit 1
+fi
+
+role="$1"
+shift
+
+cd "`dirname \"$0\"`" &&
+ansible-playbook run-role.yml "$@" -e role="$role"
-- name: Update logcheck ignore patterns
+- name: "Run role {{ role }}"
hosts: "{{ hosts | default('all') }}"
gather_facts: false
roles:
- - debian-logcheck
+ - "{{ role }}"