test: fix syntax for ansible-lint
This commit is contained in:
parent
93c6c0a8e3
commit
f67928b2c5
2 changed files with 10 additions and 10 deletions
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
- name: restart gitlab-runner
|
||||
- name: Restart gitlab-runner
|
||||
ansible.builtin.service:
|
||||
name: gitlab-runner
|
||||
state: restarted
|
||||
|
|
|
@ -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,20 +36,20 @@
|
|||
notify: restart gitlab-runner
|
||||
tags: gitlab-runner
|
||||
|
||||
- name: register runners
|
||||
- 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") }}'
|
||||
options: '{{ item.options | default({}) }}'
|
||||
state: '{{ item.state | default("present") }}'
|
||||
loop: '{{ gitlab_runner_runners }}'
|
||||
loop_control:
|
||||
label: '{{ item.name }}'
|
||||
tags: gitlab-runner
|
||||
|
||||
- name: enable and start service
|
||||
- name: Enable and start service
|
||||
ansible.builtin.service:
|
||||
name: gitlab-runner
|
||||
state: started
|
||||
|
|
Loading…
Reference in a new issue