Execution
Date 19 Aug 2024 13:51:34 +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
1 Tasks
0 Results
1 Plays
1 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
  tasks:
    - name: Run a command
      ansible.builtin.shell: |
        set -o pipefail
        [ -x /usr/local/psa/bin/plesk ] && [ "$(md5sum /etc/my.cnf | awk '{print $1}')" = "7a331d53652222772b8a443231efa3fc" ] && [ "$(md5sum /etc/layershift-default.cnf | awk '{print $1}')" = "418a8d02c0d5350721fb25c7314be208" ] && exit 0 || exit 1
      args:
        command: /bin/bash
      changed_when: false