mirror of
https://github.com/ansible-collections/google.cloud.git
synced 2025-07-28 07:31:29 -07:00
This commit is contained in:
parent
e23c44c612
commit
8b9a2c70dd
3 changed files with 139 additions and 2 deletions
|
@ -73,11 +73,26 @@
|
|||
that:
|
||||
- result.changed == false
|
||||
#----------------------------------------------------------
|
||||
- name: Update ack_deadline_seconds of a subscription that already exists
|
||||
google.cloud.gcp_pubsub_subscription:
|
||||
name: "{{ resource_name }}"
|
||||
topic: "{{ topic }}"
|
||||
ack_deadline_seconds: 500
|
||||
project: "{{ gcp_project }}"
|
||||
auth_kind: "{{ gcp_cred_kind }}"
|
||||
service_account_file: "{{ gcp_cred_file | default(omit) }}"
|
||||
state: present
|
||||
register: result
|
||||
- name: Assert changed is true
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- result.changed == true
|
||||
#----------------------------------------------------------
|
||||
- name: Delete a subscription
|
||||
google.cloud.gcp_pubsub_subscription:
|
||||
name: "{{ resource_name }}"
|
||||
topic: "{{ topic }}"
|
||||
ack_deadline_seconds: 300
|
||||
ack_deadline_seconds: 500
|
||||
project: "{{ gcp_project }}"
|
||||
auth_kind: "{{ gcp_cred_kind }}"
|
||||
service_account_file: "{{ gcp_cred_file | default(omit) }}"
|
||||
|
@ -104,7 +119,7 @@
|
|||
google.cloud.gcp_pubsub_subscription:
|
||||
name: "{{ resource_name }}"
|
||||
topic: "{{ topic }}"
|
||||
ack_deadline_seconds: 300
|
||||
ack_deadline_seconds: 500
|
||||
project: "{{ gcp_project }}"
|
||||
auth_kind: "{{ gcp_cred_kind }}"
|
||||
service_account_file: "{{ gcp_cred_file | default(omit) }}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue