added audiopen-nextcloud setup

This commit is contained in:
nick committed 2026-06-25 11:53:14 -07:00
1 parent 7831c59c8c
commit cb1bd6072e
1 file changed
+46
+46
View File
@@ -0,0 +1,46 @@
---
- name: Set up audiopen LXC
hosts: audiopen
become: yes
tasks:
- name: default_packages
ansible.builtin.include_tasks: ../../templates/default_packages.yml
- name: create_user
ansible.builtin.include_tasks: ../../templates/create_user.yml
vars:
username: nick
github_user: Chewbaccalakis
- name: Install Node.js and npm
ansible.builtin.apt:
name:
- nodejs
- npm
state: present
update_cache: yes
- name: Clone audiopen-nextcloud repo
ansible.builtin.git:
repo: https://github.com/Chewbaccalakis/audiopen-nextcloud.git
dest: /opt/audiopen-nextcloud
version: main
update: yes
- name: npm install
community.general.npm:
path: /opt/audiopen-nextcloud
- name: Install audiopen-nextcloud systemd service
ansible.builtin.copy:
src: /opt/audiopen-nextcloud/audiopen-nextcloud.service
dest: /etc/systemd/system/audiopen-nextcloud.service
remote_src: yes
force: yes
- name: Enable and start audiopen-nextcloud
ansible.builtin.systemd:
name: audiopen-nextcloud
daemon_reload: yes
enabled: yes
state: started