Basic server setup
This commit is contained in:
parent
1c30ded1c3
commit
8622ec646f
24
provision-pinky/server.yml
Normal file
24
provision-pinky/server.yml
Normal file
@ -0,0 +1,24 @@
|
||||
# Setup basic server stuff
|
||||
- name: Basic Server Setup
|
||||
hosts: servers
|
||||
become_method: ansible.builtin.sudo
|
||||
tasks:
|
||||
- name: Install some packages
|
||||
become: true
|
||||
ansible.builtin.package:
|
||||
name:
|
||||
- docker
|
||||
- docker-compose
|
||||
- btrfs-progs
|
||||
state: present
|
||||
- name: Start and enable service docker
|
||||
ansible.builtin.service:
|
||||
name: docker
|
||||
state: started
|
||||
enabled: true
|
||||
- name: Add ralsina to docker group
|
||||
become: true
|
||||
ansible.builtin.user:
|
||||
name: ralsina
|
||||
groups: docker
|
||||
append: true
|
Loading…
Reference in New Issue
Block a user