mirror of https://github.com/trailofbits/algo
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.
36 lines
892 B
YAML
36 lines
892 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'
|
|
|
|
- name: Install strongSwan
|
|
package: name=strongswan state=present
|
|
|
|
- import_tasks: ipsec_configuration.yml
|
|
- import_tasks: openssl.yml
|
|
tags: update-users
|
|
- import_tasks: distribute_keys.yml
|
|
- import_tasks: client_configs.yml
|
|
delegate_to: localhost
|
|
become: no
|
|
tags: update-users
|
|
|
|
- name: strongSwan started
|
|
service:
|
|
name: strongswan
|
|
state: started
|
|
enabled: true
|
|
|
|
- meta: flush_handlers
|
|
rescue:
|
|
- debug: var=fail_hint
|
|
tags: always
|
|
- fail:
|
|
tags: always
|