Skip to content

Instantly share code, notes, and snippets.

@Affan-7
Last active January 5, 2023 04:44
Show Gist options
  • Save Affan-7/21a081742583a18985a264d37bfa4da4 to your computer and use it in GitHub Desktop.
Save Affan-7/21a081742583a18985a264d37bfa4da4 to your computer and use it in GitHub Desktop.
ansible inventory file demo
[ec2]
<Ip addresses of ec2 instances (use single line for each ip address)>
[ec2:vars]
ansible_user=ec2-user
ansible_ssh_private_key_file=<path to your private ssh key file>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment