Execution
Date 10 Sep 2025 11:02:37 +0100
Duration 00:02:30.17
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
399 Hosts
2 Tasks
794 Results
1 Plays
1 Files
0 Records

File: /home/ssh-gateway/ansible/kuly/mariadb-check.yaml

---
- name: Search for mariadb processes
  hosts: all
  gather_facts: false
  tasks:
    - name: Gather info
      plesk_info:
      register: plsk
    - name: On plesk server run command
      when: plsk.plesk_found
      ansible.builtin.shell: |
        set -o pipefail
        ps -eo pid,user:30,%cpu,%mem,cmd --sort=-%cpu | head -n 20 | grep mariadb
      args:
        executable: /bin/bash
      changed_when: false