Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nleiva/ansible-cloud

Deploy virtual machines in AWS
https://github.com/nleiva/ansible-cloud

ansible aws cisco-ios fedora juniper-junos

Last synced: 11 days ago
JSON representation

Deploy virtual machines in AWS

Awesome Lists containing this project

README

        

# Ansible Cloud examples

[![Ansible Lint](https://github.com/nleiva/ansible-cloud/actions/workflows/ansible-lint.yml/badge.svg)](https://github.com/nleiva/ansible-cloud/actions/workflows/ansible-lint.yml)

Proper documentation is in the works.

## Dependencies:

### Python libraries

```bash
pip3 install <>
```

### Collections

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

### Roles

```bash
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](https://docs.ansible.com/ansible/latest/galaxy/user_guide.html#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](execution-environment.yml). This is optional, you can pull the image from [quay.io/nleiva/ee_general_image](https://quay.io/repository/nleiva/ee_general_image).

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