2024-07-28 16:34:03 +00:00
|
|
|
executor:
|
|
|
|
environment:
|
|
|
|
SUPER_COOL_DEFAULT_ENV: 438548
|
2024-07-22 18:25:30 +00:00
|
|
|
|
2024-08-02 17:40:14 +00:00
|
|
|
hosts:
|
|
|
|
srv06.mbess.net:
|
|
|
|
connection:
|
|
|
|
!ssh
|
|
|
|
user: autotasker
|
|
|
|
key: /home/mbess/.ssh/autotasker
|
|
|
|
|
2024-04-27 09:59:43 +00:00
|
|
|
tasks:
|
2024-07-22 18:25:30 +00:00
|
|
|
do_magic_stuff:
|
2024-04-27 09:59:43 +00:00
|
|
|
name: Do magic incantation
|
2024-07-28 16:34:03 +00:00
|
|
|
environment:
|
2024-04-27 09:59:43 +00:00
|
|
|
PYTHONUNBUFFERED: "1"
|
2024-07-28 17:34:04 +00:00
|
|
|
SIMULATION_SPEED: 0.4
|
|
|
|
SIMULATION_MAX_ITERATIONS: 50
|
2024-04-27 09:59:43 +00:00
|
|
|
command:
|
|
|
|
- /usr/bin/python3
|
2024-07-25 21:23:58 +00:00
|
|
|
- /home/mbess/workspace/autotasker/examples/do_something_1.py
|
2024-07-22 18:25:30 +00:00
|
|
|
|
|
|
|
reindex_db:
|
2024-04-27 09:59:43 +00:00
|
|
|
name: Reindex the whole database
|
|
|
|
env: {}
|
|
|
|
command:
|
|
|
|
- ls
|
|
|
|
- /etc/fstab
|
2024-07-22 18:25:30 +00:00
|
|
|
schedule:
|
2024-07-23 15:25:22 +00:00
|
|
|
hours: 1
|
2024-07-22 18:25:30 +00:00
|
|
|
|
|
|
|
clean_up:
|
|
|
|
name: Clean up things
|
|
|
|
env: {}
|
|
|
|
command:
|
|
|
|
- cat
|
|
|
|
- /etc/environment
|
2024-07-23 15:25:22 +00:00
|
|
|
# schedule:
|
|
|
|
# "0 * * * * *"
|
2024-04-27 09:59:43 +00:00
|
|
|
|
2024-08-02 17:40:14 +00:00
|
|
|
remote_cmd:
|
|
|
|
name: Get remote infos
|
|
|
|
target_host: srv06.mbess.net
|
|
|
|
command:
|
|
|
|
- hostnamectl
|
|
|
|
|
|
|
|
srv06_renew_certs:
|
|
|
|
name: Renew certs of srv06
|
|
|
|
target_host: srv06.mbess.net
|
|
|
|
command: # I've setup sudo to let autotasker user only run certbot binary
|
|
|
|
- sudo
|
|
|
|
- certbot
|
|
|
|
- renew
|
|
|
|
|
2024-07-24 14:03:44 +00:00
|
|
|
webhooks:
|
|
|
|
- id: 1
|
|
|
|
name: "Trigger magic stuff"
|
|
|
|
token: 988c19fe-fd5d-4887-8210-60e0dc50ba9e
|
|
|
|
target_tasks:
|
|
|
|
- do_magic_stuff
|
|
|
|
debounce_secs: 10
|