hac/ansible/roles/authentik/tasks/dependencies.yml

64 lines
1.6 KiB
YAML
Raw Normal View History

2024-03-25 00:32:09 +01:00
---
- name: Install roles dependencies
ansible.builtin.apt:
2024-04-17 10:45:26 +02:00
install_recommends: false
2024-03-25 00:32:09 +01:00
name: "{{ item }}"
with_items:
- git
2024-04-17 10:45:26 +02:00
- build-essential
- pkg-config
- zlib1g-dev
2024-03-25 00:32:09 +01:00
- libpq-dev
- libxmlsec1-dev
- name: Add deadsnake ppa for python3.12
ansible.builtin.apt_repository:
2024-03-25 00:51:16 +01:00
repo: ppa:deadsnakes/ppa
2024-03-25 00:32:09 +01:00
- name: Install python3.12
ansible.builtin.apt:
name: "{{ item }}"
with_items:
- python3.12
- python3.12-distutils
- python3.12-venv
- python3.12-dev
- name: Add longsleep ppa for go 1.22
ansible.builtin.apt_repository:
2024-03-25 00:51:16 +01:00
repo: ppa:longsleep/golang-backports
2024-03-25 00:32:09 +01:00
- name: Install go 1.22
ansible.builtin.apt:
2024-03-25 00:51:16 +01:00
name: golang-go
2024-03-25 00:32:09 +01:00
- name: Download node GPG key
ansible.builtin.get_url:
2024-03-25 00:51:16 +01:00
url: https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key
dest: /usr/share/keyrings/node-archive-keyring.asc
2024-03-25 00:32:09 +01:00
mode: "0644"
validate_certs: true
checksum: sha512:36c77b2bddaea0523ab90962a38ebd3ee90c3d5cf17e525f02898aa8e7b14fd1026f6d659b99d931fe907e9142a98ff08075ebfc56f0f1e2001c6ba4791d3daa
changed_when: false
no_log: false
- name: Add nodesource repo for node
ansible.builtin.apt_repository:
2024-03-25 00:51:16 +01:00
repo: deb [arch=amd64 signed-by=/usr/share/keyrings/node-archive-keyring.asc] https://deb.nodesource.com/node_21.x nodistro main
2024-03-25 00:32:09 +01:00
- name: Install nodejs
ansible.builtin.apt:
name: nodejs
- name: Add authentik user
ansible.builtin.user:
2024-03-25 00:51:16 +01:00
name: authentik
2024-03-25 00:32:09 +01:00
system: true
2024-03-25 00:51:16 +01:00
2024-03-25 00:32:09 +01:00
- name: Create /opt/authentik
ansible.builtin.file:
path: /opt/authentik
state: directory
2024-03-25 00:51:16 +01:00
mode: "0755"
2024-03-25 00:32:09 +01:00
owner: authentik