Initial ansible onboard
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
---
|
||||
- name: Prepare
|
||||
hosts: all
|
||||
gather_facts: false
|
||||
tasks:
|
||||
- name: Update cache # noqa no-changed-when
|
||||
ansible.builtin.raw: apt update
|
||||
|
||||
- name: Install required packages # noqa no-changed-when
|
||||
ansible.builtin.raw: apt install -y python3 sudo openssh-server
|
||||
|
||||
- name: Create required directories # noqa no-changed-when
|
||||
ansible.builtin.file:
|
||||
path: var/run/sshd
|
||||
state: directory
|
||||
mode: "0755"
|
||||
owner: root
|
||||
group: root
|
||||
Reference in New Issue
Block a user