cd "`dirname \"$0\"`" &&
# `sudo` isn't configured yet too; use `su` and ask for root password.
-ansible-playbook ../init-system.yml "$@" -e hosts="$host" \
+ansible-playbook ../init-system.yaml "$@" -e hosts="$host" \
--become-method=su -K &&
../run-roles debian/remove-systemd "$@" -e hosts="$host" &&
-exec ansible-playbook ../init-system2.yml "$@" -e hosts="$host"
+exec ansible-playbook ../init-system2.yaml "$@" -e hosts="$host"
start_dir="`pwd`" &&
fetch_push_dir="`dirname \"$0\"`" &&
-exec "$HOME"/.virtualenvs/ansible/bin/ansible-playbook -v "$fetch_push_dir"/fetch.yml -e start_dir="$start_dir" "$@"
+exec "$HOME"/.virtualenvs/ansible/bin/ansible-playbook -v "$fetch_push_dir"/fetch.yaml -e start_dir="$start_dir" "$@"
start_dir="`pwd`" &&
fetch_push_dir="`dirname \"$0\"`" &&
-exec "$HOME"/.virtualenvs/ansible/bin/ansible-playbook -v "$fetch_push_dir"/push.yml -e start_dir="$start_dir" "$@"
+exec "$HOME"/.virtualenvs/ansible/bin/ansible-playbook -v "$fetch_push_dir"/push.yaml -e start_dir="$start_dir" "$@"
# Passwordless access isn't configured yet; use `ssh` connection sharing.
# `sudo` isn't configured yet too; ask for phd password.
-ansible-playbook ../init-system.yml "$@" -e hosts="$host" -K &&
-exec ansible-playbook ../init-system2.yml "$@" -e hosts="$host"
+ansible-playbook ../init-system.yaml "$@" -e hosts="$host" -K &&
+exec ansible-playbook ../init-system2.yaml "$@" -e hosts="$host"
changed_when: false
- name: Cleanup ~phd/.cache/pip
- import_tasks: cleanup-user.yml
+ import_tasks: cleanup-user.yaml
vars:
user: phd
when: user_cache_exists.stat.exists
- name: du ~phd/.cache/pip
- import_tasks: show-user.yml
+ import_tasks: show-user.yaml
vars:
user: phd
when: user_cache_exists.stat.exists
- name: Cleanup ~root/.cache/pip
- import_tasks: cleanup-user.yml
+ import_tasks: cleanup-user.yaml
vars:
become: true
user: root
when: root_cache_exists.stat.exists
- name: du ~root/.cache/pip
- import_tasks: show-user.yml
+ import_tasks: show-user.yaml
vars:
user: root
when: root_cache_exists.stat.exists
- block:
- name: Add vhost
- import_tasks: add-vhost.yml
+ import_tasks: add-vhost.yaml
- name: Run dehydrated for the vhost
- import_tasks: dehydrated.yml
+ import_tasks: dehydrated.yaml
when: not vhost_conf.stat.exists
force: no
- name: Purge SystemD
- import_tasks: remove-systemd.yml
+ import_tasks: remove-systemd.yaml
- block:
- name: Reboot if SystemD is still active
become: true
reboot:
- name: Purge SystemD after reboot
- import_tasks: remove-systemd.yml
+ import_tasks: remove-systemd.yaml
when: "'rc' in purged and purged.rc != 0"
- name: apt
- import_tasks: apt.yml
+ import_tasks: apt.yaml
when: ansible_facts.os_family == 'Debian'
- name: locales
- import_tasks: locales.yml
+ import_tasks: locales.yaml
when: ansible_facts.os_family == 'Debian'
- name: packages
- import_tasks: dnf.yml
+ import_tasks: dnf.yaml
when: ansible_facts.os_family == 'RedHat'
--- /dev/null
+- name: root
+ import_tasks: root.yaml
+
+- name: mc
+ import_tasks: mc.yaml
+++ /dev/null
-- name: root
- import_tasks: root.yml
-
-- name: mc
- import_tasks: mc.yml
#! /bin/sh
if [ -z "$1" ]; then
- echo "Usage: $0 playbook.yml [...params...]" >&2
+ echo "Usage: $0 playbook.yaml [...params...]" >&2
exit 1
fi
shift
cd "`dirname \"$0\"`" &&
-exec ansible-playbook run-roles.yml "$@" -e roles="$roles"
+exec ansible-playbook run-roles.yaml "$@" -e roles="$roles"