From 1b965d719194482ca53063988a51fcb86a3f8413 Mon Sep 17 00:00:00 2001 From: willtome Date: Wed, 23 Mar 2022 17:16:37 -0400 Subject: [PATCH] update path --- .../demo/patching/roles/report_linux/vars/main.yml | 2 +- .../patching/roles/report_linux_patching/vars/main.yml | 2 +- linux/patching_report.yml | 10 ++++++++++ 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/collections/ansible_collections/demo/patching/roles/report_linux/vars/main.yml b/collections/ansible_collections/demo/patching/roles/report_linux/vars/main.yml index f09b15e..b91cc7a 100644 --- a/collections/ansible_collections/demo/patching/roles/report_linux/vars/main.yml +++ b/collections/ansible_collections/demo/patching/roles/report_linux/vars/main.yml @@ -1 +1 @@ -file_path: /var/www/html \ No newline at end of file +file_path: /var/www/html/reports \ No newline at end of file diff --git a/collections/ansible_collections/demo/patching/roles/report_linux_patching/vars/main.yml b/collections/ansible_collections/demo/patching/roles/report_linux_patching/vars/main.yml index f09b15e..b91cc7a 100644 --- a/collections/ansible_collections/demo/patching/roles/report_linux_patching/vars/main.yml +++ b/collections/ansible_collections/demo/patching/roles/report_linux_patching/vars/main.yml @@ -1 +1 @@ -file_path: /var/www/html \ No newline at end of file +file_path: /var/www/html/reports \ No newline at end of file diff --git a/linux/patching_report.yml b/linux/patching_report.yml index 2ee1385..3c83a8c 100644 --- a/linux/patching_report.yml +++ b/linux/patching_report.yml @@ -14,6 +14,16 @@ state: latest check_mode: no + - file: + path: /var/www/html/reports/ + state: directory + check_mode: no + + - copy: + dest: /var/www/html/reports/.htaccess + content: Options +Indexes + check_mode: no + - service: name: httpd state: started