aboutsummaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorRomain Gonçalves <me@rgoncalves.se>2024-06-29 21:28:37 +0200
committerRomain Gonçalves <me@rgoncalves.se>2024-06-30 17:00:40 +0200
commit0f62ee8478cd1e32adca86ce6dd8b95ea2aaa5f8 (patch)
tree25aabef940801f2549b8813204ae4ba3df7148f1 /roles
parent877d4ef8b4a0ed23a3d9e1143fdd1c63da61df80 (diff)
downloadrules-0f62ee8478cd1e32adca86ce6dd8b95ea2aaa5f8.tar.gz
feat(roles/httpd_pre): copy ssl and resolv files to chroot
Diffstat (limited to 'roles')
-rw-r--r--roles/httpd_pre/defaults/main.yml5
-rw-r--r--roles/httpd_pre/tasks/main.yml20
2 files changed, 25 insertions, 0 deletions
diff --git a/roles/httpd_pre/defaults/main.yml b/roles/httpd_pre/defaults/main.yml
index dfda874..1a10a11 100644
--- a/roles/httpd_pre/defaults/main.yml
+++ b/roles/httpd_pre/defaults/main.yml
@@ -12,3 +12,8 @@ httpd_pre__sites_dir: "{{ httpd_pre__chroot_dir }}{{ httpd_pre__chroot_sites_dir
httpd_pre__user: www
httpd_pre__group: www
+
+httpd_pre__ssl_files:
+ - /etc/ssl/cert.pem
+ - /etc/ssl/openssl.cnf
+ - /etc/resolv.conf
diff --git a/roles/httpd_pre/tasks/main.yml b/roles/httpd_pre/tasks/main.yml
index d1760db..1667df4 100644
--- a/roles/httpd_pre/tasks/main.yml
+++ b/roles/httpd_pre/tasks/main.yml
@@ -23,3 +23,23 @@
owner: 0
group: 0
mode: "0755"
+
+# - name: create ssl directories
+# ansible.builtin.file:
+# path: "{{ httpd_pre__chroot_dir }}/{{ item | dirname }}"
+# recurse: true
+# state: directory
+# mode: "0644"
+# loop_control:
+# label: "{{ httpd_pre__chroot_dir }}/{{ item | dirname }}"
+# loop: "{{ httpd_pre__ssl_files }}"
+#
+# - name: copy ssl files
+# ansible.builtin.copy:
+# src: "{{ item }}"
+# dest: "{{ httpd_pre__chroot_dir }}/{{ item }}"
+# remote_src: true
+# mode: "0444"
+# owner: root
+# group: bin
+# loop: "{{ httpd_pre__ssl_files }}"
remember that computers suck.