- name: rc.inet1 ansible.builtin.copy: content: | #!/bin/bash # CONFIGURED BY ANSIBLE echo rc.inet1 PATH is $PATH [[ $1 = stop ]] && exit 0 ifconfig lo up brctl addbr xenbr0 brctl addif xenbr0 eth0 ifconfig xenbr0 {{cidr}} up ifconfig eth0 up route add default gw {{gw}} dest: /etc/rc.d/rc.inet1 mode: "0755" - name: rc.inet2 ansible.builtin.copy: content: | #!/bin/bash # CONFIGURED BY ANSIBLE echo rc.inet2 PATH is $PATH PATH=$PATH:/usr/local/sbin:/usr/local/bin:/etc/rc.d echo rc.inet2 PATH is $PATH [[ $1 = stop ]] && exit 0 rc.sshd start zpool import smith -N find /dev/zvol/ -mindepth 2 dest: /etc/rc.d/rc.inet2 mode: "0755"