File tree 1 file changed +33
-3
lines changed
files/common/var/lib/delphix-platform/ansible/10-delphix-platform/roles/delphix-platform/tasks
1 file changed +33
-3
lines changed Original file line number Diff line number Diff line change 22
22
# it below; otherwise that task will fail.
23
23
#
24
24
- file :
25
- path : /export/ home
25
+ path : /home
26
26
state : directory
27
27
mode : 0755
28
28
35
35
shell : /bin/bash
36
36
create_home : yes
37
37
comment : Delphix User
38
- home : /export/home/delphix
38
+ home : /home/delphix
39
+
40
+ #
41
+ # When it's an upgrade in that case the home dateset
42
+ # is required to be mounted on mount point /home
43
+ # from the old mount point /export/home
44
+ #
45
+ - command : mount
46
+ register : mount_home
47
+ ignore_errors : True
48
+ - set_fact :
49
+ export_home : " {{ mount_home.stdout | regex_search(export_home_regex, multiline=True)}}"
50
+ vars :
51
+ export_home_regex : " rpool/ROOT/delphix.[a-zA-Z0-9]+/home on /export/home"
52
+ - debug : msg={{ export_home }}
53
+ - replace :
54
+ path : /etc/fstab
55
+ regexp : ' /export/home'
56
+ replace : ' /home'
57
+ when : export_home | length > 0
39
58
40
59
#
41
60
# In order for this locale to be used (e.g. by virtualization) we need
689
708
690
709
- name : Source bash completion
691
710
blockinfile :
692
- dest : " /export/ home/delphix/.bashrc"
711
+ dest : " /home/delphix/.bashrc"
693
712
block : |
694
713
. /etc/bash_completion.d/systemctl
695
714
. /etc/bash_completion.d/zfs
710
729
name : " nullmailer"
711
730
state : " stopped"
712
731
when : not ansible_is_chroot
732
+
733
+ #
734
+ # The presence of the auto_home is an issue
735
+ # because this is also mounted on /home so
736
+ # we need to remove this.
737
+ #
738
+
739
+ - lineinfile :
740
+ path : /etc/auto.master
741
+ line : " /home auto_home -nobrowse"
742
+ state : absent
You can’t perform that action at this time.
0 commit comments