From e52349797aad83cfc1eebd2b4914423449d2aeeb Mon Sep 17 00:00:00 2001 From: Simon Cornet Date: Fri, 8 May 2026 08:45:11 +0200 Subject: [PATCH] feat: add playbook and role --- playbook.yaml | 22 ++++++++++++++++++++++ roles/requirements.yml | 6 ++++++ 2 files changed, 28 insertions(+) create mode 100644 playbook.yaml create mode 100644 roles/requirements.yml diff --git a/playbook.yaml b/playbook.yaml new file mode 100644 index 0000000..72f1489 --- /dev/null +++ b/playbook.yaml @@ -0,0 +1,22 @@ +--- + +# execute this role +- name: "install and configure a container registry" + hosts: "all" + serial: 1 + become: true + tasks: + + # due to semaphore bug we need to do this ourselves + - name: "force-update requirements" + ansible.builtin.command: + cmd: "ansible-galaxy install -f -r roles/requirements.yml" + become: false + delegate_to: "localhost" + changed_when: false + failed_when: false + + # execute the role + - name: "execute role: zot" + ansible.builtin.include_role: + name: "zot" diff --git a/roles/requirements.yml b/roles/requirements.yml new file mode 100644 index 0000000..67f53ec --- /dev/null +++ b/roles/requirements.yml @@ -0,0 +1,6 @@ +--- + +roles: + - name: "zot" + src: "https://gitlab.simoncor.net/ansible/role-zot.git" + scm: "git"