Split 'offline' assert into their own role

The preinstall assert cover a number of things, many of which depends
only on the inventory, and can be run without any ansible_facts
collected.

Split them off to simplify re-ordering.
This commit is contained in:
Max Gautier
2025-05-02 11:42:18 +02:00
parent 84d96d5195
commit 1b9919547a
3 changed files with 277 additions and 274 deletions

View File

@@ -30,6 +30,13 @@
key: "{{ (group_names | intersect(item.value) | length > 0) | ternary(item.key, '_all') }}"
loop: "{{ group_mappings | dict2items }}"
- name: Check inventory settings
hosts: all
gather_facts: false
tags: always
roles:
- validate_inventory
- name: Install bastion ssh config
hosts: bastion[0]
gather_facts: false