mirror of
https://github.com/trailofbits/algo
synced 2024-11-18 09:25:38 +00:00
25513cf925
* Refactoring, Linting and additional tests * Vultr: Undefined variable and deprecation notes fix * Travis-CI enable linters * Azure: Update python requirements * Update main.yml * Update install.sh * Add missing roles to ansible-lint * Linting for skipped roles * add .ansible-lint config
27 lines
673 B
YAML
27 lines
673 B
YAML
---
|
|
- name: Configure the client
|
|
hosts: localhost
|
|
become: false
|
|
vars_files:
|
|
- config.cfg
|
|
|
|
tasks:
|
|
- name: Add the droplet to an inventory group
|
|
add_host:
|
|
name: "{{ client_ip }}"
|
|
groups: client-host
|
|
ansible_ssh_user: "{{ 'root' if client_ip == 'localhost' else ssh_user }}"
|
|
vpn_user: "{{ vpn_user }}"
|
|
IP_subject_alt_name: "{{ server_ip }}"
|
|
ansible_python_interpreter: "/usr/bin/python3"
|
|
|
|
- name: Configure the client and install required software
|
|
hosts: client-host
|
|
gather_facts: false
|
|
become: true
|
|
vars_files:
|
|
- config.cfg
|
|
- roles/strongswan/defaults/main.yml
|
|
roles:
|
|
- role: client
|