17 lines
400 B
YAML
17 lines
400 B
YAML
- 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
|
|
|