Execution
Date 01 Aug 2024 11:35:20 +0100
Duration None
Controller ssh-gw-4.layershift.com
User root
Versions
Ansible 2.16.4
ara 1.7.1 / 1.7.1
Python 3.10.10
Summary
0 Hosts
0 Tasks
0 Results
0 Plays
1 Files
0 Records

File: /home/ssh-gateway/ansible/update_solus_hooks_files.yaml

---
- name: Playbook to update solus hooks
- hosts: all
  gather_facts: false
  vars:
    dl_url: "https://deploy.thecode.casa/solus-hooks"
  tasks:

    - name: Make sure the folder exist
      ansible.builtin.shell: |
        set -o pipefail
        mkdir -p /usr/local/solus/hooks
      args:
        executable: /bin/bash
      changed_when: false

    - name: Upload files
      ansible.builtin.get_url:
        url: "{{ dl_url }}/{{ item }}"
        dest: "/usr/local/solus/hooks/{{ item }}"
        validate_certs: false
        timeout: 30
        owner: root
        mode: 0755
        force: true
      with_items:
        - floating-ip-save.sh
        - remove-checkpoints.sh
    - name: Upload env file
      ansible.builtin.get_url:
        url: "{{ dl_url }}/{{ item }}"
        dest: "/usr/local/solus/.{{ item }}"
        validate_certs: false
        timeout: 30
        owner: root
        mode: 0644
        force: true
      with_items:
        - env