Add 'roles/ensure_git/' from commit '11af323537d2fe80eab19c2aab96c769ef1da810'

git-subtree-dir: roles/ensure_git
git-subtree-mainline: e73fa24b9e
git-subtree-split: 11af323537
This commit is contained in:
2026-05-10 21:34:53 -05:00
33 changed files with 701 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
---
# handlers file for ensure_git
- name: 'ensure_git.package_facts'
ansible.builtin.package_facts:
- name: 'ensure_git.service_facts'
ansible.builtin.service_facts:
- name: 'ensure_git.service_reload'
when:
- ansible_facts["system"] == 'Linux'
- ansible_facts["service_mgr"] == 'systemd'
- ensure_git is defined
ansible.builtin.systemd:
daemon_reload: 'yes'
- name: 'ensure_git.service_restart'
when:
- ansible_facts["system"] == 'Linux'
- ensure_git is defined
- ensure_git.service_list is defined
- ensure_git.service_list is iterable
- item.state == 'started'
ansible.builtin.service:
enabled: '{{ item.enabled }}'
name: '{{ item.name }}'
state: 'restarted'
loop: '{{ ensure_git.service_list }}'
loop_control:
label: '{{ item.name }} will be restarted'
...