ansible-wordpress-host-init/roles/configure-wordpress/tasks/main.yml

12 lines
273 B
YAML
Raw Normal View History

2023-04-07 16:29:18 +00:00
---
2023-04-07 16:31:24 +00:00
- 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