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:
|
ansible.builtin.service:
|
||||||
name: gitlab-runner
|
name: gitlab-runner
|
||||||
state: restarted
|
state: restarted
|
||||||
|
|
|
@ -1,15 +1,15 @@
|
||||||
---
|
---
|
||||||
- name: add gpg key
|
- name: Add gpg key
|
||||||
ansible.builtin.apt_key:
|
ansible.builtin.apt_key:
|
||||||
url: https://packages.gitlab.com/runner/gitlab-runner/gpgkey
|
url: https://packages.gitlab.com/runner/gitlab-runner/gpgkey
|
||||||
tags: gitlab-runner
|
tags: gitlab-runner
|
||||||
|
|
||||||
- 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
|
||||||
ansible.builtin.package:
|
ansible.builtin.package:
|
||||||
name:
|
name:
|
||||||
- gitlab-runner
|
- gitlab-runner
|
||||||
|
@ -17,7 +17,7 @@
|
||||||
GITLAB_RUNNER_DISABLE_SKEL: 'true'
|
GITLAB_RUNNER_DISABLE_SKEL: 'true'
|
||||||
tags: gitlab-runner
|
tags: gitlab-runner
|
||||||
|
|
||||||
- name: create system directory
|
- name: Create system directory
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: /etc/systemd/system/gitlab-runner.service.d
|
path: /etc/systemd/system/gitlab-runner.service.d
|
||||||
owner: root
|
owner: root
|
||||||
|
@ -26,7 +26,7 @@
|
||||||
state: directory
|
state: directory
|
||||||
tags: gitlab-runner
|
tags: gitlab-runner
|
||||||
|
|
||||||
- name: add environment variables
|
- name: Add environment variables
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: environment.conf.j2
|
src: environment.conf.j2
|
||||||
dest: /etc/systemd/system/gitlab-runner.service.d/ansible.conf
|
dest: /etc/systemd/system/gitlab-runner.service.d/ansible.conf
|
||||||
|
@ -36,20 +36,20 @@
|
||||||
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
|
||||||
ansible.builtin.service:
|
ansible.builtin.service:
|
||||||
name: gitlab-runner
|
name: gitlab-runner
|
||||||
state: started
|
state: started
|
||||||
|
|
Loading…
Reference in a new issue