dev-vm/vagrant-hosts.yml

45 lines
1.0 KiB
YAML
Raw Normal View History

2021-04-07 09:49:14 +02:00
# 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
2021-05-26 11:23:24 +02:00
box: bento/ubuntu-20.04
2021-04-07 09:49:14 +02:00
ip: 192.168.56.11
memory: 2048
cpus: 2
synced_folders:
- src: ../webcron
dest: /mnt/dev-root
options:
:create: true
2021-05-26 11:23:24 +02:00
:owner: vagrant
:group: vagrant
2021-04-07 09:49:14 +02:00
: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']