Created
November 12, 2018 01:15
-
-
Save thetooth/f60b80c2859fa34b45caec4f50002363 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
192.168.0.26 ansible_user=root ansible_password=password ansible_python_interpreter=/opt/local/bin/python |
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
- hosts: all | |
tasks: | |
- name: Import Ubuntu 16 | |
imgadm: | |
uuid: '7b5981c4-1889-11e7-b4c5-3f3bdfc9b88b' | |
state: imported | |
# - name: Add fifo source | |
# imgadm: | |
# source: 'https://datasets.project-fifo.net' | |
# state: present | |
# - name: Add Docker public source | |
# imgadm: | |
# source: 'https://docker.io' | |
# type: docker | |
# state: present | |
# - name: create SmartOS zone | |
# vmadm: | |
# brand: joyent | |
# state: running | |
# alias: test | |
# image_uuid: c6a275e4-c730-11e8-8c5f-9b24fe560a8f | |
# nics: | |
# - nic_tag: admin | |
# ip: dhcp | |
# primary: true | |
# internal_metadata: | |
# root_pw: 'secret' | |
# quota: 1 | |
- name: create ubuntu vm | |
vmadm: | |
brand: lx | |
state: running | |
alias: ubuntu | |
hostname: ubuntu | |
image_uuid: '7b5981c4-1889-11e7-b4c5-3f3bdfc9b88b' | |
kernel_version: '4.3.0' | |
max_physical_memory: 256 | |
resolvers: | |
- "8.8.8.8" | |
nics: | |
- nic_tag: admin | |
ip: "192.168.0.27" | |
netmask: "255.255.255.0" | |
gateway: "192.168.0.1" | |
primary: true | |
internal_metadata: | |
root_pw: 'secret' | |
quota: 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment