Compare commits

..

6 Commits

4 changed files with 77 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
docker_gpg_key_url_deb: https://download.docker.com/linux/debian/gpg
docker_deb_repo: https://download.docker.com/linux/debian

View File

@@ -0,0 +1,38 @@
---
- name: Install Debian prerequisites
ansible.builtin.package:
name:
- ca-certificates
- curl
- gnupg
state: present
update_cache: yes
when: ansible_os_family == 'Debian'
- name: Add Docker GPG key
get_url:
url: "{{ docker_gpg_key_url_deb }}"
dest: /etc/apt/keyrings/docker.asc
mode: "0644"
when: ansible_os_family == 'Debian'
- name: Add Docker APT repository
apt_repository:
repo: "deb [arch=amd64 signed-by=/etc/apt/keyrings/docker.asc] {{ docker_deb_repo }} {{ ansible_distribution_release }} stable"
filename: docker
state: present
when: ansible_os_family == 'Debian'
- name: Install Docker from source
ansible.builtin.apt:
pkg:
- docker-ce
- docker-ce-cli
- containerd.io
- docker-buildx-plugin
- docker-compose-plugin
state: present
force_apt_get: true
update_cache: yes
when: ansible_os_family == 'Debian'

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