From 0f62ee8478cd1e32adca86ce6dd8b95ea2aaa5f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= Date: Sat, 29 Jun 2024 21:28:37 +0200 Subject: feat(roles/httpd_pre): copy ssl and resolv files to chroot --- roles/httpd_pre/defaults/main.yml | 5 +++++ roles/httpd_pre/tasks/main.yml | 20 ++++++++++++++++++++ 2 files changed, 25 insertions(+) (limited to 'roles/httpd_pre') 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 }}" -- cgit v1.2.3