Skip to content

njefsky/ansible-terraform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ansible-terraform

prerequisites

You need to install the following packages.

yum install ansible wget -y

vault

In group_vars/all/vault.yml you need to add the following variables.

  ---

  public_key: "ssh-rsa AAAAB3NzaC1yc2EAAAADAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
  aws_access_key_id: "AKXXXXXXXXXXXXXXXXXXXX"
  aws_secret_access_key: "9hVXXXXXXXXXXXXXXXXXXXXX"

  ...

encrypt the file with

ansible-vault encrypt group_vars/all/vault.yml
 New Vault password:
 Confirm New Vault password:

After this you can run your playbook ass follows.

ansible-playbook playbook.yml --key-file /path/to/private/key/id_rsa --ask-vault-pass
 Vault paasword:

It will prompt for your password.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages