update youtube script

update dmesg settings
This commit is contained in:
2022-09-02 14:16:29 +00:00
parent a3ff2bdb6c
commit f6f59a7fbf
2 changed files with 11 additions and 2 deletions

View File

@@ -97,4 +97,13 @@
group: "{{ def_username }}"
tags: powermanagement
- name: allow users to read kernel ring buffer
ansible.posix.sysctl:
name: kernel.dmesg_restrict
value: '0'
sysctl_set: yes
state: present
reload: yes
become: yes

View File

@@ -1,7 +1,7 @@
#!/bin/bash
# play random youtube videos for up to 15 minutes
#if pgrep -f chromium-browser >/dev/null
if pgrep -f firefox >/dev/null
if pgrep -f chromium-browser >/dev/null
#if pgrep -f firefox >/dev/null
then
exit 0
else