ansible-roles/etc-git/tasks/repositories.yml
2023-11-29 09:59:57 +01:00

60 lines
1.3 KiB
YAML

---
- ansible.builtin.include: repository.yml
vars:
repository_path: "/etc"
gitignore_items:
- "aliases.db"
- "*.swp"
- "postfix/sa-blacklist.access"
- "postfix/*.db"
- "postfix/spamd.cidr"
- "evobackup/.keep-*"
- "letsencrypt/.certbot.lock"
tags:
- etc-git
- name: verify /usr/share/scripts presence
ansible.builtin.stat:
path: /usr/share/scripts
register: _usr_share_scripts
tags:
- etc-git
- ansible.builtin.include_role:
name: evolix/remount-usr
when:
- _usr_share_scripts.stat.exists and _usr_share_scripts.stat.isdir
- ansible.builtin.import_tasks: repository.yml
vars:
repository_path: "/usr/share/scripts"
gitignore_items: []
when:
- _usr_share_scripts.stat.isdir
- ansible_distribution_major_version is version('10', '>=')
tags:
- etc-git
- name: verify /var/chroot-bind/ presence
ansible.builtin.stat:
path: /var/chroot-bind
register: _var_chroot_bind
tags:
- etc-git
- debug:
var: _var_chroot_bind.stat
- ansible.builtin.import_tasks: repository.yml
vars:
repository_path: "/var/chroot-bind/etc/bind"
gitignore_items: []
when:
- _var_chroot_bind.stat.exists and _var_chroot_bind.stat.isdir
- ansible_distribution_major_version is version('9', '>=')
tags:
- etc-git