Skip to content
Snippets Groups Projects
Commit 07df90ca authored by Bo-Chun Chen's avatar Bo-Chun Chen
Browse files

Remove unused entry in master map

parent e752bfb2
No related branches found
No related tags found
No related merge requests found
...@@ -12,6 +12,17 @@ ...@@ -12,6 +12,17 @@
- { dir: /data/user, mode: '0755' } - { dir: /data/user, mode: '0755' }
- { dir: /data/project, mode: '0755' } - { dir: /data/project, mode: '0755' }
- name: Remove unused entry in master map
ansible.builtin.replace:
dest: /etc/auto.master
regexp: '{{ item.regexp }}'
replace: '{{ item.replace }}'
backup: true
loop:
- { regexp: '^(/misc)', replace: '#\1' }
- { regexp: '^(/net)', replace: '#\1' }
- { regexp: '^(\+auto.master)', replace: '#\1' }
- name: Add master map file - name: Add master map file
ansible.builtin.lineinfile: ansible.builtin.lineinfile:
path: "/etc/auto.master.d/gpfs.autofs" path: "/etc/auto.master.d/gpfs.autofs"
......
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