test: fix syntax for ansible-lint

This commit is contained in:
Adrien Waksberg 2023-07-07 09:18:18 +02:00
parent 93c6c0a8e3
commit f67928b2c5
2 changed files with 10 additions and 10 deletions

View file

@ -1,5 +1,5 @@
---
- name: restart gitlab-runner
- name: Restart gitlab-runner
ansible.builtin.service:
name: gitlab-runner
state: restarted

View file

@ -1,15 +1,15 @@
---
- name: add gpg key
- name: Add gpg key
ansible.builtin.apt_key:
url: https://packages.gitlab.com/runner/gitlab-runner/gpgkey
tags: gitlab-runner
- name: add repository
- name: Add repository
ansible.builtin.apt_repository:
repo: '{{ gitlab_runner_repository }}'
tags: gitlab-runner
- name: install package
- name: Install package
ansible.builtin.package:
name:
- gitlab-runner
@ -17,7 +17,7 @@
GITLAB_RUNNER_DISABLE_SKEL: 'true'
tags: gitlab-runner
- name: create system directory
- name: Create system directory
ansible.builtin.file:
path: /etc/systemd/system/gitlab-runner.service.d
owner: root
@ -26,7 +26,7 @@
state: directory
tags: gitlab-runner
- name: add environment variables
- name: Add environment variables
ansible.builtin.template:
src: environment.conf.j2
dest: /etc/systemd/system/gitlab-runner.service.d/ansible.conf
@ -36,7 +36,7 @@
notify: restart gitlab-runner
tags: gitlab-runner
- name: register runners
- name: Register runners
gitlab_runner:
name: '{{ item.name }}'
url: '{{ item.url }}'
@ -49,7 +49,7 @@
label: '{{ item.name }}'
tags: gitlab-runner
- name: enable and start service
- name: Enable and start service
ansible.builtin.service:
name: gitlab-runner
state: started