diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..94c16f4 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,5 @@ + +## v1.X + +### Features +* Install FlexLM dependencies. diff --git a/README.md b/README.md new file mode 100644 index 0000000..b4cfac8 --- /dev/null +++ b/README.md @@ -0,0 +1,58 @@ +# Flexlm + +1. [Overview](#overview) +2. [Role Variables](#role-variables) +3. [Example Playbook](#example-playbook) +4. [Configuration](#configuration) +5. [Development](#development) +6. [License](#license) +7. [Author Information](#author-information) + +## Overview + +A role to manage Flexlm daemon. + +## Role Variables + +* **flexlm__packages_state** : State of package(s) [default : `present`]. +* **flexlm__packages_manage** : If package(s) should be managed with this role [default : `True`]. +* **flexlm__dependent_packages** : List of additional packages requested as 'flexlm' dependencies [default : `lsb-core`, `unzip`] + +## Example Playbook + +* Manage Flexlm with defaults vars : + +``` yml +- hosts: serverXYZ + roles: + - role: ipr-cnrs.flexlm +``` + +## Configuration + +This role will : +* Do nothing right now. + +## Development + +This source code comes from our [Gogs instance][flexlm source] and the [Github repo][flexlm github] exist just to be able to send the role to Ansible Galaxy… + +But feel free to send issue/PR anywhere :) + +Thanks to this [hook][gogs to github hook], Github automatically got updates from our [Gogs instance][flexlm source] :) + +## License + +[WTFPL][wtfpl website] + +## Author Information + +Jérémy Gardais +* Source : [on IPR's Gogs][flexlm source] +* [IPR][ipr website] (Institut de Physique de Rennes) + +[gogs to github hook]: https://stackoverflow.com/a/21998477 +[flexlm source]: https://git.ipr.univ-rennes1.fr/cellinfo/ansible.flexlm +[flexlm github]: https://github.com/ipr-cnrs/flexlm +[wtfpl website]: http://www.wtfpl.net/about/ +[ipr website]: https://ipr.univ-rennes1.fr/ diff --git a/defaults/main.yml b/defaults/main.yml new file mode 100644 index 0000000..ad82cac --- /dev/null +++ b/defaults/main.yml @@ -0,0 +1,8 @@ +--- +# defaults file for flexlm + +# packages +flexlm__packages_state: 'present' +flexlm__packages_manage: True +flexlm__dependent_packages: [ 'lsb-core', 'unzip' ] + diff --git a/tasks/main.yml b/tasks/main.yml new file mode 100644 index 0000000..88864bf --- /dev/null +++ b/tasks/main.yml @@ -0,0 +1,15 @@ +--- +# tasks file for flexlm + +# package {{{ +- name: INSTALL FlexLM packages + package: + name: '{{ item }}' + state: '{{ flexlm__packages_state }}' + install_recommends: False + with_flattened: + - '{{ flexlm__dependent_packages }}' + when: flexlm__packages_manage + +# }}} +