浏览代码

remove persistent net-rules configuration

netifs
父节点
当前提交
0a9a0572fa
共有 2 个文件被更改,包括 0 次插入7 次删除
  1. +0
    -4
      tasks/main.yml
  2. +0
    -3
      templates/persistent-net.rules.j2

+ 0
- 4
tasks/main.yml 查看文件

@@ -5,7 +5,3 @@
src: network-interfaces.j2
dest: "{{ root_target_directory | default('') }}/etc/network/interfaces"

#- name: persistent net rules
# template:
# src: persistent-net.rules.j2
# dest: "{{ network_interfaces_target }}/etc/udev/rules.d/z25_persistent-net.rules"

+ 0
- 3
templates/persistent-net.rules.j2 查看文件

@@ -1,3 +0,0 @@
{% for netif in network_interfaces %}
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="{{ netif.mac_address }}", ATTR{type}=="1", KERNEL=="eth*", NAME="{{ netif.device }}"
{% endfor %}

正在加载...
取消
保存