Skip to content
This repository was archived by the owner on Aug 13, 2024. It is now read-only.

Commit da5913d

Browse files
56ghlufAlex Reid
and
Alex Reid
authored
Newer os compatiblity with os dependent vars (#245)
Added a functionality to the task in main.yml that includes the os dependent vars whereby you can speficie the os version of the vars that you want. The corresponding file(s) for that os version must be created in the vars folder. The compatibility with Debian12 was also created in the vars folder. Co-authored-by: Alex Reid <[email protected]>
1 parent 989da2d commit da5913d

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

tasks/main.yml

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
- name: include OS dependent vars
44
include_vars: "{{ item }}"
55
with_first_found:
6+
- "../vars/{{ ansible_os_family }}-{{ ansible_distribution_major_version }}"
67
- "../vars/{{ ansible_os_family }}.yml"
78
- "../vars/empty.yml"
89
when: nginx_load_default_vars

vars/Debian-12.yml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
nginx_user: www-data
3+
4+
nginx_python_selinux_pkgs:
5+
- python3-selinux
6+
- python3-semanage
7+
8+
nginx_modules_location: /usr/lib/nginx/modules

0 commit comments

Comments
 (0)