mirror of
https://github.com/ansible-middleware/keycloak.git
synced 2025-07-27 23:21:33 -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
|
- name: Prepare
|
||||||
hosts: all
|
hosts: all
|
||||||
become: yes
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: Install sudo
|
- name: Install sudo
|
||||||
|
become: yes
|
||||||
ansible.builtin.yum:
|
ansible.builtin.yum:
|
||||||
name: sudo
|
name: sudo
|
||||||
state: present
|
state: present
|
||||||
|
@ -24,6 +24,7 @@
|
||||||
mode: 0755
|
mode: 0755
|
||||||
|
|
||||||
- name: Copy certificates
|
- name: Copy certificates
|
||||||
|
become: yes
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
src: "{{ item }}"
|
src: "{{ item }}"
|
||||||
dest: "/opt/keycloak/certs/{{ item }}"
|
dest: "/opt/keycloak/certs/{{ item }}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue