You've already forked ansible-role-repo-raven
Added tests
This commit is contained in:
@@ -5,6 +5,16 @@
|
||||
hosts: all
|
||||
gather_facts: false
|
||||
tasks:
|
||||
- name: Example assertion
|
||||
- name: install httpd-itk
|
||||
dnf:
|
||||
name: httpd-itk
|
||||
update_cache: true
|
||||
state: installed
|
||||
|
||||
- name: Gather the package facts
|
||||
package_facts:
|
||||
manager: auto
|
||||
|
||||
- name: Is httpd-itk installed?
|
||||
assert:
|
||||
that: true
|
||||
that: "'httpd-itk' in ansible_facts.packages"
|
||||
@@ -5,25 +5,16 @@
|
||||
hosts: all
|
||||
gather_facts: false
|
||||
tasks:
|
||||
- name: Get ravens config
|
||||
shell: cat /etc/yum.repos.d/raven*
|
||||
register: hellfire
|
||||
|
||||
- debug:
|
||||
msg: "{{ hellfire.stdout_lines }}"
|
||||
|
||||
- name: Check available packages
|
||||
shell: dnf --enablerepo raven search itk
|
||||
register: shellout
|
||||
|
||||
- debug:
|
||||
msg: "{{ shellout.stdout }}"
|
||||
- name: install httpd-itk
|
||||
dnf:
|
||||
name: httpd-itk
|
||||
update_cache: true
|
||||
state: installed
|
||||
|
||||
- name: Example assertion
|
||||
- name: Gather the package facts
|
||||
package_facts:
|
||||
manager: auto
|
||||
|
||||
- name: Is httpd-itk installed?
|
||||
assert:
|
||||
that: true
|
||||
that: "'httpd-itk' in ansible_facts.packages"
|
||||
|
||||
Reference in New Issue
Block a user