more baseline role nonsense
This commit is contained in:
parent
fb56764713
commit
6ced04eda2
2 changed files with 14 additions and 15 deletions
|
|
@ -179,20 +179,20 @@
|
|||
dest: '/etc/dnf/dnf.conf'
|
||||
mode: '0644'
|
||||
|
||||
- name: Get list of files
|
||||
ansible.builtin.find:
|
||||
paths: /etc/yum.repos.d/
|
||||
recurse: true
|
||||
register: found_files
|
||||
|
||||
- name: Replace text in those files
|
||||
ansible.builtin.lineinfile:
|
||||
backup: true
|
||||
backrefs: true
|
||||
path: '{{ item.path }}'
|
||||
regexp: '^(metalink=.*)$'
|
||||
line: '\1&protocol=https'
|
||||
loop: '{{ found_files.files }}'
|
||||
#- name: Get list of files
|
||||
# ansible.builtin.find:
|
||||
# paths: /etc/yum.repos.d/
|
||||
# recurse: true
|
||||
# register: found_files
|
||||
#
|
||||
#- name: Replace text in those files
|
||||
# ansible.builtin.lineinfile:
|
||||
# backup: true
|
||||
# backrefs: true
|
||||
# path: '{{ item.path }}'
|
||||
# regexp: '^(metalink=.*)$'
|
||||
# line: '\1&protocol=https'
|
||||
# loop: '{{ found_files.files }}'
|
||||
|
||||
- name: 'Install zram'
|
||||
ansible.builtin.dnf5:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue