Git Product home page Git Product logo

awx-facts-playbooks's Introduction

awx-facts-playbooks

Repository containing playbooks to support fact scanning in Ansible Tower and AWX.

Previously these playbooks were built-in to Ansible Tower. With the removal of the System Tracking feature we've made them available outside of the project. The scan modules are still included in Tower and AWX so this playbook can be used with those modules from within Tower and AWX to populate extra fact data that wouldn't normally be available.

awx-facts-playbooks's People

Contributors

chrismeyersfsu avatar matburt avatar ryanpetrello avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

awx-facts-playbooks's Issues

Change Path to machine-id for INSIGHTS_SYSTEM_ID_FILE

The machine-id no longer points to /etc/redhat-access-insights/machine-id

This should be changed to /etc/machine-id

RHEL8

ls -al /etc/redhat-access-insights/machine-id
ls: cannot access '/etc/redhat-access-insights/machine-id': No such file or directory

RHEL7

ls -al /etc/redhat-access-insights/machine-id
ls: cannot access '/etc/redhat-access-insights/machine-id': No such file or directory

error while running playbook

hello,

got this error

The offending line appears to be:


    - name: "Scan packages (Unix/Linux)"
      ^ here


The error appears to have been in '/var/lib/awx/projects/_9__scan_project/scan_facts.yml': line 7, column 7, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:


    - name: "Scan packages (Unix/Linux)"
      ^ here

AWX does not work

I cannot seem to get this task working on the newest opensource awx 1.0.4

ERROR! no action detected in task. This often indicates a misspelled module name, or incorrect module path.
The error appears to have been in '/var/lib/awx/projects/_11__ansible_playbook/scan_facts.yml': line 7, column 7, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
    - name: "Scan packages (Unix/Linux)"
      ^ here
The error appears to have been in '/var/lib/awx/projects/_11__ansible_playbook/scan_facts.yml': line 7, column 7, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
    - name: "Scan packages (Unix/Linux)"
      ^ here
exception type: <class 'ansible.errors.AnsibleParserError'>
exception: no action detected in task. This often indicates a misspelled module name, or incorrect module path.
The error appears to have been in '/var/lib/awx/projects/_11__ansible_playbook/scan_facts.yml': line 7, column 7, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
    - name: "Scan packages (Unix/Linux)"
      ^ here

Scan Facts Playbook Hangs Indefinitely Due to tset Command

Issue

Some environments hang indefinitely due to missing terminal in Tower when running these facts playbooks.

Replication
  1. Run a playbook against a host with the oracle oem agent in Tower/AWX
  2. Wait for the job to complete
Expected

Job finishes

Observed

Job hangs indefinitely

PID Trace on the host:

  ├─sshd -D [email protected],[email protected],aes256-ctr,aes256-cbc,[email protected],aes128-ctr,[email protected],hmac-sha1-et
  │   ├─sshd
  │   │   └─sshd
  │   │       └─sh -c...
  │   │           └─sudo -H -S -n -u root /bin/sh -c ...
  │   │               └─sh -c echo BECOME-SUCCESS-hfyjvwruwzozgfynbrxxybrukfqgskft ; /usr/bin/python /tmp/ansible-tmp-1632758464.7292757-686745-170612301098636/AnsiballZ_scan_services.py
  │   │                   └─python /tmp/ansible-tmp-1632758464.7292757-686745-170612301098636/AnsiballZ_scan_services.py
  │   │                       └─service /sbin/service gcstartup status
  │   │                           └─gcstartup /etc/init.d/gcstartup status
  │   │                               └─su - storacle -c /dba/software/oem/agent_13.5.0.0.0/install/unix/scripts/agentstup status /dba/software/oem/agent_inst storacle &
  │   │                                   └─ksh -c /dba/software/oem/agent_13.5.0.0.0/install/unix/scripts/agentstup status /dba/software/oem/agent_inst storacle &
  │   │                                       └─tset -s -Q
Additional Information

Running the ad-hoc command tset -s -Q targeting the same host results in the ad-hoc job hanging indefinitely as well.

Workaround for scan_facts.yml, adding TERM environment variable in PLAY:

- hosts: all
  environment:
    TERM: 'xterm'
  vars:
    scan_use_checksum: false
    scan_use_recursive: false
  tasks:
[...]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.