mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 03:57:02 +08:00
Replaces many references to command: with ansible.builtin.command Signed-off-by: Ryan Lerch <rlerch@redhat.com>
34 lines
796 B
YAML
34 lines
796 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 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'
|