File tree 4 files changed +7
-19
lines changed
vagrant/provisioning/roles/mystamps-nginx
4 files changed +7
-19
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ # possible values: test and prod
3
+ profile : test
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 50
50
# openssl req -new -x509 -key my-stamps.ru.key -out my-stamps.ru.crt -days 3650 -subj /CN=my-stamps.ru
51
51
#
52
52
# For uploading production certificate put the files into mystamps-nginx/files/prod directory.
53
- - name : Uploading certificate (.key file)
53
+ - name : Uploading certificates
54
54
copy :
55
- src : " {{ item }}"
56
- dest : " /etc/ssl/{{ item | basename }}"
55
+ src : " {{ profile }}/{{ item }}"
56
+ dest : " /etc/ssl/{{ item }}"
57
57
force : yes
58
58
backup : no
59
59
owner : root
60
60
group : nginx
61
61
mode : ' 0640'
62
- with_first_found :
63
- - prod/my-stamps.ru.key
62
+ with_items :
64
63
- my-stamps.ru.key
65
- notify :
66
- - Restarting nginx service
67
-
68
- - name : Uploading certificate (.crt file)
69
- copy :
70
- src : " {{ item }}"
71
- dest : " /etc/ssl/{{ item | basename }}"
72
- force : yes
73
- backup : no
74
- owner : root
75
- group : nginx
76
- mode : ' 0640'
77
- with_first_found :
78
- - prod/my-stamps.ru.crt
79
64
- my-stamps.ru.crt
80
65
notify :
81
66
- Restarting nginx service
You can’t perform that action at this time.
0 commit comments