CSC Ansible Playbooks
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
ansible-playbooks/roles/cleanup/tasks/main.yml

12 lines
302 B

---
- name: check for uncommitted changes
command: 'etckeeper unclean'
register: etckeeper_unclean
failed_when: false
- name: etckeeper commit
command: "{{ item }}"
with_items:
- 'etckeeper commit "Ansible (re-)build playbook run"'
when: etckeeper_unclean.rc == 0