2023-07-30 00:19:36 +00: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 19:28:48 +00:00
|
|
|
- name: Set up local user account
|
|
|
|
include_tasks:
|
|
|
|
file: setup-user.yml
|
|
|
|
apply:
|
|
|
|
become: true
|
|
|
|
|
2023-08-03 15:49:38 +00:00
|
|
|
- name: Install Deno
|
2023-08-11 19:28:48 +00:00
|
|
|
include_tasks:
|
2023-08-03 15:49:38 +00:00
|
|
|
file: deno.yml
|
|
|
|
apply:
|
|
|
|
become: true
|
2023-08-11 19:28:48 +00:00
|
|
|
when: strfry_policies_enabled
|
2023-08-03 15:49:38 +00:00
|
|
|
|
2023-07-30 01:14:08 +00:00
|
|
|
- name: Install build dependencies
|
2023-07-30 00:19:36 +00:00
|
|
|
ansible.builtin.package:
|
2023-07-30 01:14:08 +00:00
|
|
|
name: "{{ strfry_build_dependencies }}"
|
2023-07-30 00:19:36 +00:00
|
|
|
state: present
|
|
|
|
become: true
|
|
|
|
|
2023-08-11 19:28:48 +00:00
|
|
|
- name: Run build tasks as the ansible user (must not be root)
|
|
|
|
include_tasks: build.yml
|
2023-07-30 00:19:36 +00:00
|
|
|
|
2023-07-30 01:14:08 +00:00
|
|
|
- name: Proceeding with installation
|
2023-08-11 19:28:48 +00:00
|
|
|
include_tasks:
|
|
|
|
file: install.yml
|
|
|
|
apply:
|
|
|
|
become: true
|