Skip to content

nleiva/ansible-cloud

Repository files navigation

Ansible Cloud examples

Ansible Lint

Proper documentation is in the works.

Dependencies:

Python libraries

pip3 install <>

Collections

ansible-galaxy collection install -r collections/requirements.yml

Roles

ansible-galaxy role install -r roles/requirements.yml

While both roles and collections can be specified in one requirements file, they need to be installed separately. The ansible-galaxy role install -r requirements.yml will only install roles and ansible-galaxy collection install -r requirements.yml -p ./ will only install collections. See Installing roles and collections from the same requirements.yml file.

Run in Playbook in an Execution Environment

Create Execution Environment image with Ansible builder

Image details in execution-environment.yml. This is optional, you can pull the image from quay.io/nleiva/ee_general_image.

ansible-builder build -t quay.io/nleiva/ee_general_image