- In host machine ($ )
vagrant init centos/7
vagrant up
vagrant ssh
- In guest machine ([vagrant@localhost ~]$ )
## credit: http://fabian-affolter.ch/blog/the-lineinfile-module-of-ansible/ | |
--- | |
- hosts: alpine_install | |
user: root | |
tasks: | |
# - name: create a complete empty file | |
# command: /usr/bin/touch /test/test.conf | |
- name: create a new file with lineinfile |
vagrant init centos/7
vagrant up
vagrant ssh
import scrapy | |
import peewee | |
import re | |
import urllib | |
import cStringIO | |
from PIL import Image | |
from playhouse.db_url import connect | |
db = connect('mysql://root:@127.0.0.1/house') |