- name: install directory-validator command: cmd: "pkgmgr install directory-validator" when: run_once_backup_directory_validator is not defined - name: run the backup_directory_validator tasks once set_fact: run_once_backup_directory_validator: true when: run_once_backup_directory_validator is not defined