Use replace instead of shell and sed
This commit is contained in:
parent
493665ab8e
commit
3b004e12ff
@ -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://'
|
||||||
|
Loading…
Reference in New Issue
Block a user