Replace manual upsert logic with SQLite native upsert in Docker CRUD repositories, enhance Ansible backup playbook with better error handling and file permissions, add favicon endpoint, and improve playbook editor UI with syntax highlighting, lint integration, quality badges, and enhanced code editing features
Tests / Backend Tests (Python) (3.10) (push) Has been cancelled
Tests / Backend Tests (Python) (3.11) (push) Has been cancelled
Tests / Backend Tests (Python) (3.12) (push) Has been cancelled
Tests / Frontend Tests (JS) (push) Has been cancelled
Tests / Integration Tests (push) Has been cancelled
Tests / All Tests Passed (push) Has been cancelled
Tests / Backend Tests (Python) (3.10) (push) Has been cancelled
Tests / Backend Tests (Python) (3.11) (push) Has been cancelled
Tests / Backend Tests (Python) (3.12) (push) Has been cancelled
Tests / Frontend Tests (JS) (push) Has been cancelled
Tests / Integration Tests (push) Has been cancelled
Tests / All Tests Passed (push) Has been cancelled
This commit is contained in:
@@ -31,11 +31,25 @@
|
||||
mode: '0700'
|
||||
|
||||
- name: Backup /etc essential configuration files
|
||||
ansible.builtin.archive:
|
||||
path: "{{ backup_files_common }}"
|
||||
dest: "{{ backup_dir }}/{{ hostname }}/etc_backup_{{ timestamp }}.tar.gz"
|
||||
format: gz
|
||||
ignore_errors: true
|
||||
community.general.archive:
|
||||
path: "{{ backup_files_common }}"
|
||||
dest: "{{ backup_dir }}/{{ hostname }}/etc_backup_{{ timestamp }}.tar.gz"
|
||||
format: gz
|
||||
mode: '0644'
|
||||
register: etc_backup_archive
|
||||
failed_when: >-
|
||||
etc_backup_archive is failed and
|
||||
(
|
||||
'No such file or directory' not in (etc_backup_archive.msg | default('')) and
|
||||
'not found' not in (etc_backup_archive.msg | default(''))
|
||||
)
|
||||
|
||||
- name: Ensure permissions on /etc backup archive
|
||||
ansible.builtin.file:
|
||||
path: "{{ backup_dir }}/{{ hostname }}/etc_backup_{{ timestamp }}.tar.gz"
|
||||
state: file
|
||||
mode: '0600'
|
||||
when: etc_backup_archive is not failed
|
||||
|
||||
- name: Get root crontab
|
||||
ansible.builtin.command: crontab -l
|
||||
@@ -45,9 +59,9 @@
|
||||
|
||||
- name: Save root crontab to file
|
||||
ansible.builtin.copy:
|
||||
dest: "{{ backup_dir }}/{{ hostname }}/crontab_{{ timestamp }}.txt"
|
||||
content: "{{ root_crontab.stdout | default('No crontab') }}"
|
||||
mode: '0600'
|
||||
dest: "{{ backup_dir }}/{{ hostname }}/crontab_{{ timestamp }}.txt"
|
||||
content: "{{ root_crontab.stdout | default('No crontab') }}"
|
||||
mode: '0600'
|
||||
|
||||
- name: Export installed packages list
|
||||
ansible.builtin.shell: |
|
||||
|
||||
Reference in New Issue
Block a user