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

42 lines
1.1 KiB
YAML

8 years ago
- name: Configure the server and install required software
hosts: localhost
8 years ago
tags: algo
8 years ago
vars_files:
- config.cfg
roles:
- { role: cloud-digitalocean, tags: ['digitalocean'] }
- { role: cloud-ec2, tags: ['ec2'] }
- { role: cloud-gce, tags: ['gce'] }
- { role: local, tags: ['local'] }
8 years ago
- name: Post-provisioning tasks
hosts: vpn-host
gather_facts: false
8 years ago
tags: algo
8 years ago
become: true
vars_files:
- config.cfg
pre_tasks:
- name: Common pre-tasks
include: playbooks/common.yml
8 years ago
tags: [ 'digitalocean', 'ec2', 'gce', 'pre' ]
8 years ago
- name: DigitalOcean pre-tasks
include: playbooks/digitalocean.yml
8 years ago
tags: [ 'digitalocean' ]
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
handlers:
- name: reload eth0
8 years ago
shell: sh -c 'ifdown eth0; ip addr flush dev eth0; ifup eth0'
8 years ago