mirror of
https://github.com/ansible-collections/community.docker.git
synced 2026-04-10 20:05:17 +00:00
Improve Ansible code.
This commit is contained in:
parent
b24bce77b6
commit
fc40951272
@ -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
|
||||||
|
|||||||
@ -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 }}
|
||||||
|
|||||||
@ -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 }}
|
||||||
|
|||||||
@ -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 }}
|
||||||
|
|||||||
@ -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 }}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user