~starkingdoms/starkingdoms

ref: 93f551228e8db4b5ed9f7c60ab67056a7e6abdfe starkingdoms/ansible/stop-bleeding.yaml -rw-r--r-- 315 bytes
93f55122 — ghostlyzsh yeah so detaching is in but odd client id bug 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
- name: Stop bleeding servers
  hosts: starkingdoms_prod_servers_bleeding
  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 }}"