--- - name: Download wordpress archive ansible.builtin.get_url: url: https://de.wordpress.org/latest-de_DE.tar.gz dest: /tmp/wordpress.tar.gz run_once: true - name: Extract wordpress ansible.builtin.unarchive: src: /tmp/wordpress.tar.gz dest: "{{ wordpress.dir | dirname }}" remote_src: true creates: "index.php" run_once: true become: true - name: Add wordpress group ansible.builtin.group: name: wordpress become: true - name: Add wordpress user ansible.builtin.user: name: wordpress group: www-data become: true - name: Add wordpress config ansible.builtin.template: src: "wp-config.php.j2" dest: "{{ wordpress.dir }}/wp-config.php" run_once: true become: true