Skip to content
Snippets Groups Projects
Commit 57b9a264 authored by Jupiter Hu's avatar Jupiter Hu
Browse files

rename slurm_provision to provision and clean up

parent e76ef9c8
No related branches found
No related tags found
No related merge requests found
...@@ -7,9 +7,3 @@ ...@@ -7,9 +7,3 @@
service: name=rpcidmapd state=restarted service: name=rpcidmapd state=restarted
sudo: true sudo: true
when: ansible_os_family == "RedHat" when: ansible_os_family == "RedHat"
- name: restart authentication
service: name=authentication state=restarted
sudo: true
when: ansible_os_family == "Debian"
...@@ -6,7 +6,6 @@ ...@@ -6,7 +6,6 @@
- name: "Mounting NFS mounts" - name: "Mounting NFS mounts"
mount: name={{ item.name }} src=" {{ item.ipv4 }}:{{ item.src }} " fstype={{ item.fstype }} opts={{ item.opts }} state=mounted mount: name={{ item.name }} src=" {{ item.ipv4 }}:{{ item.src }} " fstype={{ item.fstype }} opts={{ item.opts }} state=mounted
with_items: nfsMounts with_items: nfsMounts
notify: "restart authentication"
notify: "restart rpcbind" notify: "restart rpcbind"
notify: "restart idmap" notify: "restart idmap"
sudo: true sudo: true
...@@ -22,7 +21,6 @@ ...@@ -22,7 +21,6 @@
- name: "Mounting NFS mounts" - name: "Mounting NFS mounts"
mount: name={{ item.name }} src=" {{ item.ipv4 }}:{{ item.src }} " fstype={{ item.fstype }} opts={{ item.opts }} state=mounted mount: name={{ item.name }} src=" {{ item.ipv4 }}:{{ item.src }} " fstype={{ item.fstype }} opts={{ item.opts }} state=mounted
with_items: nfsMounts with_items: nfsMounts
notify: "restart authentication"
notify: "restart idmap" notify: "restart idmap"
notify: "restart rpcbind" notify: "restart rpcbind"
sudo: true sudo: true
......
---
- name: copy provision template
template: src=provision.sh.j2 dest={{ provision }} mode=755 owner=root
sudo: true
- name: provision cron job
cron: name=provision job={{ provision }} user=root minute=*/5 state=present
sudo: true
File moved
---
- name: copy slurm provision template
template: src=slurm_provision.sh.j2 dest={{ slurm_provision }} mode=755 owner=root
sudo: true
- name: slurm cron job
cron: name=slurm_provision job={{ slurm_provision }} user=root minute=*/5 state=present
sudo: true
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment