Skip to content

Latest commit

 

History

History
13 lines (10 loc) · 492 Bytes

File metadata and controls

13 lines (10 loc) · 492 Bytes

Running ansible in a container build for firewalling

In this example, we:

  • Derive from the base image
  • Install ansible
  • Inject a playbook into the image
  • Run ansible as part of the build, using the upstream firewalld task
  • Remove ansible (we don't need it at runtime)

There's nothing really specific to firewalling here; this example can be used as a reference for executing any arbitrary ansible playbook as part of a container image build.