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
|
||||
|
|
|
@ -1,58 +1,58 @@
|
|||
---
|
||||
- name: install dependencies packages
|
||||
- name: Install dependencies packages
|
||||
ansible.builtin.package:
|
||||
name:
|
||||
- cron
|
||||
- gpg
|
||||
tags: gitlab
|
||||
|
||||
- name: add gpg key
|
||||
- name: Add gpg key
|
||||
ansible.builtin.apt_key:
|
||||
url: https://packages.gitlab.com/gitlab/gitlab-ce/gpgkey
|
||||
tags: gitlab
|
||||
|
||||
- name: add repository
|
||||
- name: Add repository
|
||||
ansible.builtin.apt_repository:
|
||||
repo: '{{ gitlab_repository }}'
|
||||
tags: gitlab
|
||||
|
||||
- name: install package
|
||||
- name: Install package
|
||||
ansible.builtin.package:
|
||||
name:
|
||||
- gitlab-ce
|
||||
tags: gitlab
|
||||
|
||||
- name: copy config
|
||||
- name: Copy config
|
||||
ansible.builtin.template:
|
||||
src: gitlab.rb.j2
|
||||
dest: /etc/gitlab/gitlab.rb
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0600
|
||||
notify: reconfigure gitlab
|
||||
notify: Reconfigure gitlab
|
||||
tags: gitlab
|
||||
|
||||
- name: init gitlab
|
||||
- name: Init gitlab
|
||||
ansible.builtin.command: gitlab-ctl reconfigure
|
||||
args:
|
||||
creates: /usr/lib/systemd/system/gitlab-runsvdir.service
|
||||
tags: gitlab
|
||||
|
||||
- name: enable and start service
|
||||
- name: Enable and start service
|
||||
ansible.builtin.service:
|
||||
name: gitlab-runsvdir
|
||||
state: started
|
||||
enabled: true
|
||||
tags: gitlab
|
||||
|
||||
- name: add backup cron
|
||||
- name: Add backup cron
|
||||
ansible.builtin.cron:
|
||||
name: gitlab-backup
|
||||
user: root
|
||||
job: gitlab-backup create
|
||||
month: '{{ gitlab_backup_cron_month|string }}'
|
||||
weekday: '{{ gitlab_backup_cron_weekday|string }}'
|
||||
day: '{{ gitlab_backup_cron_day|string }}'
|
||||
hour: '{{ gitlab_backup_cron_hour|string }}'
|
||||
minute: '{{ gitlab_backup_cron_minute|string }}'
|
||||
month: '{{ gitlab_backup_cron_month | string }}'
|
||||
weekday: '{{ gitlab_backup_cron_weekday | string }}'
|
||||
day: '{{ gitlab_backup_cron_day | string }}'
|
||||
hour: '{{ gitlab_backup_cron_hour | string }}'
|
||||
minute: '{{ gitlab_backup_cron_minute | string }}'
|
||||
tags: gitlab
|
||||
|
|
Loading…
Reference in a new issue