Fix dependencies.

This commit is contained in:
yohan 2024-10-23 21:14:03 +02:00
parent 911b736bee
commit ab4efb19d0
2 changed files with 8 additions and 20 deletions

View File

@ -1,11 +1,10 @@
---
# tasks file for role_delete_openstack_instance
- name: install openstack
ansible.builtin.package:
- name: install python modules
ansible.builtin.pip:
name:
- python3-openstacksdk
state: present
become: true
- openstacksdk==0.61.0
- ovh==1.1.0
- name: delete instance
openstack.cloud.server:
@ -42,11 +41,6 @@
OS_USER_DOMAIN_NAME: "{{ OS_USER_DOMAIN_NAME }}"
OS_REGION_NAME: "{{ OS_REGION_NAME }}"
- name: install ovh python module
ansible.builtin.pip:
name:
- ovh
- name: Remove A server record
ovh_dns:
state: absent

View File

@ -1,11 +1,10 @@
---
# tasks file for role_deploy_openstack_instance
- name: install openstack
ansible.builtin.package:
- name: install python modules
ansible.builtin.pip:
name:
- python3-openstacksdk
state: present
become: true
- openstacksdk==0.61.0
- ovh==1.1.0
- name: create SSH keypair
openstack.cloud.keypair:
@ -36,11 +35,6 @@
- debug: var=openstack_output.openstack.accessIPv4
- name: install ovh python module
ansible.builtin.pip:
name:
- ovh
- name: Create A server record
ovh_dns:
state: present