mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-07-30 03:05:51 +02:00
Update to 2021-12-01 19:13
This commit is contained in:
38
roles/pve/tasks/pve_online.yml
Normal file
38
roles/pve/tasks/pve_online.yml
Normal file
@@ -0,0 +1,38 @@
|
||||
---
|
||||
|
||||
- name: Install dependencies
|
||||
apt:
|
||||
name:
|
||||
- libnet-route-perl
|
||||
- libnet-address-ip-local-perl
|
||||
- libarray-diff-perl
|
||||
- libdata-validate-ip-perl
|
||||
- liblogger-syslog-perl
|
||||
|
||||
- name: Deploy Online.net integration script
|
||||
copy: src=pve-online dest=/usr/local/bin/pve-online mode=755
|
||||
|
||||
- name: Deploy Online.net integration conf
|
||||
template: src=pve-online.conf.j2 dest=/etc/pve-online.conf mode=600
|
||||
|
||||
- name: Create hook directory on local storage
|
||||
file: path=/var/lib/vz/snippets state=directory
|
||||
|
||||
- name: Deploy Online hook
|
||||
copy: src=online_hook.pl dest=/var/lib/vz/snippets/online_hook.pl mode=755
|
||||
|
||||
- name: Ensure /etc/systemd/system/ exists
|
||||
file: path=/etc/systemd/system/ state=directory
|
||||
|
||||
- name: Disable pve-online-gre service
|
||||
service: name=pve-online-gre state=stopped enabled=False
|
||||
failed_when: False
|
||||
|
||||
- name: Remove pve-online-gre service unit
|
||||
file: path=/etc/systemd/system/pve-online-gre.service state=absent
|
||||
register: pve_gre_unit
|
||||
|
||||
- name: Reload systemd
|
||||
systemd: daemon_reload=True
|
||||
when: pve_gre_unit.changed
|
||||
|
Reference in New Issue
Block a user