-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Bring workflow versions up to date * Update molecule config * Remove redundant (and malfunctioning) task from test * Move preparation tasks to where they should live * Switch to systemd-friendly images * Fix older version scenarios too! * Ditch redundant task * Fix broken scenarios * Fix failing verify stage * Add requirements for setting up molecule venv * Clarify
- Loading branch information
1 parent
ffbff38
commit 84a8fa7
Showing
9 changed files
with
82 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,31 @@ | ||
--- | ||
role_name_check: 1 | ||
dependency: | ||
name: galaxy | ||
driver: | ||
name: docker | ||
platforms: | ||
- name: instance | ||
image: ${MOLECULE_DOCKER_IMAGE:-'geerlingguy/docker-ubuntu2204-ansible:latest'} | ||
# command: ${MOLECULE_DOCKER_COMMAND:-""} | ||
volumes: | ||
- /sys/fs/cgroup:/sys/fs/cgroup:ro | ||
image: "registry.gitlab.com/aussielunix/ansible/molecule-containers/${MOLECULE_DISTRO:-ubuntu:jammy}" | ||
privileged: true | ||
pre_build_image: true | ||
# instance_raw_config_args: | ||
# - "vm.network 'forwarded_port', guest: 80, host: 8088" | ||
override_command: false | ||
tmpfs: | ||
- /run | ||
- /tmp | ||
provisioner: | ||
name: ansible | ||
playbooks: | ||
converge: ${MOLECULE_PLAYBOOK:-converge.yml} | ||
env: | ||
ANSIBLE_VERBOSITY: ${MOLECULE_ANSIBLE_VERBOSITY:-0} | ||
PY_COLORS: '1' | ||
ANSIBLE_FORCE_COLOR: '1' | ||
verifier: | ||
name: ansible | ||
# env: | ||
# ANSIBLE_VERBOSITY: ${MOLECULE_ANSIBLE_VERBOSITY:-0} | ||
# PY_COLORS: '1' | ||
# ANSIBLE_FORCE_COLOR: '1' | ||
scenario: | ||
name: default |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
- name: Prepare | ||
hosts: all | ||
become: true | ||
|
||
vars_files: ./vars.yml | ||
|
||
tasks: | ||
|
||
- name: Update apt cache. | ||
apt: update_cache=true cache_valid_time=600 | ||
changed_when: false | ||
|
||
- name: Ensure dirmngr is installed (gnupg dependency). | ||
apt: | ||
name: dirmngr | ||
state: present |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,31 @@ | ||
--- | ||
role_name_check: 1 | ||
dependency: | ||
name: galaxy | ||
driver: | ||
name: docker | ||
platforms: | ||
- name: instance | ||
image: ${MOLECULE_DOCKER_IMAGE:-'geerlingguy/docker-ubuntu1804-ansible:latest'} | ||
# command: ${MOLECULE_DOCKER_COMMAND:-""} | ||
volumes: | ||
- /sys/fs/cgroup:/sys/fs/cgroup:ro | ||
image: "registry.gitlab.com/aussielunix/ansible/molecule-containers/${MOLECULE_DISTRO:-ubuntu:jammy}" | ||
privileged: true | ||
pre_build_image: true | ||
override_command: false | ||
tmpfs: | ||
- /run | ||
- /tmp | ||
provisioner: | ||
name: ansible | ||
playbooks: | ||
converge: ${MOLECULE_PLAYBOOK:-converge.yml} | ||
env: | ||
ANSIBLE_VERBOSITY: ${MOLECULE_ANSIBLE_VERBOSITY:-0} | ||
PY_COLORS: '1' | ||
ANSIBLE_FORCE_COLOR: '1' | ||
verifier: | ||
name: ansible | ||
lint: | | ||
set -e | ||
yamllint -d relaxed . | ||
# ansible-lint . @TODO uncomment and address issues, which are out of scope for this feature branch. | ||
# env: | ||
# ANSIBLE_VERBOSITY: ${MOLECULE_ANSIBLE_VERBOSITY:-0} | ||
# PY_COLORS: '1' | ||
# ANSIBLE_FORCE_COLOR: '1' | ||
scenario: | ||
name: php7.4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,31 @@ | ||
--- | ||
role_name_check: 1 | ||
dependency: | ||
name: galaxy | ||
driver: | ||
name: docker | ||
platforms: | ||
- name: instance | ||
image: ${MOLECULE_DOCKER_IMAGE:-'geerlingguy/docker-ubuntu1804-ansible:latest'} | ||
# command: ${MOLECULE_DOCKER_COMMAND:-""} | ||
volumes: | ||
- /sys/fs/cgroup:/sys/fs/cgroup:ro | ||
image: "registry.gitlab.com/aussielunix/ansible/molecule-containers/${MOLECULE_DISTRO:-ubuntu:jammy}" | ||
privileged: true | ||
pre_build_image: true | ||
override_command: false | ||
tmpfs: | ||
- /run | ||
- /tmp | ||
provisioner: | ||
name: ansible | ||
playbooks: | ||
converge: ${MOLECULE_PLAYBOOK:-converge.yml} | ||
env: | ||
ANSIBLE_VERBOSITY: ${MOLECULE_ANSIBLE_VERBOSITY:-0} | ||
PY_COLORS: '1' | ||
ANSIBLE_FORCE_COLOR: '1' | ||
verifier: | ||
name: ansible | ||
lint: | | ||
set -e | ||
yamllint -d relaxed . | ||
# ansible-lint . @TODO uncomment and address issues, which are out of scope for this feature branch. | ||
# env: | ||
# ANSIBLE_VERBOSITY: ${MOLECULE_ANSIBLE_VERBOSITY:-0} | ||
# PY_COLORS: '1' | ||
# ANSIBLE_FORCE_COLOR: '1' | ||
scenario: | ||
name: php8.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,31 @@ | ||
--- | ||
role_name_check: 1 | ||
dependency: | ||
name: galaxy | ||
driver: | ||
name: docker | ||
platforms: | ||
- name: instance | ||
image: ${MOLECULE_DOCKER_IMAGE:-'geerlingguy/docker-ubuntu2204-ansible:latest'} | ||
# command: ${MOLECULE_DOCKER_COMMAND:-""} | ||
volumes: | ||
- /sys/fs/cgroup:/sys/fs/cgroup:ro | ||
image: "registry.gitlab.com/aussielunix/ansible/molecule-containers/${MOLECULE_DISTRO:-ubuntu:jammy}" | ||
privileged: true | ||
pre_build_image: true | ||
# instance_raw_config_args: | ||
# - "vm.network 'forwarded_port', guest: 80, host: 8088" | ||
override_command: false | ||
tmpfs: | ||
- /run | ||
- /tmp | ||
provisioner: | ||
name: ansible | ||
playbooks: | ||
converge: ${MOLECULE_PLAYBOOK:-converge.yml} | ||
env: | ||
ANSIBLE_VERBOSITY: ${MOLECULE_ANSIBLE_VERBOSITY:-0} | ||
PY_COLORS: '1' | ||
ANSIBLE_FORCE_COLOR: '1' | ||
verifier: | ||
name: ansible | ||
# env: | ||
# ANSIBLE_VERBOSITY: ${MOLECULE_ANSIBLE_VERBOSITY:-0} | ||
# PY_COLORS: '1' | ||
# ANSIBLE_FORCE_COLOR: '1' | ||
scenario: | ||
name: php81legacy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# pip requirements for testing | ||
molecule[docker] |