Skip to content

Commit

Permalink
chore: add support debian12
Browse files Browse the repository at this point in the history
  • Loading branch information
stephrobert committed Jan 3, 2024
1 parent cb79742 commit e2517c7
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 7 deletions.
2 changes: 1 addition & 1 deletion molecule/vagrant/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ driver:

platforms:
- name: openscap-debian
box: debian/bullseye64
box: generic/debian12
# box: generic/ubuntu2204
memory: 1024
cpus: 2
Expand Down
5 changes: 2 additions & 3 deletions tasks/debian11.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
- name: Update apt cache
ansible.builtin.apt:
update_cache: true
when: ansible_os_family == 'Debian'
update_cache: yes
when: ansible_pkg_mgr == "apt"
become: true

- name: Install package to build oscap
ansible.builtin.package:
name:
Expand Down
3 changes: 3 additions & 0 deletions tasks/debian12-var.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
openscap_profile: "xccdf_org.ssgproject.content_profile_anssi_np_nt28_restrictive"
openscap_security_policy: "ssg-debian12-ds-1.2.xml"
38 changes: 38 additions & 0 deletions tasks/debian12.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
- name: Update apt cache
ansible.builtin.apt:
update_cache: yes
when: ansible_pkg_mgr == "apt"
become: true
- name: Install package to build oscap
ansible.builtin.package:
name:
- git
- cmake
- libdbus-1-dev
- libdbus-glib-1-dev
- libcurl4-openssl-dev
- libgcrypt20-dev
- libselinux1-dev
- libxslt1-dev
- libgconf2-dev
- libacl1-dev
- libblkid-dev
- libcap-dev
- libxml2-dev
- libldap2-dev
- libpcre3-dev
- python3-dev
- swig
- libxml-parser-perl
- libxml-xpath-perl
- libperl-dev
- libbz2-dev
- librpm-dev
- g++
- libapt-pkg-dev
- libyaml-dev
- libxmlsec1-dev
- libxmlsec1-openssl
- unzip
state: present
become: true
5 changes: 2 additions & 3 deletions tasks/ubuntu22.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
- name: Update apt cache
ansible.builtin.apt:
update_cache: true
when: ansible_os_family == 'Debian'
update_cache: yes
when: ansible_pkg_mgr == "apt"
become: true

- name: Install package to build oscap
ansible.builtin.package:
name:
Expand Down

0 comments on commit e2517c7

Please sign in to comment.