diff --git a/playbooks/cloud-post.yml b/playbooks/cloud-post.yml index cd7ac461..283ed60a 100644 --- a/playbooks/cloud-post.yml +++ b/playbooks/cloud-post.yml @@ -3,7 +3,7 @@ set_fact: 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: name: "{% if cloud_instance_ip == 'localhost' %}localhost{% else %}{{ cloud_instance_ip }}{% endif %}" groups: vpn-host @@ -21,7 +21,7 @@ algo_store_cakey: "{{ algo_store_cakey }}" IP_subject_alt_name: "{{ IP_subject_alt_name }}" -- name: Additional variables for the droplet +- name: Additional variables for the server add_host: name: "{% if cloud_instance_ip == 'localhost' %}localhost{% else %}{{ cloud_instance_ip }}{% endif %}" ansible_ssh_private_key_file: "{{ SSH_keys.private }}" @@ -39,7 +39,7 @@ - debug: var: IP_subject_alt_name - + - name: A short pause, in order to be sure the instance is ready pause: seconds: 20