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

add feature rclone mount #148

Merged
merged 4 commits into from
Apr 11, 2024
Merged

Conversation

babidi34
Copy link
Contributor

No description provided.

@stefangweichinger
Copy link
Owner

@babidi34 Thanks for the PR, will look into it in more detail asap.
Would you mind adding some description or some lines of HOWTO for the main README? Thanks.

tasks/mount.yml Outdated
state: link
force: yes

- name: Create and active services rclone mount

Choose a reason for hiding this comment

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

I assume that should be "activate"

add rclone_mounts info in README
@babidi34
Copy link
Contributor Author

@babidi34 Thanks for the PR, will look into it in more detail asap. Would you mind adding some description or some lines of HOWTO for the main README? Thanks.

Thanks for the feedback! I've added the README update.

@stefangweichinger
Copy link
Owner

Thanks for the feedback! I've added the README update.

looks good to me, thanks. I assume there is no way of a specific test of this with molecule.
I will run the existing test, and proceed to merging later this week or so.

@stefangweichinger
Copy link
Owner

some linting issues ... @babidi34 would you have a look?

@babidi34
Copy link
Contributor Author

babidi34 commented Apr 2, 2024 via email

@stefangweichinger
Copy link
Owner

yes I saw I will try to correct my PR this weekend

Fixed most of the issues locally, but can't push to your branch ... sure.

The missing issues:

 ansible-lint .
WARNING  Listing 3 violation(s) that are fatal
command-instead-of-module: systemctl used in place of systemd module
handlers/main.yml:6 Task/Handler: Reload and restart rclone-mount services

no-changed-when: Commands should not change things if nothing needs doing.
handlers/main.yml:6 Task/Handler: Reload and restart rclone-mount services

no-changed-when: Commands should not change things if nothing needs doing.
tasks/mount.yml:3 Task/Handler: Create directory backup on the cloud

I might look closer asap, but this week is quite busy already. And I'd prefer state-of-the-art ansible code ;-)

@babidi34
Copy link
Contributor Author

I fixed lint error, normaly it's ok now

@stefangweichinger
Copy link
Owner

I fixed lint error, normaly it's ok now

linting seems ok now, thanks. Patches look good at a first glance! nice work

@babidi34
Copy link
Contributor Author

babidi34 commented Apr 10, 2024 via email

@stefangweichinger
Copy link
Owner

@babidi34 pls give me some time for the merge. This will trigger a minor release update, and I always struggle with getting the tags right. The automatism doesn't work for me.

ansible.builtin.systemd:

Choose a reason for hiding this comment

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

You know that this does not enable and restart the services? It's not the same behavior.

@stefangweichinger stefangweichinger merged commit 85b581d into stefangweichinger:main Apr 11, 2024
13 checks passed
@stefangweichinger
Copy link
Owner

@babidi34 Your PR was merged and is in the release 0.1.5 here:

https://galaxy.ansible.com/ui/standalone/roles/stefangweichinger/ansible_rclone/versions/

thanks for your contribution!

@babidi34
Copy link
Contributor Author

Thank you for creating this role. It simplifies my life in managing backups of my machines.

@stefangweichinger
Copy link
Owner

Thank you for creating this role. It simplifies my life in managing backups of my machines.

You're welcome. It started as a small learning project ...

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.

2 participants