Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customize installed Apt packages #735

Merged
merged 2 commits into from
Jan 24, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
### HEAD
* Add `apt_packages_custom` to customize Apt packages ([#735](https://github.com/roots/trellis/pull/735))
* Enable Let's Encrypt to detect updated `site_hosts` ([#630](https://github.com/roots/trellis/pull/630))
* Add `SKIP_GALAXY` env var to skip galaxy install in Vagrant ([#734](https://github.com/roots/trellis/pull/734))
* Avoid `loop.first` variable in conditional jinja loops ([#729](https://github.com/roots/trellis/pull/729))
Expand Down
13 changes: 13 additions & 0 deletions roles/common/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,16 @@ ansible_requirements:
operator: '!='

ntp_timezone: Etc/UTC

apt_packages_default:
- python-software-properties
- python-pycurl
- build-essential
- python-mysqldb
- curl
- git-core
- dbus
- libnss-myhostname

apt_packages_custom: []
apt_packages_install: "{{ default_apt_packages + custom_apt_packages }}"
10 changes: 1 addition & 9 deletions roles/common/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,7 @@
state: present
update_cache: true
cache_valid_time: "{{ apt_cache_valid_time }}"
with_items:
- python-software-properties
- python-pycurl
- build-essential
- python-mysqldb
- curl
- git-core
- dbus
- libnss-myhostname
with_items: "{{ apt_packages_install }}"

- name: Validate timezone variable
stat:
Expand Down