Fixing cubox and base services
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user