Skip to content

Commit

Permalink
#14 template early Template ssh_private_key_server_bootstrap
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisjsimpson committed Oct 19, 2024
1 parent 3d08b99 commit ffeef2c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
9 changes: 9 additions & 0 deletions src/vpn/playbooks/create-rebuild-vpn-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@
hosts: localhost

tasks:

- name: Template ssh_private_key_server_bootstrap
ansible.builtin.template:
src: ./templates/ssh/ssh_private_key_server_bootstrap.j2
dest: "{{ ansible_ssh_private_key_file }}"
delegate_to: 127.0.0.1
tags:
- 'ssh'

- name: Attempt to destroy vpn-server regardless if exists or not
hetzner.hcloud.server:
api_token: "{{ hetzner_hcloud_token }}"
Expand Down
9 changes: 0 additions & 9 deletions src/vpn/playbooks/deploy-vpn-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,6 @@

tasks:

- name: Template ssh_private_key_server_bootstrap
ansible.builtin.template:
src: ./templates/ssh/ssh_private_key_server_bootstrap.j2
dest: "{{ ansible_ssh_private_key_file }}"
delegate_to: 127.0.0.1
tags:
- 'ssh'


- name: Install strongswan and xl2tpd
apt:
name: ['strongswan', 'xl2tpd']
Expand Down

0 comments on commit ffeef2c

Please sign in to comment.