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:
parent
9396c9c605
commit
6c5da0c159
4 changed files with 7 additions and 1 deletions
|
@ -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"
|
||||
|
|
|
@ -23,3 +23,4 @@
|
|||
mode: '0640'
|
||||
owner: "{{ swayusr.user }}"
|
||||
group: "{{ swayusr.user }}"
|
||||
backup: true
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue