No description
Find a file
sergio da04add4f7
Merge pull request #9 from nspcc-dev/ignore-errors
ignore-errors in check mode for file installation
2025-05-23 18:58:07 +02:00
.github/workflows workflows: enable DCO check 2023-08-29 23:07:11 +03:00
roles ignore-errors in check mode for file installation 2025-05-23 19:55:51 +03:00
galaxy.yml add readme and galaxy.yml 2023-07-19 09:02:32 +03:00
README.md fix #1, add documentation 2023-11-18 06:45:49 +03:00

nspcc ansible_goodies collection

This is a collection of simple helpers that used frequently:

  • system_user: create a system user
- ansible.builtin.include_role:
    name: nspcc.ansible_goodies.system_user
  vars:
    system_user__user: '<user_name>'
    system_user__group: '<group_name>'
    system_user__home: '<home_directory_absolute_path>'
  • github: get release from github
- ansible.builtin.include_role:
    name: nspcc.ansible_goodies.github
  vars:
    github__org: '<ORGANIZA_NAME>'
    github__repo: '<REPOSITORY_NAME>'
    github__version: '<RELEASE_VERSION>'
    github__asset_name: '<ASSET_NAME>'
    github__args:
      dest: '<ABSOLUTE_PATH_TO_PUT_ASSET>'
      owner: '<target_file_user>'
      group: '<target_file_group>'
      mode: '<target_file_permission>'
    github__notify: [ 'Restart NeoFS REST service' ]
  • mkprivdir: make user-chown'ed directory with root-chown'ed parents
- ansible.builtin.include_role:
    name: nspcc.ansible_goodies.mkprivdir
  vars:
    mkprivdir__dir: '<target_directory_absolute_path>'
    mkprivdir__user: '<target_directory_user>'
    mkprivdir__group: '<target_directory_group>'

It will probably be rewritten in Python in the future.