~starkingdoms/starkingdoms

ref: 1d8e8904f83c603ee05022ab934af06401066f16 starkingdoms/ansible/stop.yaml -rw-r--r-- 300 bytes
1d8e8904 — ghostlyzsh rotation bug vanquished, but preattached modules still exist (please remove) 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 }}"