Skip to content

Commit 30fa9cb

Browse files
committed
1 parent 9b6a82d commit 30fa9cb

File tree

3 files changed

+42
-1
lines changed

3 files changed

+42
-1
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ src/main/frontend/node_modules/
2626
.vagrant/
2727
vagrant/provisioning/vagrant.retry
2828
vagrant/provisioning/prod.inventory
29-
vagrant/provisioning/prod.yml
29+
vagrant/provisioning/vars/prod.yml
3030
vagrant/provisioning/roles/php-coder.oraclejdk/
3131
vagrant/provisioning/roles/php-coder.nginx/
3232
vagrant/provisioning/roles/mystamps-nginx/files/prod/my-stamps.ru.key

src/main/scripts/ci/check-build-and-verify.sh

+1
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,7 @@ if [ "$RUN_ONLY_INTEGRATION_TESTS" = 'no' ]; then
248248

249249
if [ "$ANSIBLE_LINT_STATUS" != 'skip' ]; then
250250
ansible-lint \
251+
vagrant/provisioning/prod.yml \
251252
vagrant/provisioning/vagrant.yml \
252253
vagrant/provisioning/bootstrap.yml \
253254
src/main/scripts/ci/ansible/deploy.yml \

vagrant/provisioning/prod.yml

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
- hosts: all
3+
gather_facts: no
4+
become: yes
5+
become_method: sudo
6+
vars:
7+
profile: 'prod'
8+
vars_files:
9+
- './vars/prod.yml'
10+
11+
pre_tasks:
12+
13+
- name: Removing nano
14+
apt:
15+
package: nano
16+
state: absent
17+
18+
- name: Creating /data directory
19+
file:
20+
path: /data
21+
state: directory
22+
owner: root
23+
group: root
24+
mode: '0755'
25+
26+
roles:
27+
- php-coder.oraclejdk
28+
- mystamps-user
29+
- { role: mystamps-app, tags: app }
30+
- {
31+
role: php-coder.nginx,
32+
remove_default_vhost: yes,
33+
state: stopped
34+
}
35+
- { role: mystamps-nginx, tags: ssl }
36+
- {
37+
role: mystamps-backup,
38+
tags: backup,
39+
when: profile == 'prod'
40+
}

0 commit comments

Comments
 (0)