1- name: install the sysV init file
2  copy: src=ansible.sysv dest=/etc/init.d/ansible_test mode=0755
3  register: install_sysv_result
4
5- name: assert that the sysV init file was installed
6  assert:
7    that:
8    - "install_sysv_result.dest == '/etc/init.d/ansible_test'"
9    - "install_sysv_result.state == 'file'"
10    - "install_sysv_result.mode == '0755'"
11    - "install_sysv_result.checksum == '362899814c47d9aad6e93b2f64e39edd24e38797'"
12