blob: f0920f3c12b737f8062e5d947bc9781fa54339fb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
- name: create freeipa user
ipauser:
ipaadmin_principal: '{{ ipa_user }}'
ipaadmin_password: '{{ ipa_pass }}'
name: '{{ archive_user }}'
loginshell: /bin/bash
homedir: '{{ archive_home }}'
givenname: archive
sn: Service Account
state: present
run_once: True
- name: create archive-clients hostgroup
ipahostgroup:
ipaadmin_principal: '{{ ipa_user }}'
ipaadmin_password: '{{ ipa_pass }}'
name: '{{ archive_clients_hbac_hostgroup }}'
description: Archive Clients
state: present
run_once: True
- name: create HBAC rule for ssh
ipahbacrule:
ipaadmin_principal: '{{ ipa_user }}'
ipaadmin_password: '{{ ipa_pass }}'
name: archive_ssh_to_archive_clients
description: Allow archive user to ssh to archive clients
user:
- '{{ archive_user }}'
hostgroup:
- '{{ archive_clients_hbac_hostgroup }}'
hbacsvc: sshd
run_once: True
- name: retrieve user keytab
include_role:
name: freeipa_keytab
vars:
keytab_principal: '{{ archive_user }}'
keytab_path: '{{ archive_keytab }}'
- name: configure gssproxy for kerberized nfs
include_role:
name: gssproxy_client
vars:
gssproxy_name: archiver
gssproxy_section: service/archiver
gssproxy_keytab: /etc/krb5.keytab
gssproxy_client_keytab: '{{ archive_keytab }}'
gssproxy_cred_usage: initiate
gssproxy_euid: '{{ archive_user }}'
|