8025-awxRefactor-debianBootStrap-FinishWorks #32
|
@ -1 +1,6 @@
|
|||
homes_path: /mnt/homes
|
||||
autofs_packages:
|
||||
- nfs-common
|
||||
- autofs
|
||||
- libnfs-utils
|
||||
- autofs-ldap
|
||||
|
|
|
@ -1,12 +1,7 @@
|
|||
- name: Install autofs packages
|
||||
apt:
|
||||
name: "{{ item }}"
|
||||
name: "{{ autofs_packages }}"
|
||||
state: present
|
||||
with_items:
|
||||
- nfs-common
|
||||
- autofs
|
||||
- libnfs-utils
|
||||
- autofs-ldap
|
||||
- name: Create homes directory
|
||||
file:
|
||||
path: "{{ homes_path }}"
|
||||
|
@ -33,6 +28,6 @@
|
|||
mode: '0644'
|
||||
notify: restart-autofs
|
||||
- name: Service autofs service
|
||||
service:
|
||||
systemd:
|
||||
name: autofs
|
||||
enabled: yes
|
|
@ -12,5 +12,7 @@
|
|||
mode: u=rw,g=r,o=r
|
||||
owner: root
|
||||
group: root
|
||||
register: grub
|
||||
- name: Generate GRUB configuration
|
||||
command: update-grub
|
||||
when: grub.changed
|
||||
|
|
Loading…
Reference in New Issue