mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-05-12 10:56:20 +08:00
We aren't using docker anywhere anymore, so we don't need to uselessly try and restart it all the time. Signed-off-by: Kevin Fenzi <kevin@scrye.com>
34 lines
764 B
YAML
34 lines
764 B
YAML
---
|
|
- name: apply interface-changes
|
|
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 ip6tables
|
|
service: name=ip6tables state=restarted
|
|
|
|
- name: restart NetworkManager
|
|
service: name=NetworkManager state=restarted
|
|
|
|
- name: reload NetworkManager-connections
|
|
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'
|