feat: Updates for using pre-defined ansible role

This commit is contained in:
2024-11-24 20:11:24 -05:00
parent 39b5293736
commit 1a12b5340e
14 changed files with 57 additions and 202 deletions

25
playbook/playbook.yml Normal file
View File

@@ -0,0 +1,25 @@
---
- name: Generate Report.
hosts: all
roles:
- role: hpa_role
tasks:
- name: Link vars file.
ansible.builtin.file:
src: "{{ work_dir }}/vars.yml"
dest: "{{ work_dir }}/playbook/group_vars/all/vars.yml"
state: link
tags:
- setup
- setup-all
- setup-all-with-vault
- setup-with-vault
- name: Link vault file.
ansible.builtin.file:
src: "{{ work_dir }}/vault.yml"
dest: "{{ work_dir }}/playbook/group_vars/all/vault.yml"
state: link
tags:
- setup-all-with-vault
- setup-with-vault