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
ansible.builtin.shell:
cmd: sed -i 's/http:\/\//https:\/\//g' /bedrock/strata/alpine/etc/apk/repositories
ansible.builtin.replace:
path: /bedrock/strata/alpine/etc/apk/repositories
regexp: '^https?://'
replace: 'https://'