-
Notifications
You must be signed in to change notification settings - Fork 140
Expand file tree
/
Copy pathmain.yml
More file actions
38 lines (32 loc) · 1.26 KB
/
main.yml
File metadata and controls
38 lines (32 loc) · 1.26 KB
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
36
37
38
---
# Include OS-specific variables
- name: Set OS-specific variables
include_vars: "{{ item }}"
with_first_found:
- "redhat_{{ ansible_distribution_major_version }}_{{ ansible_distribution_minor_version }}.yml"
- "{{ ansible_os_family | lower }}.yml"
- main.yml
- name: Include SELinux setup tasks
include_tasks: selinux_setup.yml
when: lme_install_selinux | default(true)
# Include common OS tasks first
- name: Include common OS tasks
include_tasks: "{{ item }}"
with_first_found:
- "{{ ansible_distribution | lower }}.yml"
- "{{ ansible_os_family | lower }}.yml"
when: ansible_distribution is defined
# Include version-specific tasks with fallback
- name: Include version-specific tasks
include_tasks: "{{ item }}"
with_first_found:
- "{{ ansible_distribution | lower }}_{{ ansible_distribution_version | replace('.', '_') }}.yml"
- "{{ ansible_distribution | lower }}_{{ ansible_distribution_major_version }}.yml"
- "common.yml"
when: ansible_distribution is defined
# Include common setup tasks that apply to all distributions
- name: Include common directory setup tasks
include_tasks: setup_directories.yml
- import_tasks: ../../tasks/load_env.yml
- name: Include password setup tasks
include_tasks: setup_passwords.yml