Well that was a journey of discovery, but I got it working. Your route, @refi64, probably would have been eaiser. Just in case anyone else wants to try it here is what I ended up doing:
ListenAddress 127.0.0.1
ListenAddress ::1
- Set my user for passwordless sudo
visudo /etc/sudoers.d/<myusername>
<myuser> ALL=(ALL) NOPASSWD: ALL
- Create host file for ansible for my laptop (britomic) specifying ansible host as localhost, and python for interpreter.
britomic ansible_host=::1 ansible_python_interpreter=/usr/bin/python3
- Update all the playbooks to run on my laptop hostname. e.g.
hosts: britomic
become: true
tasks:
- name: Add the flathub flatpak repository
flatpak_remote:
name: flathub
state: present
flatpakrepo_url: https://dl.flathub.org/repo/flathub.flatpakrepo
- name: Install system flatpaks
flatpak:
name: "{{ item }}"
state: present
with_items:
- com.slack.Slack
- io.atom.Atom
- org.libreoffice.LibreOffice
- org.signal.Signal
- org.remmina.Remmina
And then inside my fedora-toolbox, I created a venv, installed ansible in the venv, and ran the playbooks. I’m off and running. Thanks for the help!