First draft for ATON role (WIP)

This commit is contained in:
nicolo committed 2026-03-02 12:02:39 +01:00
1 parent 9893a4fdd1
commit 57020528c6
5 files changed
+86

No files matched your search

+31
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'