Added simple debugging playbook

This commit is contained in:
Patrick Toal
2018-09-25 07:54:51 -04:00
parent 109ffbade6
commit 31bfdb88c1
3 changed files with 33 additions and 4 deletions

29
debug.yml Normal file
View File

@@ -0,0 +1,29 @@
- name: Show Some Debugging
hosts: localhost
tasks:
- name: Print Debugging info
vars:
msg: |
Module Variables ("vars"):
--------------------------
{{ vars | to_nice_json }}
Environment Variables ("environment"):
--------------------------------------
{{ environment | to_nice_json }}
GROUP NAMES Variables ("group_names"):
-------------------------------------
{{ group_names | to_nice_json }}
GROUPS Variables ("groups"):
----------------------------
{{ groups | to_nice_json }}
HOST Variables ("hostvars"):
----------------------------
{{ hostvars | to_nice_json }}
debug:
msg: "{{ msg.split('\n') }}"
tags: debug_info

View File

@@ -3,13 +3,13 @@
- name: Install ovirt-guest-agent on RHV Guests
yum:
name: ovirt-guest-agent
state: latest
when: ansible_virtualization_type == "RHEV"
state: present
when: ansible_virtualization_type == "RHEV"
- name: ovirt-guest-agent service is running
service:
service:
name: ovirt-guest-agent
state: running
when: ansible_virtualization_type == "RHEV"
when: ansible_virtualization_type == "RHEV"