ansible / ansible.builtin / v2.7.9 / module / heroku_collaborator Add or delete app collaborators on Heroku | "added in version" 2.6 of ansible.builtin" Authors: Marcel Arns (@marns93) preview | supported by communityansible.builtin.heroku_collaborator (v2.7.9) — module
pip
Install with pip install ansible==2.7.9
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