removed meta deps, added task to install dependencies

This commit is contained in:
Bertrand Lanson 2023-04-08 00:44:14 +02:00
parent 4fc3632094
commit b3ba09b9fb
4 changed files with 14 additions and 4 deletions

View File

@ -1,4 +0,0 @@
---
# meta file for update_motd
roles:
- name: ednxzu.manage_apt_packages

View File

@ -1,5 +1,8 @@
---
# task/main file for update_motd
- name: "Import prerequisites.yml"
ansible.builtin.include_tasks: prerequisites.yml
- name: "Import install.yml"
ansible.builtin.include_tasks: install.yml

9
tasks/prerequisites.yml Normal file
View File

@ -0,0 +1,9 @@
---
# task/prerequisites file for update_motd
- name: "Install required roles"
ansible.builtin.command:
cmd: "ansible-galaxy install {{ item }}"
loop: "{{ update_motd_prerequisites_roles }}"
changed_when: false
delegate_to: localhost
run_once: true

View File

@ -1,5 +1,7 @@
---
# vars file for update_motd
update_motd_prerequisites_roles:
- ednxzu.manage_apt_packages
update_motd_path: "/etc/update-motd.d"
update_motd_config_path: "/etc/profile.d"
update_motd_packages: