Ansible collection for managing resources with Terraform
  • Python 96.7%
  • HCL 2.1%
  • Jinja 1.2%
Find a file
irl c9df997b00
Some checks failed
Ansible Lint Check / lint (push) Failing after 1m7s
Integration Tests / ansible-test (push) Successful in 23s
Molecule / terraform_module (push) Successful in 1m49s
chore(release): v1.0.0
2026-11-14 19:24:29 +00:00
.forgejo/workflows ci: use FORGEJO_WORKSPACE not GITHUB_ 2026-11-14 18:01:29 +00:00
changelogs chore(release): v1.0.0 2026-11-14 19:24:29 +00:00
meta chore: update metadata 2026-11-14 14:46:24 +00:00
plugins/modules chore: galaxy metadata alignment 2026-11-14 17:52:44 +00:00
roles chore: galaxy really wants role readmes 2026-11-14 19:23:59 +00:00
tests/integration/targets/sops_yaml_creation_rule/tasks ci: move sops_yaml_creation_rule test to integration tests 2026-11-14 17:35:52 +00:00
.ansible-lint.yml chore: add changelog fragments and update version metadata 2026-11-14 19:24:26 +00:00
.gitignore chore: galaxy really wants role readmes 2026-11-14 19:23:59 +00:00
.yamllint chore: address ansible-lint findings 2026-11-14 17:02:52 +00:00
CHANGELOG.rst chore(release): v1.0.0 2026-11-14 19:24:29 +00:00
galaxy.yml chore: add changelog fragments and update version metadata 2026-11-14 19:24:26 +00:00
README.md docs: add galaxy name to readme 2026-11-14 18:09:34 +00:00


SR2 Communications

Language: Ansible Licence: BSD 2-Clause Lifecycle: Stable

ansible-lint molecule integration Renovate enabled

ansible-collection-terraform

This is the home of Ansible roles for using Terraform, or OpenTofu, as part of Ansible workflows: deploying cloud resources from a Terraform module and using its outputs later in the same play, and keeping Terraform state in S3.

Usage

Install the collection from Ansible Galaxy:

ansible-galaxy collection install sr2c.terraform

Or add it to your requirements from the git repository:

collections:
  - src: git+https://guardianproject.dev/sr2/ansible-collection-terraform.git
    version: "main"

The roles are:

  • sr2c.terraform.terraform_module, which deploys a Terraform module and stores its outputs in a host variable, and
  • sr2c.terraform.terraform_s3_backend, which creates the AWS resources to keep Terraform state in S3.

If you would like support for using these roles in your own environment, please contact us at contact@sr2.uk for a quote.

Licence

Copyright © 2023-2026 SR2 Communications Limited.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.