test: fix syntax for ansible-lint
This commit is contained in:
parent
d02a152f4b
commit
b56342f14e
2 changed files with 15 additions and 15 deletions
|
@ -1,3 +1,3 @@
|
||||||
---
|
---
|
||||||
- name: reconfigure gitlab
|
- name: Reconfigure gitlab # noqa no-changed-when
|
||||||
ansible.builtin.command: gitlab-ctl reconfigure
|
ansible.builtin.command: gitlab-ctl reconfigure
|
||||||
|
|
|
@ -1,51 +1,51 @@
|
||||||
---
|
---
|
||||||
- name: install dependencies packages
|
- name: Install dependencies packages
|
||||||
ansible.builtin.package:
|
ansible.builtin.package:
|
||||||
name:
|
name:
|
||||||
- cron
|
- cron
|
||||||
- gpg
|
- gpg
|
||||||
tags: gitlab
|
tags: gitlab
|
||||||
|
|
||||||
- name: add gpg key
|
- name: Add gpg key
|
||||||
ansible.builtin.apt_key:
|
ansible.builtin.apt_key:
|
||||||
url: https://packages.gitlab.com/gitlab/gitlab-ce/gpgkey
|
url: https://packages.gitlab.com/gitlab/gitlab-ce/gpgkey
|
||||||
tags: gitlab
|
tags: gitlab
|
||||||
|
|
||||||
- name: add repository
|
- name: Add repository
|
||||||
ansible.builtin.apt_repository:
|
ansible.builtin.apt_repository:
|
||||||
repo: '{{ gitlab_repository }}'
|
repo: '{{ gitlab_repository }}'
|
||||||
tags: gitlab
|
tags: gitlab
|
||||||
|
|
||||||
- name: install package
|
- name: Install package
|
||||||
ansible.builtin.package:
|
ansible.builtin.package:
|
||||||
name:
|
name:
|
||||||
- gitlab-ce
|
- gitlab-ce
|
||||||
tags: gitlab
|
tags: gitlab
|
||||||
|
|
||||||
- name: copy config
|
- name: Copy config
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: gitlab.rb.j2
|
src: gitlab.rb.j2
|
||||||
dest: /etc/gitlab/gitlab.rb
|
dest: /etc/gitlab/gitlab.rb
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0600
|
mode: 0600
|
||||||
notify: reconfigure gitlab
|
notify: Reconfigure gitlab
|
||||||
tags: gitlab
|
tags: gitlab
|
||||||
|
|
||||||
- name: init gitlab
|
- name: Init gitlab
|
||||||
ansible.builtin.command: gitlab-ctl reconfigure
|
ansible.builtin.command: gitlab-ctl reconfigure
|
||||||
args:
|
args:
|
||||||
creates: /usr/lib/systemd/system/gitlab-runsvdir.service
|
creates: /usr/lib/systemd/system/gitlab-runsvdir.service
|
||||||
tags: gitlab
|
tags: gitlab
|
||||||
|
|
||||||
- name: enable and start service
|
- name: Enable and start service
|
||||||
ansible.builtin.service:
|
ansible.builtin.service:
|
||||||
name: gitlab-runsvdir
|
name: gitlab-runsvdir
|
||||||
state: started
|
state: started
|
||||||
enabled: true
|
enabled: true
|
||||||
tags: gitlab
|
tags: gitlab
|
||||||
|
|
||||||
- name: add backup cron
|
- name: Add backup cron
|
||||||
ansible.builtin.cron:
|
ansible.builtin.cron:
|
||||||
name: gitlab-backup
|
name: gitlab-backup
|
||||||
user: root
|
user: root
|
||||||
|
|
Loading…
Reference in a new issue