ansible-playbooks/network/init.ansible.yml

16 lines
377 B
YAML

- import_playbook: firewall.ansible.yml
- hosts: localhost
tasks:
- name: Populate interfaces
template:
src: files/network_interfaces
dest: /etc/network/interfaces
owner: root
group: root
mode: "0644"
- name: Enable networking service
service:
name: networking
state: started
enabled: true