You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
algo/deploy.yml

58 lines
1.4 KiB
YAML

8 years ago
- name: Configure the server
8 years ago
hosts: localhost
8 years ago
tags: algo
8 years ago
vars_files:
- config.cfg
8 years ago
8 years ago
roles:
- { role: cloud-digitalocean, tags: ['digitalocean'] }
8 years ago
- { role: cloud-ec2, tags: ['ec2'] }
- { role: cloud-gce, tags: ['gce'] }
- { role: cloud-azure, tags: ['azure'] }
- { role: local, tags: ['local'] }
8 years ago
post_tasks:
- name: Wait until SSH becomes ready...
local_action:
module: wait_for
port: 22
host: "{{ cloud_instance_ip }}"
search_regex: "OpenSSH"
delay: 10
timeout: 320
state: present
become: false
tags:
- cloud
- name: A short pause, in order to be sure the instance is ready
pause:
seconds: 10
tags:
- cloud
8 years ago
- name: Configure the server and install required software
8 years ago
hosts: vpn-host
gather_facts: false
8 years ago
tags: algo
8 years ago
become: true
vars_files:
- config.cfg
8 years ago
pre_tasks:
8 years ago
- name: Common pre-tasks
include: playbooks/common.yml
8 years ago
tags: [ 'digitalocean', 'ec2', 'gce', 'azure', 'local', 'pre' ]
8 years ago
8 years ago
roles:
- { role: security, tags: [ 'security' ] }
- { role: proxy, tags: [ 'proxy', 'adblock' ] }
- { role: dns_adblocking, tags: ['dns', 'adblock' ] }
- { role: logging, tags: [ 'logging' ] }
- { role: ssh_tunneling, tags: [ 'ssh_tunneling' ] }
8 years ago
- { role: vpn, tags: [ 'vpn' ] }
8 years ago
post_tasks:
- debug: msg="{{ congrats.split('\n') }}"
tags: always