Setup the /etc/idmapd.conf file
This commit is contained in:
parent
7237177e5a
commit
581f7c74d5
|
@ -11,12 +11,18 @@ locales_list:
|
||||||
- { name: 'it_IT.UTF-8' }
|
- { name: 'it_IT.UTF-8' }
|
||||||
- { name: 'it_IT' }
|
- { name: 'it_IT' }
|
||||||
|
|
||||||
|
domain_name: '{{ ansible_domain }}'
|
||||||
#
|
#
|
||||||
# Define the following variables to manage additional disks and mount points, even static nfs ones
|
# Define the following variables to manage additional disks and mount points, even static nfs ones
|
||||||
additional_disks: False
|
additional_disks: False
|
||||||
disks_and_mountpoints_list: []
|
disks_and_mountpoints_list: []
|
||||||
# - { mountpoint: '/data', device: 'xvda3', fstype: 'xfs', opts: 'noatime', state: 'mounted', create_filesystem: True }
|
# - { mountpoint: '/data', device: 'xvda3', fstype: 'xfs', opts: 'noatime', state: 'mounted', create_filesystem: True }
|
||||||
|
|
||||||
|
idmap_verbosity: 0
|
||||||
|
idmap_conf_options:
|
||||||
|
- { section: 'General', option: 'Domain', value: '{{ domain_name }}', state: 'present' }
|
||||||
|
- { section: 'General', option: 'Verbosity', value: '{{ idmap_verbosity }}', state: 'present' }
|
||||||
|
|
||||||
# autofs mount points
|
# autofs mount points
|
||||||
autofs_client_mountpoint: False
|
autofs_client_mountpoint: False
|
||||||
autofs_conf_options:
|
autofs_conf_options:
|
||||||
|
|
|
@ -21,6 +21,19 @@
|
||||||
file: dest={{ item.mountpoint_prefix }} state=directory owner=root group=root mode=0755
|
file: dest={{ item.mountpoint_prefix }} state=directory owner=root group=root mode=0755
|
||||||
with_items: '{{ autofs_maps }}'
|
with_items: '{{ autofs_maps }}'
|
||||||
|
|
||||||
|
- name: setup idmap.conf
|
||||||
|
ini_file:
|
||||||
|
path: /etc/idmapd.conf
|
||||||
|
section: '{{ item.section }}'
|
||||||
|
option: '{{ item.option }}'
|
||||||
|
value: '{{ item.value }}'
|
||||||
|
state: '{{ item.state }}'
|
||||||
|
owner: 'root'
|
||||||
|
group: 'root'
|
||||||
|
mode: '0644'
|
||||||
|
create: no
|
||||||
|
loop: '{{ idmap_conf_options }}'
|
||||||
|
|
||||||
- name: setup autofs.conf
|
- name: setup autofs.conf
|
||||||
ini_file:
|
ini_file:
|
||||||
path: /etc/autofs.conf
|
path: /etc/autofs.conf
|
||||||
|
|
Loading…
Reference in New Issue