This commit is contained in:
Corbin Bartsch 2022-10-09 20:24:59 -04:00 committed by Corbin Bartsch
parent 6c4ccbaab1
commit e98f0e954e
Signed by: coredotbin
GPG Key ID: B03E030E4322E9D5
6 changed files with 33 additions and 10 deletions

10
.ansible-lint Normal file
View File

@ -0,0 +1,10 @@
---
exclude_paths:
- .github/
- molecule/
warn_list:
- internal-error
# vi: ft=yaml

View File

@ -1,3 +1,4 @@
---
name: Release
on:
workflow_dispatch:
@ -9,7 +10,6 @@ env:
GALAXY_USERNAME: IronicBadger
jobs:
release:
name: Release
runs-on: ubuntu-latest
@ -29,4 +29,5 @@ jobs:
- name: Trigger a new import on Galaxy.
run: >-
ansible-galaxy role import --api-key ${{ secrets.GALAXY_API_KEY }}
$(echo ${{ env.GALAXY_USERNAME }}) $(echo ${{ github.repository }} | cut -d/ -f2)
$(echo ${{ env.GALAXY_USERNAME }})
$(echo ${{ github.repository }} | cut -d/ -f2)

8
.yamllint Normal file
View File

@ -0,0 +1,8 @@
---
extends: default
ignore: |
.github/
# vi: ft=yaml

View File

@ -1,4 +1,4 @@
---
docker_compose_generator_output_path: "~"
docker_compose_generator_uid: "1000"
docker_compose_generator_gid: "1000"
docker_compose_generator_gid: "1000"

View File

@ -1,9 +1,11 @@
---
galaxy_info:
role_name: docker_compose_generator
namespace: ironicbadger
author: Alex Kretzschmar
description: Create a docker-compose.yml file
issue_tracker_url: https://github.com/ironicbadger/ansible-role-create-users/issues
issue_tracker_url: "https://github.com/ironicbadger/\
ansible-role-create-users/issues"
license: GPLv2
min_ansible_version: 2.4
platforms:

View File

@ -1,12 +1,14 @@
---
- name: ensure destination for compose file exists
file:
- name: Ensure destination for compose file exists
ansible.builtin.file:
path: "{{ docker_compose_generator_output_path }}"
state: directory
mode: 0755
- name: write docker-compose file
template:
src: ../templates/docker-compose.yml.j2
- name: Write docker-compose file
ansible.builtin.template:
src: docker-compose.yml.j2
dest: "{{ docker_compose_generator_output_path }}/docker-compose.yml"
owner: "{{ docker_compose_generator_uid }}"
group: "{{ docker_compose_generator_gid }}"
group: "{{ docker_compose_generator_gid }}"
mode: 0644