forked from ccchb/ansible
15 lines
281 B
YAML
15 lines
281 B
YAML
---
|
|
- name: Enable sshd
|
|
systemd:
|
|
name: sshd
|
|
enabled: yes
|
|
state: started
|
|
|
|
- name: Configure Network
|
|
notify: restart network
|
|
when: ipv4 is defined or ipv6 is defined
|
|
template:
|
|
src: interfaces.j2
|
|
dest: /etc/network/interfaces
|
|
owner: root
|
|
mode: 644
|