|
- ---
- - import_playbook: playbook_ssh_known_host.yml
- - name: Configure Rapid7
- hosts:
- - all
- gather_facts: yes
- pre_tasks:
- - name: Gather hardware facts
- setup:
- gather_subset:
- - hardware
- roles:
- - {role: iptables, when: ansible_facts.os_family == "RedHat", tags: ["iptables"], become: true, become_method: sudo}
- - {role: rapid7, when: ansible_facts.os_family == "RedHat", tags : ["rapid7"], become: true, become_method: sudo}
-
- ...
|