
PLAY [Create iocage templates.] ************************************************

TASK [Gathering Facts] *********************************************************
ok: [iocage_06]

TASK [vbotka.freebsd.iocage_template : Setup: Get iocage list of templates.] ***
ok: [iocage_06]

TASK [vbotka.freebsd.iocage_template : Setup: Get activated pool.] *************
ok: [iocage_06]

TASK [vbotka.freebsd.iocage_template : Debug: Display variables fit_debug=true] ***
ok: [iocage_06] => 
    msg: |-
        fit_role_version: 1.3.1

        ansible_facts.architecture: amd64
        ansible_facts.os_family: FreeBSD
        ansible_facts.distribution: FreeBSD
        ansible_facts.distribution_major_version: 15
        ansible_facts.distribution_version: 15.1
        ansible_facts.distribution_release: 15.1-RELEASE
        ansible_facts.python_version: 3.12.13

        fit_sudo: False
        fit_stop: True
        fit_template: True
        fit_pkg_install: True
        fit_pkg_cached: UNDEFINED
        fit_pkg_ignore_osver: UNDEFINED
        fit_pkg_pkgsite: UNDEFINED

        fit_templates:
          ansible-pkg-repo:
            commands:
            - mkdir -p /usr/local/www/pkgrepo
            - chown www:www /usr/local/www/pkgrepo
            - chmod 755 /usr/local/www/pkgrepo
            pkg:
            - nginx-lite
            - python312
            - python
            - python3
            properties:
              bpf: 1
              dhcp: 1
              ip4: disable
              ip6: disable
              ip6_addr: none
              notes: '"class=pkg-repo alias=ansible_pkg_repo"'
              vnet: 1
            rcconf:
            - key: nginx_enable
              value: 'YES'
            release: 15.1-RELEASE
            templates:
            - key: /usr/local/etc/nginx
              value:
              - nginx.conf

        fit_iocage_mount: /zroot
        fit_iocage_templates:
          ansible-client:
            basejail: 'no'
            boot: 'off'
            ip4: '-'
            ip4_dict:
              ip4: []
              msg: DHCP (not running)
            ip6: '-'
            jid: None
            release: 15.1-RELEASE-p1
            state: down
            template: '-'
            type: template
          ansible-init:
            basejail: 'no'
            boot: 'off'
            ip4: '-'
            ip4_dict:
              ip4: []
              msg: DHCP (not running)
            ip6: '-'
            jid: None
            release: 15.1-RELEASE-p1
            state: down
            template: '-'
            type: template
          ansible-repos:
            basejail: 'no'
            boot: 'off'
            ip4: '-'
            ip4_dict:
              ip4: []
              msg: DHCP (not running)
            ip6: '-'
            jid: None
            release: 15.1-RELEASE-p1
            state: down
            template: '-'
            type: template
          ansible-syslogng-client:
            basejail: 'no'
            boot: 'off'
            ip4: '-'
            ip4_dict:
              ip4: []
              msg: DHCP (not running)
            ip6: '-'
            jid: None
            release: 15.1-RELEASE-p1
            state: down
            template: '-'
            type: template
          ansible-syslogng-server:
            basejail: 'no'
            boot: 'off'
            ip4: 172.16.99.41
            ip4_dict:
              ip4:
              - ifc: vnet0
                ip: 172.16.99.41
                mask: '24'
              msg: ''
            ip6: '-'
            jid: None
            release: 15.1-RELEASE-p1
            state: down
            template: '-'
            type: template

TASK [vbotka.freebsd.iocage_template : Create: Get iocage list of jails.] ******
ok: [iocage_06]

