Skip to content

Commit

Permalink
#14 remove uneeded vpn_servers from inventory.ini since dynamic inven…
Browse files Browse the repository at this point in the history
…tory

removed step "Replace first changeme with vpn_server_ipv4_address and second changeme with root" for same reason
  • Loading branch information
chrisjsimpson committed Oct 19, 2024
1 parent 02a918a commit 6b8ec0e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
3 changes: 0 additions & 3 deletions src/vpn/inventory.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
[vpn_servers]
changeme ansible_user=changeme

[localhost]
localhost ansible_connection=local
6 changes: 0 additions & 6 deletions src/vpn/playbooks/create-rebuild-vpn-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,6 @@
- "{{ vpn_server_ipv4_address }}"
- "{{ vpn_server_ipv6_address }}"

- name: Replace first changeme with vpn_server_ipv4_address and second changeme with root
ansible.builtin.replace:
path: ../inventory.ini
regexp: '^(changeme)(.*ansible_user=)(changeme)$'
replace: '{{ vpn_server_ipv4_address }}\2root'

- name: Wait for port 22 on vpn_server
ansible.builtin.wait_for:
host: "{{ vpn_server_ipv4_address }}"
Expand Down

0 comments on commit 6b8ec0e

Please sign in to comment.