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