diff options
Diffstat (limited to 'roles/influxdb/tasks/main.yml')
-rw-r--r-- | roles/influxdb/tasks/main.yml | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/roles/influxdb/tasks/main.yml b/roles/influxdb/tasks/main.yml index bc908bf..abdda9d 100644 --- a/roles/influxdb/tasks/main.yml +++ b/roles/influxdb/tasks/main.yml @@ -17,10 +17,16 @@ src: influxdb.list.j2 dest: /etc/apt/sources.list.d/influxdb.list become: yes + register: install_repo -- name: Install Packages +- name: Update APT Cache apt: update_cache: yes + become: yes + when: install_repo.changed + +- name: Install Packages + apt: name: - curl - python3-influxdb |