Add github runner
This commit is contained in:
@@ -4,4 +4,7 @@ ansible-galaxy install -r requirements.yml
|
||||
|
||||
# Install the playbook
|
||||
ansible-playbook -i inventory -e @secrets.enc --ask-vault-pass frontend.yaml
|
||||
|
||||
# Github runner
|
||||
ansible-playbook -i inventory -e @secrets.enc --ask-vault-pass github-runner.yaml
|
||||
```
|
||||
|
||||
22
github-runner.yaml
Executable file
22
github-runner.yaml
Executable file
@@ -0,0 +1,22 @@
|
||||
---
|
||||
- name: Github Runner setup
|
||||
hosts: github-runners
|
||||
|
||||
vars:
|
||||
username: matt
|
||||
|
||||
docker_add_repo: true
|
||||
docker_users:
|
||||
- "{{ username }}"
|
||||
|
||||
roles:
|
||||
- role: geerlingguy.docker
|
||||
become: true
|
||||
|
||||
- role: compscidr.github_runner.github_runner
|
||||
vars:
|
||||
github_runner_install_docker: false
|
||||
github_runner_personal_access_token: "{{ secrets.GITHUB_ACTIONS_TOKEN }}"
|
||||
github_runner_name: "aarch64-rpi5-runner"
|
||||
github_runner_repo: "m5p3nc3r/website"
|
||||
github_runner_lables: "aarch64, rpi5"
|
||||
@@ -1,2 +1,5 @@
|
||||
[frontend]
|
||||
rpi4-2.localdomain
|
||||
|
||||
[github-runners]
|
||||
rpi5-1.localdomain
|
||||
@@ -1,6 +1,7 @@
|
||||
---
|
||||
collections:
|
||||
- community.docker
|
||||
- compscidr.github_runner
|
||||
|
||||
roles:
|
||||
- geerlingguy.certbot
|
||||
|
||||
21
secrets.enc
21
secrets.enc
@@ -1,10 +1,13 @@
|
||||
$ANSIBLE_VAULT;1.1;AES256
|
||||
39376439353063643939363564336534396362656638363136366137643332613264363330316564
|
||||
6461323335653064646239666430303034613635313731630a656261613936376636346432646231
|
||||
62323136623565356532346533386536663533343533363966623662616464643030336632353533
|
||||
3935363931363034650a616331316434663766663734333261356430616531343835306237303739
|
||||
31613735663430376566313538633131663434636663363735373731366432373430363438336337
|
||||
31323164643365636134636366303164333635306232313464613834646632383636616437343261
|
||||
32613666346238633639643932306364353164643966626133623135646230366434386532663234
|
||||
37383931613466323931653235616635323339363335323062316131346634346332666535383366
|
||||
3865
|
||||
32356336356663633939323233653939386634633761383436386239333164326633323136353261
|
||||
3239336138343537633565393662396436613734333337390a623762333164633839333937613233
|
||||
35356465356136663531376462643932303830623134616531303634383039356563633464633365
|
||||
6237323132343531330a643533323934353231363036343264303339393837366635316634623832
|
||||
61626163356637313134616364316237363232616631323137333037636362373038323966336237
|
||||
37373134393733396466393130356235316433323762313836633831306135666538316634363537
|
||||
61363466623337333430323435303565386533613236336134646663643534343036316431366430
|
||||
61323733653835303764653739643662666532333335363738393438623766343363366533666262
|
||||
61616531373663646332323166333530613733363461656538376539663736643562343338396637
|
||||
37633863356566633264636436363631613666333533313063386465323630396662303764643836
|
||||
38636537336230323831386231383039373336666435373538666462656531613637643465323035
|
||||
30633135613162393835
|
||||
|
||||
Reference in New Issue
Block a user