mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 21:00:22 -07:00
cloudfront_distribution: fix restrictions (#37476)
This commit is contained in:
parent
68f81a6799
commit
63a8ae94a7
2 changed files with 18 additions and 1 deletions
|
@ -53,6 +53,23 @@
|
|||
that:
|
||||
- update_origin_http_port.changed
|
||||
|
||||
- name: update restrictions
|
||||
cloudfront_distribution:
|
||||
alias: "{{ cloudfront_alias }}"
|
||||
restrictions:
|
||||
geo_restriction:
|
||||
restriction_type: "whitelist"
|
||||
items:
|
||||
- "US"
|
||||
state: present
|
||||
<<: *aws_connection_info
|
||||
register: update_restrictions
|
||||
|
||||
- name: ensure restrictions was updated
|
||||
assert:
|
||||
that:
|
||||
- update_restrictions.changed
|
||||
|
||||
- name: set a random comment
|
||||
set_fact:
|
||||
comment: "{{'ABCDEFabcdef123456'|shuffle|join }}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue