aboutsummaryrefslogtreecommitdiffstats
path: root/roles/_workstation/tlp/tasks
diff options
context:
space:
mode:
authorRomain Gonçalves <me@rgoncalves.se>2024-10-20 19:58:34 +0200
committerRomain Gonçalves <me@rgoncalves.se>2024-10-20 19:58:34 +0200
commitf098b6248cd2b425d57e21899a97d77d64cb45bd (patch)
tree2b3a0dd04f8094ab0294c9ca578519f2cc345f8a /roles/_workstation/tlp/tasks
parenta4ece963d1883310f7cf7b18932034a82db16d4a (diff)
downloadrules-f098b6248cd2b425d57e21899a97d77d64cb45bd.tar.gz
feat(roles/_workstation): add TLP configuration generation
Diffstat (limited to 'roles/_workstation/tlp/tasks')
-rw-r--r--roles/_workstation/tlp/tasks/main.yml10
1 files changed, 8 insertions, 2 deletions
diff --git a/roles/_workstation/tlp/tasks/main.yml b/roles/_workstation/tlp/tasks/main.yml
index 60b2fc0..db313ff 100644
--- a/roles/_workstation/tlp/tasks/main.yml
+++ b/roles/_workstation/tlp/tasks/main.yml
@@ -5,8 +5,14 @@
name: tlp
state: present
-- name: enable and start tlp
+- name: generate tlp template
+ ansible.builtin.template:
+ src: 10-ansible.conf.j2
+ dest: "{{ tlp__configuration_dir }}/10-ansible.conf"
+ mode: "0644"
+
+- name: enable and restart tlp
ansible.builtin.service:
name: tlp
- state: started
+ state: restarted
enabled: true
remember that computers suck.