test: fix syntax for ansible-lint

This commit is contained in:
Adrien Waksberg 2023-07-07 09:26:22 +02:00
parent f67928b2c5
commit 745707157e

View file

@ -6,7 +6,7 @@
- name: Add repository
ansible.builtin.apt_repository:
repo: '{{ gitlab_runner_repository }}'
repo: "{{ gitlab_runner_repository }}"
tags: gitlab-runner
- name: Install package
@ -14,7 +14,7 @@
name:
- gitlab-runner
environment:
GITLAB_RUNNER_DISABLE_SKEL: 'true'
GITLAB_RUNNER_DISABLE_SKEL: "true"
tags: gitlab-runner
- name: Create system directory
@ -33,20 +33,20 @@
owner: root
group: root
mode: 0644
notify: restart gitlab-runner
notify: Restart gitlab-runner
tags: gitlab-runner
- name: Register runners
gitlab_runner:
name: '{{ item.name }}'
url: '{{ item.url }}'
token: '{{ item.token }}'
executor: '{{ item.executor }}'
options: '{{ item.options | default({}) }}'
state: '{{ item.state | default("present") }}'
loop: '{{ gitlab_runner_runners }}'
name: "{{ item.name }}"
url: "{{ item.url }}"
token: "{{ item.token }}"
executor: "{{ item.executor }}"
options: "{{ item.options | default({}) }}"
state: "{{ item.state | default('present') }}"
loop: "{{ gitlab_runner_runners }}"
loop_control:
label: '{{ item.name }}'
label: "{{ item.name }}"
tags: gitlab-runner
- name: Enable and start service