1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_sway.git synced 2024-08-16 13:49:49 +02:00

Backup Config files before overwriting them

This commit is contained in:
L3D 2024-07-31 15:36:53 +02:00
parent 9396c9c605
commit 6c5da0c159
Signed by: l3d
GPG key ID: CD08445BFF4313D1
4 changed files with 7 additions and 1 deletions

View file

@ -55,6 +55,7 @@
mode: '0640'
owner: "{{ swayusr.user }}"
group: "{{ swayusr.user }}"
backup: true
loop: "{{ sway__user_list | flatten(1) }}"
loop_control:
label: "{{ swayusr.home }}/.swaylock/config"
@ -68,6 +69,7 @@
mode: '0640'
owner: "{{ swayusr.user }}"
group: "{{ swayusr.user }}"
backup: true
loop: "{{ sway__user_list | flatten(1) }}"
loop_control:
label: "{{ swayusr.home }}/.config/sway/config"

View file

@ -23,3 +23,4 @@
mode: '0640'
owner: "{{ swayusr.user }}"
group: "{{ swayusr.user }}"
backup: true

View file

@ -25,6 +25,7 @@
mode: '0750'
owner: "{{ swayusr.user }}"
group: "{{ swayusr.user }}"
backup: true
- name: Deploy waybar stylesheet
become: true
@ -34,6 +35,7 @@
mode: '0640'
owner: "{{ swayusr.user }}"
group: "{{ swayusr.user }}"
backup: true
- name: Deploy waybar config
become: true
@ -43,3 +45,4 @@
mode: '0640'
owner: "{{ swayusr.user }}"
group: "{{ swayusr.user }}"
backup: true

View file

@ -1,3 +1,3 @@
---
playbook_version_number: 10 # should be int
playbook_version_number: 11 # should be int
playbook_version_path: 'role-roles-ansible.sway.version'