sync/sync.sh
2018-07-02 23:23:08 -04:00

12 lines
520 B
Bash
Executable File

#!/bin/bash
ansible-playbook -i 'localhost,' main.yml --tags default
# Could also sync vim:
# ansible-playbook -i hosts main.yml --tags default,vim
# vim +'call Initialize()' +'qa'
# Could also secure system
# ansible-playbook -i hosts --ask-become-pass main.yml --tags secure
# Disable password authentication
# ansible-playbook -i 'localhost,' --tags secure --extra-vars 'disable_passwordauth=true' main.yml --ask-become-pass
# Use 1.1.1.1 dns
# ansible-playbook -i 'localhost,' --tags dns main.yml --ask-become-pass