refactor ♻️: Refactor Proxmox repository management #5
@@ -2,11 +2,11 @@
|
||||
|
||||
- name: repos | Manage Proxmox repositories
|
||||
vars:
|
||||
repo_path:
|
||||
- http://download\.proxmox\.com/debian/pve\
|
||||
repo_path:
|
||||
- http://download\.proxmox\.com/debian/pve\
|
||||
|
||||
block:
|
||||
|
|
||||
#Proxmox enterprise repo
|
||||
# Proxmox enterprise repo
|
||||
|
||||
- name: repos | Check for Proxmox enterprise repo file
|
||||
ansible.builtin.stat:
|
||||
@@ -21,7 +21,7 @@
|
||||
when: pve_enterprise_repo.stat.exists
|
||||
register: enterprise_changed
|
||||
|
||||
#Proxmox no-subscription repo
|
||||
# Proxmox no-subscription repo
|
||||
|
||||
- name: repos | Check for pve-install-repo.list
|
||||
ansible.builtin.stat:
|
||||
|
||||
Reference in New Issue
Block a user
[Lines 6-8] [Score: 2] Const declarations are generally preferred for variable declaration. It makes the code more explicit and easier to understand, especially when dealing with complex data structures or multiple variables with the same type. Here,
const repo_pathcould be used instead ofvar.