20 lines
504 B
YAML
20 lines
504 B
YAML
|
# vim: ft=yaml.ansible
|
||
|
---
|
||
|
- name: Clone apt-update-push
|
||
|
git:
|
||
|
dest: "/home/{{ ansible_user }}/apt-update-push"
|
||
|
repo: https://github.com/samsapti/apt-update-push.git
|
||
|
clone: true
|
||
|
update: true
|
||
|
single_branch: true
|
||
|
depth: 1
|
||
|
become: false
|
||
|
register: clone
|
||
|
|
||
|
- name: Install apt-update-push
|
||
|
shell:
|
||
|
cmd: "echo 'topic={{ secrets.ntfy_topic }}' > .env && ./install.sh"
|
||
|
stdin: 20
|
||
|
chdir: "/home/{{ ansible_user }}/apt-update-push"
|
||
|
when: clone is defined and clone.changed
|