mirror of
https://github.com/phfroidmont/self-hosting.git
synced 2025-12-25 13:46:59 +01:00
Split into roles and add parameters
This commit is contained in:
parent
13b5d45998
commit
7d8e261f6d
19 changed files with 93 additions and 37 deletions
13
roles/base-docker/tasks/main.yml
Normal file
13
roles/base-docker/tasks/main.yml
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
---
|
||||
- name: Install docker packages
|
||||
package: name={{item}} state=present update_cache=yes
|
||||
with_items:
|
||||
- docker
|
||||
- docker-compose
|
||||
- name: Enable and start docker service
|
||||
systemd:
|
||||
name: docker.service
|
||||
state: started
|
||||
enabled: True
|
||||
- name: Create images config folder
|
||||
file: dest={{docker_compose_files_folder}} state=directory
|
||||
Loading…
Add table
Add a link
Reference in a new issue