Skip to content

PR support for RHEL 9 (Plow) + ansible-core 2.13.3 #299

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tasks/restart_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
dest: /etc/systemd/system/{{item}}.service.d/restart.conf

- name: restart services
service:
systemd:
name: "{{ item }}"
state: restarted
daemon_reload: yes
Expand Down
62 changes: 49 additions & 13 deletions tasks/set_facts_.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,12 @@
- set_fact:
networkifacename: "{{ ansible_default_ipv4.interface }}"

- block:
- set_fact:
critical_services:
- httpd
- named
- haproxy

- block:
- set_fact:
critical_services: "{{ critical_services }} + [ 'dhcpd' ]"
- set_fact:
critical_services: "['dhcpd', 'httpd', 'named', 'haproxy']"
when: not staticips

- block:
- set_fact:
critical_services: "{{ critical_services }} + [ 'keepalived' ]"
- set_fact:
critical_services: "['keepalived', 'httpd', 'named', 'haproxy']"
when: high_availability is defined

- block:
Expand Down Expand Up @@ -130,3 +121,48 @@
- rpcbind
- nfs-server
when: ansible_distribution_major_version >= "8"

- block:
- set_fact:
packages:
- bind
- bind-utils
- firewalld
- haproxy
- httpd
- vim
- bash-completion
- python3-libselinux
- podman
- nfs-utils
- grub2-tools
- grub2-tools-extra

- set_fact:
dhcppkgs:
- dhcp-server
- tftp-server

- set_fact:
syslinuxpkgs:
- syslinux

- set_fact:
uefipkgs:
- shim-x64
- grub2-efi-x64

# See Fedora Wiki for changes:
# https://fedoraproject.org/wiki/Changes/RenameNobodyUser
- set_fact:
owner: nobody
group: nobody

- set_fact:
services:
- named
- haproxy
- httpd
- rpcbind
- nfs-server
when: ansible_distribution_major_version >= "9"