diff --git a/tasks/configure.yml b/tasks/configure.yml index 000f27c404e85ab107519d4af63a46f487d778b4..6433c7b3b9bf84ca4bbc726288c803417e2a3302 100644 --- a/tasks/configure.yml +++ b/tasks/configure.yml @@ -1,7 +1,7 @@ --- - name: copy lighttpd configuration - template: + ansible.builtin.template: src: "{{ lighttpd_configfile }}" dest: "{{ system_config_directory }}/lighttpd/lighttpd.conf" owner: root @@ -9,7 +9,7 @@ mode: 0644 - name: start lighttpd - service: + ansible.builtin.service: name: "{{ _service }}" state: started loop: "{{ package_services }}" @@ -18,7 +18,7 @@ register: _lighttpd_started - name: reload lighttpd - service: + ansible.builtin.service: name: "{{ _service }}" state: started loop: "{{ package_services }}" diff --git a/tasks/main.yml b/tasks/main.yml index 2feb2a7a4a097cf39e343f46384b9cd2eeb298da..d9084f5f8929472fa01e8c9a68dad09224b7cf5f 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,20 +1,20 @@ --- - name: install lighttpd - call_tasks: + sdm.oor.call_tasks: super: true - name: create lighttpd data directory - file: + ansible.builtin.file: path: "{{ www_root_directory }}" state: directory mode: 0755 - name: "create {{ system_config_directory }}/lighttpd directory" - file: + ansible.builtin.file: path: "{{ system_config_directory }}/lighttpd" state: directory mode: 0755 -- call_tasks: +- sdm.oor.call_tasks: from: configure diff --git a/templates/lighttpd.conf.j2 b/templates/lighttpd.conf.j2 index f209c0f47dfd2a494918b2b703db73e272329613..0136bf091b4a85b561d7e2ca45145ec33201e938 100644 --- a/templates/lighttpd.conf.j2 +++ b/templates/lighttpd.conf.j2 @@ -20,7 +20,7 @@ index-file.names = ( ) mimetype.assign = ( {% for mime in www_mimetypes %} -{% set exts = mime | mimetype_extensions() %} +{% set exts = mime | sdm.common.mimetype_extensions() %} {% for ext in exts %} "{{ ext }}" => "{{ mime }}", {% endfor %}