Updated ansible scripts for nginx

This commit is contained in:
Trial97
2021-09-01 17:25:53 +03:00
committed by Dan Christian Bogos
parent 29671396e6
commit edef262ea1
3 changed files with 25 additions and 1 deletions

View File

@@ -76,6 +76,14 @@
- name: Configure NGINX server
include: nginx.yaml
when: nginxConfig.stdout_lines|length < 1
- name: Enable nginx
become: true
shell: "systemctl enable nginx"
- name: Start nginx
become: true
shell: "systemctl start nginx"
###########################################################################################################################
###########################################################################################################################

View File

@@ -79,6 +79,14 @@
include: nginx.yaml
when: nginxConfig.stdout_lines|length < 1 or users_filename|length > 0
- name: Enable nginx
become: true
shell: "systemctl enable nginx"
- name: Start nginx
become: true
shell: "systemctl start nginx"
- name: Configure docker
include: docker.yaml

View File

@@ -107,7 +107,15 @@
- name: Configure NGINX server
include: nginx.yaml
when: nginxConfig.stdout_lines|length < 1
- name: Enable nginx
become: true
shell: "systemctl enable nginx"
- name: Start nginx
become: true
shell: "systemctl start nginx"
- name: Add .rpmmacros in root directory
become: true
template: