diff --git a/Vagrantfile b/Vagrantfile index 6c8b6e9..634ef55 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -7,7 +7,7 @@ Vagrant.require_version '>= 1.8.6' Vagrant.configure(2) do |config| - vccw_version = '3.0.11'; + vccw_version = '3.1.0'; _conf = YAML.load( File.open( diff --git a/provision/playbooks/wordpress.yml b/provision/playbooks/wordpress.yml index 528c081..5e1e8b1 100644 --- a/provision/playbooks/wordpress.yml +++ b/provision/playbooks/wordpress.yml @@ -43,7 +43,6 @@ command: | wp core download --path={{ path }} - --locale={{ vccw.lang }} --version={{ vccw.version }} --force @@ -99,6 +98,12 @@ - name: Move `.gitignore` command: "mv /tmp/.gitignore {{ path }}/.gitignore" + - name: Run `wp core language install` + command: | + wp core language install {{ vccw.lang }} + --path={{ path }} + --activate + # Install Plugins - name: Run `wp plugin install` command: | @@ -107,6 +112,14 @@ --path={{ path }} with_items: "{{ vccw.plugins | default([]) }}" + # Install wp-multibyte-patch + - name: Run `wp plugin install wp-multibyte-patch` + command: | + wp plugin install wp-multibyte-patch + --activate + --path={{ path }} + when: vccw.lang == 'ja' + # Check exsist Theme - name: Run `wp theme is-installed` command: | @@ -156,6 +169,27 @@ --path={{ path }} with_dict: "{{ vccw.options }}" + # Localization + - name: Get the timezone + command: | + wp eval "echo _x( '0', 'default GMT offset or timezone string' );" + --path={{ path }} + register: timezone + - name: Update timezone + command: | + wp option update timezone_string '{{ timezone.stdout }}' + --path={{ path }} + + - name: Get the date format + command: | + wp eval "echo __( 'M jS Y' );" + --path={{ path }} + register: date_format + - name: Update date format + command: | + wp option update date_format '{{ date_format.stdout }}' + --path={{ path }} + # Setting Permalink - name: Run `wp rewrite structure` command: |