|
|
|
@ -28,12 +28,11 @@
|
|
|
|
gather_facts: false
|
|
|
|
gather_facts: false
|
|
|
|
|
|
|
|
|
|
|
|
pre_tasks:
|
|
|
|
pre_tasks:
|
|
|
|
- name: "Check if ansible version is at least 2.10.x"
|
|
|
|
- name: "Check if ansible version is at least {{ ansible_minimal_version }}"
|
|
|
|
assert:
|
|
|
|
assert:
|
|
|
|
that:
|
|
|
|
that:
|
|
|
|
- ansible_version.major >= 2
|
|
|
|
- ansible_version.string is version(ansible_minimal_version, ">=")
|
|
|
|
- ansible_version.minor >= 10
|
|
|
|
msg: "The ansible version has to be at least {{ ansible_minimal_version }}"
|
|
|
|
msg: "The ansible version has to be at least ({{ ansible_version.full }})"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# add virtual server to load stage specific variables as context
|
|
|
|
# add virtual server to load stage specific variables as context
|
|
|
|
- name: "Add <{{ stage }}-virtual-host-to-read-groups-vars> to hosts"
|
|
|
|
- name: "Add <{{ stage }}-virtual-host-to-read-groups-vars> to hosts"
|
|
|
|
|