test first playbook
All checks were successful
Run Ansible / install_ansible (push) Successful in 2m32s
All checks were successful
Run Ansible / install_ansible (push) Successful in 2m32s
This commit is contained in:
@@ -84,6 +84,9 @@ jobs:
|
||||
- name: Check Ansible roles exists
|
||||
run: |
|
||||
ansible-galaxy list
|
||||
# - name: Check Ansible Playbook Syntax
|
||||
# run: |
|
||||
# ansible-playbook --syntax-check ansible-runner/playbooks/site.yml
|
||||
- name: Check Ansible Playbook Syntax
|
||||
run: |
|
||||
ansible-playbook --syntax-check playbooks/install_prometheus.yml.ansible
|
||||
- name: Run Ansible Playbook
|
||||
run: |
|
||||
ansible-playbook -i inventory/raspberries.yaml playbooks/install_prometheus.yml.ansible --vault-password-file .vault_pass.txt
|
||||
Submodule inventory updated: 77e840672e...2ece3b337c
11
playbooks/install_prometheus.yml.ansible
Normal file
11
playbooks/install_prometheus.yml.ansible
Normal file
@@ -0,0 +1,11 @@
|
||||
- hosts:
|
||||
- monitoring
|
||||
become: true
|
||||
vars:
|
||||
ansible_python_interpreter: /usr/bin/python3
|
||||
tasks:
|
||||
- name: Update apt cache
|
||||
ansible.builtin.apt:
|
||||
update_cache: true
|
||||
cache_valid_time: 3600
|
||||
upgrade: full
|
||||
@@ -2,3 +2,13 @@
|
||||
src: git+ssh://gitea@gitea.mod.home/ansible-monitoring/prometheus.git
|
||||
scm: git
|
||||
version: main
|
||||
|
||||
- name: victoriametrics
|
||||
src: git+ssh://gitea@gitea.mod.home/ansible-monitoring/victoriametrics.git
|
||||
scm: git
|
||||
version: main
|
||||
|
||||
- name: grafana
|
||||
src: git+ssh://gitea@gitea.mod.home/ansible-monitoring/grafana.git
|
||||
scm: git
|
||||
version: main
|
||||
|
||||
Reference in New Issue
Block a user