Ansible playbook execution (NOT a ROLE) from SmartProxy or Single Role execution

You can import playbooks the same way as roles, you can assign them to hosts same way as roles, but you can’t apply them the same way as roles. If you try to do so, Ansible will silently fail with

TASK [Apply roles] *************************************************************
[WARNING]: Ignoring invalid path provided to plugin path:
'/etc/ansible/roles/foo.yml' is not a directory

PLAY RECAP *********************************************************************
host.something.somewhere : ok=2    changed=0    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0
Exit status: 0

Either it should work, or you shouldn’t be able to import them and assign them. Either would work for me, but this middle-ground isn’t good.

1 Like