瀏覽代碼

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 %}

Loading…
取消
儲存