Use replace instead of shell and sed

This commit is contained in:
CactiChameleon9 2022-07-19 16:46:24 +01:00
parent 493665ab8e
commit 3b004e12ff

View File

@ -14,5 +14,7 @@
- name: Enable https on the repositories - name: Enable https on the repositories
ansible.builtin.shell: ansible.builtin.replace:
cmd: sed -i 's/http:\/\//https:\/\//g' /bedrock/strata/alpine/etc/apk/repositories path: /bedrock/strata/alpine/etc/apk/repositories
regexp: '^https?://'
replace: 'https://'