replace test 'wget' package with 'hello' package

This commit is contained in:
Azul 2014-02-23 10:46:39 +00:00
parent d7dd04c295
commit 89cee747d9

View file

@ -1,25 +1,25 @@
# UNINSTALL
- name: uninstall wget with apt
apt: pkg=wget state=absent purge=yes
- name: uninstall hello with apt
apt: pkg=hello state=absent purge=yes
register: apt_result
- name: check wget with dpkg
shell: dpkg --get-selections | fgrep wget
- name: check hello with dpkg
shell: dpkg --get-selections | fgrep hello
failed_when: False
register: dpkg_result
- debug: var=apt_result
- debug: var=dpkg_result
- name: verify uninstallation of wget
- name: verify uninstallation of hello
assert:
that:
- "'changed' in apt_result"
- "dpkg_result.rc == 1"
# UNINSTALL AGAIN
- name: uninstall wget with apt
apt: pkg=wget state=absent purge=yes
- name: uninstall hello with apt
apt: pkg=hello state=absent purge=yes
register: apt_result
- name: verify no change on re-uninstall
@ -28,19 +28,19 @@
- "not apt_result.changed"
# INSTALL
- name: install wget with apt
apt: name=wget state=present
- name: install hello with apt
apt: name=hello state=present
register: apt_result
- name: check wget with dpkg
shell: dpkg --get-selections | fgrep wget
- name: check hello with dpkg
shell: dpkg --get-selections | fgrep hello
failed_when: False
register: dpkg_result
- debug: var=apt_result
- debug: var=dpkg_result
- name: verify installation of wget
- name: verify installation of hello
assert:
that:
- "apt_result.changed"
@ -57,8 +57,8 @@
- "'stdout_lines' in apt_result"
# INSTALL AGAIN
- name: install wget with apt
apt: name=wget state=present
- name: install hello with apt
apt: name=hello state=present
register: apt_result
- name: verify no change on re-install