Code Monkey home page Code Monkey logo

Comments (7)

kurokobo avatar kurokobo commented on September 27, 2024 1

Hi, is your playbook3.yml valid playbook? AWX does not list all existing YAML files but list YAML files that can be determined as playbooks. Also there is no limitation about the depth of the sub directories.

from awx.

YaronL16 avatar YaronL16 commented on September 27, 2024 1

Okay after diving into the code I realize my problem

Apparently the project function skips any directory named roles which is exactly where my playbooks were placed, and ignores any files under it

Thats why my playbooks did not show up, after renaming roles to playbooks it works perfectly

from awx.

TheRealHaoLiu avatar TheRealHaoLiu commented on September 27, 2024

https://github.com/ansible/awx/blob/devel/awx/main/utils/ansible.py/#L42-L66
this is how we determine if a yaml file "could be a playbook"

from awx.

TheRealHaoLiu avatar TheRealHaoLiu commented on September 27, 2024

and here's the regex used to https://github.com/ansible/awx/blob/devel/awx/main/utils/ansible.py#L20 to scan the lines to determine if it "could be a playbook"

from awx.

YaronL16 avatar YaronL16 commented on September 27, 2024

Hi, is your playbook3.yml valid playbook? AWX does not list all existing YAML files but list YAML files that can be determined as playbooks. Also there is no limitation about the depth of the sub directories.

@kurokobo all 3 playbooks are exactly the same. It couldn't be a problem with the file itself

from awx.

YaronL16 avatar YaronL16 commented on September 27, 2024

and here's the regex used to https://github.com/ansible/awx/blob/devel/awx/main/utils/ansible.py#L20 to scan the lines to determine if it "could be a playbook"

That shouldn't make much difference because the playbooks are identical yet only the first two are detected

from awx.

kurokobo avatar kurokobo commented on September 27, 2024

Hmm okay, so please check:

  • Project is synced and its revision is up-to-date, if your project on the SCM.
  • Check if the result contains correct playbooks by querying https://<YOUR AWX>/api/v2/projects/<PROJECT ID>/playbooks/
  • Try super-reloading your browser on the Create New Job Template page

from awx.

Related Issues (20)

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.