cw-deploy/cw_docker_deploy/tasks/check_os_version.yml
2025-06-20 10:40:14 +03:00

18 lines
579 B
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
# Проверка версии ОС
- name: Check OS version
block:
- name: "Get the OS facts"
gather_facts:
- name: OS info
debug:
msg:
- "OS: {{ ansible_distribution }}"
- "Version: {{ ansible_distribution_version }}"
- "Major version: {{ ansible_distribution_major_version }}"
- name: OS version not supported
fail:
msg: "Operating system {{ ansible_distribution }} ver. {{ ansible_distribution_major_version }} not supported"
when: ansible_distribution not in ['Ubuntu']