Du kan inte välja fler än 25 ämnen
Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
|
- ---
-
- - include_tasks: setup_{{ansible_os_family}}.yml
- when: not root_target_directory is defined
-
- - name: set netifs
- set_fact:
- _netifs: "{{ lookup('template','netifs.json.j2') }}"
-
- - name: /etc/network directory
- file:
- path: "{{ root_target_directory | default('') }}/etc/network"
- state: directory
-
- - name: debian network interfaces configuration
- template:
- src: network-interfaces-debian.j2
- dest: "{{ root_target_directory | default('') }}/etc/network/interfaces"
- when:
- - ( root_target_dist | default('debian') ) == "debian"
-
- - name: alpine network interfaces configuration
- template:
- src: network-interfaces-alpine.j2
- dest: "{{ root_target_directory | default('') }}/etc/network/interfaces"
- when:
- - ( root_target_dist | default('debian') ) == "alpine"
-
- - name: /etc/network/interfaces.d directory
- file:
- path: "{{ root_target_directory | default('') }}/etc/network/interfaces.d"
- state: directory
- when:
- - ( root_target_dist | default('debian') ) == "debian"
-
- - name: debian network interface configuration
- template:
- src: network-interface-debian.j2
- dest: "{{ root_target_directory | default('') }}/etc/network/interfaces.d/{{ item }}"
- with_items: "{{ _netifs }}"
- when:
- - ( root_target_dist | default('debian') ) == "debian"
-
- - name: systemd network dir
- file:
- path: "{{ root_target_directory | default('') }}/etc/systemd/network"
- state: directory
-
- - name: systemd network interface names
- template:
- src: systemd-network.link.j2
- dest: "{{ root_target_directory | default('') }}/etc/systemd/network/10-{{ item }}.link"
- with_items: "{{ _netifs }}"
- when:
- - ( root_target_dist | default('debian') ) == "debian"
|