{"id":15018267,"url":"https://github.com/robertdebock/ansible-role-tfe","last_synced_at":"2025-08-21T12:31:29.107Z","repository":{"id":220491125,"uuid":"751786407","full_name":"robertdebock/ansible-role-tfe","owner":"robertdebock","description":"Install and configure tfe on your system.","archived":false,"fork":false,"pushed_at":"2024-09-30T13:26:44.000Z","size":83,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-17T16:09:54.406Z","etag":null,"topics":["ansible","application","cloud","database","development","infrastructure","linux","molecule","monitoring","networking","playbook","security","storage","system","tfe","tools","tox","windows"],"latest_commit_sha":null,"homepage":"https://robertdebock.nl/","language":"Jinja","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/robertdebock.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"robertdebock"}},"created_at":"2024-02-02T10:23:21.000Z","updated_at":"2024-09-30T12:22:08.000Z","dependencies_parsed_at":"2024-07-24T14:28:34.281Z","dependency_job_id":"f13181c9-fabc-4e50-a053-add2eb6bd978","html_url":"https://github.com/robertdebock/ansible-role-tfe","commit_stats":{"total_commits":22,"total_committers":1,"mean_commits":22.0,"dds":0.0,"last_synced_commit":"7253ecf58333779aea48f769c9fd3050a89cd291"},"previous_names":["robertdebock/ansible-role-tfe"],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertdebock%2Fansible-role-tfe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertdebock%2Fansible-role-tfe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertdebock%2Fansible-role-tfe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertdebock%2Fansible-role-tfe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robertdebock","download_url":"https://codeload.github.com/robertdebock/ansible-role-tfe/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230514633,"owners_count":18238146,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansible","application","cloud","database","development","infrastructure","linux","molecule","monitoring","networking","playbook","security","storage","system","tfe","tools","tox","windows"],"created_at":"2024-09-24T19:51:45.988Z","updated_at":"2024-12-19T23:27:58.926Z","avatar_url":"https://github.com/robertdebock.png","language":"Jinja","funding_links":["https://github.com/sponsors/robertdebock"],"categories":[],"sub_categories":[],"readme":"# [Ansible role tfe](#tfe)\n\nInstall and configure tfe on your system.\n\n|GitHub|GitLab|Downloads|Version|\n|------|------|---------|-------|\n|[![github](https://github.com/robertdebock/ansible-role-tfe/workflows/Ansible%20Molecule/badge.svg)](https://github.com/robertdebock/ansible-role-tfe/actions)|[![gitlab](https://gitlab.com/robertdebock-iac/ansible-role-tfe/badges/master/pipeline.svg)](https://gitlab.com/robertdebock-iac/ansible-role-tfe)|[![downloads](https://img.shields.io/ansible/role/d/robertdebock/tfe)](https://galaxy.ansible.com/robertdebock/tfe)|[![Version](https://img.shields.io/github/release/robertdebock/ansible-role-tfe.svg)](https://github.com/robertdebock/ansible-role-tfe/releases/)|\n\n## [Example Playbook](#example-playbook)\n\nThis example is taken from [`molecule/default/converge.yml`](https://github.com/robertdebock/ansible-role-tfe/blob/master/molecule/default/converge.yml) and is tested on each push, pull request and release.\n\n```yaml\n---\n- name: Converge\n  hosts: all\n  become: true\n  gather_facts: true\n\n  roles:\n    - role: robertdebock.tfe\n```\n\nThe machine needs to be prepared. In CI this is done using [`molecule/default/prepare.yml`](https://github.com/robertdebock/ansible-role-tfe/blob/master/molecule/default/prepare.yml):\n\n```yaml\n---\n- name: Prepare\n  hosts: all\n  become: true\n  gather_facts: false\n\n  roles:\n    - role: robertdebock.bootstrap\n    - role: robertdebock.core_dependencies\n    - role: robertdebock.docker_ce\n    - role: robertdebock.docker_compose\n\n  post_tasks:\n    # The role docker_ce skips starting on Docker hosts.\n    - name: Start docker daemon\n      ansible.builtin.service:\n        name: docker\n        state: started\n        enabled: true\n```\n\nAlso see a [full explanation and example](https://robertdebock.nl/how-to-use-these-roles.html) on how to use these roles.\n\n## [Role Variables](#role-variables)\n\nThe default values for the variables are set in [`defaults/main.yml`](https://github.com/robertdebock/ansible-role-tfe/blob/master/defaults/main.yml):\n\n```yaml\n---\n# defaults file for tfe\n\n# Select the image to use for Terraform Enterprise. This includes the version.\n# The latest tfe version can be found here:\n# https://developer.hashicorp.com/terraform/enterprise/releases/2023/v202303-1\ntfe_image: \"images.releases.hashicorp.com/hashicorp/terraform-enterprise:v202309-1\"\n\n# Paste the license of Terraform Enterprise here. It's a long string.\n# If the license is not set or empty, many tasks will be skipped, resulting in\n# a non-working Terraform Enterprise instance. Not setting a license can help\n# with testing.\ntfe_license: \"\"\n\n# Configure a hostname, used to redirect HTTP(S) requests.\ntfe_hostname: \"tfe.example.com\"\n\n# An encryption password for the TFE application.\ntfe_encryption_password: \"S0meP@ssword\"\n\n# A list of CIDR notated subnets that are allowed to create an \"Initial Admin\n# Token\".\ntfe_iact_subnets: []\n#   - \"10.0.0.0/8\"\n#   - \"192.168.0.0/24\"\n\n# The following variables are used to configure the TLS certificate and key for\n# the web interface of Terraform Enterprise. The certificate and key should be\n# placed in the `files` directory of your playbook.\n#\n# You can create a self-signed certificate with the following command:\n#\n# openssl req -x509 -nodes -newkey rsa:4096 -keyout key.pem -out cert.pem \\\n# -sha256 -days 365\n# cp cert.pem bundle.pem\ntfe_tls_certificate: \"cert.pem\"\ntfe_tls_key: \"key.pem\"\ntfe_tls_bundle: \"bundle.pem\"\n\n# You can set the operational mode to either: \"disk\", \"external\" or \"active-active\".\ntfe_operational_mode: \"active-active\"\n\n# Maximum number of Terraform runs that can execute concurrently on each Terraform Enterprise node.\ntfe_capacity_concurrency: 10\n\n# Enable log forwarding by setting a path.\n# The file (basename) will originate from this Ansible role, unless you have\n# a custom file in your `files/` directory of your playbook directory.\n# tfe_log_forwarding_config_path: /etc/terraform-enterprise/fluent-bit/fluent-bit.conf\n\n# Details on the database host. This host should already exist, this role\n# does not create a database.\n# These variables are required when `tfe_operational_mode` is set to `active-active` or `external`.\ntfe_database_host: \"tfe.RaNdOm.eu-west-1.rds.amazonaws.com\"\ntfe_database_user: \"tfe\"\ntfe_database_password: \"my_pass_c0mpl.x\"\ntfe_database_name: \"tfe\"\ntfe_database_parameters: \"sslmode=disable\"\n\n# Detail on the object storage. This role does not create the bucket.\n# These variables are required when `tfe_operational_mode` is set to `active-active` or `external`.\ntfe_object_storage_s3_endpoint: \"\"\ntfe_object_storage_s3_use_instance_profile: false\ntfe_object_storage_s3_bucket: \"SomeBucketName\"\ntfe_object_storage_s3_access_key_id: \"\"\ntfe_object_storage_s3_secret_access_key: \"\"\ntfe_object_storage_s3_region: \"eu-west-1\"\n\n# Details on the Redis host. This host should already exist, this role\n# does not create a Redis instance.\n# These variables are required when `tfe_operational_mode` is set to `active-active`.\ntfe_redis_host: \"tfe.RaNdOm.0001.euw1.cache.amazonaws.com\"\ntfe_redis_user: \"tfe\"\ntfe_redis_password: \"my_pass_c0mpl.x\"\ntfe_redis_use_tls: false\ntfe_redis_use_auth: false\n\n# The internal Vault requires an internal address of the node.\ntfe_vault_cluster_address: \"https://{{ ansible_default_ipv4.address }}:8201\"\n```\n\n## [Requirements](#requirements)\n\n- pip packages listed in [requirements.txt](https://github.com/robertdebock/ansible-role-tfe/blob/master/requirements.txt).\n\n## [State of used roles](#state-of-used-roles)\n\nThe following roles are used to prepare a system. You can prepare your system in another way.\n\n| Requirement | GitHub | GitLab |\n|-------------|--------|--------|\n|[robertdebock.bootstrap](https://galaxy.ansible.com/robertdebock/bootstrap)|[![Build Status GitHub](https://github.com/robertdebock/ansible-role-bootstrap/workflows/Ansible%20Molecule/badge.svg)](https://github.com/robertdebock/ansible-role-bootstrap/actions)|[![Build Status GitLab](https://gitlab.com/robertdebock-iac/ansible-role-bootstrap/badges/master/pipeline.svg)](https://gitlab.com/robertdebock-iac/ansible-role-bootstrap)|\n|[robertdebock.core_dependencies](https://galaxy.ansible.com/robertdebock/core_dependencies)|[![Build Status GitHub](https://github.com/robertdebock/ansible-role-core_dependencies/workflows/Ansible%20Molecule/badge.svg)](https://github.com/robertdebock/ansible-role-core_dependencies/actions)|[![Build Status GitLab](https://gitlab.com/robertdebock-iac/ansible-role-core_dependencies/badges/master/pipeline.svg)](https://gitlab.com/robertdebock-iac/ansible-role-core_dependencies)|\n|[robertdebock.docker_ce](https://galaxy.ansible.com/robertdebock/docker_ce)|[![Build Status GitHub](https://github.com/robertdebock/ansible-role-docker_ce/workflows/Ansible%20Molecule/badge.svg)](https://github.com/robertdebock/ansible-role-docker_ce/actions)|[![Build Status GitLab](https://gitlab.com/robertdebock-iac/ansible-role-docker_ce/badges/master/pipeline.svg)](https://gitlab.com/robertdebock-iac/ansible-role-docker_ce)|\n|[robertdebock.docker_compose](https://galaxy.ansible.com/robertdebock/docker_compose)|[![Build Status GitHub](https://github.com/robertdebock/ansible-role-docker_compose/workflows/Ansible%20Molecule/badge.svg)](https://github.com/robertdebock/ansible-role-docker_compose/actions)|[![Build Status GitLab](https://gitlab.com/robertdebock-iac/ansible-role-docker_compose/badges/master/pipeline.svg)](https://gitlab.com/robertdebock-iac/ansible-role-docker_compose)|\n\n## [Context](#context)\n\nThis role is a part of many compatible roles. Have a look at [the documentation of these roles](https://robertdebock.nl/) for further information.\n\nHere is an overview of related roles:\n![dependencies](https://raw.githubusercontent.com/robertdebock/ansible-role-tfe/png/requirements.png \"Dependencies\")\n\n## [Compatibility](#compatibility)\n\nThis role has been tested on these [container images](https://hub.docker.com/u/robertdebock):\n\n|container|tags|\n|---------|----|\n|[Debian](https://hub.docker.com/r/robertdebock/debian)|bullseye|\n|[EL](https://hub.docker.com/r/robertdebock/enterpriselinux)|9|\n|[Fedora](https://hub.docker.com/r/robertdebock/fedora)|38, 39|\n|[Ubuntu](https://hub.docker.com/r/robertdebock/ubuntu)|all|\n\nThe minimum version of Ansible required is 2.12, tests have been done to:\n\n- The previous version.\n- The current version.\n- The development version.\n\nIf you find issues, please register them in [GitHub](https://github.com/robertdebock/ansible-role-tfe/issues).\n\n## [License](#license)\n\n[Apache-2.0](https://github.com/robertdebock/ansible-role-tfe/blob/master/LICENSE).\n\n## [Author Information](#author-information)\n\n[robertdebock](https://robertdebock.nl/)\n\nPlease consider [sponsoring me](https://github.com/sponsors/robertdebock).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobertdebock%2Fansible-role-tfe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobertdebock%2Fansible-role-tfe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobertdebock%2Fansible-role-tfe/lists"}