Friday, October 27, 2017

vagrant + ansible

vagrant + ansible

I have followed this neat tutorial

After trying out the above, I have tried out provisioning by modifying ansible file.

So, Add the below lines in lamp.yml and then:

# vagrant provision 

- name: Creates directory
  file: path=/tmp/newdirectory state=directory
The above makes changes in running image and can observed using vagrant ssh
Note, you need to do vagrant ssh in the same directory to verify same. (lampbox in this example).

No comments:

Post a Comment