*more fixes to prompt for username/password

*fix youtube script so vtomb.com auto-plays (add --autoplay-polic=no-user-gesture-required to command)
This commit is contained in:
Michael Pellegrino
2022-05-09 13:45:19 -04:00
parent d539e40943
commit a4e5168c87
8 changed files with 110 additions and 73 deletions

View File

@@ -3,7 +3,7 @@
#launch browser on local display
function launch_browser {
DISPLAY=:0 /usr/bin/chromium-browser `shuf -n 1 /home/'{{ def_username }}'/Documents/facebook_url.list` &
DISPLAY=:0 /usr/bin/chromium-browser `shuf -n 1 /home/{{ def_username }}/Documents/facebook_url.list` &
}
#prevent race condition/memory exhaustion
@@ -17,6 +17,6 @@ else
sleep 10
done
/usr/bin/killall chrome
rm /home/'{{ def_username }}'/.config/chromium/BrowserMetrics/*
rm /home/{{ def_username }}/.config/chromium/BrowserMetrics/*
fi

View File

@@ -1,6 +1,6 @@
---
- name: copy facebook script
copy:
template:
src: "{{ item.src }}"
dest: "{{ item.dest }}"
owner: "{{ def_username }}"