Detect platform through laptop-detect
This commit is contained in:
parent
1c80c7277f
commit
e821d049eb
4 changed files with 38 additions and 19 deletions
|
|
@ -34,3 +34,13 @@
|
|||
state: started
|
||||
enabled: yes
|
||||
when: platform == "laptop"
|
||||
|
||||
- name: copy firewall template
|
||||
become: yes
|
||||
template:
|
||||
src: "{{ platform }}/nftables.j2"
|
||||
dest: "/etc/nftables.conf"
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0600"
|
||||
notify: restart nftables
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue