2022-01-09 12:24:36 -05:00
|
|
|
---
|
2021-07-23 18:45:46 -04:00
|
|
|
###########################################################################
|
|
|
|
#
|
|
|
|
# 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,
|
2022-01-03 10:08:30 -05:00
|
|
|
# ansible-playbook -i 192.168.1.123, -e "username=someuser" -e "homedir=/home/someuser" bash_mods.yml
|
2021-07-23 18:45:46 -04:00
|
|
|
#
|
|
|
|
###########################################################################
|
|
|
|
|
|
|
|
- hosts: all
|
|
|
|
gather_facts: true
|
|
|
|
user: root
|
|
|
|
|
|
|
|
roles:
|
|
|
|
- role: bash_mods
|
|
|
|
vars:
|
|
|
|
# Set the following two variables as required
|
|
|
|
# ie,
|
2022-01-03 10:08:30 -05:00
|
|
|
# username: someuser
|
|
|
|
# homedir: /home/someuser
|
2021-07-23 18:45:46 -04:00
|
|
|
# Default is to apply the playbook against the root user
|
|
|
|
username: "root"
|
|
|
|
homedir: "/root"
|
|
|
|
|
|
|
|
# EOF
|