Execution
Date 22 Sep 2025 14:46:19 +0100
Duration 00:03:08.99
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
400 Hosts
2 Tasks
796 Results
1 Plays
1 Files
0 Records

File: /home/ssh-gateway/ansible/kuly/RM10139-add_tls_v13.yaml

---
- name: Playbook to add tls v1.3
  hosts: all
  gather_facts: false
  tasks:
    - name: Get server info
      plesk_info:
      register: plsk
    - name: Run the command on plesk servers
      when: plsk.plesk_found
      ansible.builtin.shell: |
        set -o pipefail
        /usr/local/psa/bin/server_pref -u -ssl-protocols 'TLSv1.2 TLSv1.3'
      args:
        executable: /bin/bash
      register: tls
      changed_when: tls.rc == 0
      failed_when: tls.rc != 0