fix(tasks): update package cache
All checks were successful
Lint Markdown files / markdown-lint (push) Successful in 4s
Ansible Linter / ansible-lint (push) Successful in 55s

This commit is contained in:
2026-01-08 19:56:40 +01:00
parent 38f9d9169d
commit d24cc3a2a6
4 changed files with 17 additions and 13 deletions

1
.gitignore vendored
View File

@@ -1,2 +1,3 @@
.ansible
.kiro
node_modules

View File

@@ -80,3 +80,8 @@ act_runner_gitea_url: ""
## @param act_runner_token The registration token for the act_runner
act_runner_token: ""
## @section Package Management
## @param act_runner_update_cache Whether to update package cache before installing packages
act_runner_update_cache: true

View File

@@ -14,13 +14,4 @@ galaxy_info:
- name: ArchLinux
versions:
- all
- name: EL
versions:
- all
- name: Fedora
versions:
- all
- name: Ubuntu
versions:
- all
role_name: "act_runner"

View File

@@ -26,10 +26,17 @@
failed_when: _gitea_check.status is not defined or _gitea_check.status >= 400
- name: Install act_runner and dependencies
ansible.builtin.package:
name: "{{ item }}"
state: present
with_items: "{{ act_runner_package_names }}"
when:
- ansible_facts['distribution'] == 'Archlinux'
block:
- name: Update package cache
community.general.pacman:
update_cache: "{{ act_runner_update_cache }}"
- name: Install packages
ansible.builtin.package:
name: "{{ item }}"
state: present
with_items: "{{ act_runner_package_names }}"
- name: Create act_runner config directory
ansible.builtin.file: