mirror of
https://github.com/roles-ansible/ansible_role_prometheus_ping_exporter.git
synced 2024-08-16 10:19:51 +02:00
commit
9cecbdb0f4
17 changed files with 10 additions and 256 deletions
18
.github/workflows/ansible-archlinux-latest.yml
vendored
18
.github/workflows/ansible-archlinux-latest.yml
vendored
|
@ -1,18 +0,0 @@
|
||||||
---
|
|
||||||
name: Ansible check archlinux:latest
|
|
||||||
|
|
||||||
# yamllint disable-line rule:truthy
|
|
||||||
on: [push, pull_request]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- name: ansible check with archlinux:latest
|
|
||||||
uses: roles-ansible/check-ansible-archlinux-latest-action@master
|
|
||||||
with:
|
|
||||||
targets: "./"
|
|
18
.github/workflows/ansible-centos-centos7.yml
vendored
18
.github/workflows/ansible-centos-centos7.yml
vendored
|
@ -1,18 +0,0 @@
|
||||||
---
|
|
||||||
name: Ansible check centos:centos7
|
|
||||||
|
|
||||||
# yamllint disable-line rule:truthy
|
|
||||||
on: [push, pull_request]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- name: ansible check with ubuntu:centos7
|
|
||||||
uses: roles-ansible/check-ansible-centos-centos7-action@master
|
|
||||||
with:
|
|
||||||
targets: "./"
|
|
18
.github/workflows/ansible-centos-centos8.yml
vendored
18
.github/workflows/ansible-centos-centos8.yml
vendored
|
@ -1,18 +0,0 @@
|
||||||
---
|
|
||||||
name: Ansible check centos:centos8
|
|
||||||
|
|
||||||
# yamllint disable-line rule:truthy
|
|
||||||
on: [push, pull_request]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- name: ansible check with ubuntu:centos8
|
|
||||||
uses: roles-ansible/check-ansible-centos-centos8-action@master
|
|
||||||
with:
|
|
||||||
targets: "./"
|
|
18
.github/workflows/ansible-centos-latest.yml
vendored
18
.github/workflows/ansible-centos-latest.yml
vendored
|
@ -1,18 +0,0 @@
|
||||||
---
|
|
||||||
name: Ansible check centos:latest
|
|
||||||
|
|
||||||
# yamllint disable-line rule:truthy
|
|
||||||
on: [push, pull_request]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- name: ansible check with ubuntu:latest
|
|
||||||
uses: roles-ansible/check-ansible-centos-latest-action@master
|
|
||||||
with:
|
|
||||||
targets: "./"
|
|
18
.github/workflows/ansible-debian-bullseye.yml
vendored
18
.github/workflows/ansible-debian-bullseye.yml
vendored
|
@ -1,18 +0,0 @@
|
||||||
---
|
|
||||||
name: Ansible check debian:bullseye
|
|
||||||
|
|
||||||
# yamllint disable-line rule:truthy
|
|
||||||
on: [push, pull_request]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- name: ansible check with debian:bullseye
|
|
||||||
uses: roles-ansible/check-ansible-debian-bullseye-action@main
|
|
||||||
with:
|
|
||||||
targets: "./"
|
|
18
.github/workflows/ansible-debian-buster.yml
vendored
18
.github/workflows/ansible-debian-buster.yml
vendored
|
@ -1,18 +0,0 @@
|
||||||
---
|
|
||||||
name: Ansible check debian:buster
|
|
||||||
|
|
||||||
# yamllint disable-line rule:truthy
|
|
||||||
on: [push, pull_request]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- name: ansible check with debian:buster
|
|
||||||
uses: roles-ansible/check-ansible-debian-buster-action@master
|
|
||||||
with:
|
|
||||||
targets: "./"
|
|
18
.github/workflows/ansible-debian-latest.yml
vendored
18
.github/workflows/ansible-debian-latest.yml
vendored
|
@ -1,18 +0,0 @@
|
||||||
---
|
|
||||||
name: Ansible check debian:latest
|
|
||||||
|
|
||||||
# yamllint disable-line rule:truthy
|
|
||||||
on: [push, pull_request]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- name: ansible check with debian:latest
|
|
||||||
uses: roles-ansible/check-ansible-debian-latest-action@master
|
|
||||||
with:
|
|
||||||
targets: "./"
|
|
18
.github/workflows/ansible-debian-sid.yml
vendored
18
.github/workflows/ansible-debian-sid.yml
vendored
|
@ -1,18 +0,0 @@
|
||||||
---
|
|
||||||
name: Ansible check debian:sid
|
|
||||||
|
|
||||||
# yamllint disable-line rule:truthy
|
|
||||||
on: [push, pull_request]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- name: ansible check with debian:sid
|
|
||||||
uses: roles-ansible/check-ansible-debian-sid-action@master
|
|
||||||
with:
|
|
||||||
targets: "./"
|
|
18
.github/workflows/ansible-debian-stable.yml
vendored
18
.github/workflows/ansible-debian-stable.yml
vendored
|
@ -1,18 +0,0 @@
|
||||||
---
|
|
||||||
name: Ansible check debian:stable
|
|
||||||
|
|
||||||
# yamllint disable-line rule:truthy
|
|
||||||
on: [push, pull_request]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- name: ansible check with debian:stable
|
|
||||||
uses: roles-ansible/check-ansible-debian-stable-action@master
|
|
||||||
with:
|
|
||||||
targets: "./"
|
|
18
.github/workflows/ansible-debian-stretch.yml
vendored
18
.github/workflows/ansible-debian-stretch.yml
vendored
|
@ -1,18 +0,0 @@
|
||||||
---
|
|
||||||
name: Ansible check debian:stretch
|
|
||||||
|
|
||||||
# yamllint disable-line rule:truthy
|
|
||||||
on: [push, pull_request]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- name: ansible check with debian:stretch
|
|
||||||
uses: roles-ansible/check-ansible-debian-stretch-action@master
|
|
||||||
with:
|
|
||||||
targets: "./"
|
|
18
.github/workflows/ansible-fedora-32.yml
vendored
18
.github/workflows/ansible-fedora-32.yml
vendored
|
@ -1,18 +0,0 @@
|
||||||
---
|
|
||||||
name: Ansible check fedora:32
|
|
||||||
|
|
||||||
# yamllint disable-line rule:truthy
|
|
||||||
on: [push, pull_request]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- name: ansible check with fedora:32
|
|
||||||
uses: roles-ansible/check-ansible-fedora-32-action@master
|
|
||||||
with:
|
|
||||||
targets: "./"
|
|
18
.github/workflows/ansible-fedora-33.yml
vendored
18
.github/workflows/ansible-fedora-33.yml
vendored
|
@ -1,18 +0,0 @@
|
||||||
---
|
|
||||||
name: Ansible check fedora:33
|
|
||||||
|
|
||||||
# yamllint disable-line rule:truthy
|
|
||||||
on: [push, pull_request]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- name: ansible check with fedora:33
|
|
||||||
uses: roles-ansible/check-ansible-fedora-33-action@master
|
|
||||||
with:
|
|
||||||
targets: "./"
|
|
18
.github/workflows/ansible-fedora-latest.yml
vendored
18
.github/workflows/ansible-fedora-latest.yml
vendored
|
@ -1,18 +0,0 @@
|
||||||
---
|
|
||||||
name: Ansible check fedora:latest
|
|
||||||
|
|
||||||
# yamllint disable-line rule:truthy
|
|
||||||
on: [push, pull_request]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- name: ansible check with fedora:latest
|
|
||||||
uses: roles-ansible/check-ansible-fedora-latest-action@master
|
|
||||||
with:
|
|
||||||
targets: "./"
|
|
18
.github/workflows/ansible-ubuntu-latest.yml
vendored
18
.github/workflows/ansible-ubuntu-latest.yml
vendored
|
@ -1,18 +0,0 @@
|
||||||
---
|
|
||||||
name: Ansible check ubuntu:latest
|
|
||||||
|
|
||||||
# yamllint disable-line rule:truthy
|
|
||||||
on: [push, pull_request]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- name: ansible check with ubuntu:latest
|
|
||||||
uses: roles-ansible/check-ansible-ubuntu-latest-action@master
|
|
||||||
with:
|
|
||||||
targets: "./"
|
|
|
@ -1,4 +1,6 @@
|
||||||
---
|
---
|
||||||
- name: Systemctl restart ping_exporter.service
|
- name: Systemctl restart ping_exporter.service
|
||||||
ansible.builtin.debug:
|
become: true
|
||||||
msg: "in progress..."
|
ansible.builtin.systemd:
|
||||||
|
name: 'ping_exporter.service'
|
||||||
|
state: 'restarted'
|
||||||
|
|
|
@ -1,11 +1,15 @@
|
||||||
# {{ ansible_managed }}
|
{{ ansible_managed | comment }}
|
||||||
|
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Execute the ping_exporter server.
|
Description=Execute the ping_exporter server.
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
|
Type=simple
|
||||||
WorkingDirectory={{ ping_exporter__user_home }}
|
WorkingDirectory={{ ping_exporter__user_home }}
|
||||||
|
User={{ ping_exporter__user }}
|
||||||
|
Group={{ ping_exporter__group }}
|
||||||
ExecStart=/usr/bin/ping_exporter --config.path {{ ping_exporter__user_home }}/ping_exporter_config.yml
|
ExecStart=/usr/bin/ping_exporter --config.path {{ ping_exporter__user_home }}/ping_exporter_config.yml
|
||||||
|
AmbientCapabilities=CAP_NET_RAW
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
|
@ -3,5 +3,5 @@ ping_exporter__repo: 'https://github.com/czerwonk/ping_exporter.git'
|
||||||
ping_exporter__repo_api: 'https://api.github.com/repos/czerwonk/ping_exporter/releases/latest'
|
ping_exporter__repo_api: 'https://api.github.com/repos/czerwonk/ping_exporter/releases/latest'
|
||||||
|
|
||||||
# versionscheck
|
# versionscheck
|
||||||
playbook_version_number: 03 # should be a integer
|
playbook_version_number: 04 # should be a integer
|
||||||
playbook_version_path: 'do1jlr.prometheus_ping_exporter.version'
|
playbook_version_path: 'do1jlr.prometheus_ping_exporter.version'
|
||||||
|
|
Loading…
Reference in a new issue