algo/azure.yml

97 lines
2.6 KiB
YAML
Raw Normal View History

2016-08-14 11:13:23 +00:00
- name: Configure the server and install required software
hosts: localhost
gather_facts: false
vars:
regions:
"1": "East US"
"2": "West US"
"3": "South Central US"
"4": "North Europe"
"5": "East Asia"
"6": "Japan East"
"7": "West Europe"
"8": "Southeast Asia"
"9": "Japan West"
"10": "North Central US"
"11": "Central US"
"12": "Brazil South"
"13": "East US 2"
"14": "Australia Southeast"
"15": "Australia East"
#vars_prompt:
#- name: "azure_subscription_id"
#prompt: "Enter your subscription ID (https://blogs.msdn.microsoft.com/mschray/2015/05/13/getting-your-azure-guid-subscription-id/):\n"
#private: yes
#- name: "management_cert_path"
#prompt: "Enter the local path to your management cert [ex: ~/.ssh/id_rsa.pub] (https://azure.microsoft.com/en-us/documentation/articles/azure-api-management-certs/):\n"
#private: no
#- name: "ssh_public_key"
#prompt: "Enter the local path to your SSH public key [ex: ~/.ssh/id_rsa.pub] :\n"
2016-08-16 03:32:44 +00:00
#private: no
2016-08-14 11:13:23 +00:00
#- name: "region"
#prompt: >
#What region should the server be located in?
#1. East US
#2. West US
#3. South Central US
#4. North Europe
#5. East Asia
#6. Japan East
#7. West Europe
#8. Southeast Asia
#9. Japan West
#10. North Central US
#11. Central US
#12. Brazil South
#13. East US 2
#14. Australia Southeast
#15. Australia East
#Enter the number of your desired region:
#default: "7"
#private: no
2016-08-16 03:32:44 +00:00
2016-08-14 11:13:23 +00:00
#- name: "azure_server_name"
#prompt: "Name the vpn server:\n"
#default: "algo.local"
#private: no
2016-08-16 03:32:44 +00:00
2016-08-14 11:13:23 +00:00
#- name: "dns_enabled"
#prompt: "Do you want to use a local DNS resolver to block ads while surfing? (Y or N):\n"
#default: "Y"
#private: no
2016-08-16 03:32:44 +00:00
2016-08-14 11:13:23 +00:00
#- name: "auditd_enabled"
#prompt: "Do you want to use auditd ? (Y or N):\n"
#default: "Y"
2016-08-16 03:32:44 +00:00
#private: no
2016-08-14 11:13:23 +00:00
roles:
2016-08-16 04:00:26 +00:00
- cloud-azure
2016-08-14 11:13:23 +00:00
- name: Post-provisioning tasks
hosts: vpn-host
gather_facts: false
become: true
vars_files:
- config.cfg
2016-08-16 03:32:44 +00:00
2016-08-14 11:13:23 +00:00
pre_tasks:
- name: Install prerequisites
raw: sudo apt-get update -qq && sudo apt-get install -qq -y python2.7
- name: Configure defaults
2016-08-16 03:32:44 +00:00
raw: sudo update-alternatives --install /usr/bin/python python /usr/bin/python2.7 1
2016-08-14 11:13:23 +00:00
roles:
- common
- security
2016-08-17 20:26:17 +00:00
- proxy
2016-08-14 11:13:23 +00:00
- vpn
2016-08-17 20:26:17 +00:00
- { role: dns_adblocking , when: dns_enabled is defined and dns_enabled == "Y" }
2016-08-16 03:32:44 +00:00
- { role: logging, when: auditd_enabled is defined and auditd_enabled == 'Y' }
2016-08-14 11:13:23 +00:00