darkwizard242.terraforming
Ansible Role: terraforming
This role is designed to install terraforming on Debian/Ubuntu and Enterprise Linux (EL) systems. Terraforming is a tool that can convert resources into Terraform code.
Requirements
Terraforming is a Ruby gem, so Ruby must be installed. This role will automatically install Ruby if it's not already available.
Role Variables
Here are the variables you can use (found in defaults/main.yml
):
Variables List:
ruby_app_debian_package: ruby-full
ruby_app_el_package: ruby
ruby_desired_state: present
terraforming_app: terraforming
terraforming_desired_state: present
terraforming_user_install: no
terraforming_include_dependencies: yes
Variables Table:
Variable | Description |
---|---|
ruby_app_debian_package | The name of the Ruby package to install on Debian systems, e.g., ruby-full |
ruby_app_el_package | The name of the Ruby package to install on Enterprise Linux systems (like Redhat/CentOS), e.g., ruby |
ruby_desired_state | Specifies whether to install (present or latest ) or uninstall (absent ) the package. Defaults to present . |
terraforming_app | The name of the application to install, e.g., terraforming |
terraforming_desired_state | Indicates whether to install (present or latest ) or uninstall (absent ) the gem. Defaults to present . |
terraforming_user_install | Indicates whether to install the terraforming gem in the user's local gems. |
terraforming_include_dependencies | Indicates whether to install the dependencies needed for terraforming. |
Dependencies
None
Example Playbook
To use the role with the default behavior (installing the terraforming gem) in your Ansible playbooks:
- hosts: servers
roles:
- darkwizard242.terraforming
To customize the role to remove the terraforming gem:
- hosts: servers
roles:
- darkwizard242.terraforming
vars:
terraforming_desired_state: absent
To customize the role to install terraforming without its required dependencies:
- hosts: servers
roles:
- darkwizard242.terraforming
vars:
terraforming_include_dependencies: no
License
Author Information
This role was created by Ali Muhammad, a DevOps/CloudOps Engineer who enjoys learning and contributing to the Open Source community.
Informazioni sul progetto
Terraforming installation/uninstallation role to pull down terraform resources.
Installa
ansible-galaxy install darkwizard242.terraforming
Licenza
mit
Download
4.3k
Proprietario
Senior DevOps/CloudOps Engineer.
Dedicated to Automating everything I come across.
Love to work on and learn new technologies/tools everyday!