WIP: ansible_pull(role): add failure notifications
Some checks failed
/ Ansible Lint (push) Failing after 49s
Some checks failed
/ Ansible Lint (push) Failing after 49s
This commit is contained in:
parent
17fd71f079
commit
e616c55edb
8 changed files with 51 additions and 3 deletions
|
@ -15,6 +15,15 @@
|
|||
virtualenv: /usr/local/lib/ansible_pull_venv
|
||||
become: true
|
||||
|
||||
- name: ensure ansible-pull-failure-notify script installation exists
|
||||
ansible.builtin.template:
|
||||
src: ansible-pull-failure-notify.sh.j2
|
||||
dest: /usr/local/sbin/ansible-pull-failure-notify.sh
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0755"
|
||||
become: true
|
||||
|
||||
- name: ensure secrets directory exists
|
||||
ansible.builtin.file:
|
||||
path: /etc/ansible_pull_secrets
|
||||
|
@ -33,14 +42,17 @@
|
|||
group: "{{ ansible_pull__user }}"
|
||||
become: true
|
||||
|
||||
- name: ensure systemd service exists
|
||||
- name: ensure systemd services exists
|
||||
ansible.builtin.template:
|
||||
src: ansible-pull.service.j2
|
||||
dest: /etc/systemd/system/ansible-pull.service
|
||||
src: "{{ item }}.j2"
|
||||
dest: "/etc/systemd/system/{{ item }}"
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0644"
|
||||
become: true
|
||||
loop:
|
||||
- ansible-pull.service
|
||||
- ansible-pull-failure-notify.service
|
||||
notify:
|
||||
- systemd daemon reload
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue