Skip to content
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

Add action_groups #93

Closed
peterbaumert opened this issue Feb 8, 2024 · 3 comments · Fixed by #96
Closed

Add action_groups #93

peterbaumert opened this issue Feb 8, 2024 · 3 comments · Fixed by #96

Comments

@peterbaumert
Copy link

SUMMARY

Add action groups so one can specify username, password etc. only once

ISSUE TYPE
  • Feature Idea
COMPONENT NAME

meta/runtime.yml

ADDITIONAL INFORMATION

domain_server would be specified once and then used by all following commands

- name: Check Active Directory
  delegate_to: <win-host>
  module_defaults:
    group/microsoft:
        domain_server: "{{ domain_server }}"
        domain_username: "{{ domain_username }}"
        domain_password: "{{ domain_password }}"
  vars:
    ansible_connection: ssh
    ansible_shell_type: cmd
  block:
    - name: Ensure OU is present & protected
      microsoft.ad.ou:
        name: Fancy_OU
        path: OU=Permissions,OU=Groups,DC=example,DC=com
        state: present
        protect_from_deletion: true

    - name: Ensure other OU is present & protected
      microsoft.ad.ou:
        name: Fancy_OU2
        path: OU=Permissions,OU=Groups,DC=example,DC=com
        state: present
        protect_from_deletion: true
@peterbaumert
Copy link
Author

peterbaumert commented Feb 8, 2024

Maybe something like

action_groups:
  microsoft:
  - computer
  - debug_ldap_client
  - domain
  - domain_controller
  - membership
  - object
  - object_info
  - offline_join
  - ou
  - user

@jborean93
Copy link
Collaborator

This sounds like a good idea, I'll add it to the list of things to do before the next release.

@jborean93
Copy link
Collaborator

Thanks for the feature suggestion, #96 adds the module group microsoft.ad.domain and I've added all the modules that user the domain_{username,password,server} options.

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 a pull request may close this issue.

2 participants