Closed dmk1000 closed 2 years ago
I should better read the Technical Dependencies: section. Sorry for the noise.
hi @dmk1000
Thank you for taking the time to raise the issue, i noticed you have since closed it and while we would advice very much towards using python3 you are using python 2. I am hoping that if you add the following lines to the controls you are having issues with setting a var for the whole task/block. This "MAY" fix your problem.
vars: ansible_python_interpreter: "{{ python2_bin }}" when: ansible_python.version.major == 2
Please let me know.
uk-bolly
Describe the Issue Running any test from section 6 that uses selectattr on CentOS 7 install with Python 2.7.5 and Jinja2 2.7.2 fails and excution of the playbook stops with the follow or equvalent for the other tests:
Expected Behavior I would expect these tests pass, or documentation on what to install on CentOS 7 to get the newer jinja2 pip to install.
Actual Behavior When run with -vvv the output is this:
I understand this is due to an old version of jinja2.
Control(s) Affected What controls are being affected by the issue
Environment (please complete the following information):
Additional Notes
Possible Solution Sorry, none found yet other than commenting out the tests. I tried pip installing jinja2-2.9 or jinja2-2.11 but that tried bringing in an update version of markupsafe and ansible wouldn't run any playbook. I had to manually remove them & reinstall the CentOS 7 python-jinja2 & python-markupsafe packages
PS. Thanks for this project. Having stumbled across it it's a real eye opener.