Files
fedora-infra_ansible/roles/base/handlers/main.yml
Ryan Lerch 462176464b ansiblelint fixes-- fqcn[action-core] - command to ansible.builtin.command
Replaces many references to  command: with ansible.builtin.command

Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2025-01-15 11:26:47 +10:00

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'