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

Allow support for RHEL variants (and CentOS-like replacements) RockyLinux, AlmaLinux, and others

Open boldandbusted opened this issue 2 years ago • 2 comments

Thanks.

boldandbusted avatar May 26 '22 00:05 boldandbusted

As a workaround, is there a way to 'force' the role to think that a RHEL variant is "CentOS"? Right now, unless you have the deprecated CentOS (or RHEL or Debian-variant), the role won't work. :/

boldandbusted avatar May 26 '22 01:05 boldandbusted

What I did to allow this to work for Rocky linux is:

Copy the RedHat8.yml file and name it Rocky.yml

Edit the main.yml file and add Rocky:

` _vault_nix_distros:

  • 'Rocky'
  • 'RedHat'
  • 'CentOS' ` After this it runs on Rocky assuming this should also work for Alma.

Mandorath avatar Jul 28 '22 11:07 Mandorath

@Mandorath Thanks for the fix. Could you put together a PR for the maintainers?

mschuchard avatar Sep 27 '22 20:09 mschuchard

This is fixed: https://github.com/ansible-community/ansible-vault/pull/309

Unfortunately I don't have permissions to close this issue and I saw it after the PR got merged so I couldn't tag it for closure there.

gardar avatar Oct 06 '22 23:10 gardar

@gardar If you write "closes #" or "fixes #" in the PR body on GH, then the issue is closed automatically after PR merge. Thanks for the PR!

mschuchard avatar Oct 07 '22 10:10 mschuchard

@gardar If you write "closes #" or "fixes #" in the PR body on GH, then the issue is closed automatically after PR merge. Thanks for the PR!

Yeah I know, but I didn't think it would work if I'd add it to the PR description after it got merged.

gardar avatar Oct 07 '22 12:10 gardar