Execution
Date 23 Sep 2025 09:55:14 +0100
Duration 00:01:50.13
Controller ssh-gw-4.layershift.com
User root
Versions
Ansible 2.16.11
ara 1.7.3 / 1.7.3
Python 3.10.10
Summary
49 Hosts
3 Tasks
137 Results
1 Plays
1 Files
0 Records

File: /home/ssh-gateway/ansible/kuly/zz-disperse-alma-maintain.yaml

---
- name: Playbook to upload file to ls_tools
  hosts: all
  gather_facts: false
  tasks:
    - name: On plesk server
      plesk_info:
      register: plsk
    - name: Run actions
      when: plsk.plesk_found
      block:
        - name: Upload the file
          ansible.builtin.copy:
            src: alma_maintain.sh
            dest: /opt/ls_tools/alma_maintain.sh
            mode: '0755'
          changed_when: false
        - name: Make sure apprise is installed
          ansible.builtin.shell: |
            set -o pipefail
            dnf clean all
            dnf -y install epel-release
            dnf -y install apprise
          args:
            executable: /bin/bash
          changed_when: false