This is not production-ready yet! See: roots/trellis#1030
- TODOs (Help wanted)
- Requirements
- Installation
- Role Variables
- Usage
- FAQs
- Testing
- Author Information
- Feedback
- Change log
- License
This is not production-ready yet! See: roots/trellis#1030
- Test on older versions of ansible (only 2.7.4 is tested)
- Test on the offical roots file structure (only the @tangrufus way is tested)
- Allow variables in defaults be customizable
- Ansible v2.4 or later
- Trellis with roots/trellis#1030 patched
- Sage v9
Add this role to requirements.yml
:
# requirements.yml
- src: https://github.com/ItinerisLtd/trellis-sage-9-compiler
version: master # This is not production-ready yet!
Hook this role to deploy_build_before
:
# group_vars/all/deploy-hooks.yml
# Learn more on https://roots.io/trellis/docs/deploys/#hooks
deploy_build_before:
- "{{ playbook_dir }}/vendor/roles/trellis-sage-9-compiler/tasks/main.yml"
Run the command:
➜ ansible-galaxy install -r requirements.yml --force
# group_vars/<env>/wordpress_sites.yml
wordpress_sites:
example.com:
sage_9_compiler:
- name: my-first-sage-theme-name
- name: my-second-sage-theme-name
cleanup: true
- name: my-second-sage-theme-name
cleanup: false
- Required
- Type: string
- Directory name of your sage theme
- Optional
- Default:
false
- Type: boolean
- Whether to remove theme source files
More variables in defaults. (Currently not customizable)
Deploy as usual. No special action needed.
- Articles on Itineris' blog
- More projects on Itineris' GitHub profile
- Follow @itineris_ltd and @TangRufus on Twitter
- Hire Itineris to build your next awesome site
Thanks! Glad you like it. It's important to make my boss know somebody is using this project. Instead of giving reviews on wp.org, consider:
- tweet something good with mentioning @itineris_ltd
- star this Github repo
- watch this Github repo
- write blog posts
- submit pull requests
- hire Itineris
➜ ansible-playbook -i 'localhost,' --syntax-check tests/test.yml
TODO: Discuss with the roots team!
trellis-sage-9-compiler is a Itineris Limited project created by Tang Rufus. Fork from roots/trellis because of roots/trellis#1030.
Special thanks to the Roots team whose Trellis make this project possible.
Full list of contributors can be found here.
Please provide feedback! We want to make this library useful in as many projects as possible. Please submit an issue and point out what you do and don't like, or fork the project and make suggestions. No issue is too small.
Please see CHANGELOG for more information on what has changed recently.
trellis-sage-9-compiler is released under the MIT License.