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

Commit

Permalink
Newer os compatiblity with os dependent vars (#245)
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
56ghluf and Alex Reid authored Dec 17, 2023
1 parent 989da2d commit da5913d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
- name: include OS dependent vars
include_vars: "{{ item }}"
with_first_found:
- "../vars/{{ ansible_os_family }}-{{ ansible_distribution_major_version }}"
- "../vars/{{ ansible_os_family }}.yml"
- "../vars/empty.yml"
when: nginx_load_default_vars
Expand Down
8 changes: 8 additions & 0 deletions vars/Debian-12.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
nginx_user: www-data

nginx_python_selinux_pkgs:
- python3-selinux
- python3-semanage

nginx_modules_location: /usr/lib/nginx/modules

0 comments on commit da5913d

Please sign in to comment.