~starkingdoms/starkingdoms

ref: c4082170d81b4295ec4b0973877468af52b5bc93 starkingdoms/ansible/update-beta.yaml -rw-r--r-- 310 bytes
c4082170 — ghostly_zsh update cargo.toml 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
- name: Update beta servers
  hosts: starkingdoms_prod_servers_beta
  vars:
    compose_dir: /home/stk-deploy
  tasks:
    - name: Ensure host connectivity
      ansible.builtin.ping:
    - name: Update the server
      ansible.builtin.shell:
        cmd: docker-compose pull
        chdir: "{{ compose_dir }}"