dev-vm/vagrant-hosts.yml

48 lines
1.1 KiB
YAML

# vagrant_hosts.yml
#
# List of hosts to be created by Vagrant. For more information about the
# possible settings, see the documentation at
# <https://github.com/bertvv/ansible-skeleton>
---
- name: webcron.test
box: bento/ubuntu-18.04
ip: 192.168.56.11
memory: 2048
cpus: 2
forwarded_ports:
- host: 80
guest: 80
synced_folders:
- src: ../webcron
dest: /mnt/dev-root
options:
:create: true
:owner: vagrant
:group: vagrant
:mount_options: ['dmode=0755', 'fmode=0755']
# Example of a more elaborate host definition
# - name: srv002
# box: bento/fedora-28
# memory: 2048
# cpus: 2
# ip: 172.20.0.10
# netmask: 255.255.0.0
# mac: '13:37:de:ad:be:ef'
# playbook: srv002.yml
# forwarded_ports:
# - host: 8080
# guest: 80
# - host: 8443
# guest: 443
# synced_folders:
# - src: test
# dest: /tmp/test
# - src: www
# dest: /var/www/html
# options:
# :create: true
# :owner: root
# :group: root
# :mount_options: ['dmode=0755', 'fmode=0644']