shift
cd "`dirname \"$0\"`" &&
-ANSIBLE_ROLES_PATH=debian/roles:roles \
- exec ../run-roles add-apache-vhost "$@" \
- -e virtual_host="$vhost" -e gather_facts=true
+exec ../run-roles add-apache-vhost "$@" \
+ -e virtual_host="$vhost" -e gather_facts=true
shift
cd "`dirname \"$0\"`" &&
-ANSIBLE_ROLES_PATH=debian/roles:roles \
- exec ../run-roles add-dns-domain "$@" \
- -e domain="$domain" -e gather_facts=true
+exec ../run-roles add-dns-domain "$@" \
+ -e domain="$domain" -e gather_facts=true
shift
cd "`dirname \"$0\"`" &&
-ANSIBLE_ROLES_PATH=roles:../roles &&
-export ANSIBLE_ROLES_PATH &&
# Passwordless access isn't configured yet; use `ssh` connection sharing.
# `sudo` isn't configured yet too; use `su` and ask for root password.
ansible-playbook ../init-system.yml "$@" -e hosts="$host" \
--become-method=su -K &&
-ANSIBLE_ROLES_PATH=debian/roles ../run-roles remove-systemd "$@" -e hosts="$host" &&
+../run-roles remove-systemd "$@" -e hosts="$host" &&
exec ansible-playbook ../init-system2.yml "$@" -e hosts="$host"
+++ /dev/null
-dependencies: ['apache', 'dehydrated']
+++ /dev/null
-dependencies: ['named']
+++ /dev/null
-dependencies: ['init-system', 'firewall', 'init-logcheck']
+++ /dev/null
-dependencies: ['apache']
+++ /dev/null
-dependencies: ['init-system', 'firewall', 'init-logcheck']
hosts: "{{ hosts | default('all') }}"
gather_facts: true
roles:
- - firewall
+ - debian/firewall
+ when: ansible_facts.os_family == 'Debian'
+ - redhat/firewall
+ when: ansible_facts.os_family == 'RedHat'
- logcheck
- root
- setup-usrlocal
shift
cd "`dirname \"$0\"`" &&
-ANSIBLE_ROLES_PATH=roles:../roles &&
-export ANSIBLE_ROLES_PATH &&
# Passwordless access isn't configured yet; use `ssh` connection sharing.
# `sudo` isn't configured yet too; ask for phd password.
--- /dev/null
+dependencies: ['debian/apache', 'debian/dehydrated']
--- /dev/null
+dependencies: ['debian/named']
--- /dev/null
+dependencies: ['init-system', 'debian/firewall', 'debian/init-logcheck']
--- /dev/null
+dependencies: ['debian/apache']
--- /dev/null
+dependencies: ['init-system', 'debian/firewall', 'debian/init-logcheck']