user: fix naming of groups additional groups var
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
9599fefad3
commit
eb6db1b65d
|
@ -22,4 +22,4 @@ The `github_webhook_secret` is generated when configuring the webhook in the rep
|
|||
|
||||
The public key associated to `github_webhook_ssh_key` has to be added as a Deploy key in the repository setting.
|
||||
|
||||
The user `github_webhook_service_user` can be added to additional group by overriding the list `github_webhook_user_additional_group`.
|
||||
The user `github_webhook_service_user` can be added to additional group by overriding the list `github_webhook_user_additional_groups`.
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
github_webhook_service_user: 'github'
|
||||
github_webhook_service_user_groups: ['www-data']
|
||||
github_webhook_service_name: '{{ github_webhook_service_user }}-webhook'
|
||||
github_webhook_description: 'GitHub Webhook server for {{ github_webhook_service_user }} repos'
|
||||
# Has to be the UID of Airflow user on the host.
|
||||
|
@ -26,6 +27,3 @@ github_webhook_dependencies:
|
|||
# REQUIRED: details of repo to keep updated
|
||||
#github_webhook_repo_url: ~
|
||||
#github_webhook_repo_branch: ~
|
||||
|
||||
github_wehbook_user_additional_group:
|
||||
- 'www-data'
|
||||
|
|
|
@ -6,10 +6,10 @@
|
|||
|
||||
- name: Create webhook user
|
||||
user:
|
||||
name: '{{ github_webhook_service_user }}'
|
||||
group: '{{ github_webhook_service_user }}'
|
||||
groups: '{{ github_webhook_user_addtional_group }}'
|
||||
uid: '{{ github_webhook_service_user_uid }}'
|
||||
name: '{{ github_webhook_service_user }}'
|
||||
group: '{{ github_webhook_service_user }}'
|
||||
groups: '{{ github_webhook_service_user_groups }}'
|
||||
uid: '{{ github_webhook_service_user_uid }}'
|
||||
create_home: true
|
||||
comment: 'Airflow Webhook User'
|
||||
|
||||
|
|
Loading…
Reference in New Issue