Skip to content

Commit a47e4f3

Browse files
committed
vagrant: fix fail when nginx couldn't start because of absent configuration/certificates.
Addressed to #399 [ci skip]
1 parent 86fd05a commit a47e4f3

File tree

3 files changed

+13
-11
lines changed

3 files changed

+13
-11
lines changed

vagrant/provisioning/roles/mystamps-nginx/tasks/main.yml

+5-7
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
---
22

3-
- name: Removing default nginx configuration
4-
file:
5-
path: /etc/nginx/conf.d/default.conf
6-
state: absent
7-
notify:
8-
- Restarting nginx service
9-
103
- name: Updating permissions on /data/logs
114
file:
125
path: /data/logs
@@ -86,3 +79,8 @@
8679
- my-stamps.ru.crt
8780
notify:
8881
- Restarting nginx service
82+
83+
- name: Running nginx
84+
service:
85+
name: nginx
86+
state: started

vagrant/provisioning/vagrant.yml

+7-3
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,13 @@
3333
become: yes
3434
become_method: sudo
3535

36-
- role: php-coder.nginx
37-
become: yes
38-
become_method: sudo
36+
- {
37+
role: php-coder.nginx,
38+
remove_default_vhost: yes,
39+
state: stopped,
40+
become: yes,
41+
become_method: sudo
42+
}
3943

4044
- role: mystamps-nginx
4145
become: yes

vagrant/requirements.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
- src: php-coder.oraclejdk
22
version: '1.3'
33
- src: php-coder.nginx
4-
version: '1.1'
4+
version: '1.2'

0 commit comments

Comments
 (0)