mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-06-11 11:15:55 +00:00
Ansible for IPA
This commit is contained in:
19
roles/ipaclient/tasks/install.yml
Normal file
19
roles/ipaclient/tasks/install.yml
Normal file
@@ -0,0 +1,19 @@
|
||||
---
|
||||
# tasks file for ipaclient
|
||||
|
||||
- name: Install - Install IPA client package
|
||||
package:
|
||||
name: "{{ ipaclient_package }}"
|
||||
state: present
|
||||
|
||||
- name: Install - Configure IPA client
|
||||
ipaclient:
|
||||
state: present
|
||||
domain: "{{ ipaclient_domain }}"
|
||||
realm: "{{ ipaclient_realm }}"
|
||||
server: "{{ ipaclient_server }}"
|
||||
principal: "{{ ipaclient_principal }}"
|
||||
password: "{{ ipaclient_password }}"
|
||||
keytab: "{{ ipaclient_keytab }}"
|
||||
otp: "{{ ipaclient_otp }}"
|
||||
extra_args: "{{ ipaclient_extraargs }}"
|
||||
16
roles/ipaclient/tasks/main.yml
Normal file
16
roles/ipaclient/tasks/main.yml
Normal file
@@ -0,0 +1,16 @@
|
||||
---
|
||||
# tasks file for ipaclient
|
||||
|
||||
- name: Import variables specific to distribution
|
||||
include_vars: "{{ item }}"
|
||||
with_first_found:
|
||||
- vars/{{ ansible_distribution }}.yml
|
||||
- vars/default.yml
|
||||
|
||||
- name: Install IPA client
|
||||
include: tasks/install.yml
|
||||
when: state|default('present') == 'present'
|
||||
|
||||
- name: Uninstall IPA client
|
||||
include: tasks/uninstall.yml
|
||||
when: state|default('present') == 'absent'
|
||||
11
roles/ipaclient/tasks/uninstall.yml
Normal file
11
roles/ipaclient/tasks/uninstall.yml
Normal file
@@ -0,0 +1,11 @@
|
||||
---
|
||||
# tasks to uninstall IPA client
|
||||
|
||||
- name: Uninstall - Uninstall IPA client
|
||||
ipaclient:
|
||||
state: absent
|
||||
|
||||
#- name: Remove IPA client package
|
||||
# package:
|
||||
# name: "{{ ipaclient_package }}"
|
||||
# state: absent
|
||||
Reference in New Issue
Block a user