Fixing cubox and base services

This commit is contained in:
2025-03-23 17:41:42 -04:00
parent d94280256c
commit dc968384b5
15 changed files with 58 additions and 22 deletions

View File

@@ -2,6 +2,7 @@
- name: bootstrap
hosts: managed
# remote_user: ansible
# remote_user: root
gather_facts: false
# become: true
@@ -24,6 +25,15 @@
- name: ping
ansible.builtin.ping:
- name: Ensure group "ssh" exists
become: true
ansible.builtin.group:
name: "{{item}}"
state: present
with_items:
- ssh
- _ssh
- name: Add the user 'ansible'
become: true
ansible.builtin.user:
@@ -35,6 +45,8 @@
# uid: "1001"
groups:
- sudo
- ssh
- _ssh
- name: Add the authorized key for 'ansible'
become: true
@@ -80,6 +92,8 @@
# uid: "1000"
groups:
- sudo
- ssh
- _ssh
- name: Add the authorized key for 'richard'
become: true