Created
August 11, 2020 15:50
-
-
Save mrlesmithjr/4de024690227fddfa9c0d8d3b9eae2f6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
# Global provisioners will run against every node in the order specified. | |
# These provisioners run after all node specific provisioners if defined. | |
# | |
# For node specific provisioners add at the node level | |
provisioners: [] | |
# - type: shell | |
# inline: | | |
# if [ -f /etc/os-release ]; then | |
# os_name="$(awk -F= '/^NAME/{ print $2 }' /etc/os-release | sed 's/"//g')" | |
# os_version_id="$(awk -F= '/^VERSION_ID/{ print $2}' /etc/os-release | sed 's/"//g')" | |
# echo $os_name | |
# echo $os_version_id | |
# fi | |
# privileged: true | |
# - type: shell | |
# path: | |
# - scripts/test.sh | |
# privileged: false | |
# - type: ansible_local | |
# playbooks: | |
# - /vagrant/playbooks/test.yml | |
# - type: ansible | |
# playbooks: | |
# - playbooks/test.yml | |
# Synced folders | |
# Additional synced folders. | |
# By default scripts and playbooks are synced, and available in each node as: | |
# /playbooks, /scripts, /vagrant/playbooks, and /vagrant/scripts. They are | |
# duplicated because of the symlinks within /vagrant. This is as designed. | |
synced_folders: | |
[] | |
# - type: nfs | |
# src: example1/ | |
# mountpoint: /example1 | |
# - type: rsync | |
# src: example2/ | |
# mountpoint: /example2 | |
# Define nodes which are required for the environment you intend on creating. | |
nodes: | |
- name: repo01 | |
ansible_groups: | |
- repo | |
box: mrlesmithjr/bionic64 | |
desktop: false | |
disks: [] | |
interfaces: | |
- ip: 192.168.250.11 | |
auto_config: true | |
method: static | |
linked_clone: true | |
mem: 2048 | |
provision: true | |
# Node specific provisioners | |
provisioners: [] | |
vcpu: 2 | |
port_forwards: [] | |
windows: false | |
- name: bionic | |
ansible_groups: | |
- repo_clients | |
box: mrlesmithjr/bionic64 | |
desktop: false | |
disks: [] | |
interfaces: | |
- ip: 192.168.250.12 | |
auto_config: true | |
method: static | |
linked_clone: true | |
mem: 512 | |
provision: true | |
# Node specific provisioners | |
provisioners: [] | |
vcpu: 1 | |
port_forwards: [] | |
windows: false | |
- name: centos | |
ansible_groups: | |
- repo_clients | |
box: mrlesmithjr/centos7 | |
desktop: false | |
disks: [] | |
interfaces: | |
- ip: 192.168.250.13 | |
auto_config: true | |
method: static | |
linked_clone: true | |
mem: 512 | |
provision: true | |
# Node specific provisioners | |
provisioners: [] | |
vcpu: 1 | |
port_forwards: [] | |
windows: false | |
- name: focal | |
ansible_groups: | |
- repo_clients | |
box: mrlesmithjr/focal64 | |
desktop: false | |
disks: [] | |
interfaces: | |
- ip: 192.168.250.14 | |
auto_config: true | |
method: static | |
linked_clone: true | |
mem: 512 | |
provision: true | |
# Node specific provisioners | |
provisioners: [] | |
vcpu: 1 | |
port_forwards: [] | |
windows: false | |
- name: windows | |
ansible_groups: | |
- repo_clients | |
box: mrlesmithjr/windows2019 | |
desktop: false | |
disks: [] | |
interfaces: | |
- ip: 192.168.250.15 | |
auto_config: true | |
method: static | |
linked_clone: true | |
mem: 1536 | |
provision: true | |
# Node specific provisioners | |
provisioners: [] | |
vcpu: 1 | |
port_forwards: [] | |
windows: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
playbook.yml
: