From 287a409416fe026c60d30b4f95cab7972b6ff774 Mon Sep 17 00:00:00 2001 From: Ludovic Cartier Date: Thu, 27 May 2021 10:41:18 +0200 Subject: [PATCH] add required packages --- tasks/main.yml | 3 +++ tasks/requirements.yml | 14 ++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 tasks/requirements.yml diff --git a/tasks/main.yml b/tasks/main.yml index 6a0265d..a93bc4f 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -2,6 +2,9 @@ - name: 'prometheus | include asserts' include_tasks: 'asserts.yml' +- name: 'prometheus | requirements' + include_tasks: 'requirements.yml' + - name: 'prometheus | server install' include_tasks: 'prometheus.yml' when: diff --git a/tasks/requirements.yml b/tasks/requirements.yml new file mode 100644 index 0000000..0258232 --- /dev/null +++ b/tasks/requirements.yml @@ -0,0 +1,14 @@ +--- +- name: 'prometheus | update APT Cache' + apt: + update_cache: yes + cache_valid_time: 3600 + +- name: 'prometheus | pre-requirements install' + apt: + name: + - curl + - jq + state: present + tags: ['prometheus'] +