-
Notifications
You must be signed in to change notification settings - Fork 0
Setup
Installing directly from ansible galaxy is likely the easiest way and recommended.
For installing into your default ansible collections path:
ansible-galaxy collection install sedi.openaudit
If you want to install in a different collections path (must be enabled in your ansible.cfg):
ansible-galaxy collection install sedi.openaudit [-p <collection-path>]
If you cannot or do not want to install from Ansible Galaxy you can always use the git way as well.
For installing into your default ansible collections path:
ansible-galaxy collection install git+https://github.com/secure-diversITy/ansible_openaudit
If you want to install in a different collections path (must be enabled in your ansible.cfg):
ansible-galaxy collection install git+https://github.com/secure-diversITy/ansible_openaudit [-p <collection-path>]
-
rm -rf <collection-path>/ansible_collections/sedi/openaudit/
(e.g. on linux<collection-path>is~/.ansible/collections).
If you specified a non-standard path in the installation step choose that path, obviously. - remove
sedi.openaudit.inventoryfrom the[inventory]stanza of your ansible.cfg
Option a:
- force install with
ansible-galaxy collection install --force-with-deps
Option b:
- Follow topic "Uninstall" (but skip step-2, i.e skip the ansible.cfg removal)
- Follow topic "Install"
- Create a specific API user account (
Users -> Create User) - Ensure you set proper permissions:
-
Roles (
*indicates mandatory permission, rest depends on what you want to do later):- Endpoint devices:
Create, Read*, Update, Delete - Endpoint orgs:
Create, Read*, Update, Delete - Endpoint locations:
Create, Read*, Update, Delete - Hint: when using the community edition which does not allow to create custom roles, you have to use one of the following available roles:
-
user: when using the dynamic inventory only -
org_admin: if you want to use the action plugin (e.g. add, update a device etc)
-
- Endpoint devices:
-
Organisations (checkbox list):
Grant permission to all orgs this account should has access to. Note: selecting a parent will automatically provide access to its children (although it won't be indicated here).
-
Roles (
You need these created credentials for the next steps in "Module configuration"