mirror of
https://github.com/trailofbits/algo.git
synced 2025-04-26 11:12:48 +02:00
* Move to ansible-2.4.3 * Add Lightsail support #623 * Fixing the EC2 deployment * Scaleway integration #623 * OpenStack cloud provider (DreamCompute optimised) #623 * Remove the security role * Enable unattended-upgrades for clouds * New requirements to make Azure and GCE work
35 lines
935 B
YAML
35 lines
935 B
YAML
---
|
|
- block:
|
|
- name: Ensure that the strongswan group exist
|
|
group: name=strongswan state=present
|
|
|
|
- name: Ensure that the strongswan user exist
|
|
user: name=strongswan group=strongswan state=present
|
|
|
|
- include_tasks: ubuntu.yml
|
|
when: ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu'
|
|
|
|
- include_tasks: freebsd.yml
|
|
when: ansible_distribution == 'FreeBSD'
|
|
|
|
- name: Install strongSwan
|
|
package: name=strongswan state=present
|
|
|
|
- include_tasks: ipec_configuration.yml
|
|
- include_tasks: openssl.yml
|
|
tags: update-users
|
|
- include_tasks: distribute_keys.yml
|
|
- include_tasks: client_configs.yml
|
|
delegate_to: localhost
|
|
become: no
|
|
tags: update-users
|
|
|
|
- meta: flush_handlers
|
|
|
|
- name: strongSwan started
|
|
service: name=strongswan state=started
|
|
rescue:
|
|
- debug: var=fail_hint
|
|
tags: always
|
|
- fail:
|
|
tags: always
|