add grub ansible role

This commit is contained in:
aaron
2021-08-24 13:22:50 +02:00
parent 2189406cc1
commit c0b2487c51
12 changed files with 327 additions and 0 deletions

20
tasks/main.yaml Normal file
View File

@@ -0,0 +1,20 @@
---
# tasks file for ansible-role-grub
- name: load variables based on distribution type
include_vars: '{{ item }}'
with_first_found:
- '{{ ansible_distribution }}_{{ ansible_distribution_major_version }}.yaml'
- '{{ ansible_os_family }}.yaml'
tags:
- 'grub_vars'
- name: import installation tasks
import_tasks: installation.yaml
tags:
- 'grub_install'
- name: import configuration tasks
import_tasks: configuration.yaml
tags:
- 'grub_configuration'