From b2583f70782ad91786cb0b6f1c44367b3cf635f2 Mon Sep 17 00:00:00 2001
From: Thomas Woerner <twoerner@redhat.com>
Date: Mon, 23 Jul 2018 11:02:59 +0200
Subject: [PATCH] Ubuntu support added (partly pick from pyguy)

This is a partly pick of the changes done by pyguy for pull request #28.
The unrelated changed on inventory files have been removed and the change
to the README has been adapted to use the "Supported Distributions" section.

The original commits by pyguy in https://github.com/pyguy/ansible-freeipa
are:

commit 1ed1fa845eafd69432b1fd1fc8e5329e4991e84a
Author: pyguy <hr.josheghani@gmail.com>
Date:   Mon Jun 25 17:17:31 2018 +0430

    Ubuntu Support added

commit 9a4a7c84e4af20af27e814aba4fc2c6b8b35ec0f
Author: pyguy <hr.josheghani@gmail.com>
Date:   Sun Jun 24 10:58:07 2018 +0430

    Ubuntu support added
---
 README.md                        | 1 +
 roles/ipaclient/vars/Ubuntu.yml  | 2 ++
 roles/ipareplica/vars/Ubuntu.yml | 4 ++++
 roles/ipaserver/vars/Ubuntu.yml  | 4 ++++
 4 files changed, 11 insertions(+)
 create mode 100644 roles/ipaclient/vars/Ubuntu.yml
 create mode 100644 roles/ipareplica/vars/Ubuntu.yml
 create mode 100644 roles/ipaserver/vars/Ubuntu.yml

diff --git a/README.md b/README.md
index 4ac7383a..b111d0d3 100644
--- a/README.md
+++ b/README.md
@@ -15,6 +15,7 @@ Supported Distributions
 
 * RHEL/CentOS 7.4+
 * Fedora 26+
+* Ubuntu
 
 Roles
 -----
diff --git a/roles/ipaclient/vars/Ubuntu.yml b/roles/ipaclient/vars/Ubuntu.yml
new file mode 100644
index 00000000..ded2f5e0
--- /dev/null
+++ b/roles/ipaclient/vars/Ubuntu.yml
@@ -0,0 +1,2 @@
+# vars/Ubuntu.yml
+ipaclient_packages: [ "freeipa-client" ]
diff --git a/roles/ipareplica/vars/Ubuntu.yml b/roles/ipareplica/vars/Ubuntu.yml
new file mode 100644
index 00000000..ad493128
--- /dev/null
+++ b/roles/ipareplica/vars/Ubuntu.yml
@@ -0,0 +1,4 @@
+# vars/Ubuntu.yml
+ipareplica_packages: [ "freeipa-server" ]
+ipareplica_packages_dns: [ "freeipa-server-dns" ]
+ipareplica_packages_adtrust: [ ]
diff --git a/roles/ipaserver/vars/Ubuntu.yml b/roles/ipaserver/vars/Ubuntu.yml
new file mode 100644
index 00000000..f668c93b
--- /dev/null
+++ b/roles/ipaserver/vars/Ubuntu.yml
@@ -0,0 +1,4 @@
+# vars/Ubuntu.yml
+ipaserver_packages: [ "freeipa-server" ]
+ipaserver_packages_dns: [ "freeipa-server-dns" ]
+ipaserver_packages_adtrust: [ ]
-- 
GitLab