This commit is contained in:
Gabenov Stanislav
2026-02-09 20:12:53 +03:00
commit 0b058c35de
17 changed files with 208 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
---
- import_tasks: packages.yml
- import_tasks: users.yml
- import_tasks: sudo.yml
- import_tasks: ssh.yml

View File

@@ -0,0 +1,10 @@
---
- name: Install base packages
ansible.builtin.apt:
name:
- vim
- curl
- git
- htop
state: present
update_cache: true

5
roles/base/tasks/ssh.yml Normal file
View File

@@ -0,0 +1,5 @@
---
- name: Add authorized key
ansible.posix.authorized_key:
user: stanito
key: "{{ lookup('file', 'id_rsa.pub') }}"

View File

View File

@@ -0,0 +1,7 @@
---
- name: Create user
ansible.builtin.user:
name: stanito
groups: sudo
shell: /bin/bash
create_home: true