chore: Initial commit
This commit is contained in:
23
tasks/config.yml
Normal file
23
tasks/config.yml
Normal 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
7
tasks/install.yml
Normal 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
12
tasks/main.yml
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user