macroom: add basic setup
This commit is contained in:
parent
2b56e83941
commit
6298f87803
2 changed files with 26 additions and 0 deletions
2
roles/macroom/handlers/main.yml
Normal file
2
roles/macroom/handlers/main.yml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
- name: reload sshd
|
||||||
|
command: launchctl kickstart -k system/com.openssh.sshd
|
|
@ -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
|
- name: Download R
|
||||||
get_url:
|
get_url:
|
||||||
url: https://cran.r-project.org/bin/macosx/base/R-4.2.1.pkg
|
url: https://cran.r-project.org/bin/macosx/base/R-4.2.1.pkg
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue