mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
17 lines
395 B
YAML
17 lines
395 B
YAML
|
- hosts: localhost
|
||
|
connection: local
|
||
|
|
||
|
tasks:
|
||
|
- name: try and use aws_eks_cluster module
|
||
|
aws_eks_cluster:
|
||
|
state: absent
|
||
|
name: my_cluster
|
||
|
ignore_errors: yes
|
||
|
register: aws_eks_cluster
|
||
|
|
||
|
- name: ensure that aws_eks fails with friendly error message
|
||
|
assert:
|
||
|
that:
|
||
|
- '"msg" in aws_eks_cluster'
|
||
|
- aws_eks_cluster is failed
|