Detect platform through laptop-detect

This commit is contained in:
Sonny Bakker 2020-11-29 13:16:19 +01:00
parent 1c80c7277f
commit e821d049eb
4 changed files with 38 additions and 19 deletions

View file

@ -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