Rework Molecule prepare phase to install sudo only if root on target

This commit is contained in:
Romain Pelisse 2024-03-04 21:13:06 +01:00
commit d8286dfca7
2 changed files with 2 additions and 0 deletions

View file

@ -1,6 +1,7 @@
---
- name: Prepare
hosts: all
become: yes
tasks:
- name: Install sudo
ansible.builtin.yum:

View file

@ -1,6 +1,7 @@
---
- name: Prepare
hosts: all
become: yes
tasks:
- name: Install sudo
ansible.builtin.yum: