Skip to content

Instantly share code, notes, and snippets.

@jtprogru
Last active February 22, 2022 18:25
Show Gist options
  • Save jtprogru/b600bcd3ad397ddc52fd2082d016459e to your computer and use it in GitHub Desktop.
Save jtprogru/b600bcd3ad397ddc52fd2082d016459e to your computer and use it in GitHub Desktop.
Список софта для быстрой установки из Homebrew, Mac App Store, настройка hostname
---
- name: macOS
hosts: localhost
connection: local
become: false
gather_facts: true
vars:
macos_hostname: "cronus"
taps:
- "hashicorp/tap"
- "homebrew/bundle"
- "homebrew/cask"
- "homebrew/cask-fonts"
- "homebrew/cask-versions"
- "homebrew/core"
- "homebrew/services"
base_soft:
- "ansible"
- "bash"
- "coreutils"
- "curl"
- "freetype"
- "fzf"
- "gh"
- "git"
- "go"
- "httpie"
- "imagemagick"
- "jq"
- "mas"
- "ncdu"
- "neofetch"
- "neovim"
- "newsboat"
- "node"
- "nvm"
# - "postgresql@13"
- "python@3.9"
- "ranger"
# - "redis"
- "rg"
- "rsync"
- "ruby"
- "screen"
- "shellcheck"
- "speedtest-cli"
- "sqlite"
- "telnet"
- "tig"
- "tree"
- "vagrant-completion"
- "wget"
- "zplug"
- "zsh"
- "zsh-autosuggestions"
- "zsh-syntax-highlighting"
cask_soft:
- "cloudflare-warp"
- "docker"
- "flux"
- "font-consolas-for-powerline"
- "font-fira-code"
- "font-meslo-for-powerline"
- "font-meslo-lg"
- "font-meslo-lg-dz"
- "font-meslo-lg-nerd-font"
- "font-roboto-mono"
- "font-roboto-mono-for-powerline"
- "goland"
- "gpg-suite-no-mail"
- "keybase"
- "notion"
- "pycharm"
- "rectangle"
- "visual-studio-code"
- "zoomus"
mas_soft:
- mas: "Day"
id: 1055511498
- mas: "Flow"
id: 1423210932
- mas: "GarageBand"
id: 682658836
- mas: "Hidden"
id: 1452453066
- mas: "IP"
id: 404167149
- mas: "Keynote"
id: 409183694
- mas: "Numbers"
id: 409203825
- mas: "Pages"
id: 409201541
- mas: "Slack"
id: 803453959
- mas: "Telegram"
id: 747648890
- mas: "Things3"
id: 904280696
- mas: "Twitter"
id: 1482454543
- mas: "Xcode"
id: 497799835
- mas: "iA"
id: 775737590
- mas: "iMovie"
id: 408981434
tasks:
- name: macOS | Tap a Homebrew repository, state present
community.general.homebrew_tap:
name: "{{ item }}"
with_items: "{{ taps }}"
tags: ["tap"]
- name: macOS | Install base soft
community.general.homebrew:
name: "{{ item }}"
state: present
with_items: "{{ base_soft }}"
tags: ["base"]
- name: macOS | Install cask soft
community.general.homebrew_cask:
name: "{{ item }}"
state: present
with_items: "{{ cask_soft }}"
tags: ["cask"]
- name: macOS | Install MAS soft
community.general.mas:
id: "{{ item.id }}"
state: present
with_items: "{{ mas_soft }}"
- name: macOS | Set a hostname
ansible.builtin.hostname:
name: "{{ macos_hostname }}.local"
tags: ["hostname"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment