1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_restic.git synced 2024-12-11 23:41:32 +01:00

rename some tasks

This commit is contained in:
L3D 2022-01-07 20:13:57 +01:00
parent 25ee60fb5a
commit 770598ffca
Signed by: l3d
GPG key ID: CD08445BFF4313D1
3 changed files with 6 additions and 5 deletions

View file

@ -2,18 +2,18 @@
- name: add OS specific variables - name: add OS specific variables
ansible.builtin.include_vars: "{{ lookup('first_found', restic_os_variables) }}" ansible.builtin.include_vars: "{{ lookup('first_found', restic_os_variables) }}"
- name: perform versionscheck - name: perform optional versionscheck
ansible.builtin.include_tasks: 'versioncheck.yml' ansible.builtin.include_tasks: 'versioncheck.yml'
when: submodules_versioncheck|bool when: submodules_versioncheck | bool
- name: make sure restic is available - name: make sure restic is available
ansible.builtin.include_tasks: 'preperation.yml' ansible.builtin.include_tasks: 'preperation.yml'
- name: Install restic - name: make sure restic is installed
ansible.builtin.include_tasks: 'install.yml' ansible.builtin.include_tasks: 'install.yml'
when: not restic_executable.stat.exists or not restic_installed.stat.exists when: not restic_executable.stat.exists or not restic_installed.stat.exists
- name: Configure restic - name: initialize restic repo(s)
ansible.builtin.include_tasks: 'configure.yml' ansible.builtin.include_tasks: 'configure.yml'
- name: create backup script - name: create backup script

View file

@ -1,5 +1,6 @@
--- ---
- name: Ensure restic directories exist - name: Ensure restic directories exist
become: true
ansible.builtin.file: ansible.builtin.file:
state: 'directory' state: 'directory'
path: '{{ item }}' path: '{{ item }}'

View file

@ -10,5 +10,5 @@ restic_os_variables:
paths: paths:
- 'vars' - 'vars'
playbook_version_number: 20 # should be int playbook_version_number: 21 # should be int
playbook_version_path: 'do1jlr.restic.version' playbook_version_path: 'do1jlr.restic.version'