This repository has been archived by the owner on Feb 13, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 647
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
99 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -78,4 +78,4 @@ | |
- src: geerlingguy.solr | ||
version: 3.5.5 | ||
- src: geerlingguy.varnish | ||
version: 1.9.0 | ||
version: 2.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
- name: Check what version of Varnish was installed. | ||
command: varnishd -V | ||
register: varnish_version | ||
changed_when: no | ||
|
||
- name: Display the installed Varnish version. | ||
debug: var=varnish_version | ||
changed_when: no |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
- name: Update apt cache. | ||
apt: update_cache=yes cache_valid_time=600 | ||
when: ansible_os_family == 'Debian' | ||
|
||
- name: Ensure build dependencies are installed (RedHat 7+). | ||
yum: 'name="{{ item }}" state=present' | ||
with_items: | ||
- logrotate | ||
- systemd-sysv | ||
when: ansible_os_family == 'RedHat' and ansible_distribution_major_version >= '7' | ||
|
||
- name: Ensure build dependencies are installed (RedHat < 7). | ||
yum: 'name="{{ item }}" state=present' | ||
with_items: | ||
- logrotate | ||
when: ansible_os_family == 'RedHat' and ansible_distribution_major_version < '7' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
- hosts: all | ||
|
||
vars: | ||
varnish_version: "4.1" | ||
|
||
pre_tasks: | ||
- include: setup.yml | ||
|
||
roles: | ||
- role_under_test | ||
|
||
post_tasks: | ||
- include: debug.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,10 @@ | ||
- hosts: all | ||
|
||
pre_tasks: | ||
- name: Update apt cache. | ||
apt: update_cache=yes cache_valid_time=600 | ||
when: ansible_os_family == 'Debian' | ||
|
||
- name: Ensure build dependencies are installed (RedHat 7+). | ||
yum: 'name="{{ item }}" state=present' | ||
with_items: | ||
- logrotate | ||
- redhat-rpm-config | ||
- systemd-sysv | ||
- initscripts | ||
when: ansible_os_family == 'RedHat' and ansible_distribution_major_version >= '7' | ||
|
||
- name: Ensure build dependencies are installed (RedHat < 7). | ||
yum: 'name="{{ item }}" state=present' | ||
with_items: | ||
- logrotate | ||
when: ansible_os_family == 'RedHat' and ansible_distribution_major_version < '7' | ||
|
||
- name: Force working version of Varnish on Ubuntu 14.04. | ||
set_fact: | ||
varnish_version: "4.0" | ||
when: ansible_distribution == 'Ubuntu' and ansible_distribution_version == '14.04' | ||
- include: setup.yml | ||
|
||
roles: | ||
- role_under_test | ||
|
||
post_tasks: | ||
- include: debug.yml |