Initial commit

This commit is contained in:
2021-04-09 19:57:32 +02:00
commit fecc1d77d4
25 changed files with 637 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
---
- name: Install nginx
yum:
name: nginx
- name: enable nginx
systemd:
name: nginx
enabled: yes
state: started
- name: create /etc/nginx/nginx.conf from template
template:
src: nginx.conf.j2
dest: /etc/nginx/nginx.conf
owner: root
group: root
mode: '0644'
notify: Restart nginx
- name: Allow apache to read files in /etc/letsencrypt/{{ letsEncryptDomain }}
sefcontext:
target: '/etc/letsencrypt/{{ letsEncryptDomain }}(/.*)?'
setype: httpd_sys_content_t
state: present
notify:
- Restore selinux context