mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
818 B
YAML
18 lines
818 B
YAML
11 years ago
|
- name: install the systemd unit file
|
||
9 years ago
|
copy: src=ansible.systemd dest=/etc/systemd/system/ansible_test.service
|
||
11 years ago
|
register: install_systemd_result
|
||
|
|
||
10 years ago
|
- name: install a broken systemd unit file
|
||
9 years ago
|
file: src=ansible_test.service path=/etc/systemd/system/ansible_test_broken.service state=link
|
||
10 years ago
|
register: install_broken_systemd_result
|
||
|
|
||
11 years ago
|
- name: assert that the systemd unit file was installed
|
||
|
assert:
|
||
|
that:
|
||
9 years ago
|
- "install_systemd_result.dest == '/etc/systemd/system/ansible_test.service'"
|
||
11 years ago
|
- "install_systemd_result.state == 'file'"
|
||
|
- "install_systemd_result.mode == '0644'"
|
||
8 years ago
|
- "install_systemd_result.checksum == '6b5f2b9318524a387c77c550cef4dd411a471acf'"
|
||
9 years ago
|
- "install_broken_systemd_result.dest == '/etc/systemd/system/ansible_test_broken.service'"
|
||
10 years ago
|
- "install_broken_systemd_result.state == 'link'"
|