diff --git a/.github/workflows/execution-environments.yml b/.github/workflows/execution-environments.yml index 0ac6e96..6c98050 100644 --- a/.github/workflows/execution-environments.yml +++ b/.github/workflows/execution-environments.yml @@ -18,6 +18,7 @@ jobs: matrix: include: - name: 2.12-with-ansible5 + - name: 2.15-with-ansible8 steps: - name: Check out repository diff --git a/execution-environments/2.15-minimal-with-ansible8/execution-environment.yml b/execution-environments/2.15-minimal-with-ansible8/execution-environment.yml new file mode 100644 index 0000000..9965ee8 --- /dev/null +++ b/execution-environments/2.15-minimal-with-ansible8/execution-environment.yml @@ -0,0 +1,14 @@ +--- + +version: 3 +images: + base_image: + name: quay.io/fedora/fedora:latest +dependencies: + ansible_core: + package_pip: ansible-core + ansible_runner: + package_pip: ansible-runner + system: + - openssh-clients + - sshpass diff --git a/execution-environments/2.15-minimal-with-ansible8/tests.yml b/execution-environments/2.15-minimal-with-ansible8/tests.yml new file mode 100644 index 0000000..22ef5fa --- /dev/null +++ b/execution-environments/2.15-minimal-with-ansible8/tests.yml @@ -0,0 +1,43 @@ +- name: Basic integration tests + hosts: localhost + gather_facts: false + pre_tasks: + - name: Collect some facts + ansible.builtin.setup: + gather_subset: + - "!all" + - "!any" + - date_time + - distribution + - dns + - kernel + - python + + - name: Install ps + become: true + ansible.builtin.package: + name: procps-ng + state: latest + + - name: Print running Ansible processes + ansible.builtin.shell: ps fauxwww | grep -i ansible + changed_when: false + + - name: Retrieve the installed version of ansible-core + ansible.builtin.shell: pip show ansible-core | awk "/Version/ {print $2}" + changed_when: false + register: _installed_ansible_core + + - name: Retrieve the installed version of ansible with pip + ansible.builtin.shell: pip show ansible | awk "/Version/ {print $2}" + changed_when: false + register: _ansible_version_pypi + + tasks: + - name: Validate image + assert: + that: + - ansible_distribution == "Fedora" + - ansible_distribution_release == "" + - ansible_distribution_version == "38" + diff --git a/execution-environments/2.15-with-ansible8/execution-environment.yml b/execution-environments/2.15-with-ansible8/execution-environment.yml new file mode 100644 index 0000000..3789653 --- /dev/null +++ b/execution-environments/2.15-with-ansible8/execution-environment.yml @@ -0,0 +1,22 @@ +--- + +version: 3 +images: + base_image: + name: quay.io/fedora/fedora:latest +dependencies: + ansible_core: + package_pip: ansible-core + ansible_runner: + package_pip: ansible-runner + system: + - openssh-clients + - sshpass + galaxy: + collections: + - name: ansible.posix + version: 1.5.0 + - name: ansible.utils + version: 2.10.0 + - name: ansible.windows + version: 1.14.0 diff --git a/execution-environments/2.15-with-ansible8/tests.yml b/execution-environments/2.15-with-ansible8/tests.yml new file mode 100644 index 0000000..22ef5fa --- /dev/null +++ b/execution-environments/2.15-with-ansible8/tests.yml @@ -0,0 +1,43 @@ +- name: Basic integration tests + hosts: localhost + gather_facts: false + pre_tasks: + - name: Collect some facts + ansible.builtin.setup: + gather_subset: + - "!all" + - "!any" + - date_time + - distribution + - dns + - kernel + - python + + - name: Install ps + become: true + ansible.builtin.package: + name: procps-ng + state: latest + + - name: Print running Ansible processes + ansible.builtin.shell: ps fauxwww | grep -i ansible + changed_when: false + + - name: Retrieve the installed version of ansible-core + ansible.builtin.shell: pip show ansible-core | awk "/Version/ {print $2}" + changed_when: false + register: _installed_ansible_core + + - name: Retrieve the installed version of ansible with pip + ansible.builtin.shell: pip show ansible | awk "/Version/ {print $2}" + changed_when: false + register: _ansible_version_pypi + + tasks: + - name: Validate image + assert: + that: + - ansible_distribution == "Fedora" + - ansible_distribution_release == "" + - ansible_distribution_version == "38" +