Ansible Galaxy Role: Configuration management to install Uptime Kuma
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.0 KiB

---
- name: uptime_kuma | dependencies | Install app dependencies
apt:
name: "{{ item }}"
state: present
update_cache: yes
loop:
- curl
- git
become: yes
- block:
- name: uptime_kuma | nodejs | add NodeSource apt key
apt_key:
url: "https://deb.nodesource.com/gpgkey/nodesource.gpg.key"
state: present
become: yes
- name: uptime_kuma | nodejs | Add NodeSource repository
apt_repository:
repo: deb https://deb.nodesource.com/node_{{ nodejs__version }} {{ ansible_distribution_release }} main
state: present
filename: 'nodesource'
become: yes
- name: uptime_kuma | nodejs | Add NodeSource src repository
apt_repository:
repo: deb-src https://deb.nodesource.com/node_{{ nodejs__version }} {{ ansible_distribution_release }} main
state: present
filename: 'nodesource'
become: yes
- name: uptime_kuma | nodejs | Install NodeJS
apt:
name: nodejs
state: latest
update-cache: yes
become: yes
when: kuma__install_nodejs == true