fretlink.rundeck_jobs
Rundeck jobs
This role synchronize a directory containing yaml definition of jobs with a rundeck project
Requirements
jmespathpython module
Role Variables
rundeck_jobs_pathpath of the directory containing the job definition (mandatory).rundeck_projectname of the rundeck project (mandatory).rundeck_api_urlbase url of api (mandatory).rundeck_api_tokenthe authentification token (mandatory).rundeck_api_versionapi version supported by rundeck server. Default to 26.rundeck_remove_missingWhether to delete jobs present in rundeck and not in file. Defaults to true.rundeck_jobs_groupthe group of job to check for removalrundeck_ignore_creation_errorswhether to ignore job creation error. Default to true to follow the 200 status given by rundeck APIrundeck_jobs_keysa list of keys to import in rundeck. Each key is a dict with apath, avalueand atypeas declared in https://docs.rundeck.com/3.0.x/api/index.html#upload-keys.rundeck_keys_scoped_by_projectscope each key by project (In a project/ProjectName subdirectory)rundeck_keys_scoped_by_groupscope each key by group. Defaults to true if the group is defined, false otherwiserundeck_remove_missing_keysremove keys that are not declared in ansible (possibly restrained to the scope defined above)
A dhall Type representing the roles' variables is available in the ./dhall/Config.dhall file to help you configure your projects with some type checking.
Dependencies
None
Example Playbook
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
- hosts: servers
vars:
rundeck_api_url: rundeck.example.com
rundeck_project: test
rundeck_jobs_path: /tmp/rundeck-jobs
roles:
- rundeck-jobs
License
BSD
Author Information
FretLink, Love and Truck
Install
ansible-galaxy install fretlink.rundeck_jobsLicense
Unknown
Downloads
91
Owner
FretLink, the best solution to organize your transport and track your freight!
