From f10764dec111953fc4a85b0a4751c23f9e0404c1 Mon Sep 17 00:00:00 2001 From: Kekskurse Date: Mon, 30 Dec 2019 20:47:52 +0100 Subject: [PATCH] Stuff --- tasks/main.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tasks/main.yml b/tasks/main.yml index d1c9e1b..74f1d7a 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -2,41 +2,51 @@ name: python3 state: present update_cache: yes + become: true - apt: name: gcc state: present + become: true - apt: name: python3-dev state: present + become: true - apt: name: python3-setuptools state: present + become: true - apt: name: python3-pip state: present + become: true - pip: name: psutil executable: pip3 + become: true - pip: name: statsd executable: pip3 + become: true - git: repo: 'https://git.keks.cloud/kekskurse/monitoring.py.git' dest: /opt/monitoring.py update: yes + become: true - template: src: monitoringpy.service.j2 dest: /etc/systemd/system/monitoringpy.service + become: true - systemd: state: restarted enabled: yes name: monitoringpy.service + become: true