Lint
This commit is contained in:
parent
2aad837ab4
commit
123276b3de
7
roles/os_config/handlers/main.yml
Normal file
7
roles/os_config/handlers/main.yml
Normal 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"
|
|
@ -42,3 +42,14 @@
|
||||||
(force_reboot is defined and force_reboot)
|
(force_reboot is defined and force_reboot)
|
||||||
tags:
|
tags:
|
||||||
- reboot
|
- 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
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
name: "{{ ssd_name }}"
|
name: "{{ ssd_name }}"
|
||||||
|
|
||||||
- name: Get list of mounted devices
|
- name: Get list of mounted devices
|
||||||
shell: mount
|
command: mount
|
||||||
register: mounted_devices
|
register: mounted_devices
|
||||||
|
|
||||||
- name: Create filesystems if they do not exist
|
- name: Create filesystems if they do not exist
|
||||||
|
|
|
@ -3,9 +3,6 @@
|
||||||
- name: Configure system base
|
- name: Configure system base
|
||||||
import_tasks: base.yml
|
import_tasks: base.yml
|
||||||
|
|
||||||
- name: Configure updates
|
|
||||||
import_tasks: updates.yml
|
|
||||||
|
|
||||||
- name: Configure firewall
|
- name: Configure firewall
|
||||||
import_tasks: firewall.yml
|
import_tasks: firewall.yml
|
||||||
|
|
||||||
|
|
|
@ -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
|
|
Reference in a new issue