This repository has been archived on 2023-12-29. You can view files and clone it, but cannot push or open issues or pull requests.
pi-ansible/roles/os_config/tasks/updates.yml

20 lines
504 B
YAML
Raw Normal View History

2022-12-23 14:54:29 +00:00
# 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