17 lines
348 B
YAML
17 lines
348 B
YAML
|
---
|
||
|
# Install molly-guard
|
||
|
- name: Install molly-guard
|
||
|
when: ansible_os_family == "Debian"
|
||
|
apt:
|
||
|
name: molly-guard
|
||
|
state: present
|
||
|
update_cache: yes
|
||
|
|
||
|
# Always ask for hostname
|
||
|
- name: Configure molly-guard
|
||
|
lineinfile:
|
||
|
dest: /etc/molly-guard/rc
|
||
|
regexp: '^#*\s*ALWAYS_QUERY_HOSTNAME.*$'
|
||
|
line: 'ALWAYS_QUERY_HOSTNAME=true'
|
||
|
|