⚗️ Try import role in galaxy

pull/48/head
Emilien Mantel 2024-08-27 16:30:43 +02:00
parent f882afd7d9
commit 79b1c50295
6 changed files with 21 additions and 11 deletions

View File

@ -1,9 +1,10 @@
--- ---
warn_list: [] warn_list:
skip_list:
- role-name - role-name
- schema[meta]
skip_list: []
exclude_paths: exclude_paths:
- venv/ - venv/

View File

@ -11,7 +11,15 @@ jobs:
steps: steps:
- name: Fetch code - name: Fetch code
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: galaxy
uses: robertdebock/galaxy-action@1.2.0 - name: Set up Python 3.
with: uses: actions/setup-python@v5
galaxy_api_key: ${{ secrets.galaxy_api_key }}
- name: Install Ansible.
run: pip3 install ansible-core
- name: Import role to Galaxy.
run: >-
ansible-galaxy role import --api-key ${{ secrets.GALAXY_API_KEY }}
$(echo ${{ github.repository }} | cut -d/ -f1) $(echo ${{ github.repository }} | cut -d/ -f2)
--branch fix_galaxy

View File

@ -1,5 +1,6 @@
--- ---
galaxy_info: galaxy_info:
namespace: hanxhx
role_name: mysql role_name: mysql
author: Emilien Mantel author: Emilien Mantel
description: Install and configure MariaDB (and Galera Cluster) on Debian description: Install and configure MariaDB (and Galera Cluster) on Debian

View File

@ -6,4 +6,4 @@
tasks: tasks:
- name: Include role - name: Include role
ansible.builtin.include_role: ansible.builtin.include_role:
name: "hanxhx.mysql" name: "HanXHX.mysql"

View File

@ -7,7 +7,7 @@
tasks: tasks:
- name: Include role - name: Include role
ansible.builtin.include_role: ansible.builtin.include_role:
name: "hanxhx.mysql" name: "HanXHX.mysql"
- name: COPY | Deploy first dump - name: COPY | Deploy first dump
ansible.builtin.copy: ansible.builtin.copy:
@ -33,4 +33,4 @@
tasks: tasks:
- name: Include role - name: Include role
ansible.builtin.include_role: ansible.builtin.include_role:
name: "hanxhx.mysql" name: "HanXHX.mysql"

View File

@ -6,4 +6,4 @@
tasks: tasks:
- name: Include role - name: Include role
ansible.builtin.include_role: ansible.builtin.include_role:
name: "hanxhx.mysql" name: "HanXHX.mysql"