First draft for ATON role (WIP)

This commit is contained in:
2026-03-02 12:02:34 +01:00
parent 9893a4fdd1
commit 57020528c6
5 changed files with 86 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
---
- name: Install Debian prerequisites
ansible.builtin.package:
name:
- ca-certificates
- curl
- gnupg
state: present
update_cache: yes
when: ansible_os_family == 'Debian'
- name: Add NodeSource GPG key
get_url:
url: "{{ nodesource_gpg_key_url }}"
dest: /usr/share/keyrings/nodesource.gpg
mode: "0644"
when: ansible_os_family == 'Debian'
- name: Add NodeSource APT repository
apt_repository:
repo: "deb [arch=amd64 signed-by=/usr/share/keyrings/nodesource.gpg] {{ nodesource_repo_base }} nodistro main"
filename: nodesource
state: present
when: ansible_os_family == 'Debian'
- name: Install NodeJS from NodeSource
ansible.builtin.package:
name: nodejs
state: present
update_cache: yes
when: ansible_os_family == 'Debian'