Execution
Date 27 Aug 2025 11:30:03 +0100
Duration 00:00:02.71
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
1 Hosts
2 Tasks
2 Results
1 Plays
1 Files
0 Records

File: /home/ssh-gateway/ansible/kuly/zz-tuned.yaml

---
- name: Tuned parameters
  hosts: all
  gather_facts: false
  tasks:
    - name: Get server info
      plesk_info:
      register: pl
    - name: Get the active profile
      when: pl.cloudlinux_found
      ansible.builtin.shell: |
        set -o pipefail
        sysctl vm.swappiness
        # tuned-adm active
        # rpm -q tuned
      args:
        executable: /bin/bash
      register: aaa
      # changed_when: "'virtual-guest' not in aaa.stdout"
      changed_when: "' = 0' not in aa.stdout"
      # changed_when: false