Feat(workflows): add lint
All checks were successful
Ansible Playbook lint / ansible-lint (push) Successful in 1m6s

This commit is contained in:
2025-04-07 20:37:36 +08:00
parent 83a95fe49c
commit 8db26ab33e
3 changed files with 22 additions and 2 deletions

17
.gitea/workflows/lint.yml Normal file
View 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/

View File

@@ -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

View File

@@ -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: