34 lines
988 B
YAML
34 lines
988 B
YAML
---
|
|
###########################################################################
|
|
#
|
|
# This is the top level playbook for the 'bash_mods' role. This role will
|
|
# apply our desired bash configuration.
|
|
#
|
|
###########################################################################
|
|
#
|
|
# This playbook can be run using the following command line;
|
|
#
|
|
# ansible-playbook -i <inventory file | IP,> -e "username=<username>" -e "homedir=<home dir>" bash_mods.yml
|
|
#
|
|
# ie,
|
|
# ansible-playbook -i 192.168.1.123, -e "username=someuser" -e "homedir=/home/someuser" bash_mods.yml
|
|
#
|
|
###########################################################################
|
|
|
|
- hosts: all
|
|
gather_facts: true
|
|
user: root
|
|
|
|
roles:
|
|
- role: bash_mods
|
|
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
|