Skip to content

Commit

Permalink
Add pve_disable_subscription_warning role variable
Browse files Browse the repository at this point in the history
  • Loading branch information
lae committed Feb 24, 2018
1 parent 6795835 commit f247f50
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,7 @@ Role Variables
pve_group: proxmox # host group that contains the Proxmox hosts to be clustered together
pve_fetch_directory: fetch/ # local directory used to download root public keys from each host to
pve_repository_line: "deb http://download.proxmox.com/debian/pve stretch pve-no-subscription" # apt-repository configuration - change to enterprise if needed (although TODO further configuration may be needed)
pve_disable_subscription_warning: true # patches the subscription warning messages in proxmox if you are using the community edition
pve_extra_packages: [] # Any extra packages you may want to install, e.g. ngrep
pve_check_for_kernel_update: true # Runs a script on the host to check kernel versions
pve_reboot_on_kernel_update: false # If set to true, will automatically reboot the machine on kernel updates
Expand Down
1 change: 1 addition & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
pve_group: proxmox
pve_fetch_directory: fetch
pve_repository_line: "deb http://download.proxmox.com/debian/pve {{ ansible_distribution_release }} pve-no-subscription"
pve_remove_subscription_warning: true
pve_extra_packages: []
pve_check_for_kernel_update: true
pve_reboot_on_kernel_update: false
Expand Down
4 changes: 3 additions & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@
src: 00_remove_checked_command.patch
dest: /usr/share/pve-manager/js/pvemanagerlib.js
backup: yes
when: "'pve-no-subscription' in pve_repository_line"
when:
- "'pve-no-subscription' in pve_repository_line"
- pve_remove_subscription_warning

- include: kernel_updates.yml

Expand Down

0 comments on commit f247f50

Please sign in to comment.