Extra helpful notes in the default config file.
This commit is contained in:
parent
0acf2cbdea
commit
1b8cbbe71d
|
|
@ -8,10 +8,6 @@ logLevel: "INFO"
|
||||||
|
|
||||||
# Actions (buttons) to show up on the WebUI:
|
# Actions (buttons) to show up on the WebUI:
|
||||||
actions:
|
actions:
|
||||||
- title: Restart Plex
|
|
||||||
icon: smile
|
|
||||||
shell: docker restart plex
|
|
||||||
|
|
||||||
# This will send 1 ping (-c 1)
|
# This will send 1 ping (-c 1)
|
||||||
- title: Ping Google.com
|
- title: Ping Google.com
|
||||||
shell: ping google.com -c 1
|
shell: ping google.com -c 1
|
||||||
|
|
@ -22,10 +18,6 @@ actions:
|
||||||
icon: poop
|
icon: poop
|
||||||
shell: ssh root@overseer 'service lightdm restart'
|
shell: ssh root@overseer 'service lightdm restart'
|
||||||
|
|
||||||
- title: "teratan.lan Ansible site.yml"
|
|
||||||
icon: "🇦"
|
|
||||||
shell: ansible-playbook -i /etc/hosts /root/myPlaybook.yaml
|
|
||||||
|
|
||||||
- title: sleep 2 seconds
|
- title: sleep 2 seconds
|
||||||
shell: sleep 2
|
shell: sleep 2
|
||||||
icon: "🥱"
|
icon: "🥱"
|
||||||
|
|
@ -34,3 +26,28 @@ actions:
|
||||||
shell: sleep 5
|
shell: sleep 5
|
||||||
icon: "😪"
|
icon: "😪"
|
||||||
|
|
||||||
|
# OliveTin can run long-running jobs like Ansible playbooks.
|
||||||
|
#
|
||||||
|
# For such jobs, you will need to install ansible-playbook on the host where
|
||||||
|
# you are running OliveTin, or in the container.
|
||||||
|
#
|
||||||
|
# You probably want a much longer timeout as well (so that ansible completes).
|
||||||
|
- title: "Run Ansible Playbook"
|
||||||
|
icon: "🇦"
|
||||||
|
shell: ansible-playbook -i /etc/hosts /root/myRepo/myPlaybook.yaml
|
||||||
|
timeout: 120
|
||||||
|
|
||||||
|
# OliveTin can control containers - docker is just a command line app.
|
||||||
|
#
|
||||||
|
# However, if you are running in a container you will need to do some setup;
|
||||||
|
#
|
||||||
|
# 1) When creating the container, bind mount the docker sock like this;
|
||||||
|
# docker create -v /var/run/docker.sock:/container/path/docker.sock ...additional args here...
|
||||||
|
#
|
||||||
|
# 2) Install the docker client like this (if using the Fedora base image)
|
||||||
|
# - docker exec -it olivetin dnf install -y docker
|
||||||
|
#
|
||||||
|
- title: Restart Plex
|
||||||
|
icon: smile
|
||||||
|
shell: docker restart plex
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue