generated from linux-system-roles/template
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathmain.yml
35 lines (31 loc) · 1.27 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# SPDX-License-Identifier: MIT
---
__snapshot_packages: ["lvm2", "util-linux-core"]
__snapshot_services: []
# python to use on managed nodes for snapshot.py
__snapshot_python: /usr/bin/python3
# ansible_facts required by the role
__snapshot_required_facts:
- distribution
- distribution_major_version
- distribution_version
- os_family
# the subsets of ansible_facts that need to be gathered in case any of the
# facts in required_facts is missing; see the documentation of
# the 'gather_subset' parameter of the 'setup' module
__snapshot_required_facts_subsets: "{{ ['!all', '!min'] +
__snapshot_required_facts }}"
# BEGIN - DO NOT EDIT THIS BLOCK - rh distros variables
# Ansible distribution identifiers that the role treats like RHEL
__snapshot_rh_distros:
- AlmaLinux
- CentOS
- RedHat
- Rocky
# Same as above but includes Fedora
__snapshot_rh_distros_fedora: "{{ __snapshot_rh_distros + ['Fedora'] }}"
# Use this in conditionals to check if distro is Red Hat or clone
__snapshot_is_rh_distro: "{{ ansible_distribution in __snapshot_rh_distros }}"
# Use this in conditionals to check if distro is Red Hat or clone, or Fedora
__snapshot_is_rh_distro_fedora: "{{ ansible_distribution in __snapshot_rh_distros_fedora }}"
# END - DO NOT EDIT THIS BLOCK - rh distros variables