--- - name: install server specific packages apt: pkg: - lighttpd - rsync - name: lighttpd - change simple-vhost config ansible.builtin.replace: path: /etc/lighttpd/conf-available/10-simple-vhost.conf regexp: 'www.example.com' replace: 'testbild' # - name: lighttpd - aktiviere simple-vhost # command: lighty-enable-mod simple-vhost - name: lighttpd - reload service command: service lighttpd force-reload - name: lighttpd - erstelle "Testbild" vhost Verzeichnis file: path: /srv/testbild/htdocs state: directory - name: lighttpd - kopiere Testbild Webseite copy: src: files/lighttpd-intranet_index.html dest: /srv/testbild/htdocs/index.html owner: root group: root mode: 0644 - name: lighttpd - kopiere Testbild copy: src: files/lighttpd-intranet_FuBK-Testbild.png dest: /srv/testbild/htdocs/FuBK-Testbild.png owner: root group: root mode: 0644 - name: lighttpd - erstelle vhost "Intranet" Verzeichnis file: path: /srv/intranet/htdocs state: directory - name: lighttpd - erstelle vhost "digitales" Verzeichnis file: path: /srv/digitales/htdocs state: directory ...