Compare commits
3 commits
48302bf947
...
95759ca363
Author | SHA1 | Date | |
---|---|---|---|
95759ca363 | |||
f18267c29b | |||
84a7727bf1 |
4 changed files with 32 additions and 4 deletions
|
@ -6,7 +6,7 @@ call:
|
||||||
ansible_become_pass: "x2305"
|
ansible_become_pass: "x2305"
|
||||||
ansible_become: true
|
ansible_become: true
|
||||||
giga:
|
giga:
|
||||||
ansible_host: 102.168.10.67
|
ansible_host: 192.168.10.67
|
||||||
ansible_user: giga
|
ansible_user: giga
|
||||||
ansible_become_pass: "giga"
|
ansible_become_pass: "giga"
|
||||||
ansible_become: true
|
ansible_become: true
|
||||||
|
|
6
screenshot.service
Normal file
6
screenshot.service
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Take a screenshot
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=oneshot
|
||||||
|
ExecStart=/usr/bin/scrot %h/screenshots/%Y-%m-%d_%H-%M-%S.jpg
|
10
screenshot.timer
Normal file
10
screenshot.timer
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Take a screenshot every minute
|
||||||
|
|
||||||
|
[Timer]
|
||||||
|
OnBootSec=1min
|
||||||
|
OnUnitActiveSec=1min
|
||||||
|
Persistent=true
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=timers.target
|
|
@ -33,7 +33,7 @@
|
||||||
global: yes
|
global: yes
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: Update apt cache and install Git, unclutter
|
- name: Update apt cache and install Git, unclutter, scrot
|
||||||
apt:
|
apt:
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
state: present
|
state: present
|
||||||
|
@ -41,6 +41,15 @@
|
||||||
loop:
|
loop:
|
||||||
- git
|
- git
|
||||||
- unclutter
|
- unclutter
|
||||||
|
- scrot
|
||||||
|
|
||||||
|
- name: Make sure ~/screenshots exists
|
||||||
|
file:
|
||||||
|
name: "/home/{{ ansible_user }}/screenshots"
|
||||||
|
state: directory
|
||||||
|
owner: "{{ ansible_user }}"
|
||||||
|
group: "{{ ansible_user }}"
|
||||||
|
mode: "0755"
|
||||||
|
|
||||||
- name: Clone Git repository
|
- name: Clone Git repository
|
||||||
become: yes
|
become: yes
|
||||||
|
@ -65,7 +74,9 @@
|
||||||
loop:
|
loop:
|
||||||
- parsifal.service
|
- parsifal.service
|
||||||
- unclutter.service
|
- unclutter.service
|
||||||
- x11vnc.service
|
# - x11vnc.service
|
||||||
|
- screenshot.service
|
||||||
|
- screenshot.timer
|
||||||
|
|
||||||
- name: Reload systemd user service
|
- name: Reload systemd user service
|
||||||
become: yes
|
become: yes
|
||||||
|
@ -85,4 +96,5 @@
|
||||||
loop:
|
loop:
|
||||||
- parsifal
|
- parsifal
|
||||||
- unclutter
|
- unclutter
|
||||||
- x11vnc
|
# - x11vnc
|
||||||
|
- screenshot.timer
|
||||||
|
|
Loading…
Reference in a new issue