Merge "Add wordpress root access flag"

This commit is contained in:
Jenkins 2017-02-15 14:08:37 +00:00 committed by Gerrit Code Review
commit 634e7a72f9
1 changed files with 5 additions and 3 deletions

View File

@ -18,6 +18,7 @@
--admin_user=wpuser --admin_user=wpuser
--admin_password="{{ db_pass }}" --admin_password="{{ db_pass }}"
--admin_email='interop@openstack.org' --admin_email='interop@openstack.org'
--allow-root
when: hostvars.cloud.balancer.openstack.public_v4 != "" when: hostvars.cloud.balancer.openstack.public_v4 != ""
- name: Install wordpress - name: Install wordpress
@ -28,11 +29,12 @@
--admin_user=wpuser --admin_user=wpuser
--admin_password="{{ db_pass }}" --admin_password="{{ db_pass }}"
--admin_email='interop@openstack.org' --admin_email='interop@openstack.org'
--allow-root
when: hostvars.cloud.balancer.openstack.public_v4 == "" when: hostvars.cloud.balancer.openstack.public_v4 == ""
- name: Install package for automated plugin activation - name: Install package for automated plugin activation
shell: > shell: >
wp package install itspriddle/wp-cli-tgmpa-plugin wp package install itspriddle/wp-cli-tgmpa-plugin --allow-root
- name: Make an initial request, so that later switch-theme hooks work. - name: Make an initial request, so that later switch-theme hooks work.
shell: > shell: >
@ -41,7 +43,7 @@
- name: Activate wordpress theme - name: Activate wordpress theme
command: > command: >
wp --path=/var/www/html theme activate superuser wp --path=/var/www/html theme activate superuser --allow-root
- name: Install and activate required plugins - name: Install and activate required plugins
shell: > shell: >
@ -81,7 +83,7 @@
- name: Import wordpress posts - name: Import wordpress posts
command: > command: >
wp --path=/var/www/html import /tmp/posts/superuser_content.xml --authors=create --quiet wp --path=/var/www/html import /tmp/posts/superuser_content.xml --authors=create --quiet --allow-root
- name: Regenerate thumbnails for the imported posts - name: Regenerate thumbnails for the imported posts
shell: > shell: >