1011 B
1011 B
Snel.com Ansible Playbooks
Clone repo on macOS
cd ~/repos
git clone --recurse-submodules git@git.snel.com:snelcom-ansible/snel.ansible.git snel.ansible
Install on macOS
brew install \
ansible \
ansible-lint \
packer \
jq \
siderolabs/talos/talosctl \
kubernetes-cli \
helm \
bitwarden-cli \
velero
helm plugin install https://github.com/databus23/helm-diff
bw config server 'https://pw.snel.com/'
python3 -m pip install --upgrade --requirement ./requirements.txt
ansible-galaxy install --force --role-file ./requirements.yml
git config core.hooksPath .githooks
grep 'OBJC_DISABLE_INITIALIZE_FORK_SAFETY' ~/.zshrc || echo "OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES" >> ~/.zshrc
source ~/.zshrc
Usage
First time: Login on Vaultwarden:
bw login
Execute playbook
export BW_SESSION=$(bw unlock --raw) bw sync
export BW_SESSION=$(bw unlock --raw) ansible-playbook site.yml --limit customer_deovero