Skip to content

Commit eccb041

Browse files
committed
Implemented packages distrubution update switch
1 parent 5fd808b commit eccb041

File tree

17 files changed

+30
-18
lines changed

17 files changed

+30
-18
lines changed

docker/main/Centos-7

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
FROM webdevops/php-boilerplate:centos-7
1717

18+
ENV PROVISION_SYS_UPDATE 0
1819
ENV PROVISION_PHP_DISTRIBUTION php
1920

2021
ENV PATH /opt/ansible/bin:/bin:/usr/bin:/sbin:/usr/sbin

docker/main/Ubuntu-12.04

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
FROM webdevops/php-boilerplate:ubuntu-12.04
1717

18+
ENV PROVISION_SYS_UPDATE 0
1819
ENV PROVISION_PHP_DISTRIBUTION php
1920

2021
# Ensure UTF-8

docker/main/Ubuntu-14.04

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
FROM webdevops/php-boilerplate:ubuntu-14.04
1717

18+
ENV PROVISION_SYS_UPDATE 0
1819
ENV PROVISION_PHP_DISTRIBUTION php
1920

2021
# Ensure UTF-8

docker/main/Ubuntu-15.04

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
FROM webdevops/php-boilerplate:ubuntu-15.04
1717

18+
ENV PROVISION_SYS_UPDATE 0
1819
ENV PROVISION_PHP_DISTRIBUTION php
1920

2021
# Ensure UTF-8

docker/main/Ubuntu-15.10

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
FROM webdevops/php-boilerplate:ubuntu-15.10
1717

18+
ENV PROVISION_SYS_UPDATE 0
1819
ENV PROVISION_PHP_DISTRIBUTION php
1920

2021
# Ensure UTF-8

docker/main/Ubuntu-HHVM

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
FROM webdevops/php-boilerplate:ubuntu-14.04
1717

18+
ENV PROVISION_SYS_UPDATE 0
1819
ENV PROVISION_PHP_DISTRIBUTION hhvm
1920

2021
# Ensure UTF-8

docker/main/provision/playbook.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
vars_files:
33
- /opt/docker/provision/variables.yml
44
roles:
5-
- common
5+
- init
6+
- { role: update, when: PROVISION.SYS.UPDATE == "1" }
7+
- packages
68
- locales
79
- users
810
- supervisord

docker/main/provision/roles/common/tasks/update-centos.yml

Lines changed: 0 additions & 2 deletions
This file was deleted.

docker/main/provision/roles/common/tasks/update-ubuntu.yml

Lines changed: 0 additions & 5 deletions
This file was deleted.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
- name: Update package cache (apt-get update) ... will take some time
2+
apt: update_cache=yes
3+
when: ansible_distribution == 'Ubuntu'
4+
tags:
5+
- bootstrap

0 commit comments

Comments
 (0)