Added Wekan Ansible Initial Setup

pull/1/head
Ernst Thaelmann 2021-02-19 20:05:22 +01:00 committed by Georg Krause
parent 2506b10957
commit 9a5eed954e
1 changed files with 34 additions and 34 deletions

View File

@ -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 }}"