use proper service name in task names

This commit is contained in:
Guido Grazioli 2022-03-17 10:45:55 +01:00
commit e773e12e24
No known key found for this signature in database
GPG key ID: 22C8C31EF2BC093B
10 changed files with 26 additions and 29 deletions

View file

@ -17,13 +17,13 @@
register: existing_deploy
- block:
- name: Stop the old keycloak service
- name: "Stop the old {{ keycloak.service_name }} service"
become: yes
ignore_errors: yes
ansible.builtin.systemd:
name: keycloak
state: stopped
- name: Remove the old Keycloak deployment
- name: "Remove the old {{ keycloak.service_name }} deployment"
become: yes
ansible.builtin.file:
path: "{{ keycloak_jboss_home }}"
@ -35,7 +35,7 @@
ansible.builtin.stat:
path: "{{ keycloak_jboss_home }}"
- name: Create Keycloak service user/group
- name: "Create {{ keycloak.service_name }} service user/group"
become: yes
ansible.builtin.user:
name: "{{ keycloak_service_user }}"
@ -43,7 +43,7 @@
system: yes
create_home: no
- name: Create Keycloak install location
- name: "Create {{ keycloak.service_name }} install location"
become: yes
ansible.builtin.file:
dest: "{{ keycloak_dest }}"
@ -58,6 +58,7 @@
archive: "{{ keycloak_dest }}/{{ keycloak.bundle }}"
- name: Check download archive path
become: yes
ansible.builtin.stat:
path: "{{ archive }}"
register: archive_path