macroom: add basic setup

This commit is contained in:
Timotej Lazar 2024-09-20 16:30:03 +02:00
parent 2b56e83941
commit 6298f87803
2 changed files with 26 additions and 0 deletions

View file

@ -0,0 +1,2 @@
- name: reload sshd
command: launchctl kickstart -k system/com.openssh.sshd

View file

@ -1,3 +1,27 @@
- name: Set hostname
hostname:
name: '{{ inventory_hostname }}'
- name: Set brew paths
lineinfile:
path: '{{ item }}'
line: 'eval "$(/opt/homebrew/bin/brew shellenv)"'
loop:
- /etc/profile
- /etc/zprofile
- name: Disable SSH password authentication
copy:
dest: /etc/ssh/sshd_config.d/ansible.conf
src: sshd.conf
notify: reload sshd
- name: Enable passwordless sudo
community.general.sudoers:
name: passwordless
group: admin
commands: ALL
- name: Download R
get_url:
url: https://cran.r-project.org/bin/macosx/base/R-4.2.1.pkg