Skip to content

Commit

Permalink
Fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankApiyo committed May 3, 2024
1 parent 2c6433f commit eca7a86
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
8 changes: 5 additions & 3 deletions molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ platforms:
privileged: true
command: /sbin/init
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
- /sys/fs/cgroup:/sys/fs/cgroup:rw
env:
LC_ALL: "C.UTF-8"
LANG: "C.UTF-8"
Expand All @@ -24,16 +24,18 @@ platforms:
privileged: true
command: /sbin/init
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
- /sys/fs/cgroup:/sys/fs/cgroup:rw
env:
LC_ALL: "C.UTF-8"
LANG: "C.UTF-8"
- name: nginx-ubuntu-22.04
image: geerlingguy/docker-ubuntu2204-ansible:latest
privileged: true
pre_build_image: true
command: /sbin/init
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
- /sys/fs/cgroup:/sys/fs/cgroup:rw
cgroupns_mode: host
env:
LC_ALL: "C.UTF-8"
LANG: "C.UTF-8"
Expand Down
2 changes: 2 additions & 0 deletions molecule/install-only/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ platforms:
- name: ubuntu-16.04
image: solita/ubuntu-systemd:16.04
privileged: true
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
command: /sbin/init
provisioner:
name: ansible
Expand Down
7 changes: 5 additions & 2 deletions tasks/package.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
---
# file: nginx/tasks/package.yml
- name: Run the equivalent of "apt-get update" as a separate step
apt:
update_cache: yes

- name: Nginx | Make sure the ansible required dependencies are installed
apt:
name:
- python3-pycurl
- dirmngr
- gnupg
- wget
state: present

# make the KEY_ID a var
- name: Add nginx GPG key
command: sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys ABF5BD827BD9BF62
when: ansible_distribution_version == "22.04"

- name: Add Nginx APT repository
apt_repository:
Expand Down
1 change: 1 addition & 0 deletions tasks/source.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
- libpcre3-dev
- libssl-dev
- libssl1.1
- wget

- name: Nginx | Download the Nginx source release if not yet present
get_url:
Expand Down

0 comments on commit eca7a86

Please sign in to comment.