rename droplet to server

This commit is contained in:
Jack Ivanov 2018-07-11 18:54:59 +03:00
parent 606420afb7
commit f06e789753

View file

@ -3,7 +3,7 @@
set_fact: set_fact:
IP_subject_alt_name: "{% if algo_provider == 'local' %}{{ IP_subject_alt_name }}{% else %}{{ cloud_instance_ip }}{% endif %}" IP_subject_alt_name: "{% if algo_provider == 'local' %}{{ IP_subject_alt_name }}{% else %}{{ cloud_instance_ip }}{% endif %}"
- name: Add the droplet to an inventory group - name: Add the server to an inventory group
add_host: add_host:
name: "{% if cloud_instance_ip == 'localhost' %}localhost{% else %}{{ cloud_instance_ip }}{% endif %}" name: "{% if cloud_instance_ip == 'localhost' %}localhost{% else %}{{ cloud_instance_ip }}{% endif %}"
groups: vpn-host groups: vpn-host
@ -21,7 +21,7 @@
algo_store_cakey: "{{ algo_store_cakey }}" algo_store_cakey: "{{ algo_store_cakey }}"
IP_subject_alt_name: "{{ IP_subject_alt_name }}" IP_subject_alt_name: "{{ IP_subject_alt_name }}"
- name: Additional variables for the droplet - name: Additional variables for the server
add_host: add_host:
name: "{% if cloud_instance_ip == 'localhost' %}localhost{% else %}{{ cloud_instance_ip }}{% endif %}" name: "{% if cloud_instance_ip == 'localhost' %}localhost{% else %}{{ cloud_instance_ip }}{% endif %}"
ansible_ssh_private_key_file: "{{ SSH_keys.private }}" ansible_ssh_private_key_file: "{{ SSH_keys.private }}"
@ -39,7 +39,7 @@
- debug: - debug:
var: IP_subject_alt_name var: IP_subject_alt_name
- name: A short pause, in order to be sure the instance is ready - name: A short pause, in order to be sure the instance is ready
pause: pause:
seconds: 20 seconds: 20