chore: Initial commit

This commit is contained in:
2023-01-12 13:49:11 +01:00
commit 1cbc2b9bcb
32 changed files with 720 additions and 0 deletions

23
tasks/config.yml Normal file
View File

@@ -0,0 +1,23 @@
---
- name: "FLAME | Set up directories"
ansible.builtin.file:
state: directory
path: "{{ item }}"
owner: "{{ ansible_effective_user_id }}"
group: "{{ ansible_effective_group_id }}"
mode: "0750"
with_items:
- "{{ flame_skeleton_paths }}"
tags:
- flame_configure
become: true
- name: "FLAME | Write configuration files"
ansible.builtin.template:
src: "{{ item }}.j2"
dest: "{{ flame_config_path | expanduser | realpath }}/{{ item }}"
mode: '0640'
loop:
- "docker-compose.yml"
tags:
- flame_configure

7
tasks/install.yml Normal file
View File

@@ -0,0 +1,7 @@
---
- name: "FLAME | Ensure flame is running"
community.docker.docker_compose:
project_src: "{{ flame_config_path | expanduser | realpath }}"
build: false
tags:
- flame_install

12
tasks/main.yml Normal file
View File

@@ -0,0 +1,12 @@
---
- name: "FLAME | Configure"
import_tasks: config.yml
tags:
- flame_configure
- name: "FLAME | Install"
import_tasks: install.yml
tags:
- flame_install