How do i create a directory structure for a ansible role?



  • ansible-galaxy man page

    $ ansible-galaxy init myrole
    - myrole was created successfully
    

    You might need to install the tree first.

    $ tree myrole
    myrole
    ├── defaults
    │   └── main.yml
    ├── files
    ├── handlers
    │   └── main.yml
    ├── meta
    │   └── main.yml
    ├── README.md
    ├── tasks
    │   └── main.yml
    ├── templates
    ├── tests
    │   ├── inventory
    │   └── test.yml
    └── vars
        └── main.yml
    
    8 directories, 8 files
    

Log in to reply
 

© Lightnetics 2024