- name: Install gnupg and smartcard addon community.general.xbps: name: - gnupg - gnupg2-scdaemon - keychain state: "{{ desired_package_state | default('present') }}" tags: packages - name: Ensure user group plugdev exist ansible.builtin.group: name: plugdev state: "present" - name: Put user in plugdev group ansible.builtin.user: name: "{{ user_name | default('root') }}" groups: [plugdev] append: true