Commit cc08c261 authored by nanahira's avatar nanahira

changes for pve

parent 886a11a4
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
tasks: tasks:
- name: apt - name: apt
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 update_cache: true
- name: Ubuntu things - name: Ubuntu things
apt: apt:
...@@ -18,11 +18,11 @@ ...@@ -18,11 +18,11 @@
when: ansible_distribution == 'Ubuntu' when: ansible_distribution == 'Ubuntu'
- name: pve things - name: pve things
apt: apt:
name: 'pve-headers-{{ansible_kernel}},ifupdown2' name: 'pve-headers-{{ansible_kernel}}'
when: ansible_kernel.endswith("-pve") when: ansible_kernel.endswith("-pve")
- name: ifupdown - name: non-pve things
apt: apt:
name: ifupdown name: vlan
when: not ansible_kernel.endswith("-pve") when: not ansible_kernel.endswith("-pve")
- name: modules file - name: modules file
copy: copy:
......
...@@ -104,6 +104,12 @@ ...@@ -104,6 +104,12 @@
template: template:
src: ./files/interfaces.j2 src: ./files/interfaces.j2
dest: /etc/network/interfaces 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 - name: bridge config
include_tasks: ./interface-tasks/bridge.yaml include_tasks: ./interface-tasks/bridge.yaml
vars: 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