ansible_public/playbooks/fast_fixes/add_ldap_service.yaml

23 lines
558 B
YAML
Raw Permalink Normal View History

2022-06-14 18:53:16 +02:00
- hosts: "{{ variable_host | default(lab15_standard) }}"
gather_facts: no
become: yes
tasks:
- name: Create folder /etc/systemd/system/systemd-logind.service.d/
file:
path: /etc/systemd/system/systemd-logind.service.d/
state: directory
- name: Create file /etc/systemd/system/systemd-logind.service.d/override.conf
copy:
dest: /etc/systemd/system/systemd-logind.service.d/override.conf
content: |
[Service]
RestrictAddressFamilies=AF_INET
IPAddressAllow=156.17.9.28
# i deb conf