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

improved handling of local_facts, fix test for binary installation #87

Merged
merged 15 commits into from
Mar 25, 2021

Conversation

stefangweichinger
Copy link
Owner

No description provided.

@theenglishway
Copy link
Contributor

theenglishway commented Mar 22, 2021

👋

I've given it a try : it seems to do the job when it comes to compatibility with older Jinja2 version (tested with 2.10.3).

But there seems to be some become: true missing, because I get a "permission denied" on task "Remove temporary working directory" (this directory belongs to root and the task removing it does not

Steps to reproduce:

  1. install the stable version of rclone (v1.54.1) using your role
  2. set rclone_version to 1.54.0
  3. run your role

Since the whole install-bin.yml is doing root stuff, I would put become: true in the include task, like that :

- name: Install the binary
  include_tasks: install-bin.yml
  become: true
  when: (((not ansible_local.rclone.installed|d())|bool) or (ansible_local.rclone.installed_version|d("0.0.0")) != rclone_version)

Update : become: true is not valid in include_tasks, but it is valid in import_tasks, which you could use here.. I think

@stefangweichinger
Copy link
Owner Author

I will try in the branch "issue83".

@stefangweichinger
Copy link
Owner Author

The installation of the config could be written as a block within main.yml and that block would have one become statement.
just a second

@stefangweichinger
Copy link
Owner Author

pls test that one / I am afk for an hour now.

@stefangweichinger
Copy link
Owner Author

@theenglishway Do you think you could test this latest version before I merge? It would make me more confident ;-) thanks

@theenglishway
Copy link
Contributor

I will, but I can't promise I will do it before the end of the week !

@stefangweichinger
Copy link
Owner Author

Thanks

@stefangweichinger stefangweichinger merged commit 6b7153f into master Mar 25, 2021
@stefangweichinger stefangweichinger deleted the issue83 branch May 27, 2021 09:38
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.

None yet

2 participants