aboutsummaryrefslogtreecommitdiffstats
path: root/tasks
diff options
context:
space:
mode:
authorJan Tuomi <jan@jantuomi.fi>2025-10-09 22:04:02 +0300
committerJan Tuomi <jan@jantuomi.fi>2025-10-09 22:04:02 +0300
commitf4504129f6a1bfce8fc81f69b0f90f340acb1d34 (patch)
tree80a912e83b9d9a6dc9626d15b71573afc597f5eb /tasks
parente037ecfa8cc0133a84fbed791b7658c474c3e748 (diff)
Add postgres jail conf
Diffstat (limited to 'tasks')
-rw-r--r--tasks/jail_postgres.yml10
1 files changed, 10 insertions, 0 deletions
diff --git a/tasks/jail_postgres.yml b/tasks/jail_postgres.yml
new file mode 100644
index 0000000..42cdacf
--- /dev/null
+++ b/tasks/jail_postgres.yml
@@ -0,0 +1,10 @@
+- name: Install packages inside jail
+ loop:
+ - { jail: postgres, package: postgresql18-server }
+ include_tasks: pkg_jail_install.yml
+
+- name: Enable postgresql service inside jail
+ shell: |
+ service -j postgres postgresql enable
+ changed_when: false
+# Run initdb and start manually, not managed by Ansible