update repos

This commit is contained in:
2021-04-14 17:48:16 +02:00
parent 3b48d6481a
commit 0410707a81
8 changed files with 36 additions and 13 deletions
+8
View File
@@ -58,6 +58,14 @@
group: appuser
mode: '0755'
- name: Create /home/appuser/wo-bisch-lorahandler
file:
path: /home/appuser/wo-bisch-lorahandler
state: directory
owner: appuser
group: appuser
mode: '0755'
- name: Allow apache to read files in /home/appuser/wo-bisch-web
sefcontext:
target: '/home/appuser/wo-bisch-web(/.*)?'
+7 -4
View File
@@ -25,12 +25,15 @@
enabled: yes
state: started
- name: copy telegraf config
copy:
src: telegraf.conf
- name: create telegraf config from template
template:
src: telegraf.conf.j2
dest: /etc/telegraf/telegraf.conf
mode: '0644'
notify: Restart telegraf
- name: fix permission of /etc/logrotate.d/influxdb
file:
path: /etc/logrotate.d/influxdb
mode: 0644
@@ -26,6 +26,6 @@
# Configuration for sending metrics to InfluxDB 2.0
[[outputs.influxdb_v2]]
urls = ["http://127.0.0.1:8086"]
token = "PWuleFEPB2YSduUkzkcW94V_-KFDK5Fi3MAeaA999Qe51OsGlJJSrcZ41pUAppCwF-z3rUNnyFQQJs8fCSTFzg=="
token = "{{ influx_token }}"
organization = "wobischorg"
bucket = "wobischbucket"
+1 -1
View File
@@ -5,5 +5,5 @@
state=restarted
- name: Restore selinux context
command: restorecon -irv /root/.acme.sh/wo-bisch.ch
command: restorecon -irv /etc/letsencrypt
+8 -2
View File
@@ -28,9 +28,9 @@
- wo-bisch-web.css
- wo-bisch-web-custom.css
- name: Allow apache to read files in /root/.acme.sh/{{ letsEncryptDomain }}
- name: Allow apache to read files in /etc/letsencrypt/{{ letsEncryptDomain }}
sefcontext:
target: '/root/.acme.sh/{{ letsEncryptDomain }}(/.*)?'
target: '/etc/letsencrypt/{{ letsEncryptDomain }}(/.*)?'
setype: httpd_sys_content_t
state: present
notify:
@@ -50,3 +50,9 @@
group: root
mode: '0644'
notify: Restart nginx
- name: create certificate directory
file:
path: /etc/letsencrypt/{{ letsEncryptDomain }}
state: directory
+3 -3
View File
@@ -39,7 +39,7 @@ http {
listen [::]:80 default_server;
server_name _;
return 301 https://wo-bisch.ch$request_uri;
return 301 https://{{ letsEncryptDomain }}$request_uri;
}
@@ -67,8 +67,8 @@ http {
listen [::]:443 ssl ipv6only=on;
listen 443 ssl;
ssl_certificate /root/.acme.sh/{{ letsEncryptDomain }}/fullchain.cer;
ssl_certificate_key /root/.acme.sh/{{ letsEncryptDomain }}/{{ letsEncryptDomain }}.key;
ssl_certificate /etc/letsencrypt/{{ letsEncryptDomain }}/fullchain.cer;
ssl_certificate_key /etc/letsencrypt/{{ letsEncryptDomain }}/{{ letsEncryptDomain }}.key;
}
}