ansible-role-strfry/tasks/main.yml

36 lines
851 B
YAML
Raw Normal View History

---
- 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"
- 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
include_tasks:
2023-08-03 15:49:38 +00:00
file: deno.yml
apply:
become: true
when: strfry_policies_enabled
2024-11-11 20:00:21 +00:00
tags: deno
2023-08-03 15:49:38 +00:00
- name: Install build dependencies
ansible.builtin.package:
name: "{{ strfry_build_dependencies }}"
state: present
become: true
- name: Run build tasks as the ansible user (must not be root)
include_tasks: build.yml
- name: Proceeding with installation
include_tasks:
file: install.yml
apply:
become: true