veerendra2 / ansible-role-prepare_dev_setup

Ansible role to install necessary packages and configure Ubuntu and MacOS.
1 stars 0 forks source link

Could not open requirements file #20

Closed veerendra2 closed 7 months ago

veerendra2 commented 10 months ago
fatal: [wg1-hyd]: FAILED! => changed=false 
  cmd:
  - /usr/bin/pip3
  - install
  - -U
  - --no-cache-dir
  - --upgrade
  - -r
  - /home/sd/.ansible/roles/veerendra2.prepare_dev_setup/files/requirements.txt
  msg: |2-

    :stderr: ERROR: Could not open requirements file: [Errno 2] No such file or directory: '/home/sd/.ansible/roles/veerendra2.prepare_dev_setup/files/requirements.txt'
veerendra2 commented 8 months ago

Still getting

...
TASK [veerendra2.prepare_dev_setup : Include common tasks] ************************************************************************************
ERROR! couldn't resolve module/action 'ansible.buildin.copy'. This often indicates a misspelling, missing collection, or incorrect module path.

The error appears to be in '/home/veerendra/.ansible/roles/veerendra2.prepare_dev_setup/tasks/common.yml': line 23, column 3, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

- name: Copy requirements.txt to /tmp
  ^ here
...