TASK [vbotka.freebsd.iocage_template : Create: Display iocage_jails fit_debug=true] ***
ok: [iocage_06] => 
    fit_iocage_jails:
        log-server:
            basejail: 'no'
            boot: 'on'
            ip4: 172.16.99.10
            ip4_dict:
                ip4:
                -   ifc: vnet0
                    ip: 172.16.99.10
                    mask: '24'
                msg: ''
            ip6: '-'
            jid: '14'
            release: 15.1-RELEASE-p1
            state: up
            template: ansible-init
            type: jail
        repos:
            basejail: 'no'
            boot: 'on'
            ip4: 172.16.99.21
            ip4_dict:
                ip4:
                -   ifc: vnet0
                    ip: 172.16.99.21
                    mask: '24'
                msg: ''
            ip6: '-'
            jid: '6'
            release: 15.1-RELEASE-p1
            state: up
            template: ansible-repos
            type: jail
        repos-devel:
            basejail: 'no'
            boot: 'on'
            ip4: 172.16.99.22
            ip4_dict:
                ip4:
                -   ifc: vnet0
                    ip: 172.16.99.22
                    mask: '24'
                msg: ''
            ip6: '-'
            jid: '7'
            release: 15.1-RELEASE-p1
            state: up
            template: ansible-repos
            type: jail
        test-151:
            basejail: 'no'
            boot: 'off'
            ip4: '-'
            ip4_dict:
                ip4: []
                msg: DHCP (not running)
            ip6: '-'
            jid: None
            release: 15.1-RELEASE-p1
            state: down
            template: ansible-client
            type: jail
        test-152:
            basejail: 'no'
            boot: 'off'
            ip4: '-'
            ip4_dict:
                ip4: []
                msg: DHCP (not running)
            ip6: '-'
            jid: None
            release: 15.1-RELEASE-p1
            state: down
            template: ansible-client
            type: jail
        test-153:
            basejail: 'no'
            boot: 'off'
            ip4: '-'
            ip4_dict:
                ip4: []
                msg: DHCP (not running)
            ip6: '-'
            jid: None
            release: 15.1-RELEASE-p1
            state: down
            template: ansible-client
            type: jail
        www-01:
            basejail: 'no'
            boot: 'on'
            ip4: 172.16.99.110
            ip4_dict:
                ip4:
                -   ifc: epair0b
                    ip: 172.16.99.110
                    mask: '-'
                msg: ''
            ip6: '-'
            jid: '15'
            release: 15.1-RELEASE-p1
            state: up
            template: ansible-init
            type: jail
        www-02:
            basejail: 'no'
            boot: 'on'
            ip4: 172.16.99.147
            ip4_dict:
                ip4:
                -   ifc: epair0b
                    ip: 172.16.99.147
                    mask: '-'
                msg: ''
            ip6: '-'
            jid: '16'
            release: 15.1-RELEASE-p1
            state: up
            template: ansible-init
            type: jail

TASK [vbotka.freebsd.iocage_template : Create: Create jails.] ******************
ok: [iocage_06] => (item=ansible-pkg-repo 15.1-RELEASE)

TASK [vbotka.freebsd.iocage_template : Start: Get iocage list of jails.] *******
ok: [iocage_06]

TASK [vbotka.freebsd.iocage_template : Start: Display iocage_jails fit_debug=true] ***
ok: [iocage_06] => 
    fit_iocage_jails:
        ansible-pkg-repo:
            basejail: 'no'
            boot: 'off'
            ip4: '-'
            ip4_dict:
                ip4: []
                msg: DHCP (not running)
            ip6: '-'
            jid: None
            release: 15.1-RELEASE-p1
            state: down
            template: '-'
            type: jail
        log-server:
            basejail: 'no'
            boot: 'on'
            ip4: 172.16.99.10
            ip4_dict:
                ip4:
                -   ifc: vnet0
                    ip: 172.16.99.10
                    mask: '24'
                msg: ''
            ip6: '-'
            jid: '14'
            release: 15.1-RELEASE-p1
            state: up
            template: ansible-init
            type: jail
        repos:
            basejail: 'no'
            boot: 'on'
            ip4: 172.16.99.21
            ip4_dict:
                ip4:
                -   ifc: vnet0
                    ip: 172.16.99.21
                    mask: '24'
                msg: ''
            ip6: '-'
            jid: '6'
            release: 15.1-RELEASE-p1
            state: up
            template: ansible-repos
            type: jail
        repos-devel:
            basejail: 'no'
            boot: 'on'
            ip4: 172.16.99.22
            ip4_dict:
                ip4:
                -   ifc: vnet0
                    ip: 172.16.99.22
                    mask: '24'
                msg: ''
            ip6: '-'
            jid: '7'
            release: 15.1-RELEASE-p1
            state: up
            template: ansible-repos
            type: jail
        test-151:
            basejail: 'no'
            boot: 'off'
            ip4: '-'
            ip4_dict:
                ip4: []
                msg: DHCP (not running)
            ip6: '-'
            jid: None
            release: 15.1-RELEASE-p1
            state: down
            template: ansible-client
            type: jail
        test-152:
            basejail: 'no'
            boot: 'off'
            ip4: '-'
            ip4_dict:
                ip4: []
                msg: DHCP (not running)
            ip6: '-'
            jid: None
            release: 15.1-RELEASE-p1
            state: down
            template: ansible-client
            type: jail
        test-153:
            basejail: 'no'
            boot: 'off'
            ip4: '-'
            ip4_dict:
                ip4: []
                msg: DHCP (not running)
            ip6: '-'
            jid: None
            release: 15.1-RELEASE-p1
            state: down
            template: ansible-client
            type: jail
        www-01:
            basejail: 'no'
            boot: 'on'
            ip4: 172.16.99.110
            ip4_dict:
                ip4:
                -   ifc: epair0b
                    ip: 172.16.99.110
                    mask: '-'
                msg: ''
            ip6: '-'
            jid: '15'
            release: 15.1-RELEASE-p1
            state: up
            template: ansible-init
            type: jail
        www-02:
            basejail: 'no'
            boot: 'on'
            ip4: 172.16.99.147
            ip4_dict:
                ip4:
                -   ifc: epair0b
                    ip: 172.16.99.147
                    mask: '-'
                msg: ''
            ip6: '-'
            jid: '16'
            release: 15.1-RELEASE-p1
            state: up
            template: ansible-init
            type: jail

