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