diff --git a/src/ansible_runner/config/runner.py b/src/ansible_runner/config/runner.py index 70379ef3..f770ad67 100644 --- a/src/ansible_runner/config/runner.py +++ b/src/ansible_runner/config/runner.py @@ -339,6 +339,7 @@ def wrap_args_for_sandbox(self, args): '--ro-bind', '/etc', '/etc', '--ro-bind', '/usr', '/usr', '--ro-bind', '/opt', '/opt', + '--symlink', 'usr/lib', '/lib', '--symlink', 'usr/lib64', '/lib64', ]) diff --git a/test/unit/config/test_runner.py b/test/unit/config/test_runner.py index 397fd9a5..cf293250 100644 --- a/test/unit/config/test_runner.py +++ b/test/unit/config/test_runner.py @@ -544,6 +544,7 @@ def test_bwrap_process_isolation_defaults(mocker): '--ro-bind', '/etc', '/etc', '--ro-bind', '/usr', '/usr', '--ro-bind', '/opt', '/opt', + '--symlink', 'usr/lib', '/lib', '--symlink', 'usr/lib64', '/lib64', '--bind', '/', '/', '--chdir', '/project',