Skip to content

Commit 96f1983

Browse files
committed
add ssh keys
1 parent 23ec29c commit 96f1983

File tree

2 files changed

+23
-11
lines changed

2 files changed

+23
-11
lines changed

.github/workflows/deploy.yaml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,22 @@ on:
1212
permissions: read-all
1313

1414
jobs:
15-
#deploy_jon:
16-
# name: Deploy to jon
17-
# uses: ./.github/workflows/deploy_dns_environment.yaml
18-
# with:
19-
# environment: dev_jon
20-
# secrets: inherit
21-
# if: github.ref == 'refs/heads/main'
15+
deploy_jon:
16+
name: Deploy to jon
17+
uses: ./.github/workflows/deploy_dns_environment.yaml
18+
with:
19+
environment: dev_jon
20+
secrets: inherit
21+
if: github.ref == 'refs/heads/main'
2222

2323
deploy_sn11_prod:
2424
name: Deploy to sn11 prod
2525
uses: ./.github/workflows/deploy_dns_environment.yaml
26-
#needs: deploy_jon
26+
needs: deploy_jon
2727
with:
2828
environment: prod_sn11
2929
secrets: inherit
30-
#if: github.ref == 'refs/heads/main'
30+
if: github.ref == 'refs/heads/main'
3131

3232
deploy_sn10_prod:
3333
name: Deploy to sn10 prod
@@ -36,12 +36,12 @@ jobs:
3636
with:
3737
environment: prod_sn10
3838
secrets: inherit
39-
#if: github.ref == 'refs/heads/main'
39+
if: github.ref == 'refs/heads/main'
4040

4141
deploy_sn3_prod:
4242
name: Deploy to sn3 prod
4343
uses: ./.github/workflows/deploy_dns_environment.yaml
44-
needs: deploy_sn10_prod
44+
#needs: deploy_sn10_prod
4545
with:
4646
environment: prod_sn3
4747
secrets: inherit

infra/ansible/roles/knot_authoritative/tasks/main.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,18 @@
3636
- dnsutils
3737
- knot=3.4.6-cznic.1~bookworm
3838

39+
- name: Add WN
40+
ansible.posix.authorized_key:
41+
user: debian
42+
state: present
43+
key: "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBTf39rln9Gn4+xAq55izTsHaLrvwxe0KxdLdqN8AHV5 wilnil@willardpad"
44+
45+
- name: Add AD
46+
ansible.posix.authorized_key:
47+
user: debian
48+
state: present
49+
key: "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINqMvlwLFwGENT5WMjytI2iwVlHPV2TX+gOgBXj9kw4k andrew@localhost"
50+
3951
- name: Knot DNS Config
4052
ansible.builtin.template:
4153
src: knot.conf.j2

0 commit comments

Comments
 (0)