sudoers
This commit is contained in:
1
roles/base/files/users/sudoers_wheel
Normal file
1
roles/base/files/users/sudoers_wheel
Normal file
@@ -0,0 +1 @@
|
|||||||
|
%wheel ALL=(ALL) ALL
|
||||||
@@ -22,7 +22,8 @@
|
|||||||
path: "/etc/ssh/sshd_config"
|
path: "/etc/ssh/sshd_config"
|
||||||
line: "Include /etc/ssh/sshd_config.d/*.conf"
|
line: "Include /etc/ssh/sshd_config.d/*.conf"
|
||||||
state: present
|
state: present
|
||||||
insertbefore: "^Port.*$"
|
insertbefore: "^#?Port.*$"
|
||||||
|
notify: restart_sshd
|
||||||
|
|
||||||
- name: system setup | openssh | copy sshd custom config
|
- name: system setup | openssh | copy sshd custom config
|
||||||
tags: openssh,ssh,system,settings
|
tags: openssh,ssh,system,settings
|
||||||
|
|||||||
@@ -88,3 +88,11 @@
|
|||||||
become_user: '{{ user }}'
|
become_user: '{{ user }}'
|
||||||
shell: "POWERLINE=n BASHIT=y ZSHCUSTOM=n {{ getent_passwd[user][4] }}/dotfiles/install.sh"
|
shell: "POWERLINE=n BASHIT=y ZSHCUSTOM=n {{ getent_passwd[user][4] }}/dotfiles/install.sh"
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
|
|
||||||
|
- name: users | all | add sudoers file
|
||||||
|
copy:
|
||||||
|
src: users/sudoers_wheel
|
||||||
|
dest: /etc/sudoers.d/wheel
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
mode: 0440
|
||||||
Reference in New Issue
Block a user