aboutsummaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
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.