Open simbleau opened 1 year ago
That's no surprise, since macOS is not supported by the role. Please see the role's documentation at https://ansible-collections.github.io/community.sops/branch/main/install_role.html#synopsis:
This role supports the following operating systems: Alpine (new enough), Arch Linux, CentOS 7, Stream 8, or newer, Debian 10 (Buster) or newer, Fedora (new enough), RHEL 7 or newer, Ubuntu 16.04 or newer LTS versions
Could this get support?
If someone wants to implement this, sure.
Still hoping someone picks this up 🙏
Why is this required if sops is already installed via homebrew?
@brandonkal you don't need to install SOPS if it is already installed. Or what exactly do you mean?
I was not able to get community.sops working on macOS. So ended up having to use this workaround:
Run playbook with sops
Note that the community.sops plugin is broken and doesn't work well on macOS, so we use command substitution instead
ANSIBLE_CONFIG=./ansible.cfg ansible-playbook "$playbook" -e "$(sops -d --output-type=json secrets.sops.yaml)"
@brandonkal your problem seems to be unrelated to this issue, since it's not about using the community.sops.install
role.
Could you please create a new issue and include some more details, for example which plugin this is about? It is very unclear to me from your description what is actually not working.
I am sorry I cannot provide more detail as I have mentioned above I have already found a workaround that always works.
Using community.sops plugins broke in weird ways. Maybe it is because of python environment issues on Mac. The ansible documentation seems to suggest that sops.install is required when it was not.
To cut to the chase: