Use true and false instead of yes and no for boolean values
Story: 2010586 Task: 47380 Change-Id: I1b88aa925d823d74b2d012153dfe26d35c93dfd5
This commit is contained in:
parent
b6b5f63877
commit
f73a0e385e
@ -19,7 +19,7 @@
|
|||||||
name: '{{ mapping_name }}'
|
name: '{{ mapping_name }}'
|
||||||
rules: '{{ mapping_rules_1 }}'
|
rules: '{{ mapping_rules_1 }}'
|
||||||
register: create_mapping
|
register: create_mapping
|
||||||
check_mode: yes
|
check_mode: true
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
that:
|
that:
|
||||||
@ -91,7 +91,7 @@
|
|||||||
name: '{{ mapping_name }}'
|
name: '{{ mapping_name }}'
|
||||||
rules: '{{ mapping_rules_1 }}'
|
rules: '{{ mapping_rules_1 }}'
|
||||||
register: create_mapping
|
register: create_mapping
|
||||||
check_mode: yes
|
check_mode: true
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
that:
|
that:
|
||||||
@ -117,7 +117,7 @@
|
|||||||
name: '{{ mapping_name }}'
|
name: '{{ mapping_name }}'
|
||||||
rules: '{{ mapping_rules_2 }}'
|
rules: '{{ mapping_rules_2 }}'
|
||||||
register: update_mapping
|
register: update_mapping
|
||||||
check_mode: yes
|
check_mode: true
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
that:
|
that:
|
||||||
@ -196,7 +196,7 @@
|
|||||||
state: 'absent'
|
state: 'absent'
|
||||||
name: '{{ mapping_name }}'
|
name: '{{ mapping_name }}'
|
||||||
register: delete_mapping
|
register: delete_mapping
|
||||||
check_mode: yes
|
check_mode: true
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
that:
|
that:
|
||||||
@ -217,7 +217,7 @@
|
|||||||
state: 'absent'
|
state: 'absent'
|
||||||
name: '{{ mapping_name }}'
|
name: '{{ mapping_name }}'
|
||||||
register: delete_mapping
|
register: delete_mapping
|
||||||
check_mode: yes
|
check_mode: true
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
that:
|
that:
|
||||||
@ -257,10 +257,10 @@
|
|||||||
openstack.cloud.federation_mapping:
|
openstack.cloud.federation_mapping:
|
||||||
state: 'absent'
|
state: 'absent'
|
||||||
name: '{{ mapping_name }}'
|
name: '{{ mapping_name }}'
|
||||||
ignore_errors: yes
|
ignore_errors: true
|
||||||
|
|
||||||
- name: 'Delete second mapping'
|
- name: 'Delete second mapping'
|
||||||
openstack.cloud.federation_mapping:
|
openstack.cloud.federation_mapping:
|
||||||
state: 'absent'
|
state: 'absent'
|
||||||
name: '{{ mapping_name_2 }}'
|
name: '{{ mapping_name_2 }}'
|
||||||
ignore_errors: yes
|
ignore_errors: true
|
||||||
|
@ -214,7 +214,7 @@
|
|||||||
cloud: "{{ cloud }}"
|
cloud: "{{ cloud }}"
|
||||||
state: present
|
state: present
|
||||||
server: ansible_server1
|
server: ansible_server1
|
||||||
wait: yes
|
wait: true
|
||||||
|
|
||||||
- name: Get floating ip attached to server 1
|
- name: Get floating ip attached to server 1
|
||||||
openstack.cloud.floating_ip_info:
|
openstack.cloud.floating_ip_info:
|
||||||
@ -302,7 +302,7 @@
|
|||||||
openstack.cloud.floating_ip:
|
openstack.cloud.floating_ip:
|
||||||
cloud: "{{ cloud }}"
|
cloud: "{{ cloud }}"
|
||||||
state: present
|
state: present
|
||||||
reuse: no # else fixed_address will be ignored
|
reuse: false # else fixed_address will be ignored
|
||||||
server: ansible_server2
|
server: ansible_server2
|
||||||
network: public
|
network: public
|
||||||
fixed_address: "{{ port2.port.fixed_ips[0].ip_address }}"
|
fixed_address: "{{ port2.port.fixed_ips[0].ip_address }}"
|
||||||
@ -347,12 +347,12 @@
|
|||||||
openstack.cloud.floating_ip:
|
openstack.cloud.floating_ip:
|
||||||
cloud: "{{ cloud }}"
|
cloud: "{{ cloud }}"
|
||||||
state: present
|
state: present
|
||||||
reuse: no # else fixed_address will be ignored
|
reuse: false # else fixed_address will be ignored
|
||||||
server: ansible_server2
|
server: ansible_server2
|
||||||
network: ansible_external
|
network: ansible_external
|
||||||
fixed_address: "{{ port3.port.fixed_ips[0].ip_address }}"
|
fixed_address: "{{ port3.port.fixed_ips[0].ip_address }}"
|
||||||
floating_ip_address: "10.6.6.150"
|
floating_ip_address: "10.6.6.150"
|
||||||
wait: no # does not work anyway and causes issues in local testing
|
wait: false # does not work anyway and causes issues in local testing
|
||||||
|
|
||||||
- name: Get floating ip attached to server 2
|
- name: Get floating ip attached to server 2
|
||||||
openstack.cloud.floating_ip_info:
|
openstack.cloud.floating_ip_info:
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
domain: default
|
domain: default
|
||||||
default_project: demo
|
default_project: demo
|
||||||
register: user
|
register: user
|
||||||
ignore_errors: yes
|
ignore_errors: true
|
||||||
|
|
||||||
- name: Assert that update failed
|
- name: Assert that update failed
|
||||||
assert:
|
assert:
|
||||||
@ -93,7 +93,7 @@
|
|||||||
update_password: always
|
update_password: always
|
||||||
email: updated.ansible.user@nowhere.net
|
email: updated.ansible.user@nowhere.net
|
||||||
register: user
|
register: user
|
||||||
ignore_errors: yes
|
ignore_errors: true
|
||||||
|
|
||||||
- name: Assert user update failed
|
- name: Assert user update failed
|
||||||
assert:
|
assert:
|
||||||
|
@ -78,7 +78,7 @@
|
|||||||
- name: Generate test key file
|
- name: Generate test key file
|
||||||
user:
|
user:
|
||||||
name: "{{ ansible_env.USER }}"
|
name: "{{ ansible_env.USER }}"
|
||||||
generate_ssh_key: yes
|
generate_ssh_key: true
|
||||||
ssh_key_file: .ssh/shade_id_rsa
|
ssh_key_file: .ssh/shade_id_rsa
|
||||||
|
|
||||||
- name: Create keypair (file)
|
- name: Create keypair (file)
|
||||||
|
@ -78,7 +78,7 @@
|
|||||||
# Creation
|
# Creation
|
||||||
|
|
||||||
- name: Create protocol - CHECK MODE
|
- name: Create protocol - CHECK MODE
|
||||||
check_mode: yes
|
check_mode: true
|
||||||
openstack.cloud.keystone_federation_protocol:
|
openstack.cloud.keystone_federation_protocol:
|
||||||
state: present
|
state: present
|
||||||
name: ansible_protocol1
|
name: ansible_protocol1
|
||||||
@ -119,7 +119,7 @@
|
|||||||
- expected_fields|difference(protocol.protocol.keys())|length == 0
|
- expected_fields|difference(protocol.protocol.keys())|length == 0
|
||||||
|
|
||||||
- name: Create protocol (retry - no change) - CHECK MODE
|
- name: Create protocol (retry - no change) - CHECK MODE
|
||||||
check_mode: yes
|
check_mode: true
|
||||||
openstack.cloud.keystone_federation_protocol:
|
openstack.cloud.keystone_federation_protocol:
|
||||||
state: present
|
state: present
|
||||||
name: ansible_protocol1
|
name: ansible_protocol1
|
||||||
@ -148,7 +148,7 @@
|
|||||||
# Update
|
# Update
|
||||||
|
|
||||||
- name: Update protocol - CHECK MODE
|
- name: Update protocol - CHECK MODE
|
||||||
check_mode: yes
|
check_mode: true
|
||||||
openstack.cloud.keystone_federation_protocol:
|
openstack.cloud.keystone_federation_protocol:
|
||||||
state: present
|
state: present
|
||||||
name: ansible_protocol1
|
name: ansible_protocol1
|
||||||
@ -174,7 +174,7 @@
|
|||||||
- protocol.protocol.mapping_id == 'ansible_mapping2'
|
- protocol.protocol.mapping_id == 'ansible_mapping2'
|
||||||
|
|
||||||
- name: Update protocol (retry - no change) - CHECK MODE
|
- name: Update protocol (retry - no change) - CHECK MODE
|
||||||
check_mode: yes
|
check_mode: true
|
||||||
openstack.cloud.keystone_federation_protocol:
|
openstack.cloud.keystone_federation_protocol:
|
||||||
state: present
|
state: present
|
||||||
name: ansible_protocol1
|
name: ansible_protocol1
|
||||||
@ -258,7 +258,7 @@
|
|||||||
# Deletion
|
# Deletion
|
||||||
|
|
||||||
- name: Delete protocol - CHECK MODE
|
- name: Delete protocol - CHECK MODE
|
||||||
check_mode: yes
|
check_mode: true
|
||||||
openstack.cloud.keystone_federation_protocol:
|
openstack.cloud.keystone_federation_protocol:
|
||||||
state: absent
|
state: absent
|
||||||
name: ansible_protocol1
|
name: ansible_protocol1
|
||||||
@ -279,7 +279,7 @@
|
|||||||
- protocol is changed
|
- protocol is changed
|
||||||
|
|
||||||
- name: Delete protocol (retry - no change) - CHECK MODE
|
- name: Delete protocol (retry - no change) - CHECK MODE
|
||||||
check_mode: yes
|
check_mode: true
|
||||||
openstack.cloud.keystone_federation_protocol:
|
openstack.cloud.keystone_federation_protocol:
|
||||||
state: absent
|
state: absent
|
||||||
name: ansible_protocol1
|
name: ansible_protocol1
|
||||||
@ -307,35 +307,35 @@
|
|||||||
state: absent
|
state: absent
|
||||||
name: ansible_protocol1
|
name: ansible_protocol1
|
||||||
idp_id: ansible_idp
|
idp_id: ansible_idp
|
||||||
ignore_errors: yes
|
ignore_errors: true
|
||||||
|
|
||||||
- name: Delete protocol (2)
|
- name: Delete protocol (2)
|
||||||
openstack.cloud.keystone_federation_protocol:
|
openstack.cloud.keystone_federation_protocol:
|
||||||
state: absent
|
state: absent
|
||||||
name: ansible_protocol2
|
name: ansible_protocol2
|
||||||
idp_id: ansible_idp
|
idp_id: ansible_idp
|
||||||
ignore_errors: yes
|
ignore_errors: true
|
||||||
|
|
||||||
- name: Delete mapping 1
|
- name: Delete mapping 1
|
||||||
openstack.cloud.federation_mapping:
|
openstack.cloud.federation_mapping:
|
||||||
state: absent
|
state: absent
|
||||||
name: ansible_mapping1
|
name: ansible_mapping1
|
||||||
ignore_errors: yes
|
ignore_errors: true
|
||||||
|
|
||||||
- name: Delete mapping 2
|
- name: Delete mapping 2
|
||||||
openstack.cloud.federation_mapping:
|
openstack.cloud.federation_mapping:
|
||||||
state: absent
|
state: absent
|
||||||
name: ansible_mapping2
|
name: ansible_mapping2
|
||||||
ignore_errors: yes
|
ignore_errors: true
|
||||||
|
|
||||||
- name: Delete idp
|
- name: Delete idp
|
||||||
openstack.cloud.federation_idp:
|
openstack.cloud.federation_idp:
|
||||||
state: absent
|
state: absent
|
||||||
name: ansible_idp
|
name: ansible_idp
|
||||||
ignore_errors: yes
|
ignore_errors: true
|
||||||
|
|
||||||
- name: Delete domain
|
- name: Delete domain
|
||||||
openstack.cloud.identity_domain:
|
openstack.cloud.identity_domain:
|
||||||
state: absent
|
state: absent
|
||||||
name: ansible_domain
|
name: ansible_domain
|
||||||
ignore_errors: yes
|
ignore_errors: true
|
||||||
|
@ -116,7 +116,7 @@
|
|||||||
_idps: '{{ idps.identity_providers }}'
|
_idps: '{{ idps.identity_providers }}'
|
||||||
|
|
||||||
- name: 'Create identity_provider (retry - no change) - CHECK_MODE'
|
- name: 'Create identity_provider (retry - no change) - CHECK_MODE'
|
||||||
check_mode: yes
|
check_mode: true
|
||||||
openstack.cloud.federation_idp:
|
openstack.cloud.federation_idp:
|
||||||
state: present
|
state: present
|
||||||
name: 'ansible_identity_provider'
|
name: 'ansible_identity_provider'
|
||||||
@ -150,7 +150,7 @@
|
|||||||
# Update (simple cases)
|
# Update (simple cases)
|
||||||
|
|
||||||
- name: 'Update IDP set description - CHECK_MODE'
|
- name: 'Update IDP set description - CHECK_MODE'
|
||||||
check_mode: yes
|
check_mode: true
|
||||||
openstack.cloud.federation_idp:
|
openstack.cloud.federation_idp:
|
||||||
state: present
|
state: present
|
||||||
name: 'ansible_identity_provider'
|
name: 'ansible_identity_provider'
|
||||||
@ -181,7 +181,7 @@
|
|||||||
_idp: '{{ idp.identity_provider }}'
|
_idp: '{{ idp.identity_provider }}'
|
||||||
|
|
||||||
- name: 'Update IDP set description (retry - no change) - CHECK_MODE'
|
- name: 'Update IDP set description (retry - no change) - CHECK_MODE'
|
||||||
check_mode: yes
|
check_mode: true
|
||||||
openstack.cloud.federation_idp:
|
openstack.cloud.federation_idp:
|
||||||
state: present
|
state: present
|
||||||
name: 'ansible_identity_provider'
|
name: 'ansible_identity_provider'
|
||||||
@ -213,7 +213,7 @@
|
|||||||
|
|
||||||
|
|
||||||
- name: 'Update IDP set Remote IDs - CHECK_MODE'
|
- name: 'Update IDP set Remote IDs - CHECK_MODE'
|
||||||
check_mode: yes
|
check_mode: true
|
||||||
openstack.cloud.federation_idp:
|
openstack.cloud.federation_idp:
|
||||||
state: present
|
state: present
|
||||||
name: 'ansible_identity_provider'
|
name: 'ansible_identity_provider'
|
||||||
@ -244,7 +244,7 @@
|
|||||||
_idp: '{{ idp.identity_provider }}'
|
_idp: '{{ idp.identity_provider }}'
|
||||||
|
|
||||||
- name: 'Update IDP set Remote IDs (retry - no change) - CHECK_MODE'
|
- name: 'Update IDP set Remote IDs (retry - no change) - CHECK_MODE'
|
||||||
check_mode: yes
|
check_mode: true
|
||||||
openstack.cloud.federation_idp:
|
openstack.cloud.federation_idp:
|
||||||
state: present
|
state: present
|
||||||
name: 'ansible_identity_provider'
|
name: 'ansible_identity_provider'
|
||||||
@ -275,7 +275,7 @@
|
|||||||
_idp: '{{ idp.identity_provider }}'
|
_idp: '{{ idp.identity_provider }}'
|
||||||
|
|
||||||
- name: 'Update IDP set Enabled - CHECK_MODE'
|
- name: 'Update IDP set Enabled - CHECK_MODE'
|
||||||
check_mode: yes
|
check_mode: true
|
||||||
openstack.cloud.federation_idp:
|
openstack.cloud.federation_idp:
|
||||||
state: present
|
state: present
|
||||||
name: 'ansible_identity_provider'
|
name: 'ansible_identity_provider'
|
||||||
@ -306,7 +306,7 @@
|
|||||||
_idp: '{{ idp.identity_provider }}'
|
_idp: '{{ idp.identity_provider }}'
|
||||||
|
|
||||||
- name: 'Update IDP set Enabled (retry - no change) - CHECK_MODE'
|
- name: 'Update IDP set Enabled (retry - no change) - CHECK_MODE'
|
||||||
check_mode: yes
|
check_mode: true
|
||||||
openstack.cloud.federation_idp:
|
openstack.cloud.federation_idp:
|
||||||
state: present
|
state: present
|
||||||
name: 'ansible_identity_provider'
|
name: 'ansible_identity_provider'
|
||||||
@ -338,7 +338,7 @@
|
|||||||
|
|
||||||
# If we don't specify anything to change, then nothing should change...
|
# If we don't specify anything to change, then nothing should change...
|
||||||
- name: 'Minimal call to IDP (no change) - CHECK_MODE'
|
- name: 'Minimal call to IDP (no change) - CHECK_MODE'
|
||||||
check_mode: yes
|
check_mode: true
|
||||||
openstack.cloud.federation_idp:
|
openstack.cloud.federation_idp:
|
||||||
state: present
|
state: present
|
||||||
name: 'ansible_identity_provider'
|
name: 'ansible_identity_provider'
|
||||||
@ -371,7 +371,7 @@
|
|||||||
# Update (mass-update)
|
# Update (mass-update)
|
||||||
|
|
||||||
- name: 'Update all updatable IDP parameters - CHECK_MODE'
|
- name: 'Update all updatable IDP parameters - CHECK_MODE'
|
||||||
check_mode: yes
|
check_mode: true
|
||||||
openstack.cloud.federation_idp:
|
openstack.cloud.federation_idp:
|
||||||
state: present
|
state: present
|
||||||
name: 'ansible_identity_provider'
|
name: 'ansible_identity_provider'
|
||||||
@ -406,7 +406,7 @@
|
|||||||
_idp: '{{ idp.identity_provider }}'
|
_idp: '{{ idp.identity_provider }}'
|
||||||
|
|
||||||
- name: 'Update all updatable IDP parameters (no change) - CHECK_MODE'
|
- name: 'Update all updatable IDP parameters (no change) - CHECK_MODE'
|
||||||
check_mode: yes
|
check_mode: true
|
||||||
openstack.cloud.federation_idp:
|
openstack.cloud.federation_idp:
|
||||||
state: present
|
state: present
|
||||||
name: 'ansible_identity_provider'
|
name: 'ansible_identity_provider'
|
||||||
@ -444,7 +444,7 @@
|
|||||||
# Create complex IDP
|
# Create complex IDP
|
||||||
|
|
||||||
- name: 'Create complex IDP - CHECK_MODE'
|
- name: 'Create complex IDP - CHECK_MODE'
|
||||||
check_mode: yes
|
check_mode: true
|
||||||
openstack.cloud.federation_idp:
|
openstack.cloud.federation_idp:
|
||||||
state: present
|
state: present
|
||||||
name: 'ansible_identity_provider2'
|
name: 'ansible_identity_provider2'
|
||||||
@ -481,7 +481,7 @@
|
|||||||
_idp: '{{ idp.identity_provider }}'
|
_idp: '{{ idp.identity_provider }}'
|
||||||
|
|
||||||
- name: 'Create complex IDP (retry - no change) - CHECK_MODE'
|
- name: 'Create complex IDP (retry - no change) - CHECK_MODE'
|
||||||
check_mode: yes
|
check_mode: true
|
||||||
openstack.cloud.federation_idp:
|
openstack.cloud.federation_idp:
|
||||||
state: present
|
state: present
|
||||||
name: 'ansible_identity_provider2'
|
name: 'ansible_identity_provider2'
|
||||||
@ -558,7 +558,7 @@
|
|||||||
- False in (idps.identity_providers | map(attribute='is_enabled'))
|
- False in (idps.identity_providers | map(attribute='is_enabled'))
|
||||||
|
|
||||||
- name: 'Delete identity_provider - CHECK_MODE'
|
- name: 'Delete identity_provider - CHECK_MODE'
|
||||||
check_mode: yes
|
check_mode: true
|
||||||
openstack.cloud.federation_idp:
|
openstack.cloud.federation_idp:
|
||||||
state: absent
|
state: absent
|
||||||
name: 'ansible_identity_provider'
|
name: 'ansible_identity_provider'
|
||||||
@ -579,7 +579,7 @@
|
|||||||
- idp is changed
|
- idp is changed
|
||||||
|
|
||||||
- name: 'Delete identity_provider (retry - no change) - CHECK_MODE'
|
- name: 'Delete identity_provider (retry - no change) - CHECK_MODE'
|
||||||
check_mode: yes
|
check_mode: true
|
||||||
openstack.cloud.federation_idp:
|
openstack.cloud.federation_idp:
|
||||||
state: absent
|
state: absent
|
||||||
name: 'ansible_identity_provider'
|
name: 'ansible_identity_provider'
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
- name: Check output of network info
|
- name: Check output of network info
|
||||||
# TODO: Remove ignore_errors once SDK's search_networks() (re)implemented searching by id
|
# TODO: Remove ignore_errors once SDK's search_networks() (re)implemented searching by id
|
||||||
ignore_errors: yes
|
ignore_errors: true
|
||||||
assert:
|
assert:
|
||||||
that:
|
that:
|
||||||
- result.networks|length == 1
|
- result.networks|length == 1
|
||||||
|
@ -90,4 +90,4 @@
|
|||||||
cloud: "{{ cloud }}"
|
cloud: "{{ cloud }}"
|
||||||
state: absent
|
state: absent
|
||||||
name: ansible_container2
|
name: ansible_container2
|
||||||
delete_with_all_objects: yes
|
delete_with_all_objects: true
|
||||||
|
@ -169,7 +169,7 @@
|
|||||||
- ip_address: 10.5.5.69
|
- ip_address: 10.5.5.69
|
||||||
name: "{{ port_name }}"
|
name: "{{ port_name }}"
|
||||||
network: "{{ network_name }}"
|
network: "{{ network_name }}"
|
||||||
no_security_groups: yes
|
no_security_groups: true
|
||||||
state: present
|
state: present
|
||||||
register: port
|
register: port
|
||||||
|
|
||||||
@ -192,7 +192,7 @@
|
|||||||
subnet_id: "{{ subnet.subnet.id }}"
|
subnet_id: "{{ subnet.subnet.id }}"
|
||||||
name: "{{ port_name }}"
|
name: "{{ port_name }}"
|
||||||
network: "{{ network_name }}"
|
network: "{{ network_name }}"
|
||||||
no_security_groups: yes
|
no_security_groups: true
|
||||||
state: present
|
state: present
|
||||||
register: port_again
|
register: port_again
|
||||||
|
|
||||||
|
@ -224,7 +224,7 @@
|
|||||||
register: info
|
register: info
|
||||||
# TODO: Drop ignore_errors once openstacksdk's bug #2010135 has been solved.
|
# TODO: Drop ignore_errors once openstacksdk's bug #2010135 has been solved.
|
||||||
# Ref.: https://storyboard.openstack.org/#!/story/2010135
|
# Ref.: https://storyboard.openstack.org/#!/story/2010135
|
||||||
ignore_errors: yes
|
ignore_errors: true
|
||||||
|
|
||||||
- name: Check info about server image name
|
- name: Check info about server image name
|
||||||
assert:
|
assert:
|
||||||
@ -232,7 +232,7 @@
|
|||||||
- info.servers[0].image.name == image_name
|
- info.servers[0].image.name == image_name
|
||||||
# TODO: Drop ignore_errors once openstacksdk's bug #2010135 has been solved.
|
# TODO: Drop ignore_errors once openstacksdk's bug #2010135 has been solved.
|
||||||
# Ref.: https://storyboard.openstack.org/#!/story/2010135
|
# Ref.: https://storyboard.openstack.org/#!/story/2010135
|
||||||
ignore_errors: yes
|
ignore_errors: true
|
||||||
|
|
||||||
- name: Delete server (FIP from pool/network)
|
- name: Delete server (FIP from pool/network)
|
||||||
openstack.cloud.server:
|
openstack.cloud.server:
|
||||||
@ -375,7 +375,7 @@
|
|||||||
state: present
|
state: present
|
||||||
name: "{{ server_port }}"
|
name: "{{ server_port }}"
|
||||||
network: "{{ server_network }}"
|
network: "{{ server_network }}"
|
||||||
no_security_groups: yes
|
no_security_groups: true
|
||||||
fixed_ips:
|
fixed_ips:
|
||||||
- ip_address: 192.168.0.42
|
- ip_address: 192.168.0.42
|
||||||
register: port
|
register: port
|
||||||
@ -555,7 +555,7 @@
|
|||||||
- name: Delete updated server
|
- name: Delete updated server
|
||||||
openstack.cloud.server:
|
openstack.cloud.server:
|
||||||
cloud: "{{ cloud }}"
|
cloud: "{{ cloud }}"
|
||||||
delete_ips: yes
|
delete_ips: true
|
||||||
name: "{{ server_name }}"
|
name: "{{ server_name }}"
|
||||||
state: absent
|
state: absent
|
||||||
wait: true
|
wait: true
|
||||||
|
@ -46,7 +46,7 @@ options:
|
|||||||
description:
|
description:
|
||||||
- Should ansible wait until the requested resource is complete.
|
- Should ansible wait until the requested resource is complete.
|
||||||
type: bool
|
type: bool
|
||||||
default: yes
|
default: true
|
||||||
timeout:
|
timeout:
|
||||||
description:
|
description:
|
||||||
- How long should ansible wait for the requested resource.
|
- How long should ansible wait for the requested resource.
|
||||||
@ -60,7 +60,7 @@ options:
|
|||||||
validate_certs:
|
validate_certs:
|
||||||
description:
|
description:
|
||||||
- Whether or not SSL API requests should be verified.
|
- Whether or not SSL API requests should be verified.
|
||||||
- Before Ansible 2.3 this defaulted to C(yes).
|
- Before Ansible 2.3 this defaulted to C(true).
|
||||||
type: bool
|
type: bool
|
||||||
aliases: [ verify ]
|
aliases: [ verify ]
|
||||||
ca_cert:
|
ca_cert:
|
||||||
|
@ -40,7 +40,7 @@ options:
|
|||||||
description:
|
description:
|
||||||
- Whether this address scope is shared or not.
|
- Whether this address scope is shared or not.
|
||||||
type: bool
|
type: bool
|
||||||
default: 'no'
|
default: 'false'
|
||||||
aliases: ['shared']
|
aliases: ['shared']
|
||||||
extra_specs:
|
extra_specs:
|
||||||
description:
|
description:
|
||||||
|
@ -93,10 +93,10 @@ EXAMPLES = r'''
|
|||||||
image_checksum: "356a6b55ecc511a20c33c946c4e678af"
|
image_checksum: "356a6b55ecc511a20c33c946c4e678af"
|
||||||
image_disk_format: "qcow"
|
image_disk_format: "qcow"
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
deploy: yes
|
deploy: true
|
||||||
cloud: "openstack"
|
cloud: "openstack"
|
||||||
config_drive: "http://192.168.1.1/host-configdrive.iso"
|
config_drive: "http://192.168.1.1/host-configdrive.iso"
|
||||||
maintenance: no
|
maintenance: false
|
||||||
power: present
|
power: present
|
||||||
uuid: "d44666e1-35b3-4f6b-acb0-88ab7052da69"
|
uuid: "d44666e1-35b3-4f6b-acb0-88ab7052da69"
|
||||||
state: present
|
state: present
|
||||||
|
@ -317,7 +317,7 @@ EXAMPLES = r'''
|
|||||||
image_id: 2a8c9888-9054-4b06-a1ca-2bb61f9adb72
|
image_id: 2a8c9888-9054-4b06-a1ca-2bb61f9adb72
|
||||||
keypair_id: mykey
|
keypair_id: mykey
|
||||||
name: k8s
|
name: k8s
|
||||||
is_public: no
|
is_public: false
|
||||||
'''
|
'''
|
||||||
|
|
||||||
from ansible_collections.openstack.cloud.plugins.module_utils.openstack import OpenStackModule
|
from ansible_collections.openstack.cloud.plugins.module_utils.openstack import OpenStackModule
|
||||||
|
@ -42,7 +42,7 @@ options:
|
|||||||
floating IP completely, or only detach it from the server.
|
floating IP completely, or only detach it from the server.
|
||||||
Default is to detach only.
|
Default is to detach only.
|
||||||
type: bool
|
type: bool
|
||||||
default: 'no'
|
default: 'false'
|
||||||
reuse:
|
reuse:
|
||||||
description:
|
description:
|
||||||
- When I(state) is present, and I(floating_ip_address) is not present,
|
- When I(state) is present, and I(floating_ip_address) is not present,
|
||||||
@ -52,7 +52,7 @@ options:
|
|||||||
I(floating_ip_address) is undefined, then C(nat_destination) and
|
I(floating_ip_address) is undefined, then C(nat_destination) and
|
||||||
C(fixed_address) will be ignored.
|
C(fixed_address) will be ignored.
|
||||||
type: bool
|
type: bool
|
||||||
default: 'no'
|
default: 'false'
|
||||||
server:
|
server:
|
||||||
description:
|
description:
|
||||||
- The name or ID of the server to which the IP address
|
- The name or ID of the server to which the IP address
|
||||||
@ -83,7 +83,7 @@ EXAMPLES = '''
|
|||||||
- openstack.cloud.floating_ip:
|
- openstack.cloud.floating_ip:
|
||||||
cloud: dguerri
|
cloud: dguerri
|
||||||
state: present
|
state: present
|
||||||
reuse: yes
|
reuse: true
|
||||||
server: cattle001
|
server: cattle001
|
||||||
network: ext_net
|
network: ext_net
|
||||||
fixed_address: 192.0.2.3
|
fixed_address: 192.0.2.3
|
||||||
|
@ -32,7 +32,7 @@ options:
|
|||||||
description:
|
description:
|
||||||
- Whether the user is enabled or not.
|
- Whether the user is enabled or not.
|
||||||
type: bool
|
type: bool
|
||||||
default: 'yes'
|
default: 'true'
|
||||||
aliases: ['enabled']
|
aliases: ['enabled']
|
||||||
name:
|
name:
|
||||||
description:
|
description:
|
||||||
|
@ -258,7 +258,7 @@ EXAMPLES = r'''
|
|||||||
- name: Delete a load balancer, its related resources and its floating ip
|
- name: Delete a load balancer, its related resources and its floating ip
|
||||||
openstack.cloud.loadbalancer:
|
openstack.cloud.loadbalancer:
|
||||||
cloud: devstack
|
cloud: devstack
|
||||||
delete_floating_ip: yes
|
delete_floating_ip: true
|
||||||
name: my_lb
|
name: my_lb
|
||||||
state: absent
|
state: absent
|
||||||
'''
|
'''
|
||||||
|
@ -135,9 +135,9 @@ options:
|
|||||||
description:
|
description:
|
||||||
- Do not associate a security group with this port.
|
- Do not associate a security group with this port.
|
||||||
- "Deprecated. Use I(security_groups): C([]) instead
|
- "Deprecated. Use I(security_groups): C([]) instead
|
||||||
of I(no_security_groups): C(yes)."
|
of I(no_security_groups): C(true)."
|
||||||
type: bool
|
type: bool
|
||||||
default: 'no'
|
default: 'false'
|
||||||
port_security_enabled:
|
port_security_enabled:
|
||||||
description:
|
description:
|
||||||
- Whether to enable or disable the port security on the network.
|
- Whether to enable or disable the port security on the network.
|
||||||
|
@ -87,7 +87,7 @@ options:
|
|||||||
description:
|
description:
|
||||||
- Desired admin state of the created or existing router.
|
- Desired admin state of the created or existing router.
|
||||||
type: bool
|
type: bool
|
||||||
default: 'yes'
|
default: 'true'
|
||||||
aliases: ['admin_state_up']
|
aliases: ['admin_state_up']
|
||||||
name:
|
name:
|
||||||
description:
|
description:
|
||||||
|
@ -27,7 +27,7 @@ options:
|
|||||||
attaching and detaching of floating ip addresses use module
|
attaching and detaching of floating ip addresses use module
|
||||||
I(openstack.cloud.resource) instead.
|
I(openstack.cloud.resource) instead.
|
||||||
type: bool
|
type: bool
|
||||||
default: 'yes'
|
default: 'true'
|
||||||
aliases: ['auto_floating_ip', 'public_ip']
|
aliases: ['auto_floating_ip', 'public_ip']
|
||||||
availability_zone:
|
availability_zone:
|
||||||
description:
|
description:
|
||||||
@ -40,7 +40,7 @@ options:
|
|||||||
the image given. Mutually exclusive with boot_volume.
|
the image given. Mutually exclusive with boot_volume.
|
||||||
- This server attribute cannot be updated.
|
- This server attribute cannot be updated.
|
||||||
type: bool
|
type: bool
|
||||||
default: 'no'
|
default: 'false'
|
||||||
boot_volume:
|
boot_volume:
|
||||||
description:
|
description:
|
||||||
- Volume name or id to use as the volume to boot from. Implies
|
- Volume name or id to use as the volume to boot from. Implies
|
||||||
@ -53,7 +53,7 @@ options:
|
|||||||
- Whether to boot the server with config drive enabled.
|
- Whether to boot the server with config drive enabled.
|
||||||
- This server attribute cannot be updated.
|
- This server attribute cannot be updated.
|
||||||
type: bool
|
type: bool
|
||||||
default: 'no'
|
default: 'false'
|
||||||
delete_ips:
|
delete_ips:
|
||||||
description:
|
description:
|
||||||
- When I(state) is C(absent) and this option is true, any floating IP
|
- When I(state) is C(absent) and this option is true, any floating IP
|
||||||
@ -61,7 +61,7 @@ options:
|
|||||||
- Floating IP support is unstable in this module, use with caution.
|
- Floating IP support is unstable in this module, use with caution.
|
||||||
type: bool
|
type: bool
|
||||||
aliases: ['delete_fip']
|
aliases: ['delete_fip']
|
||||||
default: 'no'
|
default: 'false'
|
||||||
description:
|
description:
|
||||||
description:
|
description:
|
||||||
- Description of the server.
|
- Description of the server.
|
||||||
@ -183,7 +183,7 @@ options:
|
|||||||
- Floating IP support is unstable in this module, use with caution.
|
- Floating IP support is unstable in this module, use with caution.
|
||||||
- This server attribute cannot be updated.
|
- This server attribute cannot be updated.
|
||||||
type: bool
|
type: bool
|
||||||
default: 'yes'
|
default: 'true'
|
||||||
scheduler_hints:
|
scheduler_hints:
|
||||||
description:
|
description:
|
||||||
- Arbitrary key/value pairs to the scheduler for custom use.
|
- Arbitrary key/value pairs to the scheduler for custom use.
|
||||||
@ -207,11 +207,11 @@ options:
|
|||||||
type: str
|
type: str
|
||||||
terminate_volume:
|
terminate_volume:
|
||||||
description:
|
description:
|
||||||
- If C(yes), delete volume when deleting the instance and if it has
|
- If C(true), delete volume when deleting the instance and if it has
|
||||||
been booted from volume(s).
|
been booted from volume(s).
|
||||||
- This server attribute cannot be updated.
|
- This server attribute cannot be updated.
|
||||||
type: bool
|
type: bool
|
||||||
default: 'no'
|
default: 'false'
|
||||||
timeout:
|
timeout:
|
||||||
description:
|
description:
|
||||||
- The amount of time the module should wait for the instance to get
|
- The amount of time the module should wait for the instance to get
|
||||||
@ -240,7 +240,7 @@ options:
|
|||||||
description:
|
description:
|
||||||
- If the module should wait for the instance to be created.
|
- If the module should wait for the instance to be created.
|
||||||
type: bool
|
type: bool
|
||||||
default: 'yes'
|
default: 'true'
|
||||||
extends_documentation_fragment:
|
extends_documentation_fragment:
|
||||||
- openstack.cloud.openstack
|
- openstack.cloud.openstack
|
||||||
'''
|
'''
|
||||||
@ -288,7 +288,7 @@ EXAMPLES = '''
|
|||||||
flavor: 101
|
flavor: 101
|
||||||
security_groups:
|
security_groups:
|
||||||
- default
|
- default
|
||||||
auto_ip: yes
|
auto_ip: true
|
||||||
|
|
||||||
# Create a new instance in named cloud mordred availability zone az2
|
# Create a new instance in named cloud mordred availability zone az2
|
||||||
# and assigns a pre-known floating IP
|
# and assigns a pre-known floating IP
|
||||||
@ -1038,7 +1038,7 @@ class ServerModule(OpenStackModule):
|
|||||||
# we wait until the server has been created
|
# we wait until the server has been created
|
||||||
# Ref.: https://opendev.org/openstack/openstacksdk/src/commit/3f81d0001dd994cde990d38f6e2671ee0694d7d5/openstack/cloud/_compute.py#L945
|
# Ref.: https://opendev.org/openstack/openstacksdk/src/commit/3f81d0001dd994cde990d38f6e2671ee0694d7d5/openstack/cloud/_compute.py#L945
|
||||||
self.fail_json(
|
self.fail_json(
|
||||||
msg="Option '{0}' requires 'wait: yes'".format(k))
|
msg="Option '{0}' requires 'wait: true'".format(k))
|
||||||
|
|
||||||
flavor_name_or_id = self.params['flavor']
|
flavor_name_or_id = self.params['flavor']
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ options:
|
|||||||
- when true, return additional detail about servers at the expense
|
- when true, return additional detail about servers at the expense
|
||||||
of additional API calls.
|
of additional API calls.
|
||||||
type: bool
|
type: bool
|
||||||
default: 'no'
|
default: 'false'
|
||||||
filters:
|
filters:
|
||||||
description: |
|
description: |
|
||||||
Used for further filtering of results. Either a string containing a
|
Used for further filtering of results. Either a string containing a
|
||||||
@ -37,7 +37,7 @@ options:
|
|||||||
- Whether to list servers from all projects or just the current auth
|
- Whether to list servers from all projects or just the current auth
|
||||||
scoped project.
|
scoped project.
|
||||||
type: bool
|
type: bool
|
||||||
default: 'no'
|
default: 'false'
|
||||||
extends_documentation_fragment:
|
extends_documentation_fragment:
|
||||||
- openstack.cloud.openstack
|
- openstack.cloud.openstack
|
||||||
'''
|
'''
|
||||||
|
@ -43,7 +43,7 @@ options:
|
|||||||
- The gateway IP would not be assigned for this subnet
|
- The gateway IP would not be assigned for this subnet
|
||||||
type: bool
|
type: bool
|
||||||
aliases: ['no_gateway_ip']
|
aliases: ['no_gateway_ip']
|
||||||
default: 'no'
|
default: 'false'
|
||||||
dns_nameservers:
|
dns_nameservers:
|
||||||
description:
|
description:
|
||||||
- List of DNS nameservers for this subnet.
|
- List of DNS nameservers for this subnet.
|
||||||
@ -85,7 +85,7 @@ options:
|
|||||||
- Whether DHCP should be enabled for this subnet.
|
- Whether DHCP should be enabled for this subnet.
|
||||||
type: bool
|
type: bool
|
||||||
aliases: ['enable_dhcp']
|
aliases: ['enable_dhcp']
|
||||||
default: 'yes'
|
default: 'true'
|
||||||
ipv6_ra_mode:
|
ipv6_ra_mode:
|
||||||
description:
|
description:
|
||||||
- IPv6 router advertisement mode
|
- IPv6 router advertisement mode
|
||||||
|
@ -22,7 +22,7 @@ options:
|
|||||||
- Allows or disallows snapshot of a volume to be created,
|
- Allows or disallows snapshot of a volume to be created,
|
||||||
when the volume is attached to an instance.
|
when the volume is attached to an instance.
|
||||||
type: bool
|
type: bool
|
||||||
default: 'no'
|
default: 'false'
|
||||||
name:
|
name:
|
||||||
description:
|
description:
|
||||||
- Name of the snapshot
|
- Name of the snapshot
|
||||||
|
Loading…
Reference in New Issue
Block a user