Skip to content
Snippets Groups Projects
Commit bc03a4dc authored by Thomas Schneider's avatar Thomas Schneider
Browse files

Don’t track Proxmox cluster config w/ etckeeper

parent a493e1f9
No related branches found
No related tags found
1 merge request!4Don’t track Proxmox cluster config w/ etckeeper
Pipeline #1790 passed
......@@ -18,3 +18,10 @@
- name: gather minimal standard facts once again
setup: gather_subset=min
- name: Remove pve directory from etckeeper repo
# 303 wants us to use the ansible git module, but it doesn’t
# provide that feature
shell: # noqa 303
chdir: /etc
cmd: git rm --cached -r -- pve && git commit -m "'Remove pve directory'"
......@@ -20,6 +20,24 @@
- lsb
- meta: flush_handlers
- name: Check for Proxmox
stat:
path: /etc/pve
register: pve_present
tags:
- etckeeper
- name: Ignore Proxmox config in etckeeper
lineinfile:
path: /etc/.gitignore
line: /pve
create: true
when: etckeeper and pve_present
notify:
- Remove pve directory from etckeeper repo
tags:
- etckeeper
- name: Install etckeeper
apt:
name: etckeeper
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment