Skip to content

Commit

Permalink
Ansible compatibility mode (#318)
Browse files Browse the repository at this point in the history
* defined ansibile compatibility mode

* bug fix for configurations for wp-cli
  • Loading branch information
miya0001 authored Mar 4, 2018
1 parent 0b4edc9 commit e7f904f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand All @@ -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
}
Expand All @@ -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
}
Expand Down
3 changes: 2 additions & 1 deletion provision/playbooks/commands.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}'"
Expand All @@ -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
Expand Down

0 comments on commit e7f904f

Please sign in to comment.