This commit is contained in:
Sam A. 2022-12-26 00:26:01 +01:00
parent 2aad837ab4
commit 123276b3de
Signed by: samsapti
GPG key ID: CBBBE7371E81C4EA
5 changed files with 19 additions and 23 deletions

View file

@ -0,0 +1,7 @@
# vim: ft=yaml.ansible
---
- name: Install apt-update-push
shell:
cmd: "echo 'topic={{ secrets.ntfy_topic }}' > .env && ./install.sh"
stdin: 20
chdir: "/home/{{ ansible_user }}/apt-update-push"

View file

@ -42,3 +42,14 @@
(force_reboot is defined and force_reboot)
tags:
- reboot
- 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
notify: Install apt-update-push

View file

@ -14,7 +14,7 @@
name: "{{ ssd_name }}"
- name: Get list of mounted devices
shell: mount
command: mount
register: mounted_devices
- name: Create filesystems if they do not exist

View file

@ -3,9 +3,6 @@
- name: Configure system base
import_tasks: base.yml
- name: Configure updates
import_tasks: updates.yml
- name: Configure firewall
import_tasks: firewall.yml

View file

@ -1,19 +0,0 @@
# 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.changed