- name: "Run WordPress core install via WP CLI"
  command: >
    docker-compose exec -T -u www-data application
    wp core install
      --url="{{ web_protocol }}://{{ domains | get_domain(application_id) }}"
      --title="{{ applications[application_id].title }}"
      --admin_user="{{ applications[application_id].users.administrator.username }}"
      --admin_password="{{ applications[application_id].credentials.administrator_password }}"
      --admin_email="{{ applications[application_id].users.administrator.email }}"
      --path="{{ wordpress_docker_html_path }}"
  args:
    chdir: "{{ docker_compose.directories.instance }}"
