- name: setup daemons gather_facts: no hosts: "{{target}}" become: "{{become_var}}" tasks: - name: enable ssh and xen at boot-time ansible.builtin.copy: content: | #!/bin/bash # CONFIGURED BY ANSIBLE [[ $1 = stop ]] && exit 0 echo rc.inet2 PATH is $PATH # self-verbose /etc/rc.d/rc.sshd start # self-verbose /etc/rc.d/init.d/xencommons start dest: /etc/rc.d/rc.inet2 mode: "0755"