diff --git a/Vagrantfile b/Vagrantfile index 2d3bd18..87a3c76 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -80,6 +80,7 @@ Vagrant.configure(2) do |config| end config.vm.provision "ansible_local" do |ansible| + ansible.compatibility_mode = "2.0" ansible.extra_vars = { vccw: _conf } @@ -88,6 +89,7 @@ Vagrant.configure(2) do |config| if File.exists?(File.join(ENV["HOME"], '.vccw/playbook-post.yml')) config.vm.provision "ansible" do |ansible| + ansible.compatibility_mode = "2.0" ansible.extra_vars = { vccw: _conf } @@ -101,6 +103,7 @@ Vagrant.configure(2) do |config| if File.exists?(File.join(File.dirname(__FILE__), 'playbook-post.yml')) then config.vm.provision "ansible_local" do |ansible| + ansible.compatibility_mode = "2.0" ansible.extra_vars = { vccw: _conf } diff --git a/provision/playbooks/commands.yml b/provision/playbooks/commands.yml index 37f2733..c02485d 100644 --- a/provision/playbooks/commands.yml +++ b/provision/playbooks/commands.yml @@ -63,6 +63,8 @@ file: path: "{{ ansible_env.HOME }}/.wp-cli/" state: directory + notify: + - wp-cli-config - name: Install WP-CLI packages become: no shell: /bin/bash -lc "wp package install '{{ item }}'" @@ -83,7 +85,6 @@ src: templates/browse-command.php dest: "{{ vccw.vagrant_dir }}/wp-cli/browse-command.php" notify: - - wp-cli-config - wp-cli-local-config # Install Ruby gems