Browse Source

[ansible] add support for ansible 5 (ansible-core 2.12) (#8512)

pull/8658/head
Cristian Calin 2 years ago
committed by GitHub
parent
commit
113de8381c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 33 additions and 2 deletions
  1. 8
      .gitlab-ci/packet.yml
  2. 2
      README.md
  3. 2
      ansible_version.yml
  4. 10
      requirements-2.12.txt
  5. 1
      tests/files/packet_ubuntu20-calico-aio-ansible-2_12.yml
  6. 12
      tests/requirements-2.12.txt

8
.gitlab-ci/packet.yml

@ -48,6 +48,14 @@ packet_ubuntu20-calico-aio-ansible-2_11:
ANSIBLE_MAJOR_VERSION: "2.11"
RESET_CHECK: "true"
packet_ubuntu20-calico-aio-ansible-2_12:
stage: deploy-part1
extends: .packet_pr
when: on_success
variables:
ANSIBLE_MAJOR_VERSION: "2.12"
RESET_CHECK: "true"
# ### PR JOBS PART2
packet_ubuntu18-aio-docker:

2
README.md

@ -161,7 +161,7 @@ Note: Upstart/SysV init based OS types are not supported.
## Requirements
- **Minimum required version of Kubernetes is v1.21**
- **Ansible v2.9.x, Jinja 2.11+ and python-netaddr is installed on the machine that will run Ansible commands, Ansible 2.10.x is experimentally supported for now**
- **Ansible v2.9.x, Jinja 2.11+ and python-netaddr is installed on the machine that will run Ansible commands**
- The target servers must have **access to the Internet** in order to pull docker images. Otherwise, additional configuration is required (See [Offline Environment](docs/offline-environment.md))
- The target servers are configured to allow **IPv4 forwarding**.
- If using IPv6 for pods and services, the target servers are configured to allow **IPv6 forwarding**.

2
ansible_version.yml

@ -5,7 +5,7 @@
vars:
minimal_ansible_version: 2.9.0
minimal_ansible_version_2_10: 2.10.11
maximal_ansible_version: 2.12.0
maximal_ansible_version: 2.13.0
ansible_connection: local
tags: always
tasks:

10
requirements-2.12.txt

@ -0,0 +1,10 @@
ansible==5.5.0
ansible-core==2.12.3
cryptography==2.8
jinja2==2.11.3
netaddr==0.7.19
pbr==5.4.4
jmespath==0.9.5
ruamel.yaml==0.16.10
ruamel.yaml.clib==0.2.6
MarkupSafe==1.1.1

1
tests/files/packet_ubuntu20-calico-aio-ansible-2_12.yml

@ -0,0 +1 @@
packet_ubuntu20-calico-aio.yml

12
tests/requirements-2.12.txt

@ -0,0 +1,12 @@
-r ../requirements-2.12.txt
yamllint==1.19.0
apache-libcloud==2.2.1
tox==3.11.1
dopy==0.3.7
cryptography==2.8
ansible-lint==5.4.0
molecule==3.0.6
molecule-vagrant==0.3
testinfra==5.2.2
python-vagrant==0.5.15
ara[server]==1.5.7
Loading…
Cancel
Save