-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d40d717
commit dc58c93
Showing
1 changed file
with
3 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Run Ansible playbook for archival snapshots | ||
name: Export archival snapshots | ||
|
||
on: | ||
schedule: | ||
|
@@ -31,11 +31,5 @@ jobs: | |
chmod 600 ~/.ssh/id_rsa | ||
ssh-keyscan -t rsa archie.chainsafe.dev >> ~/.ssh/known_hosts | ||
- name: Run Ansible playbook | ||
env: | ||
ANSIBLE_HOST_KEY_CHECKING: True | ||
SSH_AUTH_SOCK: /tmp/ssh_agent.sock | ||
ARCHIVAL_SLACK_TOKEN: ${{ secrets.SLACK_TOKEN }} | ||
ENDPOINT: ${{ secrets.CLOUDFLARE_ENDPOINT }} | ||
run: | | ||
ansible-playbook playbook.yml -i inventory.ini | ||
- name: Verify SSH key | ||
run: ssh -i ~/.ssh/id_rsa -o StrictHostKeyChecking=no [email protected] "echo 'SSH connection successful'" |