Some checks failed
CI / lint-and-test (pull_request) Failing after 58s
CI / ansible-validation (pull_request) Failing after 1m58s
CI / secret-scanning (pull_request) Successful in 58s
CI / dependency-scan (pull_request) Successful in 1m1s
CI / sast-scan (pull_request) Successful in 1m55s
CI / license-check (pull_request) Successful in 58s
CI / vault-check (pull_request) Failing after 1m55s
CI / playbook-test (pull_request) Successful in 1m57s
CI / container-scan (pull_request) Successful in 1m27s
CI / sonar-analysis (pull_request) Successful in 2m4s
CI / workflow-summary (pull_request) Successful in 55s
- Fix UFW firewall to allow outbound traffic (was blocking all outbound) - Add HOST parameter support to shell Makefile target - Fix all ansible-lint errors (trailing spaces, missing newlines, document starts) - Add changed_when: false to check commands - Fix variable naming (vault_devGPU -> vault_devgpu) - Update .ansible-lint config to exclude .gitea/ and allow strategy: free - Fix NodeSource repository GPG key handling in shell playbook - Add missing document starts to host_vars files - Clean up empty lines in datascience role files
29 lines
880 B
YAML
29 lines
880 B
YAML
---
|
|
- name: Timeshift operations
|
|
hosts: all
|
|
become: true
|
|
gather_facts: false
|
|
|
|
tasks:
|
|
- name: List Timeshift snapshots
|
|
ansible.builtin.command: timeshift --list
|
|
register: timeshift_list_result
|
|
when: timeshift_action == "list"
|
|
changed_when: false
|
|
|
|
- name: Display snapshots
|
|
ansible.builtin.debug:
|
|
msg: "{{ timeshift_list_result.stdout_lines }}"
|
|
when: timeshift_action == "list"
|
|
|
|
- name: Restore from snapshot
|
|
ansible.builtin.command: timeshift --restore --snapshot "{{ timeshift_snapshot }}" --scripted # noqa command-instead-of-module
|
|
when: timeshift_action == "restore"
|
|
register: timeshift_restore_result
|
|
changed_when: false
|
|
|
|
- name: Display restore result
|
|
ansible.builtin.debug:
|
|
msg: "{{ timeshift_restore_result.stdout_lines }}"
|
|
when: timeshift_action == "restore"
|