Skip to content

Commit 3d3304e

Browse files
authored
Basic branding role (#497)
1 parent 1768618 commit 3d3304e

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

ansible/branding.yml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
- name: branding
2+
hosts: branding
3+
roles:
4+
- common
5+
- webserver
6+
- branding

ansible/roles/branding/tasks/main.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
- include: ../../common/tasks/setfacts.yml
2+
tags:
3+
- branding
4+
5+
- name: Ensure data directory exists
6+
file: path=/srv/{{ branding_url }}/www/{{ item }} state=directory owner={{ansible_user}} group={{ansible_user}}
7+
with_items:
8+
- "{{ branding_path }}"
9+
tags:
10+
- branding
11+
12+
- name: add nginx vhost if configured
13+
include_role:
14+
name: nginx_vhost
15+
vars:
16+
appname: "branding"
17+
hostname: "{{ branding_hostname }}"
18+
context_path: "/"
19+
nginx_paths:
20+
- path: "/"
21+
sort_label: "1"
22+
is_proxy: false
23+
alias: "/srv/{{ branding_url }}/www/"
24+
tags:
25+
- nginx_vhost
26+
- deploy
27+
- branding
28+
when: webserver_nginx

0 commit comments

Comments
 (0)