mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-04-17 22:31:10 +00:00
New role to configure ipa default.conf
This commit is contained in:
8
roles/ipaconf/defaults/main.yml
Normal file
8
roles/ipaconf/defaults/main.yml
Normal file
@@ -0,0 +1,8 @@
|
||||
---
|
||||
ipaconf_default_conf: /etc/ipa/default.conf
|
||||
|
||||
ipaconf_basedn:
|
||||
ipaconf_realm:
|
||||
ipaconf_domain:
|
||||
ipaconf_server:
|
||||
ipaconf_hostname:
|
||||
12
roles/ipaconf/meta/main.yml
Normal file
12
roles/ipaconf/meta/main.yml
Normal file
@@ -0,0 +1,12 @@
|
||||
galaxy_info:
|
||||
author: Thomas Woerner
|
||||
description: A role to configure IPA default.conf
|
||||
company: Red Hat, Inc
|
||||
|
||||
license: GPLv2+
|
||||
|
||||
min_ansible_version: 2.0
|
||||
|
||||
galaxy_tags: [ 'identity', 'ipa']
|
||||
|
||||
dependencies: []
|
||||
9
roles/ipaconf/tasks/main.yml
Normal file
9
roles/ipaconf/tasks/main.yml
Normal file
@@ -0,0 +1,9 @@
|
||||
---
|
||||
- name: Template IPA default.conf
|
||||
template:
|
||||
src: default.conf.j2
|
||||
dest: "{{ ipaconf_default_conf }}"
|
||||
backup: yes
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
8
roles/ipaconf/templates/default.conf.j2
Normal file
8
roles/ipaconf/templates/default.conf.j2
Normal file
@@ -0,0 +1,8 @@
|
||||
[global]
|
||||
basedn = {{ ipaconf_basedn }}
|
||||
realm = {{ ipaconf_realm }}
|
||||
domain = {{ ipaconf_domain }}
|
||||
server = {{ ipaconf_server }}
|
||||
host = {{ ipaconf_hostname }}
|
||||
xmlrpc_uri = {{ 'https://' + ipaconf_server + '/ipa/xml' }}
|
||||
enable_ra = True
|
||||
2
roles/ipaconf/vars/default.yml
Normal file
2
roles/ipaconf/vars/default.yml
Normal file
@@ -0,0 +1,2 @@
|
||||
krb5_packages:
|
||||
- krb5-workstation
|
||||
Reference in New Issue
Block a user