Feat(workflows): add lint
All checks were successful
Ansible Playbook lint / ansible-lint (push) Successful in 1m6s
All checks were successful
Ansible Playbook lint / ansible-lint (push) Successful in 1m6s
This commit is contained in:
17
.gitea/workflows/lint.yml
Normal file
17
.gitea/workflows/lint.yml
Normal file
@@ -0,0 +1,17 @@
|
||||
name: Ansible Playbook lint
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
ansible-lint:
|
||||
runs-on: imgbuilder
|
||||
container:
|
||||
image: gitea.konchin.com/image/ansible
|
||||
credentials:
|
||||
username: ${{ secrets.REGISTRY_USERNAME }}
|
||||
password: ${{ secrets.REGISTRY_PASSWORD }}
|
||||
steps:
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v4
|
||||
- name: Ansible Lint
|
||||
run: |
|
||||
ansible-lint playbooks/ roles/
|
||||
@@ -2,6 +2,6 @@
|
||||
- name: Install judgehost
|
||||
hosts: judgehost
|
||||
roles:
|
||||
#- role: install_packages_debian
|
||||
#- role: configure_judgehost_legacy
|
||||
# - role: install_packages_debian
|
||||
# - role: configure_judgehost_legacy
|
||||
- role: configure_judgehost
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
chdir: "{{ domjudge_base_dir }}"
|
||||
become: true
|
||||
become_user: domjudge
|
||||
changed_when: true
|
||||
register: debug
|
||||
- name: Debug
|
||||
tags: [make]
|
||||
@@ -38,6 +39,7 @@
|
||||
chdir: "{{ domjudge_base_dir }}"
|
||||
notify:
|
||||
- Systemd daemon-reload
|
||||
changed_when: true
|
||||
register: debug
|
||||
- name: Debug
|
||||
tags: [make]
|
||||
@@ -80,6 +82,7 @@
|
||||
./misc-tools/dj_make_chroot
|
||||
args:
|
||||
chdir: "{{ domjudge_base_dir }}"
|
||||
changed_when: true
|
||||
|
||||
- name: Modify boot options
|
||||
ansible.builtin.lineinfile:
|
||||
|
||||
Reference in New Issue
Block a user