2014-02-19 23:05:35 +00:00
|
|
|
- name: install the upstart init file
|
2014-03-07 15:41:01 +00:00
|
|
|
copy: src=ansible.upstart dest=/etc/init/ansible_test.conf mode=0644
|
2014-02-19 23:05:35 +00:00
|
|
|
register: install_upstart_result
|
|
|
|
|
2014-09-18 19:39:54 +00:00
|
|
|
- name: install an upstart init file that will fail (manual in .conf)
|
|
|
|
copy: src=ansible-broken.upstart dest=/etc/init/ansible_broken_test.conf mode=0644
|
|
|
|
register: install_upstart_broken_result
|
|
|
|
|
2014-02-19 23:05:35 +00:00
|
|
|
- name: assert that the upstart init file was installed
|
|
|
|
assert:
|
|
|
|
that:
|
2014-03-07 15:41:01 +00:00
|
|
|
- "install_upstart_result.dest == '/etc/init/ansible_test.conf'"
|
2014-02-19 23:05:35 +00:00
|
|
|
- "install_upstart_result.state == 'file'"
|
2014-03-07 15:41:01 +00:00
|
|
|
- "install_upstart_result.mode == '0644'"
|
2014-11-07 05:28:04 +00:00
|
|
|
- "install_upstart_result.checksum == '5c314837b6c4dd6c68d1809653a2974e9078e02a'"
|
2014-09-18 19:59:04 +00:00
|
|
|
- "install_upstart_broken_result.dest == '/etc/init/ansible_broken_test.conf'"
|
|
|
|
- "install_upstart_broken_result.state == 'file'"
|
|
|
|
- "install_upstart_broken_result.mode == '0644'"
|
2014-11-07 05:28:04 +00:00
|
|
|
- "install_upstart_broken_result.checksum == 'e66497894f2b2bf71e1380a196cc26089cc24a10'"
|