Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unzip master.zip #1

Open
paulolascience63 opened this issue Nov 1, 2023 · 2 comments
Open

unzip master.zip #1

paulolascience63 opened this issue Nov 1, 2023 · 2 comments

Comments

@paulolascience63
Copy link

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

@lucab85
Copy link
Owner

lucab85 commented Nov 2, 2023

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
Copy link
Owner

lucab85 commented Nov 2, 2023

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"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants