update youtube script
update dmesg settings
This commit is contained in:
@@ -97,4 +97,13 @@
|
|||||||
group: "{{ def_username }}"
|
group: "{{ def_username }}"
|
||||||
tags: powermanagement
|
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
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# play random youtube videos for up to 15 minutes
|
# play random youtube videos for up to 15 minutes
|
||||||
#if pgrep -f chromium-browser >/dev/null
|
if pgrep -f chromium-browser >/dev/null
|
||||||
if pgrep -f firefox >/dev/null
|
#if pgrep -f firefox >/dev/null
|
||||||
then
|
then
|
||||||
exit 0
|
exit 0
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user