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.

36 lines
832 B

---
- name: uptime_kuma | install | add_user | Ensure kuma group exists
group:
name: "{{ kuma__group }}"
state: present
- name: uptime_kuma | install | add_user | Add kuma user
user:
name: "{{ kuma__user }}"
group: "{{ kuma__group }}"
state: present
create_home: yes
shell: /bin/bash
become: yes
- name: uptime_kuma | install | Clone kuma repo
git:
repo: "{{ kuma__repo }}"
dest: "{{ kuma__path }}"
owner: "{{ kuma__user }}"
group: "{{ kuma__group }}"
become: yes
- name: uptime_kuma | install | Install package dependencies
npm:
path: "{{ kuma__path }}"
state: present
become_user: "{{ kuma__user }}"
- name: uptime_kuma | install | Install pm2
npm:
name: pm2
state: present
path: "{{ kuma__path }}"
become: yes
become_user: "{{ kuma__user }}"