geerlingguy / beast-challenge

A control system for MrBeast's 1-100 challenge
GNU General Public License v3.0
26 stars 1 forks source link

Add 'services stop' and 'services start' playbook #53

Closed geerlingguy closed 1 year ago

geerlingguy commented 1 year ago

I'm thinking of modifying the reboot playbook to spud-maintain.yml, with the following options:

  vars:
    spud_reboot: false
    service_stop: false
    service_start: false

And then I need to document how to use it:

# Reboot spuds:
ansible-playbook spud-maintain.yml -e '{"spud_reboot":true}'

# Stop all services:
ansible-playbook spud-maintain.yml -e '{"service_stop":true}'

# Start all services:
ansible-playbook spud-maintain.yml -e '{"service_start":true}'