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 by default the iocage host setting created in the example 440 Configure DHCP and pf. The firewall is on the external interface and on the
vnetbridge of the iocage host. The DHCP for the jails is on the bridge. The SSH from the local network to the jails is redirected. The examples that do not use this setting are marked.deny. This means, they are not included inbatch.sh. To run these examples, reconfigure the firewall. See the example 370 Configure pf.All examples comprise additional files not shown in the files’ tree. See them to learn more details.
The examples comprise
batch.shthat runs the commands and creates the output for the examples.Most plays in
batch.share idempotent. The output of such a play may show statusokinstead of expectedchangedif the play has been run repeatedly.The playbooks in the examples use dashes
-in their filenames. For example,pb-iocage.yml.The playbooks in the collection, because of the Ansible collection naming conventions, use underscores
_in their filenames. For example,pb_iocage_template.yml.To avoid connection errors in examples where DHCP is used,
host_key_checking = falsecan be set 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
- 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 Plugin ansible-zero