feat: use ansible block
This commit is contained in:
parent
7d762d095d
commit
b5c819fb27
12 changed files with 399 additions and 424 deletions
|
|
@ -1,35 +1,18 @@
|
|||
---
|
||||
|
||||
# check os support
|
||||
- name: "check for os support"
|
||||
ansible.builtin.import_tasks: "ossupport.yaml"
|
||||
tags:
|
||||
- "apt"
|
||||
- "apt-cleanup"
|
||||
- "cron"
|
||||
- "environment-file"
|
||||
- "hostname"
|
||||
- "firewall"
|
||||
- "journald"
|
||||
- "locale"
|
||||
- "lldp"
|
||||
- "lxd"
|
||||
- "motd"
|
||||
- "ntp"
|
||||
- "telemetry"
|
||||
- "snap"
|
||||
- "sshd"
|
||||
- "swap"
|
||||
- "sysctl"
|
||||
- "systemctl"
|
||||
- "syslog"
|
||||
- "timezone"
|
||||
- "usermanagement"
|
||||
# import ossupport and load variables
|
||||
- name: "import ossupport and load variables"
|
||||
block:
|
||||
|
||||
# check os support
|
||||
- name: "check for os support"
|
||||
ansible.builtin.import_tasks: "ossupport.yaml"
|
||||
|
||||
# load os variables
|
||||
- name: "include os specific vars"
|
||||
ansible.builtin.include_vars: "{{ ansible_os_family }}.yaml"
|
||||
when: "os_support"
|
||||
|
||||
# load os variables
|
||||
- name: "include os specific vars"
|
||||
ansible.builtin.include_vars: "{{ ansible_os_family }}.yaml"
|
||||
when: "os_support"
|
||||
tags:
|
||||
- "apt"
|
||||
- "apt-cleanup"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue