ansible/test/integration/targets/azure_rm_containerinstance/tasks/main.yml

201 lines
5.3 KiB
YAML
Raw Normal View History

[new module] Add Azure Container Instance support - cloud/azure/azure_rm_containerinstance (#32025) * first dirty container instance * added my name ;-) * more updates * more updates * removed unnecessary stuff * container instance updates * several fixes * undo changes in common * removed unnecessary references, fixed delete * added / updated parameters * updated samples & comments * updated docs, comments, samples and added registry credentials * added ip address and port * query existing container instance (but result not used yet) * some major changes to the module * more fixes * added requirement for containerinstance module * adding integration test * fixes for pull request * updated version * updated version to 2.5 * updated version * updated integration.cloud.azure.txt as requested by test framework * removed due to merge reasons * updated requirements-azure.txt * undone azure-rm-common * lf * properly update test requirements * first dirty container instance * container instance updates * several fixes * review related updates * review related fixes * undo changes in common * added / updated parameters * query existing container instance (but result not used yet) * updated version to 2.5 * updated version * removed due to merge reasons * updated requirements-azure.txt * undone azure-rm-common * properly update test requirements * minor fix - sanity * fix one issue after rebasing * removed files accidentally added while rebasing * removed checking for changes * several fixes * fixed sanity * updates as requested by reviewers * removed ci as it doesn't work * reenabled ci * renamed container instance, removed required: false * removed default: null * final updates according to the review * one more fix * first dirty container instance * added my name ;-) * more updates * more updates * removed unnecessary stuff * container instance updates * several fixes * undo changes in common * removed unnecessary references, fixed delete * added / updated parameters * updated samples & comments * updated docs, comments, samples and added registry credentials * added ip address and port * query existing container instance (but result not used yet) * some major changes to the module * more fixes * adding integration test * fixes for pull request * updated version * updated version to 2.5 * updated version * updated integration.cloud.azure.txt as requested by test framework * removed due to merge reasons * updated requirements-azure.txt * undone azure-rm-common * lf * properly update test requirements * review related updates * first dirty container instance * container instance updates * several fixes * review related fixes * undo changes in common * added / updated parameters * query existing container instance (but result not used yet) * updated version to 2.5 * updated version * removed due to merge reasons * updated requirements-azure.txt * undone azure-rm-common * properly update test requirements * minor fix - sanity * fix one issue after rebasing * removed files accidentally added while rebasing * removed checking for changes * several fixes * fixed sanity * updates as requested by reviewers * removed ci as it doesn't work * reenabled ci * renamed container instance, removed required: false * removed default: null * final updates according to the review * one more fix * changed location as default from resource group can't handle containers * updates to container instance * fixed mistakes during merge * one more fix * another mistake * container instance fixes * several fixes to container instance * return value fix * minor update * just one api version right now * fixed api version * container instance does not suppurt api version * removed unnecessary try blocks * removed tags related things * fixed pep8 * final fixes? * final updates to the module * more fixes
2018-01-17 01:05:45 +01:00
- name: Create sample container instance
azure_rm_containerinstance:
resource_group: "{{ resource_group }}"
name: "aci{{ resource_group | hash('md5') | truncate(7, True, '') }}"
os_type: linux
ip_address: public
location: eastus
ports:
- 80
containers:
- name: mycontainer1
image: httpd
memory: 1.5
ports:
- 80
- 81
register: output
- debug:
var: output
[new module] Add Azure Container Instance support - cloud/azure/azure_rm_containerinstance (#32025) * first dirty container instance * added my name ;-) * more updates * more updates * removed unnecessary stuff * container instance updates * several fixes * undo changes in common * removed unnecessary references, fixed delete * added / updated parameters * updated samples & comments * updated docs, comments, samples and added registry credentials * added ip address and port * query existing container instance (but result not used yet) * some major changes to the module * more fixes * added requirement for containerinstance module * adding integration test * fixes for pull request * updated version * updated version to 2.5 * updated version * updated integration.cloud.azure.txt as requested by test framework * removed due to merge reasons * updated requirements-azure.txt * undone azure-rm-common * lf * properly update test requirements * first dirty container instance * container instance updates * several fixes * review related updates * review related fixes * undo changes in common * added / updated parameters * query existing container instance (but result not used yet) * updated version to 2.5 * updated version * removed due to merge reasons * updated requirements-azure.txt * undone azure-rm-common * properly update test requirements * minor fix - sanity * fix one issue after rebasing * removed files accidentally added while rebasing * removed checking for changes * several fixes * fixed sanity * updates as requested by reviewers * removed ci as it doesn't work * reenabled ci * renamed container instance, removed required: false * removed default: null * final updates according to the review * one more fix * first dirty container instance * added my name ;-) * more updates * more updates * removed unnecessary stuff * container instance updates * several fixes * undo changes in common * removed unnecessary references, fixed delete * added / updated parameters * updated samples & comments * updated docs, comments, samples and added registry credentials * added ip address and port * query existing container instance (but result not used yet) * some major changes to the module * more fixes * adding integration test * fixes for pull request * updated version * updated version to 2.5 * updated version * updated integration.cloud.azure.txt as requested by test framework * removed due to merge reasons * updated requirements-azure.txt * undone azure-rm-common * lf * properly update test requirements * review related updates * first dirty container instance * container instance updates * several fixes * review related fixes * undo changes in common * added / updated parameters * query existing container instance (but result not used yet) * updated version to 2.5 * updated version * removed due to merge reasons * updated requirements-azure.txt * undone azure-rm-common * properly update test requirements * minor fix - sanity * fix one issue after rebasing * removed files accidentally added while rebasing * removed checking for changes * several fixes * fixed sanity * updates as requested by reviewers * removed ci as it doesn't work * reenabled ci * renamed container instance, removed required: false * removed default: null * final updates according to the review * one more fix * changed location as default from resource group can't handle containers * updates to container instance * fixed mistakes during merge * one more fix * another mistake * container instance fixes * several fixes to container instance * return value fix * minor update * just one api version right now * fixed api version * container instance does not suppurt api version * removed unnecessary try blocks * removed tags related things * fixed pep8 * final fixes? * final updates to the module * more fixes
2018-01-17 01:05:45 +01:00
- name: Assert the container instance is well created
assert:
that:
- output.changed
- output.provisioning_state == 'Succeeded'
[new module] Add Azure Container Instance support - cloud/azure/azure_rm_containerinstance (#32025) * first dirty container instance * added my name ;-) * more updates * more updates * removed unnecessary stuff * container instance updates * several fixes * undo changes in common * removed unnecessary references, fixed delete * added / updated parameters * updated samples & comments * updated docs, comments, samples and added registry credentials * added ip address and port * query existing container instance (but result not used yet) * some major changes to the module * more fixes * added requirement for containerinstance module * adding integration test * fixes for pull request * updated version * updated version to 2.5 * updated version * updated integration.cloud.azure.txt as requested by test framework * removed due to merge reasons * updated requirements-azure.txt * undone azure-rm-common * lf * properly update test requirements * first dirty container instance * container instance updates * several fixes * review related updates * review related fixes * undo changes in common * added / updated parameters * query existing container instance (but result not used yet) * updated version to 2.5 * updated version * removed due to merge reasons * updated requirements-azure.txt * undone azure-rm-common * properly update test requirements * minor fix - sanity * fix one issue after rebasing * removed files accidentally added while rebasing * removed checking for changes * several fixes * fixed sanity * updates as requested by reviewers * removed ci as it doesn't work * reenabled ci * renamed container instance, removed required: false * removed default: null * final updates according to the review * one more fix * first dirty container instance * added my name ;-) * more updates * more updates * removed unnecessary stuff * container instance updates * several fixes * undo changes in common * removed unnecessary references, fixed delete * added / updated parameters * updated samples & comments * updated docs, comments, samples and added registry credentials * added ip address and port * query existing container instance (but result not used yet) * some major changes to the module * more fixes * adding integration test * fixes for pull request * updated version * updated version to 2.5 * updated version * updated integration.cloud.azure.txt as requested by test framework * removed due to merge reasons * updated requirements-azure.txt * undone azure-rm-common * lf * properly update test requirements * review related updates * first dirty container instance * container instance updates * several fixes * review related fixes * undo changes in common * added / updated parameters * query existing container instance (but result not used yet) * updated version to 2.5 * updated version * removed due to merge reasons * updated requirements-azure.txt * undone azure-rm-common * properly update test requirements * minor fix - sanity * fix one issue after rebasing * removed files accidentally added while rebasing * removed checking for changes * several fixes * fixed sanity * updates as requested by reviewers * removed ci as it doesn't work * reenabled ci * renamed container instance, removed required: false * removed default: null * final updates according to the review * one more fix * changed location as default from resource group can't handle containers * updates to container instance * fixed mistakes during merge * one more fix * another mistake * container instance fixes * several fixes to container instance * return value fix * minor update * just one api version right now * fixed api version * container instance does not suppurt api version * removed unnecessary try blocks * removed tags related things * fixed pep8 * final fixes? * final updates to the module * more fixes
2018-01-17 01:05:45 +01:00
- name: Create sample container instance -- same parameters
[new module] Add Azure Container Instance support - cloud/azure/azure_rm_containerinstance (#32025) * first dirty container instance * added my name ;-) * more updates * more updates * removed unnecessary stuff * container instance updates * several fixes * undo changes in common * removed unnecessary references, fixed delete * added / updated parameters * updated samples & comments * updated docs, comments, samples and added registry credentials * added ip address and port * query existing container instance (but result not used yet) * some major changes to the module * more fixes * added requirement for containerinstance module * adding integration test * fixes for pull request * updated version * updated version to 2.5 * updated version * updated integration.cloud.azure.txt as requested by test framework * removed due to merge reasons * updated requirements-azure.txt * undone azure-rm-common * lf * properly update test requirements * first dirty container instance * container instance updates * several fixes * review related updates * review related fixes * undo changes in common * added / updated parameters * query existing container instance (but result not used yet) * updated version to 2.5 * updated version * removed due to merge reasons * updated requirements-azure.txt * undone azure-rm-common * properly update test requirements * minor fix - sanity * fix one issue after rebasing * removed files accidentally added while rebasing * removed checking for changes * several fixes * fixed sanity * updates as requested by reviewers * removed ci as it doesn't work * reenabled ci * renamed container instance, removed required: false * removed default: null * final updates according to the review * one more fix * first dirty container instance * added my name ;-) * more updates * more updates * removed unnecessary stuff * container instance updates * several fixes * undo changes in common * removed unnecessary references, fixed delete * added / updated parameters * updated samples & comments * updated docs, comments, samples and added registry credentials * added ip address and port * query existing container instance (but result not used yet) * some major changes to the module * more fixes * adding integration test * fixes for pull request * updated version * updated version to 2.5 * updated version * updated integration.cloud.azure.txt as requested by test framework * removed due to merge reasons * updated requirements-azure.txt * undone azure-rm-common * lf * properly update test requirements * review related updates * first dirty container instance * container instance updates * several fixes * review related fixes * undo changes in common * added / updated parameters * query existing container instance (but result not used yet) * updated version to 2.5 * updated version * removed due to merge reasons * updated requirements-azure.txt * undone azure-rm-common * properly update test requirements * minor fix - sanity * fix one issue after rebasing * removed files accidentally added while rebasing * removed checking for changes * several fixes * fixed sanity * updates as requested by reviewers * removed ci as it doesn't work * reenabled ci * renamed container instance, removed required: false * removed default: null * final updates according to the review * one more fix * changed location as default from resource group can't handle containers * updates to container instance * fixed mistakes during merge * one more fix * another mistake * container instance fixes * several fixes to container instance * return value fix * minor update * just one api version right now * fixed api version * container instance does not suppurt api version * removed unnecessary try blocks * removed tags related things * fixed pep8 * final fixes? * final updates to the module * more fixes
2018-01-17 01:05:45 +01:00
azure_rm_containerinstance:
resource_group: "{{ resource_group }}"
name: "aci{{ resource_group | hash('md5') | truncate(7, True, '') }}"
os_type: linux
ip_address: public
location: eastus
ports:
- 80
containers:
- name: mycontainer1
image: httpd
memory: 1.5
ports:
- 80
- 81
register: output
- name: Assert the container instance is well created
assert:
that:
- output.changed == False
- name: Create sample container instance -- force update
[new module] Add Azure Container Instance support - cloud/azure/azure_rm_containerinstance (#32025) * first dirty container instance * added my name ;-) * more updates * more updates * removed unnecessary stuff * container instance updates * several fixes * undo changes in common * removed unnecessary references, fixed delete * added / updated parameters * updated samples & comments * updated docs, comments, samples and added registry credentials * added ip address and port * query existing container instance (but result not used yet) * some major changes to the module * more fixes * added requirement for containerinstance module * adding integration test * fixes for pull request * updated version * updated version to 2.5 * updated version * updated integration.cloud.azure.txt as requested by test framework * removed due to merge reasons * updated requirements-azure.txt * undone azure-rm-common * lf * properly update test requirements * first dirty container instance * container instance updates * several fixes * review related updates * review related fixes * undo changes in common * added / updated parameters * query existing container instance (but result not used yet) * updated version to 2.5 * updated version * removed due to merge reasons * updated requirements-azure.txt * undone azure-rm-common * properly update test requirements * minor fix - sanity * fix one issue after rebasing * removed files accidentally added while rebasing * removed checking for changes * several fixes * fixed sanity * updates as requested by reviewers * removed ci as it doesn't work * reenabled ci * renamed container instance, removed required: false * removed default: null * final updates according to the review * one more fix * first dirty container instance * added my name ;-) * more updates * more updates * removed unnecessary stuff * container instance updates * several fixes * undo changes in common * removed unnecessary references, fixed delete * added / updated parameters * updated samples & comments * updated docs, comments, samples and added registry credentials * added ip address and port * query existing container instance (but result not used yet) * some major changes to the module * more fixes * adding integration test * fixes for pull request * updated version * updated version to 2.5 * updated version * updated integration.cloud.azure.txt as requested by test framework * removed due to merge reasons * updated requirements-azure.txt * undone azure-rm-common * lf * properly update test requirements * review related updates * first dirty container instance * container instance updates * several fixes * review related fixes * undo changes in common * added / updated parameters * query existing container instance (but result not used yet) * updated version to 2.5 * updated version * removed due to merge reasons * updated requirements-azure.txt * undone azure-rm-common * properly update test requirements * minor fix - sanity * fix one issue after rebasing * removed files accidentally added while rebasing * removed checking for changes * several fixes * fixed sanity * updates as requested by reviewers * removed ci as it doesn't work * reenabled ci * renamed container instance, removed required: false * removed default: null * final updates according to the review * one more fix * changed location as default from resource group can't handle containers * updates to container instance * fixed mistakes during merge * one more fix * another mistake * container instance fixes * several fixes to container instance * return value fix * minor update * just one api version right now * fixed api version * container instance does not suppurt api version * removed unnecessary try blocks * removed tags related things * fixed pep8 * final fixes? * final updates to the module * more fixes
2018-01-17 01:05:45 +01:00
azure_rm_containerinstance:
resource_group: "{{ resource_group }}"
name: "aci{{ resource_group | hash('md5') | truncate(7, True, '') }}"
os_type: linux
ip_address: public
location: eastus
ports:
- 80
containers:
- name: mycontainer1
image: httpd
memory: 1.5
ports:
- 80
- 81
force_update: yes
register: output
- name: Assert the container instance is well created
assert:
that:
- output.changed
- output.provisioning_state == 'Succeeded'
[new module] Add Azure Container Instance support - cloud/azure/azure_rm_containerinstance (#32025) * first dirty container instance * added my name ;-) * more updates * more updates * removed unnecessary stuff * container instance updates * several fixes * undo changes in common * removed unnecessary references, fixed delete * added / updated parameters * updated samples & comments * updated docs, comments, samples and added registry credentials * added ip address and port * query existing container instance (but result not used yet) * some major changes to the module * more fixes * added requirement for containerinstance module * adding integration test * fixes for pull request * updated version * updated version to 2.5 * updated version * updated integration.cloud.azure.txt as requested by test framework * removed due to merge reasons * updated requirements-azure.txt * undone azure-rm-common * lf * properly update test requirements * first dirty container instance * container instance updates * several fixes * review related updates * review related fixes * undo changes in common * added / updated parameters * query existing container instance (but result not used yet) * updated version to 2.5 * updated version * removed due to merge reasons * updated requirements-azure.txt * undone azure-rm-common * properly update test requirements * minor fix - sanity * fix one issue after rebasing * removed files accidentally added while rebasing * removed checking for changes * several fixes * fixed sanity * updates as requested by reviewers * removed ci as it doesn't work * reenabled ci * renamed container instance, removed required: false * removed default: null * final updates according to the review * one more fix * first dirty container instance * added my name ;-) * more updates * more updates * removed unnecessary stuff * container instance updates * several fixes * undo changes in common * removed unnecessary references, fixed delete * added / updated parameters * updated samples & comments * updated docs, comments, samples and added registry credentials * added ip address and port * query existing container instance (but result not used yet) * some major changes to the module * more fixes * adding integration test * fixes for pull request * updated version * updated version to 2.5 * updated version * updated integration.cloud.azure.txt as requested by test framework * removed due to merge reasons * updated requirements-azure.txt * undone azure-rm-common * lf * properly update test requirements * review related updates * first dirty container instance * container instance updates * several fixes * review related fixes * undo changes in common * added / updated parameters * query existing container instance (but result not used yet) * updated version to 2.5 * updated version * removed due to merge reasons * updated requirements-azure.txt * undone azure-rm-common * properly update test requirements * minor fix - sanity * fix one issue after rebasing * removed files accidentally added while rebasing * removed checking for changes * several fixes * fixed sanity * updates as requested by reviewers * removed ci as it doesn't work * reenabled ci * renamed container instance, removed required: false * removed default: null * final updates according to the review * one more fix * changed location as default from resource group can't handle containers * updates to container instance * fixed mistakes during merge * one more fix * another mistake * container instance fixes * several fixes to container instance * return value fix * minor update * just one api version right now * fixed api version * container instance does not suppurt api version * removed unnecessary try blocks * removed tags related things * fixed pep8 * final fixes? * final updates to the module * more fixes
2018-01-17 01:05:45 +01:00
- name: Create second container instance for testing purposes
azure_rm_containerinstance:
resource_group: "{{ resource_group }}"
name: "aci{{ resource_group | hash('md5') | truncate(7, True, '') }}sec"
os_type: linux
ip_address: public
location: eastus
ports:
- 80
containers:
- name: mycontainer1
image: httpd
memory: 1.5
ports:
- 80
- 81
register: output
- name: Gather facts for single Container Instance
azure_rm_containerinstance_facts:
resource_group: "{{ resource_group }}"
name: "aci{{ resource_group | hash('md5') | truncate(7, True, '') }}sec"
register: output
- name: Assert that facts are returned
assert:
that:
- output.changed == False
- output.containerinstances[0]['resource_group'] != None
- output.containerinstances[0]['name'] != None
- output.containerinstances[0]['os_type'] != None
- output.containerinstances[0]['location'] != None
- output.containerinstances[0]['ip_address'] != None
- output.containerinstances[0]['ports'] != None
- output.containerinstances[0]['containers'] != None
- name: Gather facts for all Container Instances in the resource group
azure_rm_containerinstance_facts:
resource_group: "{{ resource_group }}"
register: output
- name: Assert that facts are returned
assert:
that:
- output.changed == False
- output.containerinstances[0]['resource_group'] != None
- output.containerinstances[0]['name'] != None
- output.containerinstances[0]['os_type'] != None
- output.containerinstances[0]['location'] != None
- output.containerinstances[0]['ip_address'] != None
- output.containerinstances[0]['ports'] != None
- output.containerinstances[0]['containers'] != None
- output.containerinstances[1]['resource_group'] != None
- output.containerinstances[1]['name'] != None
- output.containerinstances[1]['os_type'] != None
- output.containerinstances[1]['location'] != None
- output.containerinstances[1]['ip_address'] != None
- output.containerinstances[1]['ports'] != None
- output.containerinstances[1]['containers'] != None
[new module] Add Azure Container Instance support - cloud/azure/azure_rm_containerinstance (#32025) * first dirty container instance * added my name ;-) * more updates * more updates * removed unnecessary stuff * container instance updates * several fixes * undo changes in common * removed unnecessary references, fixed delete * added / updated parameters * updated samples & comments * updated docs, comments, samples and added registry credentials * added ip address and port * query existing container instance (but result not used yet) * some major changes to the module * more fixes * added requirement for containerinstance module * adding integration test * fixes for pull request * updated version * updated version to 2.5 * updated version * updated integration.cloud.azure.txt as requested by test framework * removed due to merge reasons * updated requirements-azure.txt * undone azure-rm-common * lf * properly update test requirements * first dirty container instance * container instance updates * several fixes * review related updates * review related fixes * undo changes in common * added / updated parameters * query existing container instance (but result not used yet) * updated version to 2.5 * updated version * removed due to merge reasons * updated requirements-azure.txt * undone azure-rm-common * properly update test requirements * minor fix - sanity * fix one issue after rebasing * removed files accidentally added while rebasing * removed checking for changes * several fixes * fixed sanity * updates as requested by reviewers * removed ci as it doesn't work * reenabled ci * renamed container instance, removed required: false * removed default: null * final updates according to the review * one more fix * first dirty container instance * added my name ;-) * more updates * more updates * removed unnecessary stuff * container instance updates * several fixes * undo changes in common * removed unnecessary references, fixed delete * added / updated parameters * updated samples & comments * updated docs, comments, samples and added registry credentials * added ip address and port * query existing container instance (but result not used yet) * some major changes to the module * more fixes * adding integration test * fixes for pull request * updated version * updated version to 2.5 * updated version * updated integration.cloud.azure.txt as requested by test framework * removed due to merge reasons * updated requirements-azure.txt * undone azure-rm-common * lf * properly update test requirements * review related updates * first dirty container instance * container instance updates * several fixes * review related fixes * undo changes in common * added / updated parameters * query existing container instance (but result not used yet) * updated version to 2.5 * updated version * removed due to merge reasons * updated requirements-azure.txt * undone azure-rm-common * properly update test requirements * minor fix - sanity * fix one issue after rebasing * removed files accidentally added while rebasing * removed checking for changes * several fixes * fixed sanity * updates as requested by reviewers * removed ci as it doesn't work * reenabled ci * renamed container instance, removed required: false * removed default: null * final updates according to the review * one more fix * changed location as default from resource group can't handle containers * updates to container instance * fixed mistakes during merge * one more fix * another mistake * container instance fixes * several fixes to container instance * return value fix * minor update * just one api version right now * fixed api version * container instance does not suppurt api version * removed unnecessary try blocks * removed tags related things * fixed pep8 * final fixes? * final updates to the module * more fixes
2018-01-17 01:05:45 +01:00
- name: Remove container instance
azure_rm_containerinstance:
resource_group: "{{ resource_group }}"
name: "aci{{ resource_group | hash('md5') | truncate(7, True, '') }}"
os_type: linux
ip_address: public
location: eastus
ports:
- 80
containers:
- name: mycontainer1
image: httpd
memory: 1.5
ports:
- 80
- 81
state: absent
register: output
- name: Assert the container instance is deleted
assert:
that:
- output.changed
- name: Remove container instance
azure_rm_containerinstance:
resource_group: "{{ resource_group }}"
name: "aci{{ resource_group | hash('md5') | truncate(7, True, '') }}sec"
os_type: linux
ip_address: public
location: eastus
ports:
- 80
containers:
- name: mycontainer1
image: httpd
memory: 1.5
ports:
- 80
- 81
state: absent
[new module] Add Azure Container Instance support - cloud/azure/azure_rm_containerinstance (#32025) * first dirty container instance * added my name ;-) * more updates * more updates * removed unnecessary stuff * container instance updates * several fixes * undo changes in common * removed unnecessary references, fixed delete * added / updated parameters * updated samples & comments * updated docs, comments, samples and added registry credentials * added ip address and port * query existing container instance (but result not used yet) * some major changes to the module * more fixes * added requirement for containerinstance module * adding integration test * fixes for pull request * updated version * updated version to 2.5 * updated version * updated integration.cloud.azure.txt as requested by test framework * removed due to merge reasons * updated requirements-azure.txt * undone azure-rm-common * lf * properly update test requirements * first dirty container instance * container instance updates * several fixes * review related updates * review related fixes * undo changes in common * added / updated parameters * query existing container instance (but result not used yet) * updated version to 2.5 * updated version * removed due to merge reasons * updated requirements-azure.txt * undone azure-rm-common * properly update test requirements * minor fix - sanity * fix one issue after rebasing * removed files accidentally added while rebasing * removed checking for changes * several fixes * fixed sanity * updates as requested by reviewers * removed ci as it doesn't work * reenabled ci * renamed container instance, removed required: false * removed default: null * final updates according to the review * one more fix * first dirty container instance * added my name ;-) * more updates * more updates * removed unnecessary stuff * container instance updates * several fixes * undo changes in common * removed unnecessary references, fixed delete * added / updated parameters * updated samples & comments * updated docs, comments, samples and added registry credentials * added ip address and port * query existing container instance (but result not used yet) * some major changes to the module * more fixes * adding integration test * fixes for pull request * updated version * updated version to 2.5 * updated version * updated integration.cloud.azure.txt as requested by test framework * removed due to merge reasons * updated requirements-azure.txt * undone azure-rm-common * lf * properly update test requirements * review related updates * first dirty container instance * container instance updates * several fixes * review related fixes * undo changes in common * added / updated parameters * query existing container instance (but result not used yet) * updated version to 2.5 * updated version * removed due to merge reasons * updated requirements-azure.txt * undone azure-rm-common * properly update test requirements * minor fix - sanity * fix one issue after rebasing * removed files accidentally added while rebasing * removed checking for changes * several fixes * fixed sanity * updates as requested by reviewers * removed ci as it doesn't work * reenabled ci * renamed container instance, removed required: false * removed default: null * final updates according to the review * one more fix * changed location as default from resource group can't handle containers * updates to container instance * fixed mistakes during merge * one more fix * another mistake * container instance fixes * several fixes to container instance * return value fix * minor update * just one api version right now * fixed api version * container instance does not suppurt api version * removed unnecessary try blocks * removed tags related things * fixed pep8 * final fixes? * final updates to the module * more fixes
2018-01-17 01:05:45 +01:00
- name: Remove container instance again
azure_rm_containerinstance:
resource_group: "{{ resource_group }}"
name: "aci{{ resource_group | hash('md5') | truncate(7, True, '') }}"
os_type: linux
ip_address: public
location: eastus
ports:
- 80
containers:
- name: mycontainer1
image: httpd
memory: 1.5
ports:
- 80
- 81
state: absent
register: output
- name: Assert the changed is false
assert:
that:
- output.changed == False