https://github.com/devture/com.devture.ansible.role.vars_preserver
An Ansible role which preserves (backs up) the `vars.yml` file for a given host to the server.
https://github.com/devture/com.devture.ansible.role.vars_preserver
Last synced: 2 months ago
JSON representation
An Ansible role which preserves (backs up) the `vars.yml` file for a given host to the server.
- Host: GitHub
- URL: https://github.com/devture/com.devture.ansible.role.vars_preserver
- Owner: devture
- Created: 2022-10-21T11:08:37.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-11-03T07:23:44.000Z (over 2 years ago)
- Last Synced: 2024-12-29T11:16:20.826Z (4 months ago)
- Language: Makefile
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# `vars.yml`-preserver Ansible role
This is an Ansible role which preserves (backs up) the `vars.yml` file for a given host to the server.
## Usage
Example playbook:
```yaml
- hosts: servers
roles:
- when: devture_vars_preserver_enabled | bool
role: galaxy/com.devture.ansible.role.vars_preserver
# Uncomment to make it run on some tags only, not always
# tags:
# - setup-all
```Example configuration (see `defaults/main.yml` for more):
```yaml
devture_vars_preserver_dst: /path/on-server/to/vars.yml
devture_vars_preserver_uid: 1000
devture_vars_preserver_gid: 1000
```