From 2df419d71028a4f699a98d897439b89e15f4e72a Mon Sep 17 00:00:00 2001 From: Emil Renner Berthing Date: Sat, 6 Oct 2018 22:56:32 +0200 Subject: fedora: align with debian role --- roles/space_server/tasks/main.yml | 4 ---- roles/space_server/tasks/networkd.yml | 13 ------------- roles/space_server/tasks/resolved.yml | 34 ---------------------------------- roles/space_server/tasks/timesyncd.yml | 15 --------------- 4 files changed, 66 deletions(-) delete mode 100644 roles/space_server/tasks/resolved.yml delete mode 100644 roles/space_server/tasks/timesyncd.yml (limited to 'roles/space_server/tasks') diff --git a/roles/space_server/tasks/main.yml b/roles/space_server/tasks/main.yml index 294d655..ba6e8ca 100644 --- a/roles/space_server/tasks/main.yml +++ b/roles/space_server/tasks/main.yml @@ -15,10 +15,6 @@ tags: kernel - import_tasks: gettys.yml tags: gettys -- import_tasks: timesyncd.yml - tags: timesyncd -- import_tasks: resolved.yml - tags: resolved - import_tasks: networkd.yml tags: networkd - import_tasks: nftables.yml diff --git a/roles/space_server/tasks/networkd.yml b/roles/space_server/tasks/networkd.yml index 6b0ff48..0059ed6 100644 --- a/roles/space_server/tasks/networkd.yml +++ b/roles/space_server/tasks/networkd.yml @@ -44,17 +44,4 @@ group: root mode: 0644 -- name: Enable systemd-networkd - systemd: - name: systemd-networkd.service - enabled: yes - masked: no - state: started - when: not chroot -- name: '- when in chroot' - command: systemctl enable systemd-networkd.service - args: - creates: '/etc/systemd/system/multi-user.target.wants/systemd-networkd.service' - when: chroot - # vim: set ts=2 sw=2 et: diff --git a/roles/space_server/tasks/resolved.yml b/roles/space_server/tasks/resolved.yml deleted file mode 100644 index 1bbae10..0000000 --- a/roles/space_server/tasks/resolved.yml +++ /dev/null @@ -1,34 +0,0 @@ ---- -#- name: Enable systemd-resolved -# systemd: -# name: systemd-resolved.service -# enabled: yes -# masked: no -# state: started -# when: not chroot -#- name: '- when in chroot' -# command: systemctl enable systemd-resolved.service -# args: -# creates: '/etc/systemd/system/multi-user.target.wants/systemd-resolved.service' -# when: chroot -# -#- name: Use systemd-resolved -# lineinfile: -# path: '/etc/nsswitch.conf' -# regexp: '^hosts:' -# line: 'hosts: files resolve [!UNAVAIL=return] dns myhostname' - -- name: Disable systemd-resolved - systemd: - name: systemd-resolved.service - enabled: no - masked: no - state: stopped - when: not chroot -- name: '- when in chroot' - command: systemctl disable systemd-resolved.service - args: - removes: '/etc/systemd/system/multi-user.target.wants/systemd-resolved.service' - when: chroot - -# vim: set ts=2 sw=2 et: diff --git a/roles/space_server/tasks/timesyncd.yml b/roles/space_server/tasks/timesyncd.yml deleted file mode 100644 index 3217889..0000000 --- a/roles/space_server/tasks/timesyncd.yml +++ /dev/null @@ -1,15 +0,0 @@ ---- -- name: Enable systemd-timesyncd - systemd: - name: systemd-timesyncd.service - enabled: yes - masked: no - state: started - when: not chroot -- name: '- when in chroot' - command: systemctl enable systemd-timesyncd.service - args: - creates: '/etc/systemd/system/sysinit.target.wants/systemd-timesyncd.service' - when: chroot - -# vim: set ts=2 sw=2 et: -- cgit v1.2.1