Execution
Date 11 Dec 2025 15:28:15 +0000
Duration 00:03:56.15
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
398 Hosts
8 Tasks
1980 Results
3 Plays
11 Files
0 Records

File: /home/ssh-gateway/ansible/roles/cloudlinux/tasks/main.yml

---
# tasks file for CloudLinux

- name: Get the CL version
  ansible.builtin.shell: |
    set -o pipefail
    if [ -f /etc/cloudlinux-release ]; then
      cat /etc/cloudlinux-release | grep "CloudLinux" | awk -F 'release ' '{print $2}' | awk '{print $1}'
    fi
  args:
    executable: /bin/bash
  register: cloudlinux_output
  changed_when: false

- name: Set CloudLinux facts
  ansible.builtin.set_fact:
    cloudlinux_found: "{{ cloudlinux_output.stdout is not none and cloudlinux_output.stdout != '' }}"
    cloudlinux_version: "{{ cloudlinux_output.stdout if cloudlinux_output.stdout is not none else 'unknown' }}"
  when: cloudlinux_output.stdout is not none