You've already forked ansible-role-repo-raven
30 lines
580 B
YAML
30 lines
580 B
YAML
---
|
|
# This is an example playbook to execute Ansible tests.
|
|
|
|
- name: Verify
|
|
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
|
|
assert:
|
|
that: true
|