ansible / awx-facts-playbooks

Repository containing playbooks to support fact scanning in Ansible Tower and AWX.
33 stars 58 forks source link

AWX does not work #2

Open ghost opened 6 years ago

ghost commented 6 years ago

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
chuegel commented 6 years ago

can confirm. This is because ansible doesn´t know how to deal with scan_packages

ghost commented 6 years ago

how to correct this ?

chuegel commented 6 years ago

My guess is that fact scan modulesisnt included in AWX. https://docs.ansible.com/ansible-tower/3.0.4/html/userguide/job_templates.html#fact-scan-playbooks

Can somebody confirm this?

dnc92301 commented 6 years ago

Looks like it doesn't like "" from the name: . After removing it from: - name: Scan packages (Unix/Linux) it works fine!

ghost commented 6 years ago

do not think the quotes are the problem. huegelc how do I add it?

TLMcNulty commented 5 years ago

Yeah +1 this, it's not quotes. Scan_packages were removed from Tower and AWX in a prior version despite what someone's github says. ansible-docs --list shows them missing.