ansible-playbooks/network/init.ansible.yml
2024-06-27 23:18:04 +02:00

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