@ -6,8 +6,8 @@ preflight__timezone: UTC
firewall__ssh_rule: limit
# User
user: "admin"
group: "admin"
user: "ops"
group: "ops"
# SSH Config
ssh__port: 4554
@ -4,12 +4,12 @@
name: "{{ group }}"
state: present
- name: linode_preflight | add_user | Allow 'admin' group to have passwordless sudo
- name: linode_preflight | add_user | Allow admin group to have passwordless sudo
lineinfile:
dest: /etc/sudoers
regexp: '^%admin'
line: '%admin ALL=(ALL) NOPASSWD: ALL'
regexp: '^%{{ group }}'
line: '%{{ group }} ALL=(ALL) NOPASSWD: ALL'
validate: 'visudo -cf %s'
become: yes