Add SCAENAE role (git pull)

This commit is contained in:
2026-04-08 09:53:16 +02:00
parent 43a14b35c7
commit 28c65e58f2
2 changed files with 37 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
---
scaenae_repo_url: "https://git.electricmandarine.cloud/nicolo/scaenae"
yarn_exec: /home/nicolo/.nvm/versions/node/v22.21.1/bin/yarn

View File

@@ -0,0 +1,34 @@
---
- name: Ensure ACL is installed
ansible.builtin.package:
name:
- acl
state: present
update_cache: yes
- name: Ensure git is installed
ansible.builtin.package:
name:
- git
state: present
update_cache: yes
- name: Pull from manifest repo
ansible.builtin.git:
repo: "{{ scaenae_repo_url }}"
dest: /opt/aton/wapps/scaenae
update: true
clone: false
version: master
become: true
# To be changed!!
become_user: nicolo
- name: Install Yarn dependencies based on package.json
community.general.yarn:
path: /opt/aton/wapps/scaenae
executable: "{{ yarn_exec }}"
production: true
become: true
# To be changed!!
become_user: nicolo