From 8d19bc3fa35e8b766e68ebb47b5df225e8ff59df Mon Sep 17 00:00:00 2001 From: Stefan Haun Date: Tue, 24 Nov 2020 18:30:46 +0100 Subject: [PATCH] Move httpd stuff to tasks --- httpd.yml | 33 --------------------------------- tasks/httpd.yml | 19 +++++++++++++++++++ 2 files changed, 19 insertions(+), 33 deletions(-) delete mode 100644 httpd.yml create mode 100644 tasks/httpd.yml diff --git a/httpd.yml b/httpd.yml deleted file mode 100644 index 73dcebf..0000000 --- a/httpd.yml +++ /dev/null @@ -1,33 +0,0 @@ ---- -- hosts: tau - become: true - - vars: - - server_admin: "admin@netz39.de" - - - tasks: - - name: Update and clean package cache - apt: - update_cache: true - cache_valid_time: 3600 - autoclean: true - - - name: Ensure Apache2 and modules are installed and up to date - apt: - name: - - apache2 - state: latest - - - name: Ensure mod_rewrite is enabled - apache2_module: - name: rewrite - state: present - - - - name: Setup proxy site testredmine.netz39.de - include_role: - name: setup-http-site-proxy - vars: - site_name: testredmine.netz39.de - proxy_port: 9004 diff --git a/tasks/httpd.yml b/tasks/httpd.yml new file mode 100644 index 0000000..8b3f71d --- /dev/null +++ b/tasks/httpd.yml @@ -0,0 +1,19 @@ +--- +- name: Ensure Apache2 and modules are installed and up to date + apt: + name: + - apache2 + state: latest + +- name: Ensure mod_rewrite is enabled + apache2_module: + name: rewrite + state: present + + +- name: Setup proxy site testredmine.netz39.de + include_role: + name: setup-http-site-proxy + vars: + site_name: testredmine.netz39.de + proxy_port: 9004