ctc-oss / fapolicy-analyzer

Tools to assist with the configuration and management of fapolicyd.
https://ctc-oss.github.io/fapolicy-analyzer
GNU General Public License v3.0
12 stars 5 forks source link

Add ansible to pipenv #546

Closed jw3 closed 2 years ago

jw3 commented 2 years ago

Add ansible to the pipenv dev-dependencies

Vagrant requires ansible to provision, but ansible is not installed in the default pipenv. This makes it a bit confusing as to why vagrant fails with

    default: Running ansible-playbook...
Traceback (most recent call last):
  File "/xxx/ansible-playbook", line 34, in <module>
    from ansible import context
ModuleNotFoundError: No module named 'ansible'
Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.

If there is a downside to adding it to pipenv then the alternative here is to note the requirement in the playbook readme.

jw3 commented 2 years ago

Added a requirements.txt note in the readme under the vagrant dir. Will not incur the cost of installing ansible in all environments.