redhat-openstack / infrared

Plugin based framework that aims to provide an easy-to-use CLI for Ansible based projects
https://infrared.readthedocs.io/en/latest/index.html
Apache License 2.0
99 stars 96 forks source link

ansible.builtin.stat should be stat #408

Open knoha-rh opened 3 years ago

knoha-rh commented 3 years ago

https://github.com/redhat-openstack/infrared/blob/4af7acb14263c5f91db67f01b52bcee4e3a21e67/plugins/tripleo-undercloud/backup.yml#L36

According to requirements.txt, infrared use ansible version as follows.

ansible>=2.7.13,<2.8.0 ; python_version < '3'
ansible>=2.9.0,<2.10.0 ; python_version >= '3'

Until Ansible-2.9, ansible.builtin.stat cannot be used.

https://docs.ansible.com/ansible/2.9/modules/stat_module.html

So, I think it should be stat instead of ansible.builtin.stat.