mirror of
https://github.com/ansible-middleware/keycloak.git
synced 2025-04-09 12:20:28 -07:00
Rework Molecule prepare phase to install sudo only if root on target
This commit is contained in:
parent
d8286dfca7
commit
57b3cb380b
1 changed files with 2 additions and 1 deletions
|
@ -1,9 +1,9 @@
|
|||
---
|
||||
- name: Prepare
|
||||
hosts: all
|
||||
become: yes
|
||||
tasks:
|
||||
- name: Install sudo
|
||||
become: yes
|
||||
ansible.builtin.yum:
|
||||
name: sudo
|
||||
state: present
|
||||
|
@ -24,6 +24,7 @@
|
|||
mode: 0755
|
||||
|
||||
- name: Copy certificates
|
||||
become: yes
|
||||
ansible.builtin.copy:
|
||||
src: "{{ item }}"
|
||||
dest: "/opt/keycloak/certs/{{ item }}"
|
||||
|
|
Loading…
Add table
Reference in a new issue