mirror of
https://github.com/roles-ansible/ansible_role_rspamd.git
synced 2024-08-16 17:09:51 +02:00
update github actions
This commit is contained in:
parent
a2d91b6240
commit
dda1ef37b4
12 changed files with 63 additions and 39 deletions
18
.github/workflows/ansible-debian-bullseye.yml
vendored
Normal file
18
.github/workflows/ansible-debian-bullseye.yml
vendored
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
---
|
||||||
|
name: Ansible check debian:bullseye
|
||||||
|
|
||||||
|
# yamllint disable-line rule:truthy
|
||||||
|
on: [push, pull_request]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: 'checkout git repo'
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: 'ansible check with debian:bullseye'
|
||||||
|
uses: roles-ansible/check-ansible-debian-bullseye-action@main
|
||||||
|
with:
|
||||||
|
targets: "./"
|
6
.github/workflows/ansible-debian-buster.yml
vendored
6
.github/workflows/ansible-debian-buster.yml
vendored
|
@ -6,13 +6,13 @@ on: [push, pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- name: 'checkout git repo'
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: ansible check with debian:buster
|
- name: 'ansible check with debian:buster'
|
||||||
uses: roles-ansible/check-ansible-debian-buster-action@master
|
uses: roles-ansible/check-ansible-debian-buster-action@master
|
||||||
with:
|
with:
|
||||||
targets: "./"
|
targets: "./"
|
||||||
|
|
6
.github/workflows/ansible-debian-latest.yml
vendored
6
.github/workflows/ansible-debian-latest.yml
vendored
|
@ -6,13 +6,13 @@ on: [push, pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- name: 'checkout git repo'
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: ansible check with debian:latest
|
- name: 'ansible check with debian:latest'
|
||||||
uses: roles-ansible/check-ansible-debian-latest-action@master
|
uses: roles-ansible/check-ansible-debian-latest-action@master
|
||||||
with:
|
with:
|
||||||
targets: "./"
|
targets: "./"
|
||||||
|
|
6
.github/workflows/ansible-debian-sid.yml
vendored
6
.github/workflows/ansible-debian-sid.yml
vendored
|
@ -6,13 +6,13 @@ on: [push, pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- name: 'checkout git repo'
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: ansible check with debian:sid
|
- name: 'ansible check with debian:sid'
|
||||||
uses: roles-ansible/check-ansible-debian-sid-action@master
|
uses: roles-ansible/check-ansible-debian-sid-action@master
|
||||||
with:
|
with:
|
||||||
targets: "./"
|
targets: "./"
|
||||||
|
|
11
.github/workflows/ansible-debian-stable.yml
vendored
11
.github/workflows/ansible-debian-stable.yml
vendored
|
@ -2,7 +2,11 @@
|
||||||
name: Ansible check debian:stable
|
name: Ansible check debian:stable
|
||||||
|
|
||||||
# yamllint disable-line rule:truthy
|
# yamllint disable-line rule:truthy
|
||||||
on: [push, pull_request]
|
on:
|
||||||
|
push:
|
||||||
|
branches: '*'
|
||||||
|
pull_request:
|
||||||
|
branches: '*'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
@ -10,9 +14,10 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- name: 'checkout git repo'
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: ansible check with debian:stable
|
- name: 'ansible check with debian:stable'
|
||||||
uses: roles-ansible/check-ansible-debian-stable-action@master
|
uses: roles-ansible/check-ansible-debian-stable-action@master
|
||||||
with:
|
with:
|
||||||
targets: "./"
|
targets: "./"
|
||||||
|
|
6
.github/workflows/ansible-debian-stretch.yml
vendored
6
.github/workflows/ansible-debian-stretch.yml
vendored
|
@ -6,13 +6,13 @@ on: [push, pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- name: 'checkout git repo'
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: ansible check with debian:stretch
|
- name: 'ansible check with debian:stretch'
|
||||||
uses: roles-ansible/check-ansible-debian-stretch-action@master
|
uses: roles-ansible/check-ansible-debian-stretch-action@master
|
||||||
with:
|
with:
|
||||||
targets: "./"
|
targets: "./"
|
||||||
|
|
18
.github/workflows/ansible-linting-check.yml
vendored
18
.github/workflows/ansible-linting-check.yml
vendored
|
@ -2,21 +2,21 @@
|
||||||
name: Ansible Lint check
|
name: Ansible Lint check
|
||||||
|
|
||||||
# yamllint disable-line rule:truthy
|
# yamllint disable-line rule:truthy
|
||||||
on: [push, pull_request]
|
on:
|
||||||
|
push:
|
||||||
|
branches: '*'
|
||||||
|
pull_request:
|
||||||
|
branches: '*'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- name: 'checkout git repo'
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Lint Ansible Playbook
|
- name: 'Lint Ansible Playbook'
|
||||||
uses: ansible/ansible-lint-action@master
|
uses: ansible/ansible-lint-action@v6
|
||||||
with:
|
with:
|
||||||
targets: "."
|
targets: "."
|
||||||
# [required]
|
|
||||||
# Paths to ansible files (i.e., playbooks, tasks, handlers etc..)
|
|
||||||
args: ""
|
|
||||||
# [optional]
|
|
||||||
|
|
17
.github/workflows/yamllint.yaml
vendored
17
.github/workflows/yamllint.yaml
vendored
|
@ -2,21 +2,22 @@
|
||||||
name: 'Yamllint GitHub Actions'
|
name: 'Yamllint GitHub Actions'
|
||||||
|
|
||||||
# yamllint disable-line rule:truthy
|
# yamllint disable-line rule:truthy
|
||||||
on: [push, pull_request]
|
on:
|
||||||
|
push:
|
||||||
|
branches: '*'
|
||||||
|
pull_request:
|
||||||
|
branches: '*'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
yamllint:
|
yamllint:
|
||||||
name: 'Yamllint'
|
name: 'Yamllint'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: 'Checkout'
|
- name: 'checkout git repo'
|
||||||
uses: actions/checkout@master
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: 'Yamllint'
|
- name: 'Yamllint'
|
||||||
uses: karancode/yamllint-github-action@master
|
uses: karancode/yamllint-github-action@v2.0.0
|
||||||
with:
|
with:
|
||||||
yamllint_file_or_dir: '.'
|
yamllint_file_or_dir: '.'
|
||||||
yamllint_config_filepath: './.yamllint'
|
yamllint_config_filepath: './.yamllint'
|
||||||
yamllint_strict: false
|
|
||||||
yamllint_comment: true
|
|
||||||
# env:
|
|
||||||
# GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
- name: sudo apt update
|
- name: sudo apt update
|
||||||
become: true
|
become: true
|
||||||
apt:
|
ansible.builtin.apt:
|
||||||
update_cache: true
|
update_cache: true
|
||||||
|
|
||||||
- name: systemctl restart rspamd
|
- name: systemctl restart rspamd
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
notify: systemctl restart rspamd
|
notify: systemctl restart rspamd
|
||||||
rescue:
|
rescue:
|
||||||
- name: you have to install passlib
|
- name: you have to install passlib
|
||||||
fail:
|
ansible.builtin.fail:
|
||||||
msg: 'I caught an error. Maybe you have to install passlib via pip3'
|
msg: 'I caught an error. Maybe you have to install passlib via pip3'
|
||||||
|
|
||||||
- name: Einstellung des logging
|
- name: Einstellung des logging
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
---
|
---
|
||||||
- name: update repo-cache for debian/ubuntu
|
- name: update repo-cache for debian/ubuntu
|
||||||
become: true
|
become: true
|
||||||
apt:
|
ansible.builtin.apt:
|
||||||
update_cache: true
|
update_cache: true
|
||||||
cache_valid_time: 3600
|
cache_valid_time: 3600
|
||||||
|
|
||||||
- name: install requirements to add new package repos
|
- name: install requirements to add new package repos
|
||||||
become: true
|
become: true
|
||||||
apt:
|
ansible.builtin.apt:
|
||||||
name:
|
name:
|
||||||
- lsb-release
|
- lsb-release
|
||||||
- wget
|
- wget
|
||||||
|
@ -40,10 +40,10 @@
|
||||||
notify: sudo apt update
|
notify: sudo apt update
|
||||||
|
|
||||||
- name: run update if something changed
|
- name: run update if something changed
|
||||||
meta: flush_handlers
|
ansible.builtin.meta: flush_handlers
|
||||||
|
|
||||||
- name: install rspamd
|
- name: install rspamd
|
||||||
become: true
|
become: true
|
||||||
apt:
|
ansible.builtin.apt:
|
||||||
name: rspamd
|
name: rspamd
|
||||||
state: present
|
state: present
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
- name: install redis backend
|
- name: install redis backend
|
||||||
become: true
|
become: true
|
||||||
apt:
|
ansible.builtin.apt:
|
||||||
name: redis
|
name: redis
|
||||||
state: present
|
state: present
|
||||||
|
|
Loading…
Reference in a new issue