Use FQCNs

This commit is contained in:
Sebastian Haderecker
2021-02-13 17:46:28 +01:00
parent bb8d2f27c6
commit b014f73045
7 changed files with 26 additions and 26 deletions

View File

@ -1,9 +1,9 @@
- name: Generate T-Pot name
set_fact:
ansible.builtin.set_fact:
tpot_name: "t-pot-ansible-{{ lookup('password', '/dev/null chars=ascii_lowercase,digits length=6') }}"
- name: Create instance
os_server:
openstack.cloud.server:
cloud: open-telekom-cloud
name: "{{ tpot_name.stdout }}"
availability_zone: "{{ availability_zone }}"
@ -18,7 +18,7 @@
register: tpot
- name: Add instance to inventory
add_host:
ansible.builtin.add_host:
hostname: "{{ tpot_name.stdout }}"
ansible_host: "{{ tpot.server.public_v4 }}"
groups: tpot