Skip to content

Commit

Permalink
Merge pull request #61 from anweshadas/ee
Browse files Browse the repository at this point in the history
Adds 2.15 ee image and build update
  • Loading branch information
Andersson007 authored Oct 20, 2023
2 parents 494f149 + 30a430c commit 31c0265
Show file tree
Hide file tree
Showing 5 changed files with 123 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/execution-environments.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
matrix:
include:
- name: 2.12-with-ansible5
- name: 2.15-with-ansible8

steps:
- name: Check out repository
Expand Down
Original file line number Diff line number Diff line change
@@ -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
43 changes: 43 additions & 0 deletions execution-environments/2.15-minimal-with-ansible8/tests.yml
Original file line number Diff line number Diff line change
@@ -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"

Original file line number Diff line number Diff line change
@@ -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
43 changes: 43 additions & 0 deletions execution-environments/2.15-with-ansible8/tests.yml
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 31c0265

Please sign in to comment.