Ansible Error: ERROR! couldn’t resolve module/action ‘amazon.aws.ec2’

Error

ERROR! couldn't resolve module/action 'amazon.aws.ec2'. This often indicates a misspelling, missing collection, or incorrect module path.

The error appears to be in '/root/forem/selfhost/playbooks/providers/aws.yml': line 170, column 5, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:


  - name: "Launch Forem instance for {{ app_domain }}"
    ^ here
We could be wrong, but this one looks like it might be an issue with
missing quotes. Always quote template expression brackets when they
start a value. For instance:

    with_items:
      - {{ foo }}

Should be written as:

    with_items:
      - "{{ foo }}"

Solution

ansible-galaxy collection install amazon.aws:==3.3.1 --force
ansible-galaxy collection install community.aws

Coreos Error: setup: line 40: xxd: command not found

Error

Encryption successful
./setup: line 40: xxd: command not found
Reading plaintext input from stdin. (ctrl-d to end input, twice if your content does not already have a newline)
usage: ansible-vault [-h] [--version] [-v]
                     {create,decrypt,edit,view,encrypt,encrypt_string,rekey} ...

Solution

xxd is in the vim-common package.
$ rpm-ostree install vim-common

Fedora CoreOS Error: error while loading shared libraries

Error

Fedora CoreOS Error: error while loading shared libraries

./INSTALLDIR/bin/python3.8: error while loading shared libraries: libcrypt.so.1: cannot open shared object file: No such file or directory

Solution

$ rpm-ostree install libxcrypt-compat