refactor: add pre-tasks for installing Ansible collections and improve final setup messages
All checks were successful
Nix Format Check / check-format (push) Successful in 37s
All checks were successful
Nix Format Check / check-format (push) Successful in 37s
This commit is contained in:
@ -2,6 +2,12 @@
|
||||
hosts: all
|
||||
gather_facts: true
|
||||
|
||||
pre_tasks:
|
||||
- name: Install required collections
|
||||
ansible.builtin.command: ansible-galaxy collection install -r requirements.yml
|
||||
delegate_to: localhost
|
||||
run_once: true
|
||||
|
||||
tasks:
|
||||
- name: Include global tasks
|
||||
ansible.builtin.import_tasks: tasks/global/global.yml
|
||||
|
4
config/ansible/requirements.yml
Normal file
4
config/ansible/requirements.yml
Normal file
@ -0,0 +1,4 @@
|
||||
---
|
||||
# Collections section
|
||||
collections:
|
||||
- community.general
|
Reference in New Issue
Block a user