Skip to content

Feat/unique user #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Feat/unique user #8

wants to merge 4 commits into from

Conversation

oyale
Copy link
Contributor

@oyale oyale commented Jan 27, 2023

  • Added the boolean sysadmin_multi_user variable to choose the right task file to import
  • Added the checks for sysadmin_multi_user and sysadmin_username at the end of main tasks.
  • Split the logic onto two separate workflows: single user and multi user.
  • Add docs to README.md

Note that the single-user mode does not create the user, it must exist before role execution.

@oyale oyale linked an issue Jan 27, 2023 that may be closed by this pull request
@oyale oyale force-pushed the feat/unique-user branch 2 times, most recently from 9424661 to 6a890fc Compare January 28, 2023 01:07
@oyale oyale marked this pull request as ready for review January 28, 2023 01:12
mode: 0440
group: "{{ sys_admin_group }}"
- import_tasks: multiuser.yml
when: sysadmin_multi_user
Copy link

@enricostano enricostano Jun 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't we just check the length of the list of users? If >1 then import the multi.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Adapt the role to single user mode
2 participants