From 65c4b48071f98bf3c1f1460096c6b0f340c8cb38 Mon Sep 17 00:00:00 2001 From: nd Date: Tue, 13 Nov 2018 01:11:59 +0100 Subject: [PATCH] add support for new ansible without apt and with_items, add monitoring --- meta/main.yml | 3 +++ tasks/main.yml | 7 +++---- vars/main.yml | 4 ++++ 3 files changed, 10 insertions(+), 4 deletions(-) create mode 100644 meta/main.yml create mode 100644 vars/main.yml diff --git a/meta/main.yml b/meta/main.yml new file mode 100644 index 0000000..35b4a25 --- /dev/null +++ b/meta/main.yml @@ -0,0 +1,3 @@ +--- +dependencies: + - { role: monitoring } diff --git a/tasks/main.yml b/tasks/main.yml index cbec542..765b997 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,11 +1,10 @@ - name: install postgres apt: - pkg: "{{ item }}" - state: latest - update_cache: yes - with_items: + pkg: - postgresql - python-psycopg2 + state: latest + update_cache: yes - name: generate pg_hba template: diff --git a/vars/main.yml b/vars/main.yml new file mode 100644 index 0000000..e7c0385 --- /dev/null +++ b/vars/main.yml @@ -0,0 +1,4 @@ +monitoring: + checks: + local: + mk_postgres: {}