TASK [vbotka.freebsd.iocage_template : Start: Display jails to start fit_debug=true] ***
ok: [iocage_06] => 
    _jails_to_start:
    - ansible-pkg-repo

TASK [vbotka.freebsd.iocage_template : Start: Start jails.] ********************
ok: [iocage_06]

TASK [vbotka.freebsd.iocage_template : Pkg: Get iocage list of jails.] *********
ok: [iocage_06]

TASK [vbotka.freebsd.iocage_template : Pkg: Display iocage_jails fit_debug=true] ***
ok: [iocage_06] => 
    fit_iocage_jails:
        ansible-pkg-repo:
            basejail: 'no'
            boot: 'off'
            ip4: 172.16.99.185
            ip4_dict:
                ip4:
                -   ifc: epair0b
                    ip: 172.16.99.185
                    mask: '-'
                msg: ''
            ip6: '-'
            jid: '18'
            release: 15.1-RELEASE-p1
            state: up
            template: '-'
            type: jail
        log-server:
            basejail: 'no'
            boot: 'on'
            ip4: 172.16.99.10
            ip4_dict:
                ip4:
                -   ifc: vnet0
                    ip: 172.16.99.10
                    mask: '24'
                msg: ''
            ip6: '-'
            jid: '14'
            release: 15.1-RELEASE-p1
            state: up
            template: ansible-init
            type: jail
        repos:
            basejail: 'no'
            boot: 'on'
            ip4: 172.16.99.21
            ip4_dict:
                ip4:
                -   ifc: vnet0
                    ip: 172.16.99.21
                    mask: '24'
                msg: ''
            ip6: '-'
            jid: '6'
            release: 15.1-RELEASE-p1
            state: up
            template: ansible-repos
            type: jail
        repos-devel:
            basejail: 'no'
            boot: 'on'
            ip4: 172.16.99.22
            ip4_dict:
                ip4:
                -   ifc: vnet0
                    ip: 172.16.99.22
                    mask: '24'
                msg: ''
            ip6: '-'
            jid: '7'
            release: 15.1-RELEASE-p1
            state: up
            template: ansible-repos
            type: jail
        test-151:
            basejail: 'no'
            boot: 'off'
            ip4: '-'
            ip4_dict:
                ip4: []
                msg: DHCP (not running)
            ip6: '-'
            jid: None
            release: 15.1-RELEASE-p1
            state: down
            template: ansible-client
            type: jail
        test-152:
            basejail: 'no'
            boot: 'off'
            ip4: '-'
            ip4_dict:
                ip4: []
                msg: DHCP (not running)
            ip6: '-'
            jid: None
            release: 15.1-RELEASE-p1
            state: down
            template: ansible-client
            type: jail
        test-153:
            basejail: 'no'
            boot: 'off'
            ip4: '-'
            ip4_dict:
                ip4: []
                msg: DHCP (not running)
            ip6: '-'
            jid: None
            release: 15.1-RELEASE-p1
            state: down
            template: ansible-client
            type: jail
        www-01:
            basejail: 'no'
            boot: 'on'
            ip4: 172.16.99.110
            ip4_dict:
                ip4:
                -   ifc: epair0b
                    ip: 172.16.99.110
                    mask: '-'
                msg: ''
            ip6: '-'
            jid: '15'
            release: 15.1-RELEASE-p1
            state: up
            template: ansible-init
            type: jail
        www-02:
            basejail: 'no'
            boot: 'on'
            ip4: 172.16.99.147
            ip4_dict:
                ip4:
                -   ifc: epair0b
                    ip: 172.16.99.147
                    mask: '-'
                msg: ''
            ip6: '-'
            jid: '16'
            release: 15.1-RELEASE-p1
            state: up
            template: ansible-init
            type: jail

TASK [vbotka.freebsd.iocage_template : Pkg: Install packages.] *****************
changed: [iocage_06] => (item=ansible-pkg-repo)

TASK [vbotka.freebsd.iocage_template : Templates: Template files.] *************
included: /scratch/collections/ansible_collections/vbotka/freebsd/roles/iocage_template/tasks/fn/templates.yml for iocage_06 => (item=ansible-pkg-repo)

