add prepare for archlinux

Signed-off-by: Martin Schurz <Martin.Schurz@telekom.de>
This commit is contained in:
Martin Schurz 2023-12-06 20:21:49 +01:00
parent 4bc5725836
commit bf51b96a0b
2 changed files with 11 additions and 1 deletions

View file

@ -2,7 +2,7 @@
dependency:
name: galaxy
options:
role-file: molecule/os_hardening/requirements.yml
role-file: molecule/os_hardening_vm/requirements.yml
driver:
name: vagrant
provider:

View file

@ -1,4 +1,14 @@
---
- name: Prepare Archliux host
hosts: all
become: true
gather_facts: false
tasks:
- name: Install python, since it's not installed by default
ansible.builtin.raw: pacman -Sy python
changed_when: false
when: ansible_facts.os_family == 'Archlinux'
- name: Wrapper playbook for kitchen testing "ansible-os-hardening" with custom vars for testing
hosts: all
become: true