Updated ansible

This commit is contained in:
Trial97
2021-09-01 17:37:52 +03:00
committed by Dan Christian Bogos
parent edef262ea1
commit fb655ee028
4 changed files with 21 additions and 23 deletions

View File

@@ -77,13 +77,12 @@
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: Enable and start nginx
systemd:
name: nginx
state: started
masked: no
enabled: yes
###########################################################################################################################
###########################################################################################################################

View File

@@ -79,13 +79,12 @@
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: Enable and start nginx
systemd:
name: nginx
state: started
masked: no
enabled: yes
- name: Configure docker
include: docker.yaml

View File

@@ -108,13 +108,12 @@
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: Enable and start nginx
systemd:
name: nginx
state: started
masked: no
enabled: yes
- name: Add .rpmmacros in root directory
become: true

View File

@@ -20,5 +20,6 @@
shell: "sudo firewall-cmd --reload"
- name: Restart the nginx so the change take effects
become: true
shell: "sudo systemctl restart nginx"
systemd:
state: restarted
name: nginx