Execution
Date 23 May 2025 10:49:32 +0100
Duration 00:01:44.94
Controller ssh-gw-4.layershift.com
User root
Versions
Ansible 2.16.11
ara 1.7.2 / 1.7.2
Python 3.10.10
Summary
390 Hosts
2 Tasks
777 Results
1 Plays
1 Files
0 Records

File: /home/ssh-gateway/ansible/kuly/create-backup-panel-ini-broken.yaml

---
- name: Make backups
  hosts: all
  gather_facts: false
  vars:
    ini_file: /usr/local/psa/admin/conf/panel.ini
  tasks:
    - name: Get plesk info
      plesk_info:
      register: p
    - name: Make a backup
      when: p.plesk_found
      ansible.builtin.shell: |
        set -o pipefail
        cp "{{ ini_file }}" "{{ ini_file }}"-broken-RM10051-$(date +%s)
      args:
        executable: /bin/bash