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'] +