Replaced " with '
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
---
|
||||
- name: Check if backup directory exists
|
||||
stat:
|
||||
path: "{{ backup_path }}"
|
||||
path: '{{ backup_path }}'
|
||||
register: backup_dir_stat
|
||||
|
||||
- name: Check if backup directory is not empty
|
||||
find:
|
||||
paths: "{{ backup_path }}"
|
||||
paths: '{{ backup_path }}'
|
||||
file_type: any
|
||||
recurse: false
|
||||
when: backup_dir_stat.stat.exists and backup_dir_stat.stat.isdir
|
||||
@@ -15,8 +15,8 @@
|
||||
|
||||
- name: Check if each required file exists
|
||||
stat:
|
||||
path: "{{ dir_path }}/{{ item }}"
|
||||
loop: "{{ backup_required_files }}"
|
||||
path: '{{ dir_path }}/{{ item }}'
|
||||
loop: '{{ backup_required_files }}'
|
||||
register: required_file_stats
|
||||
|
||||
- name: Determine missing files
|
||||
@@ -52,5 +52,5 @@
|
||||
|
||||
- name: Debug - Show final result
|
||||
debug:
|
||||
msg: "Backup directory exists and is not empty."
|
||||
msg: 'Backup directory exists and is not empty.'
|
||||
when: backup_dir_valid | default(false)
|
||||
|
||||
Reference in New Issue
Block a user