ansible-ipa-management/tasks/domain-prework.yml

43 lines
867 B
YAML
Raw Normal View History

2023-04-22 07:58:06 +00:00
---
- name: Ensure epel-release and firewalld are installed
ansible.builtin.dnf:
name:
- epel-release
- firewalld
state: present
notify:
- enable_firewalld
- enable_crb
# We need this immediately.
- name: Flush handlers
ansible.builtin.meta: flush_handlers
- name: Ensure 'dns=none' is set for Network Manager
community.general.ini_file:
path: /etc/NetworkManager/NetworkManager.conf
state: present
no_extra_spaces: true
section: main
option: dns
value: none
owner: root
group: root
mode: '0644'
backup: true
notify:
- reload_networkmanager
- name: Install ipa-fas
ansible.builtin.dnf:
name: ipa-fas
state: present
- name: Open firewalld service before hand
ansible.posix.firewalld:
service: freeipa-4
permanent: true
immediate: true
state: enabled
...