Feature/dev 829 - ansible version updaten

qa
Hans-Peter Wissenbach 3 years ago committed by Ketelsen, Sven
parent bb0471a9bb
commit 2d771f4989

@ -1,4 +1,4 @@
ARG EE_BASE_IMAGE=quay.io/ansible/ansible-runner:latest ARG EE_BASE_IMAGE=quay.io/ansible/ansible-runner:stable-2.12-latest
ARG EE_BUILDER_IMAGE=quay.io/ansible/ansible-builder:latest ARG EE_BUILDER_IMAGE=quay.io/ansible/ansible-builder:latest
FROM $EE_BASE_IMAGE as galaxy FROM $EE_BASE_IMAGE as galaxy

@ -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"

@ -34,12 +34,11 @@
connection: local connection: local
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"

@ -27,12 +27,11 @@
connection: local connection: local
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"

@ -28,12 +28,11 @@
connection: local connection: local
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"

@ -26,12 +26,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"

@ -21,12 +21,11 @@
connection: local connection: local
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"

@ -22,12 +22,11 @@
connection: local connection: local
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"

@ -17,12 +17,11 @@
default: 'no' default: 'no'
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 }})"
delegate_to: 127.0.0.1 delegate_to: 127.0.0.1
become: false become: false

@ -24,12 +24,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"

@ -27,3 +27,5 @@ traefik_version: "v2.8.5"
connect_version: "10.4.12" connect_version: "10.4.12"
iam_version: "10.0" iam_version: "10.0"
webdav_version: "8.4.1" webdav_version: "8.4.1"
ansible_minimal_version: "2.12.0"

@ -15,12 +15,11 @@
connection: local connection: local
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"

@ -24,12 +24,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"

@ -6,12 +6,11 @@
become: false become: 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 }})"
- name: "Import autodiscover pre-tasks" - name: "Import autodiscover pre-tasks"
import_tasks: tasks/autodiscover_pre_tasks.yml import_tasks: tasks/autodiscover_pre_tasks.yml

@ -7,12 +7,11 @@
ansible_ssh_host: "{{ stage_server_domain }}" ansible_ssh_host: "{{ stage_server_domain }}"
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 }})"
tags: tags:
- always - always

@ -9,12 +9,11 @@
serial: "{{ serial_number | default(10) }}" serial: "{{ serial_number | default(10) }}"
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 }})"
tags: tags:
- always - always

@ -1,6 +1,6 @@
ansible==4.10.0 ansible==5.10.0
ansible-builder ansible-builder
ansible-core==2.11.11 ansible-core==2.12.10
ansible-lint==5.4.0 ansible-lint==5.4.0
dnspython dnspython
hcloud>=1.16.0 hcloud>=1.16.0

@ -33,12 +33,12 @@
when: when:
- data is defined - data is defined
- 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"
add_host: add_host:

@ -8,12 +8,11 @@
become: yes become: yes
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 }})"
tags: tags:
- always - always

@ -7,12 +7,11 @@
become: no become: no
pre_tasks: pre_tasks:
- name: "Checking 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 }})"
tags: tags:
- always - always

@ -26,12 +26,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"

@ -28,12 +28,11 @@
connection: local connection: local
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"

@ -26,12 +26,11 @@
connection: local connection: local
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"

@ -22,12 +22,11 @@
connection: local connection: local
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"

@ -27,12 +27,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"

@ -26,12 +26,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"

@ -10,12 +10,11 @@
become: yes become: yes
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 }})"
tags: tags:
- always - always

@ -8,12 +8,11 @@
become: yes become: yes
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 }})"
tags: tags:
- always - always

@ -23,12 +23,11 @@
connection: local connection: local
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"

@ -19,12 +19,11 @@
connection: local connection: local
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"

@ -21,12 +21,11 @@
connection: local connection: local
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"

@ -14,12 +14,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"

@ -23,12 +23,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 }})"
tasks: tasks:
- name: "Add maria servers to hosts if necessary" - name: "Add maria servers to hosts if necessary"

Loading…
Cancel
Save