molecule: adapt sudo setup to work when ansible is not connecting as root on the target

This commit is contained in:
Romain Pelisse 2024-02-22 11:14:54 +01:00
commit b3ca517583
2 changed files with 23 additions and 3 deletions

View file

@ -5,12 +5,14 @@
- name: Install sudo
ansible.builtin.yum:
name:
- sudo
- java-1.8.0-openjdk
state: present
- name: Prepare
hosts: all
gather_facts: yes
vars:
sudo_pkg_name: sudo
tasks:
- name: "Run preparation common to all scenario"
ansible.builtin.include_tasks: ../prepare.yml