ZFS, NFS, Zeus setting, perma IP fix, again
This commit is contained in:
17
roles/proxmox/tasks/iommu.yml
Normal file
17
roles/proxmox/tasks/iommu.yml
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
- name: Copy to /etc/default/grub
|
||||
template:
|
||||
src: ../templates/grub
|
||||
dest: /etc/default/grub
|
||||
owner: root
|
||||
group: root
|
||||
mode: '0644'
|
||||
notify: iommu-grub-update
|
||||
|
||||
- name: Copy to /etc/modules
|
||||
template:
|
||||
src: ../templates/modules
|
||||
dest: /etc/modules
|
||||
owner: root
|
||||
group: root
|
||||
mode: '0644'
|
||||
8
roles/proxmox/tasks/main.yml
Normal file
8
roles/proxmox/tasks/main.yml
Normal file
@@ -0,0 +1,8 @@
|
||||
---
|
||||
# tasks file for proxmox
|
||||
- name: System settings
|
||||
ansible.builtin.include_tasks: "{{ item }}"
|
||||
loop:
|
||||
- set_community_repo.yml
|
||||
- iommu.yml
|
||||
|
||||
23
roles/proxmox/tasks/set_community_repo.yml
Normal file
23
roles/proxmox/tasks/set_community_repo.yml
Normal file
@@ -0,0 +1,23 @@
|
||||
---
|
||||
- name: setting community repo
|
||||
ansible.builtin.blockinfile:
|
||||
state: present
|
||||
insertafter: EOF
|
||||
path: /etc/apt/sources.list
|
||||
mode: '0664'
|
||||
create: true
|
||||
block: |
|
||||
#Block for setting community repo
|
||||
deb http://download.proxmox.com/debian/ {{ ansible_distribution_release }} pve-no-subscription
|
||||
|
||||
- name: disable comercial one
|
||||
file: path=/etc/apt/sources.list.d/pve-enterprise.list state=absent
|
||||
|
||||
- name: disable comercial two
|
||||
file: path=/etc/apt/sources.list.d/ceph.list state=absent
|
||||
|
||||
- name: Update and upgrade apt packages
|
||||
apt:
|
||||
upgrade: yes
|
||||
update_cache: yes
|
||||
|
||||
Reference in New Issue
Block a user