I am trying to create an lxd container using ansible but having no luck. I created an role and added the below to task/main.yml
When the playbook runs I get
I installed the ansible collection community.general on my ansible control node.
What am i missing?
When the playbook runs I get
Code:
FAILED! => {"changed": false, "msg": "The `lxc` module is not importable. Check the requirements."}
What am i missing?
Code:
- name: Create a started container
community.general.lxc_container:
name: test-container-started
container_log: true
template: rockeylinux-9-default
state: started
template_options: --release trusty