From a67514529bf51b776feeb1724ff23079b9549718 Mon Sep 17 00:00:00 2001 From: clarkzjw Date: Fri, 13 Jan 2023 14:01:26 -0800 Subject: fix init --- clarkzjw.ca/config/atlas/init.yaml | 4 ++-- clarkzjw.ca/config/atlas/roles/debian_init/tasks/main.yaml | 1 + clarkzjw.ca/config/atlas/roles/init/tasks/main.yaml | 3 --- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/clarkzjw.ca/config/atlas/init.yaml b/clarkzjw.ca/config/atlas/init.yaml index d8c8ef9..3226121 100644 --- a/clarkzjw.ca/config/atlas/init.yaml +++ b/clarkzjw.ca/config/atlas/init.yaml @@ -1,8 +1,8 @@ --- - name: Init hosts: storinator - remote_user: clarkzjw - gather_facts: false + remote_user: root + gather_facts: true roles: - role: init diff --git a/clarkzjw.ca/config/atlas/roles/debian_init/tasks/main.yaml b/clarkzjw.ca/config/atlas/roles/debian_init/tasks/main.yaml index 0eefdef..845af8d 100644 --- a/clarkzjw.ca/config/atlas/roles/debian_init/tasks/main.yaml +++ b/clarkzjw.ca/config/atlas/roles/debian_init/tasks/main.yaml @@ -20,6 +20,7 @@ - unzip - gnupg - rsync + - sudo - htop - curl - tree diff --git a/clarkzjw.ca/config/atlas/roles/init/tasks/main.yaml b/clarkzjw.ca/config/atlas/roles/init/tasks/main.yaml index 35284bd..eb3f03b 100644 --- a/clarkzjw.ca/config/atlas/roles/init/tasks/main.yaml +++ b/clarkzjw.ca/config/atlas/roles/init/tasks/main.yaml @@ -2,10 +2,8 @@ group: name: wheel state: present - become_user: root - name: Allow 'wheel' group to have passwordless sudo - become_user: root lineinfile: dest: /etc/sudoers state: present @@ -14,7 +12,6 @@ validate: visudo -cf %s - name: Add sudoers users to wheel group - become_user: root user: name: clarkzjw groups: wheel -- cgit v1.2.3