ipa_configuration.yml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # Copyright 2022 Dell Inc. or its subsidiaries. All Rights Reserved.
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS,
  11. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. # See the License for the specific language governing permissions and
  13. # limitations under the License.
  14. ---
  15. - name: Modify the freeipa global password policy
  16. community.general.ipa_pwpolicy:
  17. maxfailcount: "{{ max_failures }}"
  18. failinterval: "{{ failure_reset_interval }}"
  19. lockouttime: "{{ lockout_duration }}"
  20. ipa_host: "{{ server_hostname_ms }}"
  21. ipa_user: "{{ ms_ipa_admin_username }}"
  22. ipa_pass: "{{ ms_kerberos_admin_password }}"
  23. - name: Create sysadmin group
  24. community.general.ipa_group:
  25. name: "{{ sysadmin_user_group }}"
  26. description: "{{ sysadmin_group_description }}"
  27. state: present
  28. ipa_host: "{{ server_hostname_ms }}"
  29. ipa_user: "{{ ms_ipa_admin_username }}"
  30. ipa_pass: "{{ ms_kerberos_admin_password }}"
  31. - name: Create sysadmin_sudo rule
  32. community.general.ipa_sudorule:
  33. name: "{{ sysadmin_sudo_rule }}"
  34. description: "{{ sysadmin_sudo_rule_description }}"
  35. cmdcategory: all
  36. hostcategory: all
  37. runasgroupcategory: all
  38. runasusercategory: all
  39. usergroup:
  40. - "{{ sysadmin_user_group }}"
  41. ipa_host: "{{ server_hostname_ms }}"
  42. ipa_user: "{{ ms_ipa_admin_username }}"
  43. ipa_pass: "{{ ms_kerberos_admin_password }}"