intial commit
This commit is contained in:
16
playbooks/setup_server.yml
Normal file
16
playbooks/setup_server.yml
Normal file
@@ -0,0 +1,16 @@
|
||||
- name: Setup new server
|
||||
hosts: all
|
||||
become: true
|
||||
gather_facts: false
|
||||
|
||||
pre_tasks:
|
||||
- name: Ensure that limit is provided
|
||||
assert:
|
||||
that:
|
||||
- ansible_limit is defined
|
||||
fail_msg: "You must limit the hosts (ansible-playbook setup_server.yml -i inventory.yml --limit host1)"
|
||||
|
||||
roles:
|
||||
- name: devsec.hardening.os_hardening
|
||||
- name: checkmk.general.agent
|
||||
|
||||
Reference in New Issue
Block a user