chore(keycloak): use fully qualified module names and better task names
This commit is contained in:
parent
edc7545796
commit
c83ae1c122
1 changed files with 7 additions and 7 deletions
|
@ -1,33 +1,33 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
- name: Ensure build directory exists
|
- name: Ensure build directory exists
|
||||||
file:
|
ansible.builtin.file:
|
||||||
name: "{{ keycloak_container_build_directory }}"
|
name: "{{ keycloak_container_build_directory }}"
|
||||||
state: directory
|
state: directory
|
||||||
recurse: yes
|
recurse: yes
|
||||||
mode: 0700
|
mode: 0700
|
||||||
|
|
||||||
- name: Ensure provider jars directory exists
|
- name: Ensure provider jars directory exists
|
||||||
file:
|
ansible.builtin.file:
|
||||||
name: "{{ keycloak_provider_jars_directory }}"
|
name: "{{ keycloak_provider_jars_directory }}"
|
||||||
state: directory
|
state: directory
|
||||||
mode: 0775
|
mode: 0775
|
||||||
|
|
||||||
- name: Ensure Dockerfile is templated
|
- name: Ensure Dockerfile is templated
|
||||||
template:
|
ansible.builtin.template:
|
||||||
src: Dockerfile.j2
|
src: Dockerfile.j2
|
||||||
dest: "{{ keycloak_container_build_directory }}/Dockerfile"
|
dest: "{{ keycloak_container_build_directory }}/Dockerfile"
|
||||||
mode: 0700
|
mode: 0700
|
||||||
register: keycloak_buildfile_info
|
register: keycloak_buildfile_info
|
||||||
|
|
||||||
- name: Ensure Keycloak container image is present
|
- name: Ensure upstream Keycloak container image '{{ keycloak_container_upstream_image_name }}:{{ keycloak_version }}' is present
|
||||||
docker_image:
|
docker_image:
|
||||||
name: "{{ keycloak_container_upstream_image_name }}:{{ keycloak_version }}"
|
name: "{{ keycloak_container_upstream_image_name }}:{{ keycloak_version }}"
|
||||||
source: pull
|
source: pull
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: Ensure custom keycloak is built
|
- name: Ensure custom keycloak container image '{{ keycloak_container_image_name }}' is built
|
||||||
docker_image:
|
community.docker.docker_image:
|
||||||
name: "{{ keycloak_container_image_name }}"
|
name: "{{ keycloak_container_image_name }}"
|
||||||
build:
|
build:
|
||||||
args:
|
args:
|
||||||
|
@ -39,7 +39,7 @@
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: Ensure keycloak container is running
|
- name: Ensure keycloak container is running
|
||||||
docker_container:
|
community.docker.docker_container:
|
||||||
name: "{{ keycloak_container_name }}"
|
name: "{{ keycloak_container_name }}"
|
||||||
image: "{{ keycloak_container_image_name }}"
|
image: "{{ keycloak_container_image_name }}"
|
||||||
env: "{{ keycloak_container_env | default(omit, true) }}"
|
env: "{{ keycloak_container_env | default(omit, true) }}"
|
||||||
|
|
Reference in a new issue