Update README.md

This commit is contained in:
Glenn Y. Rolland 2024-07-12 13:07:34 +00:00
parent addf95e526
commit a83011fa02

View file

@ -1,38 +1,54 @@
Role Name
=========
A brief description of the role goes here.
# Ansible Role: myrepos
Requirements
------------
## Requirements
Any pre-requisites that may not be covered by Ansible itself or the role should be mentioned here. For instance, if the role uses the EC2 module, it may be a good idea to mention in this section that the boto package is required.
None
Role Variables
--------------
## Role Variables
A description of the settable variables for this role should go here, including any variables that are in defaults/main.yml, vars/main.yml, and any variables that can/should be set via parameters to the role. Any variables that are read from other roles and/or the global scope (ie. hostvars, group vars, etc.) should be mentioned here as well.
Available variables are listed below, along with default values (see `defaults/main.yml`):
Dependencies
------------
myrepo_base: ~/src
A list of other roles hosted on Galaxy should go here, plus any details in regards to parameters that may need to be set for other roles, or variables that are used from other roles.
Define the base directory to create personal repositories
Example Playbook
----------------
myrepo_user: root
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
Define the owner of the repositories
- hosts: servers
myrepo_catalogs: []
# - src:
# dest:
# - src:
# dest:
Define a list of repositories. Each repository should be specified as an item with "src" and "dest" keys, representing the source and destination paths, respectively.
## Dependencies
None.
## Example Playbook
- hosts: localhost
vars_files:
- vars/main.yml
roles:
- { role: username.rolename, x: 42 }
- { role: glenux.myrepos }
License
-------
*Inside `vars/main.yml`*:
BSD
myrepo_catalogs:
- src: bar
dest: /foo/bar
- src: foo
dest: /foo/foo
Author Information
------------------
## License
An optional section for the role authors to include contact information, or a website (HTML is not allowed).
GPLv2
## Author Information
glenux