mirror of
https://github.com/dev-sec/ansible-collection-hardening
synced 2024-11-10 01:04:13 +00:00
add prepare for archlinux
Signed-off-by: Martin Schurz <Martin.Schurz@telekom.de>
This commit is contained in:
parent
4bc5725836
commit
bf51b96a0b
2 changed files with 11 additions and 1 deletions
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue