Setup the /etc/idmapd.conf file

This commit is contained in:
Andrea Dell'Amico 2021-07-01 17:14:16 +02:00
parent 7237177e5a
commit 581f7c74d5
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
2 changed files with 19 additions and 0 deletions

View File

@ -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:

View File

@ -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