瀏覽代碼

Add bridge tasks for lxc

pull/15/head
10sr 9 年之前
父節點
當前提交
73a2df2b5b
共有 1 個文件被更改,包括 17 次插入0 次删除
  1. +17
    -0
      ansible/archlinux/roles/lxc/tasks/main.yml

+ 17
- 0
ansible/archlinux/roles/lxc/tasks/main.yml 查看文件

@@ -1,3 +1,20 @@
- name: Install LXC
pacman: name=lxc state=present
become: yes


- name: Place bridge netdev file
template:
src=bridge.netdev.j2
dest=/etc/systemd/network/{{lxc_br_name}}.netdev
become: yes
notify:
- Restart systemd-networkd

- name: Place bridge network file
template:
src=bridge.network.j2
dest=/etc/systemd/network/{{lxc_br_name}}.network
become: yes
notify:
- Restart systemd-networkd

Loading…
取消
儲存