diff --git a/tasks/main.yml b/tasks/main.yml index 63d63ec..e240147 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,39 +1,39 @@ -# - name: Install prometheus node exporter -# become: yes -# apt: -# name: prometheus-node-exporter -# state: present +- name: Install prometheus node exporter + become: yes + apt: + name: prometheus-node-exporter + state: present -# - name: Start and enable node exporter -# become: yes -# systemd: -# name: prometheus-node-exporter -# state: started -# enabled: yes +- name: Start and enable node exporter + become: yes + systemd: + name: prometheus-node-exporter + state: started + enabled: yes -# - name: Place reverse proxy conf -# become: yes -# copy: -# src: files/nginx.conf -# dest: /etc/nginx/conf.d/tech.ag-link.xyz.conf -# notify: Check and Reload nginx +- name: Place reverse proxy conf + become: yes + copy: + src: files/nginx.conf + dest: /etc/nginx/conf.d/tech.ag-link.xyz.conf + notify: Check and Reload nginx -# - name: Install apache2-utils -# become: yes -# apt: -# name: apache2-utils -# state: present +- name: Install apache2-utils + become: yes + apt: + name: apache2-utils + state: present -# - name: Setup htpasswd file -# become: yes -# file: -# path: "/etc/nginx/.htpasswd" -# owner: www-data -# group: www-data -# mode: 0600 -# state: touch +- name: Setup htpasswd file + become: yes + file: + path: "/etc/nginx/.htpasswd" + owner: www-data + group: www-data + mode: 0600 + state: touch -# - name: Set Login credentials -# become: yes -# shell: -# cmd: "htpasswd -b /etc/nginx/.htpasswd prometheus {{ prometheus_pass }}" +- name: Set Login credentials + become: yes + shell: + cmd: "htpasswd -b /etc/nginx/.htpasswd prometheus {{ prometheus_pass }}"