From 9f9aed81765e2397bd4b506ba72d3738d6e58756 Mon Sep 17 00:00:00 2001 From: Marco Ochse Date: Sat, 1 Jul 2023 01:23:57 +0200 Subject: [PATCH] tweaking --- installer/install/tpot.yml | 40 +++++++++++++++++++++++--------------- 1 file changed, 24 insertions(+), 16 deletions(-) diff --git a/installer/install/tpot.yml b/installer/install/tpot.yml index 819d1466..18afefa9 100644 --- a/installer/install/tpot.yml +++ b/installer/install/tpot.yml @@ -284,31 +284,39 @@ line: 'SELINUX=permissive' when: ansible_distribution in ["Fedora"] + - name: Stop Docker + service: + name: docker + state: stopped + when: ansible_distribution in ["Fedora", "Ubuntu"] + + - name: Stop Resolved + service: + name: systemd-resolved + state: stopped + when: ansible_distribution in ["Fedora", "Ubuntu"] + - name: Modify DNSStubListener in resolved.conf (Fedora, Ubuntu) lineinfile: path: /etc/systemd/resolved.conf regexp: '^.*DNSStubListener=.*' line: 'DNSStubListener=no' state: present - notify: - - Restart Resolved - - Restart Docker + when: ansible_distribution in ["Fedora", "Ubuntu"] + + - name: Start Resolved + service: + name: systemd-resolved + state: started + when: ansible_distribution in ["Fedora", "Ubuntu"] + + - name: Start Docker + service: + name: docker + state: started when: ansible_distribution in ["Fedora", "Ubuntu"] handlers: - - name: Restart Docker - service: - name: docker - state: restarted - enabled: true - when: ansible_distribution in ["Fedora", "Ubuntu"] - - - name: Restart Resolved - service: - name: systemd-resolved - state: restarted - when: ansible_distribution in ["Fedora", "Ubuntu"] - - name: Restart SSH service: name: "{{ 'sshd' if ansible_distribution in ['Debian', 'openSUSE Tumbleweed'] else 'ssh' }}"