37 lines
1014 B
YAML
37 lines
1014 B
YAML
---
|
|
###########################################################################
|
|
#
|
|
# This is the top level playbook for the 'vim_setup' role.
|
|
#
|
|
# This role will set up our default vim environment for the specified user.
|
|
#
|
|
###########################################################
|
|
#
|
|
# This playbook can be run using the following command line;
|
|
#
|
|
# ansible-playbook -i <inventory file | IP,> -e "username=<username>" -e "homedir=<home dir> vim_setup.yml
|
|
#
|
|
# ie,
|
|
# ansible-playbook -i 192.168.7.99, -e "username=someuser" -e "homedir=/home/someuser" vim_setup.yml
|
|
#
|
|
###########################################################
|
|
|
|
- hosts: all
|
|
gather_facts: true
|
|
user: root
|
|
|
|
roles:
|
|
- role: update_cache
|
|
- role: vim_setup
|
|
vars:
|
|
# Set the following two variables as required
|
|
# ie,
|
|
# username: someuser
|
|
# homedir: /home/someuser
|
|
#
|
|
# Default is to apply the playbook against the root user
|
|
username: "root"
|
|
homedir: "/root"
|
|
|
|
# EOF
|