vh-ansible/roles/pve-subscribe/tasks/no-subscription.yml

17 lines
634 B
YAML
Raw Normal View History

---
- name: Unset enterprise repo
file: path=/etc/apt/sources.list.d/pve-enterprise.list state=absent
- name: Configuring no-subscription repo
copy: src=pve-no-subscription.list dest=/etc/apt/sources.list.d/pve-no-subscription.list
- name: Installing pve-subscribe script
copy: src=pve-subscribe dest=/usr/local/bin/pve-subscribe mode=0755 owner=root
- name: Configuring cron to run pve-subscribe hook after reboot
cron: name=pve-subscribe special_time=reboot job=/etc/cron.d/pve-subscribe
- name: Configuring apt to run pve-subscribe hook
copy: src=apt-pve-subscribe dest=/etc/apt/apt.conf.d/99pve-subscribe mode=0644