cinek810 / ansible-deployer

Command line utility wrapping ansible-playbook to run it with elevated privileges only for certain predefined tasks.
MIT License
4 stars 5 forks source link

Handle this exception better #177

Open LegenJCdary opened 1 year ago

LegenJCdary commented 1 year ago

ERROR: Traceback (most recent call last): File "/home/gitlab-runner/builds/DxkgA-y8/0/qjy4vw/ansible-code/ci_venv/bin/ansible-deployer", line 8, in sys.exit(main()) File "/home/gitlab-runner/builds/DxkgA-y8/0/qjy4vw/ansible-code/ci_venv/lib64/python3.6/site-packages/ansible_deployer/main.py", line 125, in main workdir = misc.create_workdir(start_ts, configuration.conf, logger.logger) File "/home/gitlab-runner/builds/DxkgA-y8/0/qjy4vw/ansible-code/ci_venv/lib64/python3.6/site-packages/ansible_deployer/modules/misc.py", line 32, in create_workdir create_parent_workdir(short_ts, date_dir, conf, logger) File "/home/gitlab-runner/builds/DxkgA-y8/0/qjy4vw/ansible-code/ci_venv/lib64/python3.6/site-packages/ansible_deployer/modules/misc.py", line 10, in create_parent_workdir if short_ts not in os.listdir(conf["global_paths"]["work_dir"]): FileNotFoundError: [Errno 2] No such file or directory: '/var/ansible-deployer'