role.prepare_lxc_host/tasks/net_lxc-net.yml

12 lines
330 B
YAML
Raw Permalink Normal View History

2024-03-12 20:39:29 +00:00
---
- name: Write variables to /etc/default/lxc-net
ansible.builtin.blockinfile:
path: /etc/default/lxc-net
block: "{{ lookup('ansible.builtin.template', 'etc/default/lxc-net.j2') }}"
marker: "# {mark} ANSIBLE MANAGED BLOCK - custom network settings"
insertafter: EOF
backup: yes
notify: Restart lxc-net