mirror of
https://github.com/trailofbits/algo.git
synced 2025-08-13 16:23:00 +02:00
deleted the local_action part of modules calls
This commit is contained in:
parent
213bd1a11e
commit
2e51d8b744
1 changed files with 4 additions and 8 deletions
|
@ -14,15 +14,13 @@
|
||||||
{%- else %}{{ cs_zones[default_region | int - 1] }}{% endif %}
|
{%- else %}{{ cs_zones[default_region | int - 1] }}{% endif %}
|
||||||
|
|
||||||
- name: Security group created
|
- name: Security group created
|
||||||
local_action:
|
cs_securitygroup:
|
||||||
module: cs_securitygroup
|
|
||||||
name: "{{ algo_server_name }}-security_group"
|
name: "{{ algo_server_name }}-security_group"
|
||||||
description: AlgoVPN security group
|
description: AlgoVPN security group
|
||||||
register: cs_security_group
|
register: cs_security_group
|
||||||
|
|
||||||
- name: Security rules created
|
- name: Security rules created
|
||||||
local_action:
|
cs_securitygroup_rule:
|
||||||
module: cs_securitygroup_rule
|
|
||||||
security_group: "{{ cs_security_group.name }}"
|
security_group: "{{ cs_security_group.name }}"
|
||||||
protocol: "{{ item.proto }}"
|
protocol: "{{ item.proto }}"
|
||||||
start_port: "{{ item.start_port }}"
|
start_port: "{{ item.start_port }}"
|
||||||
|
@ -35,8 +33,7 @@
|
||||||
- { proto: udp, start_port: "{{ wireguard_port }}", end_port: "{{ wireguard_port }}", range: 0.0.0.0/0 }
|
- { proto: udp, start_port: "{{ wireguard_port }}", end_port: "{{ wireguard_port }}", range: 0.0.0.0/0 }
|
||||||
|
|
||||||
- name: Keypair created
|
- name: Keypair created
|
||||||
local_action:
|
cs_sshkeypair:
|
||||||
module: cs_sshkeypair
|
|
||||||
name: "{{ SSH_keys.comment|regex_replace('@', '_') }}"
|
name: "{{ SSH_keys.comment|regex_replace('@', '_') }}"
|
||||||
public_key: "{{ lookup('file', '{{ SSH_keys.public }}') }}"
|
public_key: "{{ lookup('file', '{{ SSH_keys.public }}') }}"
|
||||||
register: cs_keypair
|
register: cs_keypair
|
||||||
|
@ -49,8 +46,7 @@
|
||||||
keypair_name: "{{ cs_keypair.name }}"
|
keypair_name: "{{ cs_keypair.name }}"
|
||||||
|
|
||||||
- name: Server created
|
- name: Server created
|
||||||
local_action:
|
cs_instance:
|
||||||
module: cs_instance
|
|
||||||
name: "{{ algo_server_name }}"
|
name: "{{ algo_server_name }}"
|
||||||
root_disk_size: "{{ disk }}"
|
root_disk_size: "{{ disk }}"
|
||||||
template: "{{ image_id }}"
|
template: "{{ image_id }}"
|
||||||
|
|
Loading…
Add table
Reference in a new issue