|
1 | 1 | --- |
2 | | -- name: Create directory to keep configfile |
3 | | - file: |
4 | | - dest: "/opt/openconext/spdashboard" |
5 | | - state: directory |
6 | | - owner: root |
7 | | - group: root |
8 | | - mode: 0770 |
| 2 | +- name: "Create directory to keep configfile" |
| 3 | + ansible.builtin.file: |
| 4 | + path: "/opt/openconext/spdashboard" |
| 5 | + state: "directory" |
| 6 | + owner: "root" |
| 7 | + group: "root" |
| 8 | + mode: "0750" |
9 | 9 |
|
10 | | -- name: Place the configfile |
11 | | - template: |
12 | | - src: env.j2 |
13 | | - dest: /opt/openconext/spdashboard/env |
14 | | - owner: root |
15 | | - group: root |
16 | | - mode: 0644 |
| 10 | +- name: "Place the configfile" |
| 11 | + ansible.builtin.template: |
| 12 | + src: "env.j2" |
| 13 | + dest: "/opt/openconext/spdashboard/env" |
| 14 | + owner: "root" |
| 15 | + mode: "0644" |
17 | 16 |
|
18 | | -- name: Add the MariaDB docker network to the list of networks when MariaDB runs in Docker |
| 17 | +- name: "Add the MariaDB docker network to the list of networks when MariaDB runs in Docker" |
19 | 18 | ansible.builtin.set_fact: |
20 | 19 | spdashboard_docker_networks: |
21 | | - - name: loadbalancer |
22 | | - - name: openconext_mariadb |
23 | | - when: mariadb_in_docker | default(false) | bool |
| 20 | + - name: "loadbalancer" |
| 21 | + - name: "openconext_mariadb" |
| 22 | + when: "mariadb_in_docker | default(false) | bool" |
24 | 23 |
|
25 | | -- name: Create the container |
26 | | - docker_container: |
27 | | - name: spdashboard |
28 | | - image: ghcr.io/surfnet/sp-dashboard/spdashboard:{{ spdashboard_version }} |
| 24 | +- name: "Create the container" |
| 25 | + community.docker.docker_container: |
| 26 | + name: "spdashboard" |
| 27 | + image: "ghcr.io/surfnet/sp-dashboard/spdashboard:{{ spdashboard_version }}" |
29 | 28 | env_file: "/opt/openconext/spdashboard/env" |
30 | 29 | pull: true |
31 | 30 | restart_policy: "always" |
|
37 | 36 | traefik.port: "8080" |
38 | 37 | healthcheck: |
39 | 38 | test: ["CMD", "curl", "--fail", "http://localhost/health"] |
40 | | - interval: 10s |
41 | | - timeout: 10s |
42 | | - retries: 3 |
43 | | - start_period: 10s |
| 39 | + interval: "10s" |
| 40 | + timeout: "10s" |
| 41 | + retries: "3" |
| 42 | + start_period: "10s" |
0 commit comments