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/
4747
4848RUN /opt/docker/bin/control.sh provision.role.startup boilerplate-main \
4949 && /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 \
5250 && /opt/docker/bin/bootstrap.sh
5351
5452# Configure volume/workdir
55- RUN mkdir -p /application/code/
53+ RUN mkdir -p /application/code/
5654VOLUME /application/
5755WORKDIR /application/code/
Original file line number Diff line number Diff line change @@ -46,9 +46,6 @@ COPY provision/ /opt/docker/provision/
4646RUN /opt/docker/bin/control.sh provision.role boilerplate-main \
4747 && /opt/docker/bin/control.sh provision.role boilerplate-main-development \
4848 && /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 \
5249 && /opt/docker/bin/bootstrap.sh
5350
5451# Configure volume/workdir
Original file line number Diff line number Diff line change @@ -45,9 +45,6 @@ COPY provision/ /opt/docker/provision/
4545
4646RUN /opt/docker/bin/control.sh provision.role boilerplate-main \
4747 && /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 \
5148 && /opt/docker/bin/bootstrap.sh
5249
5350# Configure volume/workdir
Original file line number Diff line number Diff line change @@ -8,6 +8,12 @@ PROVISION:
88 phpXdebug : false
99 apacheModPagespeed : false
1010
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+
1117WEB :
1218 vhost :
1319 - { serverName: "docker.vm", serverAlias: "*.vm" }
Original file line number Diff line number Diff line change @@ -8,6 +8,12 @@ PROVISION:
88 phpXdebug : false
99 apacheModPagespeed : false
1010
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+
1117WEB :
1218 vhost :
1319 - { serverName: "docker.vm", serverAlias: "*.vm" }
Original file line number Diff line number Diff line change 1818- include : bootstrap/composer.yml
1919 when : PROVISION.install.phpComposer is defined and PROVISION.install.phpComposer
2020
21+ - include : bootstrap/services.yml
22+
2123- include : bootstrap/cron.yml
2224
2325- 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