mirror of
https://github.com/ansible-middleware/keycloak.git
synced 2026-03-26 21:33:03 +00:00
Rework Molecule prepare phase to install sudo only if root on target
This commit is contained in:
@@ -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 }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user