mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
13 lines
430 B
YAML
13 lines
430 B
YAML
|
- name: install the sysV init file
|
||
|
copy: src=ansible.sysv dest=/etc/init.d/ansible_test mode=0755
|
||
|
register: install_sysv_result
|
||
|
|
||
|
- name: assert that the sysV init file was installed
|
||
|
assert:
|
||
|
that:
|
||
|
- "install_sysv_result.dest == '/etc/init.d/ansible_test'"
|
||
|
- "install_sysv_result.state == 'file'"
|
||
|
- "install_sysv_result.mode == '0755'"
|
||
|
- "install_sysv_result.md5sum == 'ebf6a9064ca8628187f3a6caf8e2a279'"
|
||
|
|