Examples
- 001-:
Manage iocage
- 010-:
- 040-:
Other plugins
- 200-:
Ansible client
- 300-:
Modules
- 310-:
- 320-:
- 330-:
- 340-:
- 350-:
- 360-:
- 370-:
- 380-:
- 390-:
- 400-:
- 410-:
- 420-:
- 430-:
- 440-:
- 500-:
Infrastructure
Note
The examples that create jails use the iocage host setting created in the example 440 Configure DHCP and pf by default. The firewall is on both the external interface and the
vnetbridge of the iocage host. DHCP for the jails is on the bridge, and SSH access from the local network to the jails is redirected. Examples that do not use this setting are marked.deny, meaning they are excluded frombatch.sh. To run these examples, the firewall must be reconfigured; see 370 Configure pf.All examples include additional files that are not displayed in the file tree. Review these files for more details.
The examples include a
batch.shscript that executes the commands and generates the output for each example.Most playbooks in
batch.share idempotent. If a playbook is run repeatedly, the output may display a status ofokinstead of the expectedchanged.The playbooks in the examples use dashes (
-) in their filenames (e.g.pb-iocage.yml).Due to Ansible collection naming conventions, the playbooks in the collection use underscores (
_) in their filenames (e.g.pb_iocage_template.yml).To avoid connection errors in examples where DHCP is used,
host_key_checking = falsecan be configured inansible.cfg.
Hint
See Update examples.
iocage module, inventory, and filter
- 010 Clone jails and create inventory
- 011 Display variables iocage_*
- 012 Display iocage_properties
- 013 Tags and custom groups
- 014 Inventory cache
- 015 Multiple inventory cache
- 016 Multiple inventory constructed
- 017 community.general.iocage
- 018 Clone basejails. Use DHCP.
- 019 Inventory option use_vars_plugins
- 020 Get inventory aliases from notes
- 030 Create custom facts
Ansible client
Roles
- 310 Configure and audit Ansible clients
- 311 Configure and start git_daemon
- 320 Install and audit packages
- 321 Create package repo configuration
- 330 Clone jails and create inventory
- 340 Install and configure lighttpd
- 350 Install and configure rsnapshot
- 360 Configure bridge
- 361 Configure loadbalance
- 370 Configure pf
- 380 Configure custom image
- 390 Build packages
- 400 Configure ZFS
- 410 Include vars from conf.d
- 411 Include vars from nested dirs
- 420 Configure Apache server
- 421 Configure Apache server vhost
- 422 Configure Apache server PHP
- 423 Configure Apache server build
- 430 Configure Apache server SSL
- 440 Configure DHCP and pf
- 441 Redirect SHH to jails
- 442 Connection jailexec instead of ssh
- 443 iocage plugin ansible-zero