mirror of
https://github.com/trailofbits/algo.git
synced 2026-09-26 11:34:55 +02:00
22 lines
609 B
YAML
22 lines
609 B
YAML
- name: Add the instance to an inventory group
|
|
add_host:
|
|
name: "{{ server_ip }}"
|
|
groups: vpn-host
|
|
ansible_ssh_user: "{{ server_user }}"
|
|
ansible_python_interpreter: "/usr/bin/python2.7"
|
|
cloud_provider: local
|
|
when: server_ip != "localhost"
|
|
|
|
- name: Add the instance to an inventory group
|
|
add_host:
|
|
name: "{{ server_ip }}"
|
|
groups: vpn-host
|
|
ansible_ssh_user: "{{ server_user }}"
|
|
ansible_python_interpreter: "/usr/bin/python2.7"
|
|
ansible_connection: local
|
|
cloud_provider: local
|
|
when: server_ip == "localhost"
|
|
|
|
- set_fact:
|
|
cloud_instance_ip: "{{ server_ip }}"
|