From 2fa41c33d3bfe8dde317484ba50b3af742cebae3 Mon Sep 17 00:00:00 2001 From: Matej Focko Date: Thu, 12 Nov 2020 21:15:52 +0100 Subject: [PATCH] Add playbook and make target - Adds playbook for switching repositories - Adds make target for any playbook Signed-off-by: Matej Focko --- Makefile | 3 +++ playbooks/fedora_repository.yml | 10 ++++++++++ 2 files changed, 13 insertions(+) create mode 100644 playbooks/fedora_repository.yml diff --git a/Makefile b/Makefile index 308e23c..bc414f8 100644 --- a/Makefile +++ b/Makefile @@ -22,3 +22,6 @@ gpg: keys: bash scripts/export_keys.sh + +%.yml: + $(AP) $@ diff --git a/playbooks/fedora_repository.yml b/playbooks/fedora_repository.yml new file mode 100644 index 0000000..2c0e0f0 --- /dev/null +++ b/playbooks/fedora_repository.yml @@ -0,0 +1,10 @@ +--- +- name: Fedora repository setup + hosts: all + roles: + - role: fedora/repositories + become: yes + become_method: sudo + vars: + # set to "local" or "remote" + source: "local"