Commit cc08c261 authored by nanahira's avatar nanahira

changes for pve

parent 886a11a4
......@@ -10,7 +10,7 @@
tasks:
- name: apt
apt:
name: net-tools,bridge-utils,ifenslave,vlan,pppoe,iproute2,iptables,ipset,subnetcalc
name: net-tools,bridge-utils,pppoe,iproute2,iptables,ipset,subnetcalc,ifupdown,ifenslave
update_cache: true
- name: Ubuntu things
apt:
......@@ -18,11 +18,11 @@
when: ansible_distribution == 'Ubuntu'
- name: pve things
apt:
name: 'pve-headers-{{ansible_kernel}},ifupdown2'
name: 'pve-headers-{{ansible_kernel}}'
when: ansible_kernel.endswith("-pve")
- name: ifupdown
- name: non-pve things
apt:
name: ifupdown
name: vlan
when: not ansible_kernel.endswith("-pve")
- name: modules file
copy:
......
......@@ -104,6 +104,12 @@
template:
src: ./files/interfaces.j2
dest: /etc/network/interfaces
- name: interfaces.new
become: true
template:
src: ./files/interfaces.j2
dest: /etc/network/interfaces.new
when: ansible_kernel.endswith("-pve")
- name: bridge config
include_tasks: ./interface-tasks/bridge.yaml
vars:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment