feat ✨: Add tasks for importing utilities.yml and installing system packages
This commit introduces two new tasks in the Ansible playbook. The first task imports a `utilities.yml` file, which likely contains reusable utility functions or configurations for API interactions. The second task installs necessary system packages required for the application to run smoothly.
This commit is contained in:
@@ -3,6 +3,9 @@
|
|||||||
# Main tasks for role
|
# Main tasks for role
|
||||||
# ===================
|
# ===================
|
||||||
|
|
||||||
|
- name: Install api utilities
|
||||||
|
ansible.builtin.import_tasks: utilities.yml
|
||||||
|
|
||||||
- name: Disable enterprise repo, enable no-subscription
|
- name: Disable enterprise repo, enable no-subscription
|
||||||
ansible.builtin.import_tasks: repos.yml
|
ansible.builtin.import_tasks: repos.yml
|
||||||
|
|
||||||
|
|||||||
13
tasks/utilities.yml
Normal file
13
tasks/utilities.yml
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
---
|
||||||
|
- name: utilities | Install required system packages
|
||||||
|
apt:
|
||||||
|
name:
|
||||||
|
- python3
|
||||||
|
- python3-pip
|
||||||
|
- python3-setuptools
|
||||||
|
- python3-proxmoxer
|
||||||
|
- python3-requests
|
||||||
|
- smartmontools
|
||||||
|
- lm-sensors
|
||||||
|
state: present
|
||||||
|
update_cache: yes
|
||||||
Reference in New Issue
Block a user