geerlingguy / docker-ubuntu2004-ansible

Ubuntu 20.04 LTS (Focal Fossa) Docker container for Ansible playbook and role testing.
https://hub.docker.com/r/geerlingguy/docker-ubuntu2004-ansible
MIT License
83 stars 49 forks source link

libyaml support not being loaded when I install Ansible + pyyaml #5

Closed geerlingguy closed 4 years ago

geerlingguy commented 4 years ago

I have recently updated the Dockerfile to install libyaml-devel, but it seems like Ansible might still be using Python-based yaml parsing, judging by lackluster performance (see https://github.com/ansible/ansible/issues/72030), as well as the fact that python3 -c 'import _yaml' gives:

root@93e95ea9dc5a:/# python3 -c 'import _yaml'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named '_yaml'

See commit: https://github.com/geerlingguy/docker-ubuntu2004-ansible/commit/921d425198b76cfcaa9f015f5adeae086edb54c8