From 233b4ab196da2389b31c982a33190aea4116905b Mon Sep 17 00:00:00 2001 From: CactiChameleon9 Date: Thu, 14 Jul 2022 08:30:16 +0100 Subject: [PATCH] Move to strata specific roles and configure alpine --- playbook.yaml | 2 +- roles/alpine/tasks/main.yaml | 17 +++++++++++++++++ roles/fetch-stratum/tasks/main.yaml | 11 ----------- 3 files changed, 18 insertions(+), 12 deletions(-) create mode 100644 roles/alpine/tasks/main.yaml delete mode 100644 roles/fetch-stratum/tasks/main.yaml diff --git a/playbook.yaml b/playbook.yaml index 9dc61c8..df0177c 100644 --- a/playbook.yaml +++ b/playbook.yaml @@ -6,7 +6,7 @@ become: True roles: - - { role: fetch-stratum} + - { role: alpine} # - { role: network, tags: ['network'] } # - { role: kernel, tags: ['kernel'] } # - { role: base, tags: ['base'] } diff --git a/roles/alpine/tasks/main.yaml b/roles/alpine/tasks/main.yaml new file mode 100644 index 0000000..d3ad84c --- /dev/null +++ b/roles/alpine/tasks/main.yaml @@ -0,0 +1,17 @@ +--- + +- name: Fetch new alpine strata + include_role: + name: fetch-strata + vars: + strata: alpine + + +- name: Enable community repo + ansible.builtin.shell: + cmd: cat /bedrock/strata/alpine/etc/apk/repositories | head -n1 | sed 's/main/community/g' >> /bedrock/strata/alpine/etc/apk/repositories + + +- name: Enable https on the repositories + ansible.builtin.shell: + cmd: sed -i 's/http:\/\//https:\/\//g' /bedrock/strata/alpine/etc/apk/repositories diff --git a/roles/fetch-stratum/tasks/main.yaml b/roles/fetch-stratum/tasks/main.yaml deleted file mode 100644 index 599f503..0000000 --- a/roles/fetch-stratum/tasks/main.yaml +++ /dev/null @@ -1,11 +0,0 @@ -- name: Fetch new alpine strata - include_role: - name: fetch-strata - vars: - strata: alpine - -- name: Fetch new arch linux - include_role: - name: fetch-strata - vars: - strata: arch