2023-07-29 17:19:36 -07:00
|
|
|
---
|
|
|
|
- name: Load a variable file based on the OS type.
|
|
|
|
include_vars: "{{ item }}"
|
|
|
|
with_first_found:
|
|
|
|
- "{{ ansible_distribution }}-{{ ansible_facts.distribution_major_version }}.yml"
|
|
|
|
- "{{ ansible_distribution }}.yml"
|
|
|
|
- "{{ ansible_os_family }}.yml"
|
|
|
|
|
2023-08-11 12:28:48 -07:00
|
|
|
- name: Set up local user account
|
|
|
|
include_tasks:
|
|
|
|
file: setup-user.yml
|
|
|
|
apply:
|
|
|
|
become: true
|
|
|
|
|
2023-08-03 08:49:38 -07:00
|
|
|
- name: Install Deno
|
2023-08-11 12:28:48 -07:00
|
|
|
include_tasks:
|
2023-08-03 08:49:38 -07:00
|
|
|
file: deno.yml
|
|
|
|
apply:
|
|
|
|
become: true
|
2023-08-11 12:28:48 -07:00
|
|
|
when: strfry_policies_enabled
|
2024-11-11 12:00:21 -08:00
|
|
|
tags: deno
|
2023-08-03 08:49:38 -07:00
|
|
|
|
2023-07-29 18:14:08 -07:00
|
|
|
- name: Install build dependencies
|
2023-07-29 17:19:36 -07:00
|
|
|
ansible.builtin.package:
|
2023-07-29 18:14:08 -07:00
|
|
|
name: "{{ strfry_build_dependencies }}"
|
2023-07-29 17:19:36 -07:00
|
|
|
state: present
|
|
|
|
become: true
|
|
|
|
|
2023-08-11 12:28:48 -07:00
|
|
|
- name: Run build tasks as the ansible user (must not be root)
|
|
|
|
include_tasks: build.yml
|
2023-07-29 17:19:36 -07:00
|
|
|
|
2023-07-29 18:14:08 -07:00
|
|
|
- name: Proceeding with installation
|
2023-08-11 12:28:48 -07:00
|
|
|
include_tasks:
|
|
|
|
file: install.yml
|
|
|
|
apply:
|
|
|
|
become: true
|