community / community.general / 0.1.1 / module / heroku_collaborator Add or delete app collaborators on Heroku Authors: Marcel Arns (@marns93) preview | supported by communitycommunity.general.heroku_collaborator (0.1.1) — module
Install with ansible-galaxy collection install community.general:==0.1.1
collections: - name: community.general version: 0.1.1
Manages collaborators for Heroku apps.
If set to C(present) and heroku user is already collaborator, then do nothing.
If set to C(present) and heroku user is not collaborator, then add user to app.
If set to C(absent) and heroku user is collaborator, then delete user from app.
- heroku_collaborator: api_key: YOUR_API_KEY user: max.mustermann@example.com apps: heroku-example-app state: present
- heroku_collaborator: api_key: YOUR_API_KEY user: '{{ item.user }}' apps: '{{ item.apps | default(apps) }}' suppress_invitation: '{{ item.suppress_invitation | default(suppress_invitation) }}' state: '{{ item.state | default("present") }}' with_items: - { user: 'a.b@example.com' } - { state: 'absent', user: 'b.c@example.com', suppress_invitation: false } - { user: 'x.y@example.com', apps: ["heroku-example-app"] }
apps: description: - List of Heroku App names required: true user: description: - User ID or e-mail required: true state: choices: - present - absent default: present description: - Create or remove the heroku collaborator api_key: description: - Heroku API key suppress_invitation: default: 'no' description: - Suppress email invitation when creating collaborator type: bool