https://github.com/systemli/ansible-drift
Create mails showing your configuration drift from an ansible repo
https://github.com/systemli/ansible-drift
Last synced: 10 months ago
JSON representation
Create mails showing your configuration drift from an ansible repo
- Host: GitHub
- URL: https://github.com/systemli/ansible-drift
- Owner: systemli
- Created: 2018-07-31T08:21:48.000Z (almost 8 years ago)
- Default Branch: main
- Last Pushed: 2025-03-04T18:25:53.000Z (over 1 year ago)
- Last Synced: 2025-04-02T04:47:26.322Z (about 1 year ago)
- Language: Python
- Size: 55.7 KB
- Stars: 19
- Watchers: 5
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ansible-drift
[](https://github.com/systemli/ansible-drift/actions?query=workflow%3AIntegration)
[](https://galaxy.ansible.com/systemli/drift)
ansible-drift will send mails showing your configration drift from a specified playbook.
The script can be run interactively or via cron and update your git repo if necessary.
Each host in hostlist will be checked separately.
## Role Variables
```
# a bash compatible list of hosts you want to check
drift_hostlist: "{{ groups['all']|sort|join(' ') }}"
# send mails to
drift_receiver: root
# run as
drift_user: ansible
# define playbook to be regularly executed
# drift_playbook:
# define a git branch to pull
# drift_branch: "origin main"
drift_branch: ""
```
## Download
Download latest release with `ansible-galaxy`
```
$ ansible-galaxy install systemli.drift
```
## Example Playbook
```
- hosts: servers
roles:
- systemli.drift
vars:
drift_playbook: /home/ansible/ansible/site.yml
```
Testing & Development
---------------------
Tests
-----
For developing and testing the role we use Github Actions, Molecule, and Vagrant. On the local environment you can easily test the role with
Run local tests with:
```
molecule test
```
Requires Molecule, Vagrant and `python-vagrant` to be installed.For developing and testing the role we use Travis CI, Molecule and Vagrant. On the local environment you can easily test the role with
## License
GPL
## Author Information
https://www.systemli.org