use state: absent instead of state: missing

This commit is contained in:
Rich Megginson 2021-01-28 15:56:14 -07:00
parent e1de59b3c5
commit bb612fb6c5

View file

@ -40,7 +40,7 @@
- name: Make sure the key was not created - name: Make sure the key was not created
file: file:
path: /tmp/missing_ssh_host_rsa_key path: /tmp/missing_ssh_host_rsa_key
state: missing state: absent
register: key register: key
failed_when: key.changed failed_when: key.changed
tags: tests::verify tags: tests::verify