mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Remove quotes - Cloud/azure/azure.py (#19206)
* Remove unused quotes * Explicit is better than inplicit
This commit is contained in:
parent
85f7d2b97a
commit
474c0dc87c
1 changed files with 27 additions and 30 deletions
|
@ -146,46 +146,43 @@ EXAMPLES = '''
|
||||||
# Note: None of these examples set subscription_id or management_cert_path
|
# Note: None of these examples set subscription_id or management_cert_path
|
||||||
# It is assumed that their matching environment variables are set.
|
# It is assumed that their matching environment variables are set.
|
||||||
|
|
||||||
# Provision virtual machine example
|
- name: Provision virtual machine example
|
||||||
- local_action:
|
azure:
|
||||||
module: azure
|
|
||||||
name: my-virtual-machine
|
name: my-virtual-machine
|
||||||
role_size: Small
|
role_size: Small
|
||||||
image: b39f27a8b8c64d52b05eac6a62ebad85__Ubuntu_DAILY_BUILD-precise-12_04_3-LTS-amd64-server-20131205-en-us-30GB
|
image: b39f27a8b8c64d52b05eac6a62ebad85__Ubuntu_DAILY_BUILD-precise-12_04_3-LTS-amd64-server-20131205-en-us-30GB
|
||||||
location: 'East US'
|
location: East US
|
||||||
user: ubuntu
|
user: ubuntu
|
||||||
ssh_cert_path: /path/to/azure_x509_cert.pem
|
ssh_cert_path: /path/to/azure_x509_cert.pem
|
||||||
storage_account: my-storage-account
|
storage_account: my-storage-account
|
||||||
wait: yes
|
wait: True
|
||||||
|
state: present
|
||||||
|
delegate_to: localhost
|
||||||
|
|
||||||
# Terminate virtual machine example
|
- name: Terminate virtual machine example
|
||||||
- local_action:
|
azure:
|
||||||
module: azure
|
|
||||||
name: my-virtual-machine
|
name: my-virtual-machine
|
||||||
state: absent
|
state: absent
|
||||||
|
delegate_to: localhost
|
||||||
|
|
||||||
#Create windows machine
|
- name: Create windows machine
|
||||||
- hosts: all
|
azure:
|
||||||
connection: local
|
name: ben-Winows-23
|
||||||
tasks:
|
hostname: win123
|
||||||
- local_action:
|
|
||||||
module: azure
|
|
||||||
name: "ben-Winows-23"
|
|
||||||
hostname: "win123"
|
|
||||||
os_type: windows
|
os_type: windows
|
||||||
enable_winrm: yes
|
enable_winrm: True
|
||||||
subscription_id: "{{ azure_sub_id }}"
|
subscription_id: '{{ azure_sub_id }}'
|
||||||
management_cert_path: "{{ azure_cert_path }}"
|
management_cert_path: '{{ azure_cert_path }}'
|
||||||
role_size: Small
|
role_size: Small
|
||||||
image: 'bd507d3a70934695bc2128e3e5a255ba__RightImage-Windows-2012-x64-v13.5'
|
image: bd507d3a70934695bc2128e3e5a255ba__RightImage-Windows-2012-x64-v13.5
|
||||||
location: 'East Asia'
|
location: East Asia
|
||||||
password: "xxx"
|
password: xxx
|
||||||
storage_account: benooytes
|
storage_account: benooytes
|
||||||
user: admin
|
user: admin
|
||||||
wait: yes
|
wait: True
|
||||||
virtual_network_name: "{{ vnet_name }}"
|
state: present
|
||||||
|
virtual_network_name: '{{ vnet_name }}'
|
||||||
|
delegate_to: localhost
|
||||||
'''
|
'''
|
||||||
|
|
||||||
import base64
|
import base64
|
||||||
|
|
Loading…
Reference in a new issue