From 2ce7e2cc9492d4470719cd285bde3d0d6093b177 Mon Sep 17 00:00:00 2001 From: Simon Cornet Date: Fri, 3 Oct 2025 11:32:26 +0200 Subject: [PATCH] feat: use new ansible layout --- playbook.yaml | 8 ++------ roles/requirements.yml | 6 ++++++ 2 files changed, 8 insertions(+), 6 deletions(-) create mode 100644 roles/requirements.yml diff --git a/playbook.yaml b/playbook.yaml index c9e0690..dc39b6e 100644 --- a/playbook.yaml +++ b/playbook.yaml @@ -5,9 +5,5 @@ hosts: "all" serial: 1 become: true - tasks: - - # execute role - - name: "install and configure unbound dns" - ansible.builtin.include_role: - name: "." + roles: + - role: "dns" diff --git a/roles/requirements.yml b/roles/requirements.yml new file mode 100644 index 0000000..a96a4d2 --- /dev/null +++ b/roles/requirements.yml @@ -0,0 +1,6 @@ +--- + +roles: + - name: "dns" + src: "https://gitlab.simoncor.net/ansible/ans-unbound.git" + scm: "git"