mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-04-30 21:41:53 +08:00
37 lines
863 B
YAML
37 lines
863 B
YAML
---
|
|
- name: Apply interface-changes
|
|
ansible.builtin.command: nmcli con up {{ item.split()[1] }}
|
|
async: 1
|
|
poll: 0
|
|
with_items:
|
|
- "{{ if_uuid.stdout_lines }}"
|
|
|
|
- name: Restart iptables
|
|
service: name=iptables state=restarted
|
|
|
|
- name: Restart nftables
|
|
service: name=nftables state=restarted
|
|
|
|
- name: Restart ip6tables
|
|
service: name=ip6tables state=restarted
|
|
|
|
- name: Restart NetworkManager
|
|
service: name=NetworkManager state=restarted
|
|
|
|
- name: Reload NetworkManager-connections
|
|
ansible.builtin.command: nmcli c reload
|
|
|
|
- name: Restart postfix
|
|
service: name=postfix state=restarted
|
|
|
|
- name: Restart rsyslog
|
|
service: name=rsyslog state=restarted
|
|
|
|
- name: Restart watchdog
|
|
service: name=watchdog state=restarted
|
|
|
|
- name: Reload libvirtd
|
|
service: name=libvirtd state=reloaded
|
|
ignore_errors: true
|
|
when: ansible_virtualization_role == 'host'
|