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

Check if roundcube directory exists, Unarchive if it does not exist. #39

Merged

Conversation

neidiom
Copy link
Contributor

@neidiom neidiom commented Apr 16, 2023

Somehow when testing this role I ended up without the roundcube dir but with the archive file present. I got this error

TASK [systemli.roundcube : Link to current release] ***************************************************************************************************************************************************************
fatal: [xxx]: FAILED! => {"changed": false, "msg": "src file does not exist, use \"force=yes\" if you really want to create the link: /var/www/clients/client1/web17/web/roundcubemail-1.6.1/", "path": "/var/www/clients/client1/web17/web/www", "src": "/var/www/clients/client1/web17/web/roundcubemail-1.6.1/"}

This PR fixes that.

@neidiom neidiom force-pushed the Check-if-roundcube-directory-exists branch from 48f50af to 694038e Compare April 16, 2023 23:22
tasks/main.yml Outdated
path: "{{ roundcube_user_home }}/roundcubemail-{{ roundcube_version }}"
register: "roundcube_directory"

- name: Set roundcube_directory_exists fact
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is it necessary to register an extra fact? Shouldn't it be possible to just check roundcube_directory.stat.exists?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right.

@neidiom neidiom force-pushed the Check-if-roundcube-directory-exists branch from 694038e to 4f476e1 Compare April 17, 2023 15:04
@neidiom
Copy link
Contributor Author

neidiom commented Apr 17, 2023

@t2d please review.

@doobry-systemli doobry-systemli merged commit 24853c1 into systemli:main Apr 17, 2023
@neidiom neidiom deleted the Check-if-roundcube-directory-exists branch April 17, 2023 15:17
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

Successfully merging this pull request may close these issues.

3 participants