Skip to content

Latest commit

 

History

History
58 lines (49 loc) · 1.47 KB

README.md

File metadata and controls

58 lines (49 loc) · 1.47 KB

ansible-iocell

iocell module for ansible.

Usecases:

fetch 10.3-RELEASE:

iocell: state=fetched release=10.3-RELEASE

create basejail:

iocell: state=basejail tag="foo" release=10.3-RELEASE

create template:

iocell: state=template tag=template release=10.3-RELEASE properties="ip4_addr=lo0|10.1.0.1' resolver='nameserver 127.0.0.1'"

clone existing jail:

iocell: state=cloned tag="foo" uuid="05a32718-2de2-11e5-ad68-a710c4a2a00f" properties="ip4_addr='lo1|10.1.0.5' boot=on allow_sysvipc=1 pkglist=/path/to/pkglist.txt defaultrouter='10.1.0.1'"

start existing jail:

iocell: state=started uuid="05a32718-2de2-11e5-ad68-a710c4a2a00f"

stop existing jail:

iocell: state=stopped uuid="05a32718-2de2-11e5-ad68-a710c4a2a00f"

restart existing jail:

iocell: state=restarted uuid="05a32718-2de2-11e5-ad68-a710c4a2a00f"

execute command in (running) jail:

iocell: state=exec uuid="05a32718-2de2-11e5-ad68-a710c4a2a00f" user="root" cmd="service sshd start"

force destroy jail:

iocell: state=absent uuid="05a32718-2de2-11e5-ad68-a710c4a2a00f"

set attributes on jail:

iocell: state=set uuid="05a32718-2de2-11e5-ad68-a710c4a2a00f" properties="istemplate=yes"

Expected results of ansible_test.yml

PLAY RECAP *********************************************************************************************** / : ok=28 changed=18 unreachable=0 failed=0