diff --git a/test/integration/targets/sts_assume_role/tasks/main.yml b/test/integration/targets/sts_assume_role/tasks/main.yml index 53e9a6dce11..687619c61c5 100644 --- a/test/integration/targets/sts_assume_role/tasks/main.yml +++ b/test/integration/targets/sts_assume_role/tasks/main.yml @@ -290,14 +290,14 @@ assert: that: - 'result.failed' - - "'Not authorized to perform sts:AssumeRole' in result.msg" + - "'Access denied' in result.msg" when: result.module_stderr is not defined - name: assert assume not existing sts role assert: that: - 'result.failed' - - "'Not authorized to perform sts:AssumeRole' in result.module_stderr" + - "'Access denied' in result.module_stderr" when: result.module_stderr is defined # ============================================================