From 7e26fd1d0b1dc8ecea10bfacd96cf4e48236121b Mon Sep 17 00:00:00 2001 From: Emil Renner Berthing Date: Thu, 27 Feb 2020 18:26:55 +0100 Subject: space_server: move sudo tasks to fedora role ..to align with debian role --- roles/fedora/tasks/main.yml | 2 ++ roles/fedora/tasks/sudo.yml | 11 +++++++++++ 2 files changed, 13 insertions(+) create mode 100644 roles/fedora/tasks/sudo.yml (limited to 'roles/fedora/tasks') diff --git a/roles/fedora/tasks/main.yml b/roles/fedora/tasks/main.yml index de4c160..e3f69a3 100644 --- a/roles/fedora/tasks/main.yml +++ b/roles/fedora/tasks/main.yml @@ -22,5 +22,7 @@ tags: timesyncd - import_tasks: sshd.yml tags: sshd +- import_tasks: sudo.yml + tags: sudo # vim: set ts=2 sw=2 et: diff --git a/roles/fedora/tasks/sudo.yml b/roles/fedora/tasks/sudo.yml new file mode 100644 index 0000000..7125a4b --- /dev/null +++ b/roles/fedora/tasks/sudo.yml @@ -0,0 +1,11 @@ +--- +- name: Install sudoers file + copy: + dest: '/etc/sudoers' + src: sudoers + owner: root + group: root + mode: 0440 + validate: visudo -cf %s + +# vim: set ts=2 sw=2 et: -- cgit v1.2.1