debian: reorder tasks
Ensure network interfaces are renamed first.
This commit is contained in:
parent
275991c49c
commit
35427f1fbc
|
@ -1,13 +1,16 @@
|
||||||
|
- name: Add rules to rename network interfaces
|
||||||
|
template:
|
||||||
|
dest: /etc/udev/rules.d/10-network.rules
|
||||||
|
src: 10-network.rules.j2
|
||||||
|
mode: 0644
|
||||||
|
notify: reboot
|
||||||
|
|
||||||
|
- meta: flush_handlers
|
||||||
|
|
||||||
- name: Set hostname
|
- name: Set hostname
|
||||||
hostname:
|
hostname:
|
||||||
name: '{{ inventory_hostname }}'
|
name: '{{ inventory_hostname }}'
|
||||||
|
|
||||||
- name: Set up resolv.conf
|
|
||||||
template:
|
|
||||||
dest: /etc/resolv.conf
|
|
||||||
src: resolv.conf.j2
|
|
||||||
mode: 0644
|
|
||||||
|
|
||||||
- name: Set up debian repositories
|
- name: Set up debian repositories
|
||||||
template:
|
template:
|
||||||
dest: /etc/apt/sources.list
|
dest: /etc/apt/sources.list
|
||||||
|
@ -27,13 +30,6 @@
|
||||||
- tmux
|
- tmux
|
||||||
update_cache: yes
|
update_cache: yes
|
||||||
|
|
||||||
- name: Add rules to rename network interfaces
|
|
||||||
template:
|
|
||||||
dest: /etc/udev/rules.d/10-network.rules
|
|
||||||
src: 10-network.rules.j2
|
|
||||||
mode: 0644
|
|
||||||
notify: reboot
|
|
||||||
|
|
||||||
# we don’t want to template this file because it gets overwritten by proxmox
|
# we don’t want to template this file because it gets overwritten by proxmox
|
||||||
# so just try removing anything that messes with our definitions in interfaces.d
|
# so just try removing anything that messes with our definitions in interfaces.d
|
||||||
- name: Remove interface definitions added by installer
|
- name: Remove interface definitions added by installer
|
||||||
|
@ -56,6 +52,12 @@
|
||||||
mode: 0644
|
mode: 0644
|
||||||
notify: reload interfaces
|
notify: reload interfaces
|
||||||
|
|
||||||
|
- name: Set up resolv.conf
|
||||||
|
template:
|
||||||
|
dest: /etc/resolv.conf
|
||||||
|
src: resolv.conf.j2
|
||||||
|
mode: 0644
|
||||||
|
|
||||||
- name: Disable SSH password authentication
|
- name: Disable SSH password authentication
|
||||||
lineinfile:
|
lineinfile:
|
||||||
path: /etc/ssh/sshd_config
|
path: /etc/ssh/sshd_config
|
||||||
|
|
Loading…
Reference in a new issue