ansible config

This commit is contained in:
Shankar Mounesh
2022-06-12 16:43:47 +05:30
parent 46007c92d1
commit 6bc49768f4
3 changed files with 44 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
# deb https://enterprise.proxmox.com/debian/pve buster pve-enterprise
+10
View File
@@ -0,0 +1,10 @@
deb http://ftp.debian.org/debian bullseye main contrib
deb http://ftp.debian.org/debian bullseye-updates main contrib
# security updates
deb http://security.debian.org/debian-security bullseye-security main contrib
# PVE pve-no-subscription repository provided by proxmox.com,
# NOT recommended for production use
deb http://download.proxmox.com/debian/pve bullseye pve-no-subscription
+33
View File
@@ -0,0 +1,33 @@
---
- hosts: localhost
connection: localhost
become: true
pre_tasks:
- name: change sorces.list file
copy:
src: files/sources.list
dest: /etc/apt/sources.list
owner: root
group: root
- name: change sorces.list file
copy:
src: files/pve-enterprise.list
dest: /etc/apt/sources.list.d/pve-enterprise.list
owner: root
group: root
tasks:
- name: update package cache
apt: update_cache=yes
- name: dist upgrade
apt: upgrade=dist
- name: Unconditionally reboot the machine with all defaults
reboot:
reboot_command: reboot