Remove lifted azure support
The python modules that Ansible depends on for Azure support are old, and incompatible with Fedora. Drop support until the azure playbook is supported with Fedora packages.
This commit is contained in:
parent
2fdcfc2e4c
commit
6f0473c742
@ -1,47 +0,0 @@
|
||||
- hosts: localhost
|
||||
connection: local
|
||||
tasks:
|
||||
- name: Make sure provided credentials work and the storage account exists
|
||||
azure_rm_storageaccount_facts:
|
||||
subscription_id: "{{ subscription_id }}"
|
||||
client_id: "{{ client_id }}"
|
||||
secret: "{{ secret }}"
|
||||
tenant: "{{ tenant }}"
|
||||
resource_group: "{{ resource_group }}"
|
||||
name: "{{ storage_account_name }}"
|
||||
register: storageaccount_facts
|
||||
- name: Fail if we couldn't log in or the storage account was not found
|
||||
fail:
|
||||
msg: "Invalid credentials or storage account not found!"
|
||||
when: storageaccount_facts.ansible_facts.azure_storageaccounts | length < 1
|
||||
- stat:
|
||||
path: "{{ image_path }}"
|
||||
register: image_stat
|
||||
- set_fact:
|
||||
image_id: "{{ image_name }}-{{ image_stat['stat']['checksum'] }}.vhd"
|
||||
- name: Upload image to Azure
|
||||
azure_rm_storageblob:
|
||||
subscription_id: "{{ subscription_id }}"
|
||||
client_id: "{{ client_id }}"
|
||||
secret: "{{ secret }}"
|
||||
tenant: "{{ tenant }}"
|
||||
resource_group: "{{ resource_group }}"
|
||||
storage_account_name: "{{ storage_account_name }}"
|
||||
container: "{{ storage_container }}"
|
||||
src: "{{ image_path }}"
|
||||
blob: "{{ image_id }}"
|
||||
blob_type: page
|
||||
force: no
|
||||
- set_fact:
|
||||
host: "{{ storage_account_name }}.blob.core.windows.net"
|
||||
- name: Import image
|
||||
azure_rm_image:
|
||||
subscription_id: "{{ subscription_id }}"
|
||||
client_id: "{{ client_id }}"
|
||||
secret: "{{ secret }}"
|
||||
tenant: "{{ tenant }}"
|
||||
resource_group: "{{ resource_group }}"
|
||||
name: "{{ image_name }}"
|
||||
os_type: Linux
|
||||
location: "{{ location }}"
|
||||
source: "https://{{ host }}/{{ storage_container }}/{{ image_id }}"
|
@ -1,53 +0,0 @@
|
||||
display = "Azure"
|
||||
|
||||
supported_types = [
|
||||
"vhd",
|
||||
]
|
||||
|
||||
[settings-info.resource_group]
|
||||
display = "Resource group"
|
||||
type = "string"
|
||||
placeholder = ""
|
||||
regex = ''
|
||||
|
||||
[settings-info.storage_account_name]
|
||||
display = "Storage account name"
|
||||
type = "string"
|
||||
placeholder = ""
|
||||
regex = ''
|
||||
|
||||
[settings-info.storage_container]
|
||||
display = "Storage container"
|
||||
type = "string"
|
||||
placeholder = ""
|
||||
regex = ''
|
||||
|
||||
[settings-info.subscription_id]
|
||||
display = "Subscription ID"
|
||||
type = "string"
|
||||
placeholder = ""
|
||||
regex = ''
|
||||
|
||||
[settings-info.client_id]
|
||||
display = "Client ID"
|
||||
type = "string"
|
||||
placeholder = ""
|
||||
regex = ''
|
||||
|
||||
[settings-info.secret]
|
||||
display = "Secret"
|
||||
type = "string"
|
||||
placeholder = ""
|
||||
regex = ''
|
||||
|
||||
[settings-info.tenant]
|
||||
display = "Tenant"
|
||||
type = "string"
|
||||
placeholder = ""
|
||||
regex = ''
|
||||
|
||||
[settings-info.location]
|
||||
display = "Location"
|
||||
type = "string"
|
||||
placeholder = ""
|
||||
regex = ''
|
Loading…
Reference in New Issue
Block a user