|
|
|
@ -47,7 +47,7 @@
|
|
|
|
|
vultr_server:
|
|
|
|
|
name: "{{ vultr_server_name }}"
|
|
|
|
|
os: CentOS 6 x64
|
|
|
|
|
plan: 1024 MB RAM,25 GB SSD,1.00 TB BW
|
|
|
|
|
plan: "{{ vultr_server_plan_1 }}"
|
|
|
|
|
ssh_keys:
|
|
|
|
|
- key1
|
|
|
|
|
- key2
|
|
|
|
@ -64,7 +64,7 @@
|
|
|
|
|
vultr_server:
|
|
|
|
|
name: "{{ vultr_server_name }}"
|
|
|
|
|
os: CentOS 6 x64
|
|
|
|
|
plan: 1024 MB RAM,25 GB SSD,1.00 TB BW
|
|
|
|
|
plan: "{{ vultr_server_plan_1 }}"
|
|
|
|
|
ssh_keys:
|
|
|
|
|
- key1
|
|
|
|
|
- key2
|
|
|
|
@ -77,7 +77,7 @@
|
|
|
|
|
- result is changed
|
|
|
|
|
- result.vultr_server.name == '{{ vultr_server_name }}'
|
|
|
|
|
- result.vultr_server.os == 'CentOS 6 x64'
|
|
|
|
|
- result.vultr_server.plan == '1024 MB RAM,25 GB SSD,1.00 TB BW'
|
|
|
|
|
- result.vultr_server.plan == vultr_server_plan_1
|
|
|
|
|
- result.vultr_server.region == 'Amsterdam'
|
|
|
|
|
- result.vultr_server.power_status == 'running'
|
|
|
|
|
|
|
|
|
@ -85,7 +85,7 @@
|
|
|
|
|
vultr_server:
|
|
|
|
|
name: "{{ vultr_server_name }}"
|
|
|
|
|
os: CentOS 6 x64
|
|
|
|
|
plan: 1024 MB RAM,25 GB SSD,1.00 TB BW
|
|
|
|
|
plan: "{{ vultr_server_plan_1 }}"
|
|
|
|
|
ssh_keys:
|
|
|
|
|
- key1
|
|
|
|
|
- key2
|
|
|
|
@ -99,7 +99,7 @@
|
|
|
|
|
- result.vultr_server.power_status == 'running'
|
|
|
|
|
- result.vultr_server.name == '{{ vultr_server_name }}'
|
|
|
|
|
- result.vultr_server.os == 'CentOS 6 x64'
|
|
|
|
|
- result.vultr_server.plan == '1024 MB RAM,25 GB SSD,1.00 TB BW'
|
|
|
|
|
- result.vultr_server.plan == vultr_server_plan_1
|
|
|
|
|
- result.vultr_server.region == 'Amsterdam'
|
|
|
|
|
|
|
|
|
|
- name: test stop an existing server in check mode
|
|
|
|
@ -192,7 +192,7 @@
|
|
|
|
|
vultr_server:
|
|
|
|
|
name: "{{ vultr_server_name }}"
|
|
|
|
|
os: CentOS 6 x64
|
|
|
|
|
plan: 2048 MB RAM,40 GB SSD,2.00 TB BW
|
|
|
|
|
plan: "{{ vultr_server_plan_2 }}"
|
|
|
|
|
region: Amsterdam
|
|
|
|
|
register: result
|
|
|
|
|
check_mode: yes
|
|
|
|
@ -203,14 +203,14 @@
|
|
|
|
|
- result.vultr_server.power_status == 'running'
|
|
|
|
|
- result.vultr_server.name == '{{ vultr_server_name }}'
|
|
|
|
|
- result.vultr_server.os == 'CentOS 6 x64'
|
|
|
|
|
- result.vultr_server.plan == '1024 MB RAM,25 GB SSD,1.00 TB BW'
|
|
|
|
|
- result.vultr_server.plan == vultr_server_plan_1
|
|
|
|
|
- result.vultr_server.region == 'Amsterdam'
|
|
|
|
|
|
|
|
|
|
- name: test update plan for server without force
|
|
|
|
|
vultr_server:
|
|
|
|
|
name: "{{ vultr_server_name }}"
|
|
|
|
|
os: CentOS 6 x64
|
|
|
|
|
plan: 2048 MB RAM,40 GB SSD,2.00 TB BW
|
|
|
|
|
plan: "{{ vultr_server_plan_2 }}"
|
|
|
|
|
region: Amsterdam
|
|
|
|
|
register: result
|
|
|
|
|
- name: verify test update plan for server without force
|
|
|
|
@ -220,7 +220,7 @@
|
|
|
|
|
- result.vultr_server.power_status == 'running'
|
|
|
|
|
- result.vultr_server.name == '{{ vultr_server_name }}'
|
|
|
|
|
- result.vultr_server.os == 'CentOS 6 x64'
|
|
|
|
|
- result.vultr_server.plan == '1024 MB RAM,25 GB SSD,1.00 TB BW'
|
|
|
|
|
- result.vultr_server.plan == vultr_server_plan_1
|
|
|
|
|
- result.vultr_server.region == 'Amsterdam'
|
|
|
|
|
|
|
|
|
|
- name: setup firewall group
|
|
|
|
@ -264,7 +264,7 @@
|
|
|
|
|
- result.vultr_server.power_status == 'running'
|
|
|
|
|
- result.vultr_server.name == '{{ vultr_server_name }}'
|
|
|
|
|
- result.vultr_server.os == 'CentOS 6 x64'
|
|
|
|
|
- result.vultr_server.plan == '1024 MB RAM,25 GB SSD,1.00 TB BW'
|
|
|
|
|
- result.vultr_server.plan == vultr_server_plan_1
|
|
|
|
|
- result.vultr_server.region == 'Amsterdam'
|
|
|
|
|
- result.vultr_server.tag == ''
|
|
|
|
|
- result.vultr_server.firewall_group != 'test_firewall_group'
|
|
|
|
@ -311,8 +311,9 @@
|
|
|
|
|
vultr_server:
|
|
|
|
|
name: "{{ vultr_server_name }}"
|
|
|
|
|
os: CentOS 6 x64
|
|
|
|
|
plan: 2048 MB RAM,40 GB SSD,2.00 TB BW
|
|
|
|
|
plan: "{{ vultr_server_plan_2 }}"
|
|
|
|
|
auto_backup_enabled: yes
|
|
|
|
|
private_network_enabled: yes
|
|
|
|
|
region: Amsterdam
|
|
|
|
|
force: yes
|
|
|
|
|
register: result
|
|
|
|
@ -324,16 +325,18 @@
|
|
|
|
|
- result.vultr_server.power_status == 'running'
|
|
|
|
|
- result.vultr_server.name == '{{ vultr_server_name }}'
|
|
|
|
|
- result.vultr_server.os == 'CentOS 6 x64'
|
|
|
|
|
- result.vultr_server.plan == '1024 MB RAM,25 GB SSD,1.00 TB BW'
|
|
|
|
|
- result.vultr_server.plan == vultr_server_plan_1
|
|
|
|
|
- result.vultr_server.region == 'Amsterdam'
|
|
|
|
|
- result.vultr_server.auto_backup_enabled == false
|
|
|
|
|
- result.vultr_server.internal_ip == ''
|
|
|
|
|
|
|
|
|
|
- name: test update server with force
|
|
|
|
|
vultr_server:
|
|
|
|
|
name: "{{ vultr_server_name }}"
|
|
|
|
|
os: CentOS 6 x64
|
|
|
|
|
plan: 2048 MB RAM,40 GB SSD,2.00 TB BW
|
|
|
|
|
plan: "{{ vultr_server_plan_2 }}"
|
|
|
|
|
auto_backup_enabled: yes
|
|
|
|
|
private_network_enabled: yes
|
|
|
|
|
region: Amsterdam
|
|
|
|
|
force: yes
|
|
|
|
|
register: result
|
|
|
|
@ -344,18 +347,20 @@
|
|
|
|
|
- result.vultr_server.power_status == 'running'
|
|
|
|
|
- result.vultr_server.name == '{{ vultr_server_name }}'
|
|
|
|
|
- result.vultr_server.os == 'CentOS 6 x64'
|
|
|
|
|
- result.vultr_server.plan == '2048 MB RAM,40 GB SSD,2.00 TB BW'
|
|
|
|
|
- result.vultr_server.plan == vultr_server_plan_2
|
|
|
|
|
- result.vultr_server.region == 'Amsterdam'
|
|
|
|
|
- result.vultr_server.auto_backup_enabled == true
|
|
|
|
|
- result.vultr_server.internal_ip != ''
|
|
|
|
|
|
|
|
|
|
- name: test update server idempotence with force
|
|
|
|
|
vultr_server:
|
|
|
|
|
name: "{{ vultr_server_name }}"
|
|
|
|
|
os: CentOS 6 x64
|
|
|
|
|
plan: 2048 MB RAM,40 GB SSD,2.00 TB BW
|
|
|
|
|
auto_backup_enabled: true
|
|
|
|
|
plan: "{{ vultr_server_plan_2 }}"
|
|
|
|
|
auto_backup_enabled: yes
|
|
|
|
|
private_network_enabled: yes
|
|
|
|
|
region: Amsterdam
|
|
|
|
|
force: true
|
|
|
|
|
force: yes
|
|
|
|
|
register: result
|
|
|
|
|
- name: verify test update server idempotence with force
|
|
|
|
|
assert:
|
|
|
|
@ -364,16 +369,17 @@
|
|
|
|
|
- result.vultr_server.power_status == 'running'
|
|
|
|
|
- result.vultr_server.name == '{{ vultr_server_name }}'
|
|
|
|
|
- result.vultr_server.os == 'CentOS 6 x64'
|
|
|
|
|
- result.vultr_server.plan == '2048 MB RAM,40 GB SSD,2.00 TB BW'
|
|
|
|
|
- result.vultr_server.plan == vultr_server_plan_2
|
|
|
|
|
- result.vultr_server.region == 'Amsterdam'
|
|
|
|
|
- result.vultr_server.auto_backup_enabled == true
|
|
|
|
|
- result.vultr_server.internal_ip != ''
|
|
|
|
|
|
|
|
|
|
- name: test update server to stopped in check mode
|
|
|
|
|
vultr_server:
|
|
|
|
|
name: "{{ vultr_server_name }}"
|
|
|
|
|
os: CentOS 6 x64
|
|
|
|
|
plan: 2048 MB RAM,40 GB SSD,2.00 TB BW
|
|
|
|
|
ipv6_enabled: true
|
|
|
|
|
plan: "{{ vultr_server_plan_2 }}"
|
|
|
|
|
ipv6_enabled: yes
|
|
|
|
|
region: Amsterdam
|
|
|
|
|
state: stopped
|
|
|
|
|
register: result
|
|
|
|
@ -385,7 +391,7 @@
|
|
|
|
|
- result.vultr_server.power_status == 'running'
|
|
|
|
|
- result.vultr_server.name == '{{ vultr_server_name }}'
|
|
|
|
|
- result.vultr_server.os == 'CentOS 6 x64'
|
|
|
|
|
- result.vultr_server.plan == '2048 MB RAM,40 GB SSD,2.00 TB BW'
|
|
|
|
|
- result.vultr_server.plan == vultr_server_plan_2
|
|
|
|
|
- result.vultr_server.region == 'Amsterdam'
|
|
|
|
|
- result.vultr_server.v6_main_ip == ''
|
|
|
|
|
|
|
|
|
@ -393,8 +399,8 @@
|
|
|
|
|
vultr_server:
|
|
|
|
|
name: "{{ vultr_server_name }}"
|
|
|
|
|
os: CentOS 6 x64
|
|
|
|
|
plan: 2048 MB RAM,40 GB SSD,2.00 TB BW
|
|
|
|
|
ipv6_enabled: true
|
|
|
|
|
plan: "{{ vultr_server_plan_2 }}"
|
|
|
|
|
ipv6_enabled: yes
|
|
|
|
|
region: Amsterdam
|
|
|
|
|
state: stopped
|
|
|
|
|
register: result
|
|
|
|
@ -405,7 +411,7 @@
|
|
|
|
|
- result.vultr_server.power_status == 'stopped'
|
|
|
|
|
- result.vultr_server.name == '{{ vultr_server_name }}'
|
|
|
|
|
- result.vultr_server.os == 'CentOS 6 x64'
|
|
|
|
|
- result.vultr_server.plan == '2048 MB RAM,40 GB SSD,2.00 TB BW'
|
|
|
|
|
- result.vultr_server.plan == vultr_server_plan_2
|
|
|
|
|
- result.vultr_server.region == 'Amsterdam'
|
|
|
|
|
- result.vultr_server.v6_main_ip != ''
|
|
|
|
|
|
|
|
|
@ -413,7 +419,8 @@
|
|
|
|
|
vultr_server:
|
|
|
|
|
name: "{{ vultr_server_name }}"
|
|
|
|
|
os: CentOS 6 x64
|
|
|
|
|
plan: 2048 MB RAM,40 GB SSD,2.00 TB BW
|
|
|
|
|
plan: "{{ vultr_server_plan_2 }}"
|
|
|
|
|
ipv6_enabled: yes
|
|
|
|
|
region: Amsterdam
|
|
|
|
|
state: stopped
|
|
|
|
|
register: result
|
|
|
|
@ -424,7 +431,7 @@
|
|
|
|
|
- result.vultr_server.power_status == 'stopped'
|
|
|
|
|
- result.vultr_server.name == '{{ vultr_server_name }}'
|
|
|
|
|
- result.vultr_server.os == 'CentOS 6 x64'
|
|
|
|
|
- result.vultr_server.plan == '2048 MB RAM,40 GB SSD,2.00 TB BW'
|
|
|
|
|
- result.vultr_server.plan == vultr_server_plan_2
|
|
|
|
|
- result.vultr_server.region == 'Amsterdam'
|
|
|
|
|
- result.vultr_server.v6_main_ip != ''
|
|
|
|
|
|
|
|
|
|