Added simple debugging playbook
This commit is contained in:
29
debug.yml
Normal file
29
debug.yml
Normal 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
|
||||||
@@ -3,13 +3,13 @@
|
|||||||
- name: Install ovirt-guest-agent on RHV Guests
|
- name: Install ovirt-guest-agent on RHV Guests
|
||||||
yum:
|
yum:
|
||||||
name: ovirt-guest-agent
|
name: ovirt-guest-agent
|
||||||
state: latest
|
state: present
|
||||||
when: ansible_virtualization_type == "RHEV"
|
when: ansible_virtualization_type == "RHEV"
|
||||||
|
|
||||||
- name: ovirt-guest-agent service is running
|
- name: ovirt-guest-agent service is running
|
||||||
service:
|
service:
|
||||||
name: ovirt-guest-agent
|
name: ovirt-guest-agent
|
||||||
state: running
|
state: running
|
||||||
when: ansible_virtualization_type == "RHEV"
|
when: ansible_virtualization_type == "RHEV"
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user