Skip to content

Commit

Permalink
#14 don't gather facts on vpn_servers before keys places & put ansibl…
Browse files Browse the repository at this point in the history
…e_ssh_private_key_file in all group_vars
  • Loading branch information
chrisjsimpson committed Oct 20, 2024
1 parent 78f58ee commit ec8503c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/vpn/group_vars/all.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ansible_ssh_private_key_file: ~/.ssh/id_ed25519_server_bootstrap
1 change: 0 additions & 1 deletion src/vpn/group_vars/localhost.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ hetzner_hcloud_token: !vault |
38323439613635323738
server_bootstrap_public_ssh_key: |
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINJ1bghgIXT9CQu+stzt+XA+0U8kF7xruvL9Hhiij55A
ansible_ssh_private_key_file: ~/.ssh/id_ed25519_server_bootstrap
ssh_private_key_server_bootstrap: !vault |
$ANSIBLE_VAULT;1.1;AES256
64343762333662643930643836636532623038616339313964353530616263333563303631656239
Expand Down
1 change: 1 addition & 0 deletions src/vpn/playbooks/deploy-vpn-client.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
- name: Install and configure L2TP IPsec vpn client on Ubuntu 22.04
hosts: "{{ vpn_servers | default('vpn_servers') }}"
gather_facts: false
become: yes
vars:
wireguard_dir: "/etc/wireguard/"
Expand Down

0 comments on commit ec8503c

Please sign in to comment.