#Set the CoreA public IP to a var and use it to configure the remote host
- set_fact:
corea_public_ip: "{{ instance_public_ip.stdout }}"
- add_host:
name: "{{ corea_public_ip }}"
groups: corea_launched
- name: Configure the Core Node A
hosts: corea_launched
become_user: sudo
become_method: sudo
roles:
- role: configure_coreA
TASK [provision_instances : add_host] **************************************************************************************************************************************************************************
task path: /roles/provision_instances/tasks/corea_lc.yml:86
creating host via 'add_host': hostname=34.XX.XX.XX
changed: [local] => {
"add_host": {
"groups": [
"corea_launched"
],
"host_name": "34.XX.XX.XX",
"host_vars": {}
},
"changed": true
}
META: ran handlers
META: ran handlers
PLAY [Configure the Core Node A] **************************************************************************************************************************************************************************
skipping: no hosts matched