2
0

remove become-method

This commit is contained in:
2024-06-06 17:51:55 +02:00
parent 2e62fafcdd
commit 7ac9b01156

View File

@@ -8,21 +8,18 @@
- name: Update packages with apt
when: ansible_pkg_mgr == 'apt'
become: true
become-method: sudo
ansible.builtin.apt:
update_cache: true
- name: Upgrade packages with apt
when: ansible_pkg_mgr == 'apt'
become: true
become-method: sudo
ansible.builtin.apt:
upgrade: dist
- name: Update packages with yum
when: ansible_pkg_mgr == 'yum'
become: true
become-method: sudo
ansible.builtin.yum:
name: '*'
state: latest # noqa: package-latest
@@ -30,7 +27,6 @@
- name: Upgrade packages with yum
when: ansible_pkg_mgr == 'yum'
become: true
become-method: sudo
ansible.builtin.yum:
name: '*'
state: latest # noqa: package-latest