Skip to content

Commit

Permalink
Refactor playbook for consistency with other projects
Browse files Browse the repository at this point in the history
  • Loading branch information
marcransome committed Mar 6, 2024
1 parent 2b30e89 commit 9d57513
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
12 changes: 7 additions & 5 deletions deploy.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
---

# Provision Ansible controller with SSH key for remote
- 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"
- role: ssh-key
vars:
ssh_key_name: ansible_remote
hashicorp_vault_private_key_path: "{{ vault_base_path }}/aws"

# Deploy Tuxedo services
- hosts: aws_ec2
serial: 1
remote_user: centos
become: yes
roles:
- deploy
- role: deploy
3 changes: 3 additions & 0 deletions group_vars/all
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---

vault_base_path: /applications/heritage-{{ environment_name }}-eu-west-2/chl-tuxedo

0 comments on commit 9d57513

Please sign in to comment.