2023-07-14 12:17:44 +00:00
|
|
|
- name: Disable enterprise repositories
|
|
|
|
apt_repository:
|
|
|
|
repo: '{{ item }}'
|
|
|
|
state: absent
|
|
|
|
update_cache: '{{ ansible_loop.last }}'
|
|
|
|
loop:
|
|
|
|
- 'deb https://enterprise.proxmox.com/debian/pve {{ ansible_distribution_release }} pve-enterprise'
|
|
|
|
- 'deb https://enterprise.proxmox.com/debian/ceph-quincy {{ ansible_distribution_release }} enterprise'
|
|
|
|
loop_control:
|
|
|
|
extended: true
|
|
|
|
|
|
|
|
- name: Enable no-subscription repository
|
|
|
|
apt_repository:
|
|
|
|
repo: 'deb http://download.proxmox.com/debian/pve {{ ansible_distribution_release }} pve-no-subscription'
|
|
|
|
|
2023-10-20 07:05:54 +00:00
|
|
|
- name: Set hostname
|
|
|
|
hostname:
|
|
|
|
name: '{{ inventory_hostname }}'
|
|
|
|
|
2023-10-18 13:01:02 +00:00
|
|
|
- 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
|
|
|
|
|
2023-07-20 11:46:13 +00:00
|
|
|
- name: Set up loopback interface
|
|
|
|
template:
|
|
|
|
dest: /etc/network/interfaces.d/loopback.intf
|
|
|
|
src: loopback.intf.j2
|
|
|
|
mode: 0644
|
|
|
|
notify: reload interfaces
|
|
|
|
|
2023-10-05 10:42:29 +00:00
|
|
|
- name: Set up fabric interfaces
|
|
|
|
template:
|
|
|
|
dest: /etc/network/interfaces.d/fabric.intf
|
|
|
|
src: fabric.intf.j2
|
|
|
|
mode: 0644
|
|
|
|
notify: reload interfaces
|
|
|
|
|
2023-10-18 13:01:02 +00:00
|
|
|
- name: Set up interfaces
|
|
|
|
template:
|
|
|
|
dest: /etc/network/interfaces
|
|
|
|
src: interfaces.j2
|
|
|
|
mode: 0644
|
|
|
|
notify: reload interfaces
|
|
|
|
|
2023-07-17 14:37:45 +00:00
|
|
|
- include_tasks: mgmt.yml
|
|
|
|
|
2023-07-14 12:17:44 +00:00
|
|
|
- include_tasks: sdn.yml
|