Comments (1)
diff --git a/roles/cloud-openstack/tasks/main.yml b/roles/cloud-openstack/tasks/main.yml
index ac6cbd3..0796e8e 100644
--- a/roles/cloud-openstack/tasks/main.yml
+++ b/roles/cloud-openstack/tasks/main.yml
@@ -16,7 +16,7 @@
- name: Security rules created
openstack.cloud.security_group_rule:
state: "{{ state|default('present') }}"
- security_group: "{{ os_security_group.id }}"
+ security_group: "{{ os_security_group.security_group.id }}"
protocol: "{{ item.proto }}"
port_range_min: "{{ item.port_min }}"
port_range_max: "{{ item.port_max }}"
@@ -40,7 +40,7 @@
- name: Set image as a fact
set_fact:
image_id: "{{ item.id }}"
- loop: "{{ os_image.openstack_image }}"
+ loop: "{{ os_image.images }}"
when:
- item.name == cloud_providers.openstack.image
- item.status == "active"
@@ -56,12 +56,12 @@
- item['router:external']|default(omit)
- item['admin_state_up']|default(omit)
- item['status'] == 'ACTIVE'
- with_items: "{{ os_network.openstack_networks }}"
+ with_items: "{{ os_network.networks }}"
- name: Set facts
set_fact:
- flavor_id: "{{ (os_flavor.openstack_flavors | sort(attribute='ram'))[0]['id'] }}"
- security_group_name: "{{ os_security_group['secgroup']['name'] }}"
+ flavor_id: "{{ (os_flavor.flavors | sort(attribute='ram'))[0]['id'] }}"
+ security_group_name: "{{ os_security_group['security_group']['name'] }}"
- name: Server created
openstack.cloud.server:
@@ -75,8 +75,15 @@
- net-id: "{{ public_network_id }}"
register: os_server
+- name: Set the IPv4 as a fact
+ set_fact:
+ cloud_instance_ip: "{{ item.addr }}"
+ when:
+ - item['version'] == 4
+ with_items: "{{ os_server.server.addresses.public }}"
+
+
- set_fact:
- cloud_instance_ip: "{{ os_server['openstack']['public_v4'] }}"
ansible_ssh_user: algo
ansible_ssh_port: "{{ ssh_port }}"
cloudinit: true
from algo.
Related Issues (20)
- algo scripts fails with a couple of errors on Debian 12.4 minimal net install HOT 3
- Installation failure "Deploy from script or cloud-init", Hostinger VPS Ubuntu 22.04 x64
- msg": "The 'file' lookup had an issue accessing the file 'configs/20.22.44.75/wireguard//.pki//private/phone'. file not found, use -vvvvv to see paths searched HOT 3
- After connecting Algo-VPN with Wireguard client from windows/linux/macos internet becomes very slow HOT 2
- Add support for MacOS Deployment HOT 1
- algo installation failled to Save private keys
- Configuring Algo Server with NTP Daemon with firewalls to allow access only through the VPN tunnels.
- Installation fails under Ansible 9.1.0 with Hetzner Cloud HOT 1
- ansible 9.1.0 not available on gcloud shell HOT 1
- consider updating gce warning about python 3.8
- ssh-tunnel per user ssh configs don't specify the custom algo port
- Azure Deployment ModuleNotFoundError: No module named 'azure.mgmt.rdbms.postgresql_flexibleservers' HOT 1
- ERROR! couldn't resolve module/action 'vultr_firewall_group'.
- algo fails to deploy on Vultr HOT 1
- Error creating Vultr server in non-default region
- Installing to Ubuntu 24.04 server fails with "unexpected error occurred" in apparmor
- strongswan setup failed (apparmor issue) HOT 2
- AppArmor bug persists HOT 3
- Any way to adjust client config files to protect against TunnelVision attack?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from algo.