sync/sync.sh

12 lines
520 B
Bash
Raw Normal View History

#!/bin/bash
ansible-playbook -i 'localhost,' main.yml --tags default
# Could also sync vim:
# ansible-playbook -i hosts main.yml --tags default,vim
2018-07-02 23:23:08 -04:00
# vim +'call Initialize()' +'qa'
# Could also secure system
2018-07-02 23:23:08 -04:00
# 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