Linting und Arbeit an Extraction nach Kommsafe
This commit is contained in:
+6
-5
@@ -1,3 +1,4 @@
|
||||
---
|
||||
- name: Configure webserver with Nginx and TLS
|
||||
hosts: webservers
|
||||
become: true
|
||||
@@ -26,14 +27,14 @@
|
||||
file:
|
||||
path: "{{ tls_dir }}"
|
||||
state: directory
|
||||
mode: '0750'
|
||||
mode: "0750"
|
||||
notify: Restart nginx
|
||||
|
||||
- name: Copy TLS files
|
||||
copy:
|
||||
src: "{{ item }}"
|
||||
dest: "{{ tls_dir }}"
|
||||
mode: '0600'
|
||||
mode: "0600"
|
||||
loop:
|
||||
- "{{ key_file }}"
|
||||
- "{{ cert_file }}"
|
||||
@@ -43,7 +44,7 @@
|
||||
template:
|
||||
src: nginx.conf.j2
|
||||
dest: "{{ conf_file }}"
|
||||
mode: '0644'
|
||||
mode: "0644"
|
||||
notify: Restart nginx
|
||||
|
||||
- name: Enable configuration
|
||||
@@ -56,7 +57,7 @@
|
||||
template:
|
||||
src: index.html.j2
|
||||
dest: /usr/share/nginx/html/index.html
|
||||
mode: '0644'
|
||||
mode: "0644"
|
||||
|
||||
- name: Restart nginx
|
||||
meta: flush_handlers
|
||||
@@ -65,7 +66,7 @@
|
||||
delegate_to: localhost
|
||||
become: false
|
||||
uri:
|
||||
url: 'https://192.168.62.160/index.html'
|
||||
url: "https://192.168.62.160/index.html"
|
||||
validate_certs: false
|
||||
return_content: true
|
||||
register: this
|
||||
|
||||
Reference in New Issue
Block a user