debugged until sshkey registration

This commit is contained in:
milkmix 2019-03-05 17:32:59 +01:00 committed by milkmix
parent 24e03b6faf
commit 2ab2c1d368
2 changed files with 8 additions and 6 deletions

View file

@ -6,7 +6,7 @@
- block: - block:
- name: Include prompts - name: Include prompts
import_tasks: prompts.yml import_tasks: prompts.yml
- name: Security group created - name: Security group created
local_action: local_action:
module: cs_securitygroup module: cs_securitygroup
@ -16,11 +16,11 @@
- name: Security rules created - name: Security rules created
local_action: local_action:
module: cs_security_group_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.port_min }}" start_port: "{{ item.start_port }}"
end_port: "{{ item.port_max }}" end_port: "{{ item.end_port }}"
cidr: "{{ item.range }}" cidr: "{{ item.range }}"
with_items: with_items:
- { proto: tcp, start_port: 22, end_port: 22, range: 0.0.0.0/0 } - { proto: tcp, start_port: 22, end_port: 22, range: 0.0.0.0/0 }

View file

@ -7,7 +7,9 @@
- name: Install requirements - name: Install requirements
pip: pip:
name: cs name:
version: 2.5.8 - cs
- sshpubkeys
state: latest
virtualenv: "{{ cloudstack_venv }}" virtualenv: "{{ cloudstack_venv }}"
virtualenv_python: python2.7 virtualenv_python: python2.7