File tree Expand file tree Collapse file tree 7 files changed +26
-9
lines changed
provision/roles/boilerplate-main/tasks Expand file tree Collapse file tree 7 files changed +26
-9
lines changed Original file line number Diff line number Diff line change @@ -47,11 +47,9 @@ COPY code/ /application/code/
47
47
48
48
RUN /opt/docker/bin/control.sh provision.role.startup boilerplate-main \
49
49
&& /opt/docker/bin/control.sh provision.role.startup boilerplate-deployment \
50
- && /opt/docker/bin/control.sh service.enable cron \
51
- && /opt/docker/bin/control.sh service.enable dnsmasq \
52
50
&& /opt/docker/bin/bootstrap.sh
53
51
54
52
# Configure volume/workdir
55
- RUN mkdir -p /application/code/
53
+ RUN mkdir -p /application/code/
56
54
VOLUME /application/
57
55
WORKDIR /application/code/
Original file line number Diff line number Diff line change @@ -46,9 +46,6 @@ COPY provision/ /opt/docker/provision/
46
46
RUN /opt/docker/bin/control.sh provision.role boilerplate-main \
47
47
&& /opt/docker/bin/control.sh provision.role boilerplate-main-development \
48
48
&& /opt/docker/bin/control.sh provision.role.startup boilerplate-deployment \
49
- && /opt/docker/bin/control.sh service.enable cron \
50
- && /opt/docker/bin/control.sh service.enable dnsmasq \
51
- && /opt/docker/bin/control.sh service.enable postfix \
52
49
&& /opt/docker/bin/bootstrap.sh
53
50
54
51
# Configure volume/workdir
Original file line number Diff line number Diff line change @@ -45,9 +45,6 @@ COPY provision/ /opt/docker/provision/
45
45
46
46
RUN /opt/docker/bin/control.sh provision.role boilerplate-main \
47
47
&& /opt/docker/bin/control.sh provision.role.startup boilerplate-deployment \
48
- && /opt/docker/bin/control.sh service.enable cron \
49
- && /opt/docker/bin/control.sh service.enable dnsmasq \
50
- && /opt/docker/bin/control.sh service.enable postfix \
51
48
&& /opt/docker/bin/bootstrap.sh
52
49
53
50
# Configure volume/workdir
Original file line number Diff line number Diff line change @@ -8,6 +8,12 @@ PROVISION:
8
8
phpXdebug : false
9
9
apacheModPagespeed : false
10
10
11
+ service :
12
+ # set "enabled" or "disabled" to controll startup of services
13
+ - { service: "cron", status: "enabled" }
14
+ - { service: "dnsmasq", status: "enabled" }
15
+ - { service: "postfix", status: "enabled" }
16
+
11
17
WEB :
12
18
vhost :
13
19
- { serverName: "docker.vm", serverAlias: "*.vm" }
Original file line number Diff line number Diff line change @@ -8,6 +8,12 @@ PROVISION:
8
8
phpXdebug : false
9
9
apacheModPagespeed : false
10
10
11
+ service :
12
+ # set "enabled" or "disabled" to controll startup of services
13
+ - { service: "cron", status: "disabled" }
14
+ - { service: "dnsmasq", status: "enabled" }
15
+ - { service: "postfix", status: "enabled" }
16
+
11
17
WEB :
12
18
vhost :
13
19
- { serverName: "docker.vm", serverAlias: "*.vm" }
Original file line number Diff line number Diff line change 18
18
- include : bootstrap/composer.yml
19
19
when : PROVISION.install.phpComposer is defined and PROVISION.install.phpComposer
20
20
21
+ - include : bootstrap/services.yml
22
+
21
23
- include : bootstrap/cron.yml
22
24
23
25
- include : bootstrap/dnsmasq.yml
Original file line number Diff line number Diff line change
1
+ ---
2
+
3
+ - name : Enable services
4
+ command : /opt/docker/bin/control.sh service.enable {{ item.service }}
5
+ with_items : PROVISION.service
6
+ when : PROVISION.service is defined and item.status == 'enabled'
7
+
8
+ - name : Disable services
9
+ command : /opt/docker/bin/control.sh service.disable {{ item.service }}
10
+ with_items : PROVISION.service
11
+ when : PROVISION.service is defined and item.status == 'disabled'
You can’t perform that action at this time.
0 commit comments