Add live btrfs snapshot updating role
This commit is contained in:
parent
60ad70a09f
commit
9ca982641a
7 changed files with 86 additions and 0 deletions
39
roles/autoupdate/tasks/main_lin.yml
Normal file
39
roles/autoupdate/tasks/main_lin.yml
Normal file
|
@ -0,0 +1,39 @@
|
|||
- name: Create frib_autoupdate systemd unit
|
||||
ansible.builtin.copy:
|
||||
src: frib_autoupdate.service
|
||||
dest: /etc/systemd/system/
|
||||
owner: root
|
||||
group: root
|
||||
|
||||
- name: Create frib_autoupdate timer
|
||||
ansible.builtin.copy:
|
||||
src: frib_autoupdate.timer
|
||||
dest: /etc/systemd/system/
|
||||
owner: root
|
||||
group: root
|
||||
|
||||
- name: Enable frib_autoupdate timer
|
||||
ansible.builtin.systemd_service:
|
||||
name: frib_autoupdate.timer
|
||||
state: started
|
||||
enabled: true
|
||||
|
||||
- name: Create rsync_ucilnicesmb_d systemd unit
|
||||
ansible.builtin.copy:
|
||||
src: rsync_ucilnicesmb_d.service
|
||||
dest: /etc/systemd/system/
|
||||
owner: root
|
||||
group: root
|
||||
|
||||
- name: Create rsync_ucilnicesmb_d timer
|
||||
ansible.builtin.copy:
|
||||
src: rsync_ucilnicesmb_d.timer
|
||||
dest: /etc/systemd/system/
|
||||
owner: root
|
||||
group: root
|
||||
|
||||
- name: Enable rsync_ucilnicesmb_d timer
|
||||
ansible.builtin.systemd_service:
|
||||
name: rsync_ucilnicesmb_d.timer
|
||||
state: started
|
||||
enabled: true
|
Loading…
Add table
Add a link
Reference in a new issue