docker_swarm_service: rename return variable to swarm_service (#53229)

* Rename return variable to swarm_service.

* Add changelog.

* Add that old name will stay in Ansible 2.7.x.
This commit is contained in:
Felix Fontein
2019-03-06 11:27:11 +01:00
committed by John R Barker
parent 70f6cdb814
commit 61abbfc269
3 changed files with 13 additions and 4 deletions

View File

@@ -50,7 +50,7 @@
- name: assert service args are correct
assert:
that:
- output.ansible_docker_service.args == ['sleep', '1800']
- output.swarm_service.args == ['sleep', '1800']
- name: set service mode to global
register: output
@@ -88,7 +88,7 @@
- name: fake image key as it is not predictable
set_fact:
ansible_docker_service_output: "{{ output.ansible_docker_service|combine({'image': 'busybox'}) }}"
ansible_docker_service_output: "{{ output.swarm_service|combine({'image': 'busybox'}) }}"
- name: assert service matches expectations
assert: