Use FQCNs. (#1180)

This commit is contained in:
Felix Fontein
2025-10-25 10:12:21 +02:00
committed by GitHub
parent be000755fc
commit b24bce77b6
196 changed files with 3289 additions and 3289 deletions
@@ -8,6 +8,6 @@
gather_facts: true
tasks:
- name: Make sure swarm is removed
docker_swarm:
community.docker.docker_swarm:
state: absent
force: true
@@ -10,11 +10,11 @@
tasks:
- name: Setup docker
import_role:
ansible.builtin.import_role:
name: setup_docker
- name: Setup Docker SDK for Python
import_role:
ansible.builtin.import_role:
name: setup_docker_sdk_for_python
- name: Create a Swarm cluster
@@ -8,10 +8,10 @@
gather_facts: false
tasks:
- name: Show all groups
debug:
ansible.builtin.debug:
var: groups
- name: Make sure docker_swarm groups are there
assert:
ansible.builtin.assert:
that:
- groups.all | length > 0
- groups.leader | length == 1
@@ -27,7 +27,7 @@
ansible_python_interpreter: "{{ ansible_playbook_python }}"
tasks:
- name: Check for groups
assert:
ansible.builtin.assert:
that:
- "groups.manager | length > 0"
- "groups.worker | length >= 0"
@@ -35,28 +35,28 @@
run_once: true
- name: List manager group
debug:
ansible.builtin.debug:
var: groups.manager
run_once: true
- name: List worker group
debug:
ansible.builtin.debug:
var: groups.worker
run_once: true
- name: List leader group
debug:
ansible.builtin.debug:
var: groups.leader
run_once: true
- name: Print ansible_host per host
debug:
ansible.builtin.debug:
var: ansible_host
- name: Make sure docker_swarm_node_attributes is available
assert:
ansible.builtin.assert:
that:
- docker_swarm_node_attributes is not undefined
- name: Print docker_swarm_node_attributes per host
debug:
ansible.builtin.debug:
var: docker_swarm_node_attributes
@@ -8,10 +8,10 @@
gather_facts: false
tasks:
- name: Show all groups
debug:
ansible.builtin.debug:
var: groups
- name: Make sure docker_swarm groups are there
assert:
ansible.builtin.assert:
that:
- groups.all | length > 0
- groups.leader | length == 1
@@ -27,13 +27,13 @@
ansible_python_interpreter: "{{ ansible_playbook_python }}"
tasks:
- name: Make sure docker_swarm_node_attributes is not available
assert:
ansible.builtin.assert:
that:
- docker_swarm_node_attributes is undefined
- name: Make sure ansible_host_uri is available
assert:
ansible.builtin.assert:
that:
- ansible_host_uri is defined
- name: Print ansible_host_uri
debug:
ansible.builtin.debug:
var: ansible_host_uri