ansible-wordpress-host-init/roles/configure-wordpress/tasks/main.yml
David Petric 43f18f4e73 Bug fixes
2023-04-07 18:31:24 +02:00

12 lines
273 B
YAML

---
- name: Task name
stat:
path: /var/www/{{ vhost_name }}/wp-config.php
register: project_config
- name: Copy Configuration file
template:
src: files/wp-config.php.j2
dest: /var/www/{{ vhost_name }}/wp-config.php
when: not project_config.stat.exists