mirror of
https://github.com/ansible-lockdown/RHEL9-CIS.git
synced 2025-12-27 23:43:06 +00:00
use a distro specific var file
Signed-off-by: Jay Olinares <jay.olinares@gmail.com>
This commit is contained in:
parent
021766a9b8
commit
46e88f5dcd
2 changed files with 6 additions and 0 deletions
|
|
@ -4,5 +4,8 @@
|
||||||
connection: local
|
connection: local
|
||||||
become: true
|
become: true
|
||||||
|
|
||||||
|
vars_files:
|
||||||
|
- "{{ ansible_distribution }}.yml"
|
||||||
|
|
||||||
roles:
|
roles:
|
||||||
- role: "{{ playbook_dir }}"
|
- role: "{{ playbook_dir }}"
|
||||||
|
|
|
||||||
3
site.yml
3
site.yml
|
|
@ -2,6 +2,9 @@
|
||||||
- hosts: all # noqa: name[play]
|
- hosts: all # noqa: name[play]
|
||||||
become: true
|
become: true
|
||||||
|
|
||||||
|
vars_files:
|
||||||
|
- "{{ ansible_distribution }}.yml"
|
||||||
|
|
||||||
roles:
|
roles:
|
||||||
|
|
||||||
- role: "{{ playbook_dir }}"
|
- role: "{{ playbook_dir }}"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue