Payment by bank transfer · Moroccoتعلَّم · مارِس · أتقِن

Catalogue / DevOps

Infrastructure as Code with OpenTofu (Terraform-Compatible) and Ansible

Describe networks, servers and firewalls in version-controlled files, deploy them with OpenTofu, configure them with Ansible and work safely as a team.

  • Beginner to advanced
  • 10 lessons
  • 7 h 50 min

A MasterLinux course · Original text

What you will learn

  • Understand infrastructure as code, declarative versus imperative, and choose your tools
  • Install OpenTofu and master the init, plan, apply, destroy cycle
  • Write clean HCL with variables, outputs, locals and types
  • Protect and share state with a remote backend and locking
  • Create and reuse modules, and use the registry
  • Generate resources with count, for_each, dynamic blocks and for expressions
  • Deploy a network, a virtual machine and a firewall in the cloud
  • Chain OpenTofu and Ansible to provision and then configure
  • Organize environments and have plans reviewed in CI
  • Secure secrets, permissions and state, detect drift and test your code

Course content

10 lessons · 7 h 50 min

Requirements

  • The “Fundamentals” course (included) or solid hands-on experience with the Linux command line
  • Basic networking concepts (IP addresses, subnets, ports)
  • Git (clone, commit, push) is a plus

Who is this course for?

  • System administrators who want to automate their deployments
  • Junior DevOps and cloud engineers
  • Developers who manage their own infrastructure