-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcreate_server.yml
55 lines (52 loc) · 1.21 KB
/
create_server.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/usr/bin/env -v -S ansible-playbook
# vim: set filetype=ansible:
---
- name: Build a Cloud Server
hosts: all:!unmanaged
gather_facts: False
tasks:
- name: Build Fedora Server
local_action:
module: rax
credentials: ~/.raxpub
name: ansible_fedora
key_name: zim
flavor: 2
image: 5ef987c7-0dda-4ebe-ae71-7f5c4a425faa
count: 1
wait: yes
state: present
networks:
- private
- public
register: rax
- name: Build CentOS Server
local_action:
module: rax
credentials: ~/.raxpub
name: ansible_centos
key_name: zim
flavor: 2
image: ea8fdf8a-c0e4-4a1f-b17f-f5a421cda051
count: 1
wait: yes
state: present
networks:
- private
- public
register: rax
- name: Build FreeBSD Server
local_action:
module: rax
credentials: ~/.raxpub
name: ansible_freebsd
key_name: zim
flavor: 2
image: fb624ffd-81c2-4217-8cd5-da32d32e85c4
count: 1
wait: yes
state: present
networks:
- private
- public
register: rax