Skip to content

Latest commit

 

History

History

ansible-firewalld

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

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.