~starkingdoms/starkingdoms

ref: b7815fc669af3eb4c91aacddb8081f1ac1060480 starkingdoms/ansible/stop.yaml -rw-r--r-- 300 bytes
b7815fc6 — c0repwn3r silly easter egg 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
- name: Stop all servers
  hosts: starkingdoms_prod_servers
  vars:
    compose_dir: /home/stk-deploy
  tasks:
    - name: Ensure host connectivity
      ansible.builtin.ping:
    - name: Stop the server
      ansible.builtin.shell:
        cmd: docker-compose down
        chdir: "{{ compose_dir }}"