mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-07-02 01:27:27 -04:00
Add rules to security group and adapt server creation
This commit is contained in:
@ -17,6 +17,17 @@
|
|||||||
name: sg-tpot-any
|
name: sg-tpot-any
|
||||||
description: tpot any-any
|
description: tpot any-any
|
||||||
|
|
||||||
|
- name: Add rules to security group
|
||||||
|
os_security_group_rule:
|
||||||
|
auth:
|
||||||
|
auth_url: "{{ auth_url }}"
|
||||||
|
username: "{{ username }}"
|
||||||
|
password: "{{ password }}"
|
||||||
|
project_name: "{{ project_name }}"
|
||||||
|
os_user_domain_name: "{{ os_user_domain_name }}"
|
||||||
|
security_group: sg-tpot-any
|
||||||
|
remote_ip_prefix: 0.0.0.0/0
|
||||||
|
|
||||||
- name: Launch an instance
|
- name: Launch an instance
|
||||||
os_server:
|
os_server:
|
||||||
auth:
|
auth:
|
||||||
@ -34,7 +45,7 @@
|
|||||||
key_name: "{{ key_name }}"
|
key_name: "{{ key_name }}"
|
||||||
timeout: 200
|
timeout: 200
|
||||||
flavor: "{{ flavor }}"
|
flavor: "{{ flavor }}"
|
||||||
security_groups: "{{ security_groups }}"
|
security_groups: sg-tpot-any
|
||||||
network: "{{ network }}"
|
network: "{{ network }}"
|
||||||
register: tpot
|
register: tpot
|
||||||
|
|
||||||
|
@ -4,5 +4,4 @@ image: Standard_Debian_9_latest
|
|||||||
volume_size: 128
|
volume_size: 128
|
||||||
key_name: your-KeyPair
|
key_name: your-KeyPair
|
||||||
flavor: s2.medium.8
|
flavor: s2.medium.8
|
||||||
security_groups: your-sg
|
|
||||||
network: your-network-id
|
network: your-network-id
|
||||||
|
Reference in New Issue
Block a user