From 9b9f85d4dec95931779b470eaff6347b9a49f1f8 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Fri, 11 Oct 2024 11:14:16 +0200 Subject: [PATCH] add 'all' playbooks to facilitate running all other --- .ansible-lint-ignore | 0 playbooks/all.yaml | 4 ++++ playbooks/apps/all.yaml | 8 ++++++++ playbooks/dependencies/01-setup-deps.yaml | 1 + playbooks/dependencies/all.yaml | 4 ++++ playbooks/system/all.yaml | 2 ++ 6 files changed, 19 insertions(+) create mode 100644 .ansible-lint-ignore create mode 100644 playbooks/all.yaml create mode 100644 playbooks/apps/all.yaml create mode 100644 playbooks/dependencies/all.yaml create mode 100644 playbooks/system/all.yaml diff --git a/.ansible-lint-ignore b/.ansible-lint-ignore new file mode 100644 index 0000000..e69de29 diff --git a/playbooks/all.yaml b/playbooks/all.yaml new file mode 100644 index 0000000..b8dcc9a --- /dev/null +++ b/playbooks/all.yaml @@ -0,0 +1,4 @@ +--- +- import_playbook: system/all.yaml # noqa: name[play] +- import_playbook: dependencies/all.yaml # noqa: name[play] +- import_playbook: apps/all.yaml # noqa: name[play] diff --git a/playbooks/apps/all.yaml b/playbooks/apps/all.yaml new file mode 100644 index 0000000..7a0ac54 --- /dev/null +++ b/playbooks/apps/all.yaml @@ -0,0 +1,8 @@ +--- +- import_playbook: caddy.yaml # noqa: name[play] +- import_playbook: ghost-update.yaml # noqa: name[play] +- import_playbook: gitea.yaml # noqa: name[play] +- import_playbook: goatcounter.yaml # noqa: name[play] +- import_playbook: lyon-transports.yaml # noqa: name[play] +- import_playbook: test_headers.yaml # noqa: name[play] +- import_playbook: wallabag.yaml # noqa: name[play] diff --git a/playbooks/dependencies/01-setup-deps.yaml b/playbooks/dependencies/01-setup-deps.yaml index 18b502d..67391ae 100644 --- a/playbooks/dependencies/01-setup-deps.yaml +++ b/playbooks/dependencies/01-setup-deps.yaml @@ -9,6 +9,7 @@ pkg: - python3-venv - name: Setup venv + # github3.py required by the goatcounter playbook ansible.builtin.shell: | if [ -x /tmp/ansible/bin/python ]; then exit 123; fi /usr/bin/python3 -m venv /tmp/ansible diff --git a/playbooks/dependencies/all.yaml b/playbooks/dependencies/all.yaml new file mode 100644 index 0000000..452a35b --- /dev/null +++ b/playbooks/dependencies/all.yaml @@ -0,0 +1,4 @@ +--- +# intentionally leaving 00-clean-deps to prevent re-creating the venv every time +- import_playbook: 01-setup-deps.yaml # noqa: name[play] +- import_playbook: caddy.yaml # noqa: name[play] diff --git a/playbooks/system/all.yaml b/playbooks/system/all.yaml new file mode 100644 index 0000000..8ff26fc --- /dev/null +++ b/playbooks/system/all.yaml @@ -0,0 +1,2 @@ +--- +- import_playbook: update.yaml # noqa: name[play]