{"id":6778,"sha1":"851938bb4b168e62abb61ce0db1c93d72cfd047a","playbook":{"id":4651,"items":{"plays":1,"tasks":1,"results":5,"hosts":5,"files":1,"records":0},"arguments":{"version":null,"verbosity":2,"private_key_file":"/home/ssh-gateway/.ssh/id_rsa","remote_user":"root","connection":"ssh","timeout":null,"ssh_common_args":null,"sftp_extra_args":null,"scp_extra_args":null,"ssh_extra_args":null,"ask_pass":false,"connection_password_file":null,"force_handlers":false,"flush_cache":false,"become":false,"become_method":"sudo","become_user":null,"become_ask_pass":false,"become_password_file":null,"tags":["all"],"skip_tags":[],"check":false,"diff":false,"inventory":["/home/ssh-gateway/ansible/kuly/RM10126-inventory-phase3.ini"],"listhosts":false,"subset":null,"extra_vars":"Not saved by ARA as configured by 'ignored_arguments'","vault_ids":[],"ask_vault_pass":false,"vault_password_files":[],"forks":20,"module_path":null,"syntax":false,"listtasks":false,"listtags":false,"step":false,"start_at_task":null,"args":["RM10126-VM-tuned-install.yaml"]},"labels":[{"id":1,"name":"remote_user:root"},{"id":2,"name":"check:False"},{"id":3,"name":"tags:all"}],"started":"2025-12-08T13:11:25.785184Z","ended":"2025-12-08T13:12:35.986676Z","duration":"00:01:10.201492","name":null,"ansible_version":"2.16.11","client_version":"1.7.3","python_version":"3.10.10","server_version":"1.7.3","status":"completed","path":"/home/ssh-gateway/ansible/kuly/RM10126-VM-tuned-install.yaml","controller":"ssh-gw-4.layershift.com","user":"root"},"content":"---\n- name: Playbook to install and config tuned on VMs\n  hosts: all\n  gather_facts: false\n  tasks:\n    - name: Install\n      ansible.builtin.shell: |\n        set -o pipefail\n        dnf clean all\n        dnf -y install tuned\n        systemctl enable --now tuned.service\n        sed -i 's/vm.swappiness=0/# vm.swappiness=0/g' /etc/sysctl.conf\n        mkdir -p /etc/tuned/ls-vm-tweaks/\n        mv /etc/tuned/ls-vm-tweaks/tuned.conf /etc/tuned/ls-vm-tweaks/tuned.conf-bak-$(date +%s)\n        cat > /etc/tuned/ls-vm-tweaks/tuned.conf << EOF\n        [main]\n        summary=LS VM optimized profile\n\n        [sysctl]\n        vm.dirty_ratio = 30\n        vm.dirty_background_ratio = 10\n        vm.swappiness = 1\n        vm.force_cgroup_v2_swappiness = 1\n        net.core.somaxconn = 4096\n        net.ipv6.ip_nonlocal_bind = 1\n\n        [scheduler]\n        runtime=0\n        sched_min_granularity_ns = 10000000\n        sched_wakeup_granularity_ns = 15000000\n        EOF\n        tuned-adm off\n        tuned-adm profile ls-vm-tweaks\n        tuned-adm active | grep ls-vm-tweaks && echo \"Profile ls-vm-tweaks is active\" || echo \"Profile ls-vm-tweaks is not active\"\n      args:\n        executable: /bin/bash\n      changed_when: false\n","created":"2025-12-08T13:11:25.824443Z","updated":"2025-12-08T13:11:25.824478Z","path":"/home/ssh-gateway/ansible/kuly/RM10126-VM-tuned-install.yaml"}