New role to configure ipa default.conf

This commit is contained in:
Thomas Woerner
2017-08-30 14:35:39 +02:00
parent 5f17e9a778
commit d10d078a42
5 changed files with 39 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
---
ipaconf_default_conf: /etc/ipa/default.conf
ipaconf_basedn:
ipaconf_realm:
ipaconf_domain:
ipaconf_server:
ipaconf_hostname:

View 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: []

View 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

View 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

View File

@@ -0,0 +1,2 @@
krb5_packages:
- krb5-workstation