ansible-pilot icon indicating copy to clipboard operation
ansible-pilot copied to clipboard

unzip master.zip

Open ghost opened this issue 1 year ago • 2 comments

When unzip I get an error in Ansible unarchive.yml from your Udemy course

TASK [extract archive] *************************************************************************************************************************************************************************************************************************************************************************
fatal: [centos7]: FAILED! => {"changed": false, "msg": "path /home/devops/ansible-pilot-master/install Rocky Linux 8/ does not exist", "path": "/home/devops/ansible-pilot-master/install Rocky Linux 8/"}

PLAY RECAP *************************************************************************************************************************************************************************************************************************************************************************************
centos7                    : ok=2    changed=0    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0

I did on target host

wget https://github.com/lucab85/ansible-pilot/archive/refs/heads/master.zip
then unzip master.zip
cd ansible-pilot-master
ls -l 
drwxrwxr-x. 2 devops devops   29 Apr 14  2022 install Rocky Linux#U00a08

So this directory seem wrong Best regards PaulEmPG

ghost avatar Nov 01 '23 09:11 ghost

Hello, Thank you for opening this issue. It seems there is a problem with a directory not present in your file system. Have you tried to adjust the path accordingly? Specifically about the parameter: dest: "/home/devops/". Would you mind sharing the full playbook? Thank you, Luca

lucab85 avatar Nov 02 '23 19:11 lucab85

The code seems to fail because the path does not exist. You can either create the directory or change the path accordingly. path /home/devops/ansible-pilot-master/install Rocky Linux 8/ does not exist"

lucab85 avatar Nov 02 '23 19:11 lucab85