error with TASK [apt : Check for held packages (script)] #87

Open
opened 2019-09-29 18:20:59 +02:00 by gcolpart · 1 comment
Owner

Test with Ansible 2.7.7 and docker host debian:buster with ansible_connection=docker :

TASK [apt : Check for held packages (script)] ***********************************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: IOError: [Errno 2] No such file or directory: '/etc/cron.d/apt-hold-packages'
fatal: [docker00]: FAILED! => {"changed": false, "module_stderr": "Traceback (most recent call last):\n  File \"<stdin>\", line 113, in <module>\n  File \"<stdin>\", line 105, in _ansiballz_main\n  File \"<stdin>\", line 48, in invoke_module\n  File \"/tmp/ansible_cron_payload_Mg1hB4/__main__.py\", line 744, in <module>\n  File \"/tmp/ansible_cron_payload_Mg1hB4/__main__.py\", line 714, in main\n  File \"/tmp/ansible_cron_payload_Mg1hB4/__main__.py\", line 285, in write\nIOError: [Errno 2] No such file or directory: '/etc/cron.d/apt-hold-packages'\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}
Test with Ansible 2.7.7 and docker host debian:buster with ansible_connection=docker : ~~~ TASK [apt : Check for held packages (script)] *********************************************************** An exception occurred during task execution. To see the full traceback, use -vvv. The error was: IOError: [Errno 2] No such file or directory: '/etc/cron.d/apt-hold-packages' fatal: [docker00]: FAILED! => {"changed": false, "module_stderr": "Traceback (most recent call last):\n File \"<stdin>\", line 113, in <module>\n File \"<stdin>\", line 105, in _ansiballz_main\n File \"<stdin>\", line 48, in invoke_module\n File \"/tmp/ansible_cron_payload_Mg1hB4/__main__.py\", line 744, in <module>\n File \"/tmp/ansible_cron_payload_Mg1hB4/__main__.py\", line 714, in main\n File \"/tmp/ansible_cron_payload_Mg1hB4/__main__.py\", line 285, in write\nIOError: [Errno 2] No such file or directory: '/etc/cron.d/apt-hold-packages'\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1} ~~~
Owner

The commit a478c773eb should fix this.

The commit a478c773eb should fix this.
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: evolix/ansible-roles#87
No description provided.