Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,8 @@
}
],
"homepage": "https://github.com/operations-project/site-runner",
"require": {}
"require": {},
"bin": [
"scripts/server-verify-self"
]
}
1 change: 0 additions & 1 deletion roles/operations.runner/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,3 @@
- name: Configure GitHub Runners
include_tasks: github.yml
with_items: "{{ operations_github_runners }}"

16 changes: 16 additions & 0 deletions scripts/server-verify-self
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/usr/bin/bash

#
# This generic script lets a server run the playbook limited to itself.
#
# Setup
# 1. Run a server/container with a FQDN hostname. eg. operations.local.computer
# 2. Add that host to the ansible inventory.
# 3. Run this script on the server you want to configure and it will use the variables from the operations.local.computer ansible host automatically

set -e
echo ""
echo "> Running playbook for host $(hostname -f) ..."

set -x
ansible-playbook vendor/operations/site-runner/playbook.yml --limit $(hostname -f) --connection local