TASK [vbotka.freebsd.iocage_template : Fn/templates: Create directory.] ********
ok: [iocage_06]

TASK [vbotka.freebsd.iocage_template : Fn/templates: Template files.] **********
changed: [iocage_06] => (item=nginx.conf)

TASK [vbotka.freebsd.iocage_template : Rcconf: Configure /etc/rc.conf] *********
changed: [iocage_06] => (item=ansible-pkg-repo nginx_enable YES)

TASK [vbotka.freebsd.iocage_template : Commands: Execute commands.] ************
ok: [iocage_06] => (item=ansible-pkg-repo > mkdir -p /usr/local/www/pkgrepo)
ok: [iocage_06] => (item=ansible-pkg-repo > chown www:www /usr/local/www/pkgrepo)
ok: [iocage_06] => (item=ansible-pkg-repo > chmod 755 /usr/local/www/pkgrepo)

TASK [vbotka.freebsd.iocage_template : Stop: Get iocage list of jails.] ********
ok: [iocage_06]

TASK [vbotka.freebsd.iocage_template : Stop: Display iocage_jails fit_debug=true] ***
ok: [iocage_06] => 
    fit_iocage_jails:
        ansible-pkg-repo:
            basejail: 'no'
            boot: 'off'
            ip4: 172.16.99.185
            ip4_dict:
                ip4:
                -   ifc: epair0b
                    ip: 172.16.99.185
                    mask: '-'
                msg: ''
            ip6: '-'
            jid: '18'
            release: 15.1-RELEASE-p1
            state: up
            template: '-'
            type: jail
        log-server:
            basejail: 'no'
            boot: 'on'
            ip4: 172.16.99.10
            ip4_dict:
                ip4:
                -   ifc: vnet0
                    ip: 172.16.99.10
                    mask: '24'
                msg: ''
            ip6: '-'
            jid: '14'
            release: 15.1-RELEASE-p1
            state: up
            template: ansible-init
            type: jail
        repos:
            basejail: 'no'
            boot: 'on'
            ip4: 172.16.99.21
            ip4_dict:
                ip4:
                -   ifc: vnet0
                    ip: 172.16.99.21
                    mask: '24'
                msg: ''
            ip6: '-'
            jid: '6'
            release: 15.1-RELEASE-p1
            state: up
            template: ansible-repos
            type: jail
        repos-devel:
            basejail: 'no'
            boot: 'on'
            ip4: 172.16.99.22
            ip4_dict:
                ip4:
                -   ifc: vnet0
                    ip: 172.16.99.22
                    mask: '24'
                msg: ''
            ip6: '-'
            jid: '7'
            release: 15.1-RELEASE-p1
            state: up
            template: ansible-repos
            type: jail
        test-151:
            basejail: 'no'
            boot: 'off'
            ip4: '-'
            ip4_dict:
                ip4: []
                msg: DHCP (not running)
            ip6: '-'
            jid: None
            release: 15.1-RELEASE-p1
            state: down
            template: ansible-client
            type: jail
        test-152:
            basejail: 'no'
            boot: 'off'
            ip4: '-'
            ip4_dict:
                ip4: []
                msg: DHCP (not running)
            ip6: '-'
            jid: None
            release: 15.1-RELEASE-p1
            state: down
            template: ansible-client
            type: jail
        test-153:
            basejail: 'no'
            boot: 'off'
            ip4: '-'
            ip4_dict:
                ip4: []
                msg: DHCP (not running)
            ip6: '-'
            jid: None
            release: 15.1-RELEASE-p1
            state: down
            template: ansible-client
            type: jail
        www-01:
            basejail: 'no'
            boot: 'on'
            ip4: 172.16.99.110
            ip4_dict:
                ip4:
                -   ifc: epair0b
                    ip: 172.16.99.110
                    mask: '-'
                msg: ''
            ip6: '-'
            jid: '15'
            release: 15.1-RELEASE-p1
            state: up
            template: ansible-init
            type: jail
        www-02:
            basejail: 'no'
            boot: 'on'
            ip4: 172.16.99.147
            ip4_dict:
                ip4:
                -   ifc: epair0b
                    ip: 172.16.99.147
                    mask: '-'
                msg: ''
            ip6: '-'
            jid: '16'
            release: 15.1-RELEASE-p1
            state: up
            template: ansible-init
            type: jail

TASK [vbotka.freebsd.iocage_template : Stop: Stop jails.] **********************
ok: [iocage_06]

TASK [vbotka.freebsd.iocage_template : Template: Set template.] ****************
ok: [iocage_06] => (item=ansible-pkg-repo)

PLAY RECAP *********************************************************************
iocage_06                  : ok=23   changed=3    unreachable=0    failed=0    skipped=30   rescued=0    ignored=0   

