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.1 KiB

---
- name: uptime_kuma | dependencies | Install app dependencies
apt:
name: "{{ item }}"
state: present
update_cache: yes
loop:
- curl
- git
become: yes
- block:
3 years ago
- name: uptime_kuma | dependencies | nodejs | add NodeSource apt key
apt_key:
url: "https://deb.nodesource.com/gpgkey/nodesource.gpg.key"
state: present
become: yes
3 years ago
- name: uptime_kuma | dependencies | 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
3 years ago
- name: uptime_kuma | dependencies | 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
3 years ago
- name: uptime_kuma | dependencies | nodejs | Install NodeJS
apt:
name: nodejs
state: latest
update-cache: yes
become: yes
when: kuma__install_nodejs | bool