mirror of
https://github.com/roles-ansible/ansible_role_avahi_daemon.git
synced 2024-08-16 15:09:48 +02:00
Merge pull request #11 from roles-ansible/l
Update avtions and lint template
This commit is contained in:
commit
bff9f6ecc7
6 changed files with 62 additions and 37 deletions
7
.github/workflows/ansible-linting-check.yml
vendored
7
.github/workflows/ansible-linting-check.yml
vendored
|
@ -10,14 +10,13 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: 'checkout git repo'
|
- name: 'Checkout git repo'
|
||||||
uses: actions/checkout@v4.1.0
|
uses: actions/checkout@v4.1.1
|
||||||
with:
|
with:
|
||||||
lfs: true
|
|
||||||
submodules: true
|
submodules: true
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Run ansible-lint
|
- name: Run ansible-lint
|
||||||
uses: ansible-actions/ansible-lint-action@v0.0.3
|
uses: ansible-actions/ansible-lint-action@v1.0.1
|
||||||
with:
|
with:
|
||||||
target: "./"
|
target: "./"
|
||||||
|
|
16
.github/workflows/galaxy.yml
vendored
16
.github/workflows/galaxy.yml
vendored
|
@ -1,20 +1,24 @@
|
||||||
---
|
---
|
||||||
name: Galaxy release
|
name: Galaxy-NG Roles Import
|
||||||
|
|
||||||
# yamllint disable-line rule:truthy
|
# yamllint disable-line rule:truthy
|
||||||
on:
|
on:
|
||||||
push:
|
|
||||||
branches: ['main']
|
|
||||||
release:
|
release:
|
||||||
types: ['created']
|
types: ['created']
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
name: Galaxy Role Importer
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: checkout
|
- name: 'Checkout git repo'
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: galaxy
|
with:
|
||||||
uses: robertdebock/galaxy-action@1.2.1
|
submodules: true
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: 'Release on galaxy'
|
||||||
|
uses: ansible-actions/ansible-galaxy-action@v1.0.1
|
||||||
with:
|
with:
|
||||||
galaxy_api_key: ${{ secrets.galaxy_api_key }}
|
galaxy_api_key: ${{ secrets.galaxy_api_key }}
|
||||||
|
|
22
.github/workflows/j2lint-check.yml
vendored
Normal file
22
.github/workflows/j2lint-check.yml
vendored
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
---
|
||||||
|
name: Jinja2 Linting check
|
||||||
|
|
||||||
|
# yamllint disable-line rule:truthy
|
||||||
|
on: [push, pull_request]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Jinja2 Linting
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: 'Checkout git repo'
|
||||||
|
uses: actions/checkout@v4.1.1
|
||||||
|
with:
|
||||||
|
submodules: true
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Run j2lint
|
||||||
|
uses: ansible-actions/j2lint-action@v0.0.1
|
||||||
|
with:
|
||||||
|
target: "./"
|
22
.github/workflows/yamllint-check.yml
vendored
Normal file
22
.github/workflows/yamllint-check.yml
vendored
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
---
|
||||||
|
name: Yamllint check
|
||||||
|
|
||||||
|
# yamllint disable-line rule:truthy
|
||||||
|
on: [push, pull_request]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Yamllint
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: 'Checkout git repo'
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
submodules: true
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Run yamllint
|
||||||
|
uses: ansible-actions/yamllint-action@v0.0.1
|
||||||
|
with:
|
||||||
|
target: "./"
|
22
.github/workflows/yamllint.yaml
vendored
22
.github/workflows/yamllint.yaml
vendored
|
@ -1,22 +0,0 @@
|
||||||
---
|
|
||||||
name: 'Yamllint GitHub Actions'
|
|
||||||
|
|
||||||
# yamllint disable-line rule:truthy
|
|
||||||
on: [push, pull_request]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
yamllint:
|
|
||||||
name: 'Yamllint'
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: 'Checkout'
|
|
||||||
uses: actions/checkout@master
|
|
||||||
- name: 'Yamllint'
|
|
||||||
uses: karancode/yamllint-github-action@master
|
|
||||||
with:
|
|
||||||
yamllint_file_or_dir: '.'
|
|
||||||
yamllint_config_filepath: './.yamllint'
|
|
||||||
yamllint_strict: false
|
|
||||||
yamllint_comment: true
|
|
||||||
# env:
|
|
||||||
# GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }
|
|
|
@ -2,11 +2,11 @@
|
||||||
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
|
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
|
||||||
<service-group>
|
<service-group>
|
||||||
<name replace-wildcards="yes">
|
<name replace-wildcards="yes">
|
||||||
{%- if item.name is defined -%}
|
{% if item.name is defined %}
|
||||||
{{- item.name -}}
|
{{ item.name }}
|
||||||
{%- else -%}
|
{% else %}
|
||||||
{{ item.service | upper }} server at %h
|
{{ item.service | upper }} server at %h
|
||||||
{%- endif -%}
|
{% endif %}
|
||||||
</name>
|
</name>
|
||||||
<service protocol="{{ item.protocol | default("any") }}">
|
<service protocol="{{ item.protocol | default("any") }}">
|
||||||
<type>_{{ item.service | lower }}._{{ item.transport | default("tcp") | lower }}</type>
|
<type>_{{ item.service | lower }}._{{ item.transport | default("tcp") | lower }}</type>
|
||||||
|
|
Loading…
Reference in a new issue