Improve Ansible code.

This commit is contained in:
Felix Fontein 2025-10-25 10:36:36 +02:00
parent b24bce77b6
commit fc40951272
20 changed files with 62 additions and 62 deletions

View File

@ -4,7 +4,7 @@
# SPDX-License-Identifier: GPL-3.0-or-later # SPDX-License-Identifier: GPL-3.0-or-later
- name: Get OS version - name: Get OS version
ansible.builtin.shell: uname -r ansible.builtin.command: uname -r
register: os_version register: os_version
- name: Install pre-reqs - name: Install pre-reqs

View File

@ -25,7 +25,7 @@
ansible.builtin.set_fact: ansible.builtin.set_fact:
needs_docker_daemon: '{{ not ansible_module_running_in_container }}' needs_docker_daemon: '{{ not ansible_module_running_in_container }}'
- name: - name: Print information
ansible.builtin.debug: ansible.builtin.debug:
msg: |- msg: |-
OS family: {{ ansible_facts.os_family }} OS family: {{ ansible_facts.os_family }}

View File

@ -11,7 +11,7 @@
- name: Setup Docker - name: Setup Docker
when: ansible_facts.distribution ~ ansible_facts.distribution_major_version not in ['CentOS6', 'RedHat6'] when: ansible_facts.distribution ~ ansible_facts.distribution_major_version not in ['CentOS6', 'RedHat6']
block: block:
- name: - name: Print information
ansible.builtin.debug: ansible.builtin.debug:
msg: |- msg: |-
OS family: {{ ansible_facts.os_family }} OS family: {{ ansible_facts.os_family }}

View File

@ -11,7 +11,7 @@
- name: Setup Docker - name: Setup Docker
when: ansible_facts.distribution ~ ansible_facts.distribution_major_version not in ['CentOS6', 'RedHat6'] when: ansible_facts.distribution ~ ansible_facts.distribution_major_version not in ['CentOS6', 'RedHat6']
block: block:
- name: - name: Print information
ansible.builtin.debug: ansible.builtin.debug:
msg: |- msg: |-
OS family: {{ ansible_facts.os_family }} OS family: {{ ansible_facts.os_family }}

View File

@ -25,7 +25,7 @@
- when: not podman_setup_marker.stat.exists and not ansible_module_running_in_container - when: not podman_setup_marker.stat.exists and not ansible_module_running_in_container
block: block:
- name: - name: Print information
ansible.builtin.debug: ansible.builtin.debug:
msg: |- msg: |-
OS family: {{ ansible_facts.os_family }} OS family: {{ ansible_facts.os_family }}