This sample shows how a public compute instance can be launched and creation of 'A' record in DNS zone, through OCI ansible cloud modules.
The sample
- generates a temporary host-specific SSH key-pair
- specifies the public key from that key-pair to connect to the instance during instance launch and
- demonstrates how the newly launched instance can be connected to using SSH.
To run the sample, after ensuring that you have the pre-requisites for OCI ansible cloud modules, please provide values (that are specific to your tenancy) for the following variables in the vars
section of sample.yaml
:
- instance_ad
- instance_compartment
- instance_image # provide an OEL image