Tons of updates including erpnext, fusionauth, kong, elasticsearch, postgres-12, opennebula-5.10...
This commit is contained in:
82
app/konga-0.14.7/tasks/main.yml
Normal file
82
app/konga-0.14.7/tasks/main.yml
Normal file
@@ -0,0 +1,82 @@
|
||||
---
|
||||
# Install build-essential for konga
|
||||
# Required during npm install phase (needs make, g++, etc...)
|
||||
- name: Installing build-essential for konga
|
||||
apt:
|
||||
update_cache: yes
|
||||
state: present
|
||||
name:
|
||||
- build-essential
|
||||
|
||||
# Create /var/www folder
|
||||
- name: Creating /var/www directory
|
||||
file:
|
||||
path: /var/www
|
||||
state: directory
|
||||
owner: toor
|
||||
group: toor
|
||||
mode: '0755'
|
||||
|
||||
# Create /var/www/konga folder
|
||||
- name: Creating /var/www/konga directory
|
||||
file:
|
||||
path: /var/www/konga
|
||||
state: directory
|
||||
owner: toor
|
||||
group: toor
|
||||
mode: '0755'
|
||||
|
||||
# Git clone https://github.com/pantsel/konga.git
|
||||
- name: Git clone https://github.com/pantsel/konga.git tag 0.14.7
|
||||
git:
|
||||
clone: yes
|
||||
force: yes
|
||||
repo: https://github.com/pantsel/konga.git
|
||||
dest: /var/www/konga
|
||||
version: 0.14.7
|
||||
depth: 1
|
||||
|
||||
# Ensure konga git contents owned by toor
|
||||
- name: Ensuring konga git contents owned by toor
|
||||
file:
|
||||
path: /var/www/konga
|
||||
state: directory
|
||||
owner: toor
|
||||
group: toor
|
||||
recurse: yes
|
||||
|
||||
# Delete package-lock.json
|
||||
- name: Deleting konga package-lock.json
|
||||
file:
|
||||
path: /var/www/konga/package-lock.json
|
||||
state: absent
|
||||
|
||||
# Install konga npm packages
|
||||
- name: Installing konga NPM packages
|
||||
npm:
|
||||
path: /var/www/konga
|
||||
|
||||
# Install konga bower dependencies
|
||||
- name: Installing konga bower dependencies
|
||||
shell: npm run bower-deps
|
||||
args:
|
||||
chdir: /var/www/konga
|
||||
|
||||
# Ensure konga git contents owned by toor
|
||||
- name: Ensuring konga git contents owned by toor
|
||||
file:
|
||||
path: /var/www/konga
|
||||
state: directory
|
||||
owner: toor
|
||||
group: toor
|
||||
recurse: yes
|
||||
|
||||
# Copy konga systemd unit file
|
||||
- name: Copying konga.service systemd unit file
|
||||
copy:
|
||||
src: konga.service
|
||||
dest: "/etc/systemd/system/konga.service"
|
||||
owner: root
|
||||
group: root
|
||||
mode: '0644' # -rw-r--r--
|
||||
#NOnotify: reload konga # NO because you need to copy your own .env first
|
||||
Reference in New Issue
Block a user