Skip to content

Commit

Permalink
Merge pull request #40 from companieshouse/feature/use-ssh-role
Browse files Browse the repository at this point in the history
Use galaxy role to install SSH key on Ansible controller
  • Loading branch information
marcransome authored Oct 26, 2021
2 parents 8ed27d8 + 951de15 commit d753cd2
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 32 deletions.
7 changes: 7 additions & 0 deletions deploy.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
---

- hosts: localhost
roles:
- ssh-key
vars:
ssh_key_name: ansible_remote
hashicorp_vault_private_key_path: "/applications/heritage-{{ environment_name }}-eu-west-2/tuxedo/aws"

- hosts: aws_ec2
serial: 1
remote_user: centos
Expand Down
5 changes: 5 additions & 0 deletions requirements.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
---

roles:
- src: https://github.com/companieshouse/ansible-role-ssh-key
name: ssh-key
version: "1.0.0"

collections:
- name: amazon.aws
- name: community.hashi_vault
27 changes: 0 additions & 27 deletions roles/sshkey/tasks/main.yml

This file was deleted.

5 changes: 0 additions & 5 deletions sshkey.yml

This file was deleted.

0 comments on commit d753cd2

Please sign in to comment.