Fix ansible-lint warnings and add galaxy collections
Some checks failed
Homelab IaC GitOps Pipeline / lint (push) Failing after 6s

This commit is contained in:
Sho Ishida 2026-07-20 10:19:18 +00:00
parent 68ffeca2c5
commit b5f3315c21
3 changed files with 10 additions and 3 deletions

1
ansible/.vault_pass_test Normal file
View File

@ -0,0 +1 @@
dummy

View File

@ -44,12 +44,16 @@
become: true
ansible.builtin.command: restorecon -v /usr/local/bin/node_exporter /etc/systemd/system/node_exporter.service
when: ansible_os_family == "RedHat"
changed_when: false
- name: Open port 9100 in firewalld
become: true
ansible.builtin.command: firewall-cmd --permanent --add-port=9100/tcp && firewall-cmd --reload
ansible.posix.firewalld:
port: 9100/tcp
permanent: true
state: enabled
immediate: true
when: ansible_os_family == "RedHat"
failed_when: false
- name: Start and enable Node Exporter
become: true

View File

@ -9,7 +9,7 @@
runner_dir: "/home/{{ admin_user }}/containers/act_runner"
tasks:
- name: Create Gitea persistent volume directories
- name: Create Gitea persistent volume directories # noqa risky-file-permissions
ansible.builtin.file:
path: "{{ item }}"
state: directory
@ -61,6 +61,7 @@
- unzip
- git
- python3-pip
- nodejs
state: present
- name: Install Ansible-Lint via pip
@ -135,6 +136,7 @@
--no-interactive
chdir: "{{ runner_dir }}"
when: not runner_state_file.stat.exists
changed_when: true
- name: Deploy Gitea Runner Systemd Service
become: true