migrate to new server

This commit is contained in:
2021-04-10 21:05:50 +02:00
parent 7c7dcb3815
commit cdb81295af
8 changed files with 20499 additions and 6 deletions
+30
View File
@@ -4,11 +4,18 @@
name: nginx
- name: enable nginx
ignore_errors: yes
systemd:
name: nginx
enabled: yes
state: started
- name: Set httpd_can_network_connect flag on and keep it persistent across reboots
seboolean:
name: httpd_can_network_connect
state: yes
persistent: yes
- name: create /etc/nginx/nginx.conf from template
template:
src: nginx.conf.j2
@@ -25,3 +32,26 @@
state: present
notify:
- Restore selinux context
- name: create certificate directory
file:
path: /etc/letsencrypt/{{ letsEncryptDomain }}
state: directory
- name: create static dir
file:
path: /home/beieli/mini-beieli-web/static
state: directory
- name: 502 error page
copy:
src: 502.html
dest: /home/beieli/mini-beieli-web/static/502.html
- name: copy css files
copy:
src: "{{ item }}"
dest: "/home/beieli/mini-beieli-web/static/{{ item }}"
loop:
- mini-beieli-web.css
- mini-beieli-web-custom.css