|
41 | 41 | # tags: pre_tasks_all
|
42 | 42 | become: true
|
43 | 43 | tasks:
|
44 |
| - - include_role: |
| 44 | + - name: Does vs_pre_complete.txt exist |
| 45 | + ansible.builtin.stat: |
| 46 | + path: /root/vs_pre_complete.txt |
| 47 | + register: vs_pre_complete |
| 48 | + |
| 49 | + - name: Pre tasks now |
| 50 | + ansible.builtin.include_role: |
45 | 51 | name: vshpc.prov.pre-tasks
|
| 52 | + when: not vs_pre_complete.stat.exists |
46 | 53 |
|
47 | 54 | # TODO: KBENDL - check compatibility with new playbook
|
48 | 55 | - name: "NREL pre - Mount cephfs volumes"
|
|
52 | 59 | - aco.core.cephfs
|
53 | 60 | become: true
|
54 | 61 | tasks:
|
55 |
| - - include_role: |
| 62 | + - name: Does ceph exist? |
| 63 | + ansible.builtin.stat: |
| 64 | + path: /etc/ceph |
| 65 | + register: vs_does_cephdir |
| 66 | + - name: CephFS now |
| 67 | + ansible.builtin.include_role: |
56 | 68 | name: aco.core.cephfs
|
57 | 69 | tags:
|
58 | 70 | - aco.core.cephfs
|
59 |
| - |
60 |
| - # - name: Set timezone to Americas/Denver |
61 |
| - # timezone: |
62 |
| - # name: America/Denver |
63 |
| - # tags: |
64 |
| - # - pre_set_time_on_servers |
65 |
| - |
66 |
| - # - include_role: |
67 |
| - # name: aco.core.ntp |
68 |
| - # tags: |
69 |
| - # - pre_set_time_on_servers |
70 |
| - |
71 |
| -# - name: "NREL PRE - dnf packages" |
72 |
| -# hosts: all |
73 |
| -# tags: dnf_initial_update |
74 |
| -# become: true |
75 |
| -# tasks: |
76 |
| -# - lineinfile: |
77 |
| -# path: /etc/yum.repos.d/cuda-rhel8.repo |
78 |
| -# regexp: '^enabled' |
79 |
| -# line: enabled=0 |
80 |
| - |
81 |
| -# - name: dnf fix challenging dependency issues |
82 |
| -# dnf: |
83 |
| -# name: "*" |
84 |
| -# nobest: true |
85 |
| -# allowerasing: true |
86 |
| -# skip_broken: true |
87 |
| - |
88 |
| -# - name: "NREL pre - set cluster root password" |
89 |
| -# hosts: all |
90 |
| -# tags: root_pass_cli |
91 |
| -# become: true |
92 |
| -# tasks: |
93 |
| -# - name: include root if called |
94 |
| -# include_role: |
95 |
| -# name: root_pass_cli |
96 |
| -# when: new_root_pass is defined |
97 |
| - |
98 |
| -# - name: "NREL pre - set admin hostnames to hpc.nrel.gov domain" |
99 |
| -# hosts: control,login |
100 |
| -# tags: set_hpc_hostname |
101 |
| -# become: true |
102 |
| -# tasks: |
103 |
| -# - shell: "hostnamectl set-hostname {{ ansible_hostname }}.hpc.nrel.gov" |
104 |
| - |
105 |
| -# This may be fixed now |
106 |
| -# # ref: Error: cannot setup namespace using "/usr/bin/newuidmap": should have setuid or have filecaps setuid: |
107 |
| -# - name: "podman uid-gid workaround" |
108 |
| -# hosts: |
109 |
| -# - cluster |
110 |
| -# become: true |
111 |
| -# tags: |
112 |
| -# - vs_pre |
113 |
| -# - uid_gid_hack |
114 |
| -# tasks: |
115 |
| -# - name: "set newuidmap/newgidmap perms so containers will start" |
116 |
| -# file: |
117 |
| -# path: "{{ item }}" |
118 |
| -# mode: '4755' |
119 |
| -# loop: |
120 |
| -# - /usr/bin/newgidmap |
121 |
| -# - /usr/bin/newuidmap |
122 |
| - |
123 |
| -# TODO - get latest playbook |
124 |
| -# - name: Ensure yum repos are local |
125 |
| -# hosts: all |
126 |
| -# tags: ansible_yum_config |
127 |
| -# become: true |
128 |
| -# tasks: |
129 |
| -# - include_role: |
130 |
| -# name: ansible_yum_config |
131 |
| -# [email protected]:acoinf/vshpc.prov.pre-tasks.git |
| 71 | + when: not vs_does_cephdir.stat.exists |
| 72 | + - name: Tmp umount /home |
| 73 | + ansible.builtin.shell: systemctl stop home.mount |
| 74 | + when: not vs_does_cephdir.stat.exists |
| 75 | + become: true |
0 commit comments