Installs and configures timeshift-autosnap-apt for the user.
The following collections are required:
- community.general
They can be installed by running ansible-galaxy collection install $COLLECTION
.
To include this role in your requirements.yml
file, add the following list item:
---
roles:
- name: whalej84.timeshift-autosnap-apt
src: https://github.com/WhaleJ84/ansible-role-timeshift-autosnap-apt.git
scm: git
- name: whalej84.timeshift
src: https://github.com/WhaleJ84/ansible-role-timeshift.git
scm: git
collections:
- community.general
The system package git
is also required.
Variable | Default | Description |
---|---|---|
autosnap_destdir | "" | Makefile files prefix |
autosnap_lib_dir | "" | Makefile config prefix |
autosnap_repo_dir | "/$USER/opt" | Git repo destinaiton |
As the package is an addition to the timeshift program, said software is required. It is included in the requirements.yml
output above.
- whalej84.timeshift
This example playbook shows how I would use this role, with custom variables to suit my needs.
---
- hosts: localhost
vars:
# 'repo_dir' shared with:
# - timeshift-autosnap-apt
repo_dir: "{{ ansible_user_dir }}/Downloads/repositories"
roles:
- role: whalej84.timeshift-autosnap-apt
vars:
autosnap_repo_dir: "{{ repo_dir }}"
snapshot_boot: "false"
update_grub: "false"
snapshot_description: "{created before call to APT}"
tags: [ timeshift-autosnap-apt ]