Skip to content

Commit

Permalink
First stab with #1, Ansible CD
Browse files Browse the repository at this point in the history
  • Loading branch information
mblomdahl-bot authored Mar 20, 2024
1 parent 8ef5b61 commit fb360a9
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 4 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/ansible-cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Continuous Deployment with Ansible

on:
push:
branches: ["main"]

jobs:
run-ansible-playbook:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Run bootstrap.yml playbook
uses: dawidd6/[email protected]
with:
playbook: bootstrap.yml
key: ${{secrets.SSH_PRIVATE_KEY}}
known_hosts: |
[83.233.237.136]:622 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIE4vBfnFG/U76eqgbLFqkp2yMKR3cpNrwPc6lTZAFNfq
[82.183.39.110]:622 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINyaOsHcT6Sy2UJMg40vxq+xxhPvvaSVjS2u0pxKy1dT
[83.233.237.136]:623 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKSP+L5mjXBT5UqCi9/rHWFAeMCqhGyxYVbSQfmDkNuB
vault_password: ${{secrets.VAULT_PASSWORD}}
options: |
--diff
--check
4 changes: 0 additions & 4 deletions hosts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,13 @@ minio_servers:
ansible_port: 622
ansible_user: owntube_ansible
ansible_ssh_private_key_file: ~/.ssh/id_rsa
ansible_ssh_common_args: '-o StrictHostKeyChecking=no'
minio2:
ansible_host: 83.233.237.136
ansible_port: 623
ansible_user: owntube_ansible
ansible_ssh_private_key_file: ~/.ssh/id_rsa
ansible_ssh_common_args: '-o StrictHostKeyChecking=no'
minio3:
ansible_host: 82.183.39.110
ansible_port: 622
ansible_user: owntube_ansible
ansible_ssh_private_key_file: ~/.ssh/id_rsa
ansible_ssh_common_args: '-o StrictHostKeyChecking=no'
...

0 comments on commit fb360a9

Please sign in to comment.