autofs: autofs.conf configuration.
This commit is contained in:
parent
4e901b349c
commit
6d40031c60
|
@ -19,6 +19,14 @@ disks_and_mountpoints_list: []
|
|||
|
||||
# autofs mount points
|
||||
autofs_client_mountpoint: False
|
||||
autofs_conf_options:
|
||||
- { section: 'autofs', option: 'master_map_name', value: '/etc/auto.master', state: 'present' }
|
||||
- { section: 'autofs', option: 'timeout', value: '300', state: 'present' }
|
||||
- { section: 'autofs', option: 'negative_timeout', value: '60', state: 'present' }
|
||||
- { section: 'autofs', option: 'mount_nfs_default_protocol', value: '4', state: 'present' }
|
||||
- { section: 'autofs', option: 'logging', value: 'none', state: 'present' }
|
||||
- { section: 'amd', option: 'dismount_interval', value: '300', state: 'present' }
|
||||
|
||||
autofs_packages_deb:
|
||||
- autofs
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
- name: Install and configure autofs on EL
|
||||
block:
|
||||
- name: Install the autofs packages onn EL
|
||||
- name: Install the autofs packages on EL
|
||||
yum: pkg={{ autofs_packages_el }} state=present
|
||||
|
||||
when: ansible_distribution_file_variety == "RedHat"
|
||||
|
@ -21,6 +21,19 @@
|
|||
file: dest={{ item.mountpoint_prefix }} state=directory owner=root group=root mode=0755
|
||||
with_items: '{{ autofs_maps }}'
|
||||
|
||||
- name: setup autofs.conf
|
||||
ini_file:
|
||||
path: /etc/autofs.conf
|
||||
section: '{{ item.section }}'
|
||||
option: '{{ item.option }}'
|
||||
value: '{{ item.value }}'
|
||||
state: '{{ item.state }}'
|
||||
owner: '{{ gitea_user }}'
|
||||
group: '{{ gitea_group }}'
|
||||
mode: '0640'
|
||||
create: no
|
||||
loop: '{{ autofs_conf_options }}'
|
||||
|
||||
- name: Install the autofs master configuration
|
||||
template: src=auto.master.j2 dest=/etc/auto.master owner=root group=root mode=0644
|
||||
register: reg_autofs_master_conf
|
||||
|
|
Loading…
Reference in New Issue