https://github.com/pluralith/pluralith-ansible-module
A dedicated Ansible module to run Pluralith
https://github.com/pluralith/pluralith-ansible-module
Last synced: 11 months ago
JSON representation
A dedicated Ansible module to run Pluralith
- Host: GitHub
- URL: https://github.com/pluralith/pluralith-ansible-module
- Owner: Pluralith
- License: mpl-2.0
- Created: 2022-08-10T21:53:35.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-08-17T19:48:10.000Z (almost 4 years ago)
- Last Synced: 2025-01-05T12:30:44.935Z (over 1 year ago)
- Language: Python
- Size: 17.6 KB
- Stars: 3
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

# Pluralith Ansible Module
A dedicated Ansible module to run Pluralith
`Pluralith is currently in Alpha`
Â
## 📕 Get Started
Copy the below snippet as a starting point to run Pluralith with your Terraform + Ansible setup.
- Task 1 initializes Terraform and Pluralith
- Task 2 runs Pluralith and generates a diagram.
```yml
- name: Generate Pluralith Diagram
hosts: localhost
vars:
variable_dict:
var_1: "VALUE"
var_2: "VALUE"
tasks:
- name: Init Terraform and Pluralith
pluralith:
command: "init" # See all available commands at https://docs.pluralith.com/docs/category/cli-commands
api_key: "YOUR API KEY HERE"
project_id: "YOUR PROJECT ID HERE" # Sign up and create a project at https://app.pluralith.com
project_path: "YOUR PROJECT PATH HERE"
init_tf: true
tf_backend_config:
region: “us-west-1"
bucket: "test"
key: "ansible_test"
profile: "qa_env"
register: command_result
- name: Run Pluralith
pluralith:
command: "run" # See all available commands at https://docs.pluralith.com/docs/category/cli-commands
project_path: "YOUR PROJECT PATH HERE"
tf_vars: "{{ variable_dict }}"
register: command_result
```