MarkusSagen / ansible-desktop

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ansible-desktop

Pre-requisites

  1. If on Mac, install Homebrew and Ansible
  2. Install packages for your distro with:

Mac:

# TODO: might not work if having multiple files  
ansible-pull -U https://github.com/MarkusSagen/ansible-desktop.git   
  1. Or clone the repo and do the installation manually:
ansible-playbook -i inventory playbooks/homebrew.yml

# To install specific target and tasks
ansible-playbook playbooks/homebrew.yml --limit=my.laptop --tags=packages

Setting up the script

The instructions and inspiration for this is taken from:

  1. Install ansible
# pip install ansible==4.9.0
brew install ansible  
  1. Run this in your terminal
cat << EOF >> inventory
[localhost\]
your-host-name
EOF
  1. Create a ansible playbook

About