publish time

This commit is contained in:
Bertrand Lanson 2023-03-27 23:00:21 +02:00
parent 665f55a592
commit f1155f1a7b
3 changed files with 20 additions and 2 deletions

18
.github/workflows/publish.yml vendored Normal file
View File

@ -0,0 +1,18 @@
---
name: publish
on:
push:
branches:
- main
jobs:
publish:
name: Publish to galaxy
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Publish
uses: ednxzu/galaxy-import-role@v1
with:
galaxy-api-key: ${{ secrets.GALAXY_API_TOKEN }}

View File

@ -9,7 +9,7 @@ def test_hosts_file(host):
assert etc_hosts.group == "root" assert etc_hosts.group == "root"
def test_ansible_user_group(host): def test_ansible_user_group(host):
"""Validate consul user and group.""" """Validate ansible user and group."""
ansible_group = host.group("ansible") ansible_group = host.group("ansible")
ansible_user = host.user("ansible") ansible_user = host.user("ansible")
assert ansible_group.exists assert ansible_group.exists

View File

@ -9,7 +9,7 @@ def test_hosts_file(host):
assert etc_hosts.group == "root" assert etc_hosts.group == "root"
def test_ansible_user_group(host): def test_ansible_user_group(host):
"""Validate consul user and group.""" """Validate ansible user and group."""
ansible_group = host.group("ansible") ansible_group = host.group("ansible")
ansible_user = host.user("ansible") ansible_user = host.user("ansible")
assert ansible_group.exists assert ansible_group.exists