forked from TeamUbersmith/ubersmith_installer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
add_new_brand.yml
23 lines (19 loc) · 1.16 KB
/
add_new_brand.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
---
- hosts: local
any_errors_fatal: true
vars_prompt:
- name: "new_virtual_host"
prompt: "Enter the hostname(s) for the new brand; for multiple brands use a comma delimited list"
default: "ubersmith.example.com"
private: no
vars:
existing_virtual_host: "{{ lookup('ini', 'virtual_host section=ubersmith_installer file={{ ansible_user_dir }}/.ubersmith_installer.ini') }}"
virtual_host: "{{ existing_virtual_host }},{{ new_virtual_host }}"
certificate_domains: "{{ virtual_host }}"
ubersmith_home: "{{ lookup('ini', 'ubersmith_home section=ubersmith_installer file={{ ansible_user_dir }}/.ubersmith_installer.ini') }}"
admin_email: "{{ lookup('ini', 'admin_email section=ubersmith_installer file={{ ansible_user_dir }}/.ubersmith_installer.ini') }}"
notify_email: "{{ lookup('ini', 'admin_email section=ubersmith_installer file={{ ansible_user_dir }}/.ubersmith_installer.ini') }}"
ubersmith_installed_version: "{{ lookup('ini', 'ubersmith_installed_version section=ubersmith_installer file={{ ansible_user_dir }}/.ubersmith_installer.ini') }}"
interactive: true
roles:
- ubersmith