mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-23 23:04:04 +00:00
making it functional when you have a minimal host
This commit is contained in:
parent
c25b4cf9c8
commit
2e7231edd1
5 changed files with 37 additions and 7 deletions
|
@ -3,16 +3,17 @@
|
|||
|
||||
vars:
|
||||
pip_install_packages:
|
||||
- name: wheel
|
||||
- name: pip
|
||||
state: latest
|
||||
- name: setuptools
|
||||
- name: cffi
|
||||
- name: docker
|
||||
- name: dockerpty
|
||||
docker_compose_version: "v2.0.1"
|
||||
|
||||
tasks:
|
||||
- name: Ensure {{inventory_hostname}} is set as hostname
|
||||
hostname:
|
||||
name: "{{inventory_hostname}}"
|
||||
tags: ["hostname"]
|
||||
|
||||
roles:
|
||||
- {role: requirements, tags: ["docker", "requirements"]}
|
||||
- {role: geerlingguy.docker, tags: ["docker"]}
|
||||
- {role: geerlingguy.pip, tags: ["docker"]}
|
||||
- {role: nginx, tags: ["nginx"]}
|
||||
|
|
11
ansible/roles/requirements/tasks/main.yml
Normal file
11
ansible/roles/requirements/tasks/main.yml
Normal file
|
@ -0,0 +1,11 @@
|
|||
---
|
||||
- name: Ensure {{inventory_hostname}} is set as hostname
|
||||
hostname:
|
||||
name: "{{inventory_hostname}}"
|
||||
tags: ["hostname"]
|
||||
|
||||
- include_tasks: setup-RedHat.yml
|
||||
when: ansible_os_family == 'RedHat'
|
||||
|
||||
- include_tasks: setup-Debian.yml
|
||||
when: ansible_os_family == 'Debian'
|
9
ansible/roles/requirements/tasks/setup-Debian.yml
Normal file
9
ansible/roles/requirements/tasks/setup-Debian.yml
Normal file
|
@ -0,0 +1,9 @@
|
|||
- name: Ensure packages for some requirements are installed
|
||||
apt:
|
||||
pkg:
|
||||
- libffi-dev
|
||||
- libzbar-dev
|
||||
- libzbar0
|
||||
- python3-docopt
|
||||
update_cache: yes
|
||||
state: present
|
9
ansible/roles/requirements/tasks/setup-RedHat.yml
Normal file
9
ansible/roles/requirements/tasks/setup-RedHat.yml
Normal file
|
@ -0,0 +1,9 @@
|
|||
- name: Ensure packages for some requirements are installed
|
||||
dnf:
|
||||
name:
|
||||
- libffi-devel
|
||||
- zbar-devel
|
||||
- zbar
|
||||
- python3-docopt
|
||||
update_cache: yes
|
||||
state: present
|
Loading…
Reference in a new issue