Use a vault password file
authorKristof Provost <kp@FreeBSD.org>
Sun, 28 Apr 2024 19:29:07 +0000 (21:29 +0200)
committerKristof Provost <kp@FreeBSD.org>
Sun, 28 Apr 2024 19:29:07 +0000 (21:29 +0200)
Avoid us having to type the password on every invocation.

While here ensure ipsec is running.

.gitignore [new file with mode: 0644]
ansible/README.txt
ansible/roles/router/tasks/main.yaml

diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..b36779c
--- /dev/null
@@ -0,0 +1 @@
+.vault_pass
index 43a93f1..2a0f0a0 100644 (file)
@@ -5,4 +5,4 @@ py39-ansible-sysrc
 
 Push
 =====
-ANSIBLE_HOST_KEY_CHECKING=False ansible-playbook --ask-vault-pass -i inventory.yaml playbook-push.yaml
+ANSIBLE_HOST_KEY_CHECKING=False ansible-playbook --vault-password-file=.vault_pass -i inventory.yaml playbook-push.yaml
index 5c7b6b7..315573e 100644 (file)
@@ -78,3 +78,8 @@
   community.general.sysrc:
     name: strongswan_enable
     value: "YES"
+- name: Start strongswam
+  ansible.builtin.service:
+    name:  strongswan
+    state: started
+  become: true