Skip to content

Commit 0d59bca

Browse files
committed
linting
1 parent 860321a commit 0d59bca

1 file changed

Lines changed: 25 additions & 26 deletions

File tree

roles/spdashboard/tasks/main.yml

Lines changed: 25 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,30 @@
11
---
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"
99

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"
1716

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"
1918
ansible.builtin.set_fact:
2019
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"
2423

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 }}"
2928
env_file: "/opt/openconext/spdashboard/env"
3029
pull: true
3130
restart_policy: "always"
@@ -37,7 +36,7 @@
3736
traefik.port: "8080"
3837
healthcheck:
3938
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

Comments
 (0)