Merge pull request #38 from xabarin-forks/use_sudo_for_tasks_that_need_it
Use become for tasks that will otherwise failmain
commit
d47e045f5e
|
@ -28,6 +28,7 @@
|
||||||
owner: "{{ keycloak.service_user }}"
|
owner: "{{ keycloak.service_user }}"
|
||||||
group: "{{ keycloak.service_group }}"
|
group: "{{ keycloak.service_group }}"
|
||||||
mode: 0644
|
mode: 0644
|
||||||
|
become: yes
|
||||||
notify:
|
notify:
|
||||||
- restart keycloak
|
- restart keycloak
|
||||||
|
|
||||||
|
@ -38,6 +39,7 @@
|
||||||
owner: "{{ keycloak.service_user }}"
|
owner: "{{ keycloak.service_user }}"
|
||||||
group: "{{ keycloak.service_group }}"
|
group: "{{ keycloak.service_group }}"
|
||||||
mode: 0644
|
mode: 0644
|
||||||
|
become: yes
|
||||||
notify:
|
notify:
|
||||||
- restart keycloak
|
- restart keycloak
|
||||||
|
|
||||||
|
@ -48,6 +50,7 @@
|
||||||
owner: "{{ keycloak.service_user }}"
|
owner: "{{ keycloak.service_user }}"
|
||||||
group: "{{ keycloak.service_group }}"
|
group: "{{ keycloak.service_group }}"
|
||||||
mode: 0775
|
mode: 0775
|
||||||
|
become: yes
|
||||||
|
|
||||||
- name: "Start and wait for keycloak service"
|
- name: "Start and wait for keycloak service"
|
||||||
ansible.builtin.include_tasks: start.yml
|
ansible.builtin.include_tasks: start.yml
|
||||||
|
@ -63,3 +66,4 @@
|
||||||
src: "{{ keycloak.home }}/{{ keycloak.log.file | dirname }}"
|
src: "{{ keycloak.home }}/{{ keycloak.log.file | dirname }}"
|
||||||
dest: /var/log/keycloak
|
dest: /var/log/keycloak
|
||||||
force: yes
|
force: yes
|
||||||
|
become: yes
|
||||||
|
|
Loading…
Reference in New Issue