install_custom_facts.yml 348 Bytes
---
- name: Custom facts for JBoss EAP version checking
  hosts: all
  become: true
  tasks:
    - name: create the custom facts directory
      file:
        path: /etc/ansible/facts.d
        state: directory

    - name: copy custom facts
      copy:
        src: files/jboss_version.fact
        dest: /etc/ansible/facts.d
        mode: "0777"