add support for new ansible without apt and with_items, add monitoring
This commit is contained in:
parent
4a280c06d1
commit
65c4b48071
3 changed files with 10 additions and 4 deletions
3
meta/main.yml
Normal file
3
meta/main.yml
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
---
|
||||||
|
dependencies:
|
||||||
|
- { role: monitoring }
|
||||||
|
|
@ -1,11 +1,10 @@
|
||||||
- name: install postgres
|
- name: install postgres
|
||||||
apt:
|
apt:
|
||||||
pkg: "{{ item }}"
|
pkg:
|
||||||
state: latest
|
|
||||||
update_cache: yes
|
|
||||||
with_items:
|
|
||||||
- postgresql
|
- postgresql
|
||||||
- python-psycopg2
|
- python-psycopg2
|
||||||
|
state: latest
|
||||||
|
update_cache: yes
|
||||||
|
|
||||||
- name: generate pg_hba
|
- name: generate pg_hba
|
||||||
template:
|
template:
|
||||||
|
|
|
||||||
4
vars/main.yml
Normal file
4
vars/main.yml
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
monitoring:
|
||||||
|
checks:
|
||||||
|
local:
|
||||||
|
mk_postgres: {}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue