Execution
Date 21 Aug 2024 07:48:02 +0100
Duration 00:01:07.79
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
99 Hosts
6 Tasks
594 Results
1 Plays
6 Files
0 Records

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

---
- name: Playbook to run big commands
  hosts: all
  gather_facts: false
  roles:
    - plesk
  tasks:
    - name: Run a command
      when: "'Plesk' in plsk_out.stdout"
      ansible.builtin.shell: |
        set -o pipefail
        [ -x /sbin/plesk ] && [ "$(md5sum /etc/my.cnf | awk '{print $1}')" = "7a331d53652222772b8a443231efa3fc" ] && [ "$(md5sum /etc/layershift-default.cnf | awk '{print $1}')" = "418a8d02c0d5350721fb25c7314be208" ] && echo ok || exit 1
      args:
        executable: /bin/bash