UBUNTU Testing
./startup.sh
ssh -i Ubuntu-key.pem ubuntu@ec2-3-89-35-103.compute-1.amazonaws.com 'bash -s' < scripts/ubuntu-setup.sh
ssh -i Ubuntu-key.pem ubuntu@ec2-3-95-13-227.compute-1.amazonaws.com 'bash -s' < scripts/ubuntu-setup.sh
ssh -i Ubuntu-key.pem ubuntu@ec2-3-89-35-103.compute-1.amazonaws.com
git clone https://github.com/ansible-lockdown/UBUNTU18-CIS.git
vi or nano UBUNTU18-CIS/site.yml
- hosts: localhost
ansible-playbook site.yml
terrafrom refresh
Outputs:
Ubuntu18 = "ssh -i Ubuntu-key.pem ubuntu@ec2-3-89-35-103.compute-1.amazonaws.com" Ubuntu20 = "ssh -i Ubuntu-key.pem ubuntu@ec2-3-95-13-227.compute-1.amazonaws.com" ec2_instance_ip_Ubuntu18 = "3.89.35.103" ec2_instance_ip_Ubuntu20 = "3.95.13.227"
Welcome to your PIPELINE testing
./cleanup.sh