hadrienpatte.my_shell
Ansible Role: My Shell
An Ansible Role that installs shell utilities and deploys various dotfiles on Ubuntu 18.04.
Requirements
None.
Role Variables
Git Variables
my_shell_git_username: the name used to author your commitsmy_shell_git_email: the email used to author your commitsmy_shell_git_key_fingerprint: the fingerpring of the GPG key used to sign your commits (can be left undefined)
See the my_shell_git_config variable in defaults/main.yml to further
configure git.
Bash variables
my_shell_bash_aliases: list of bash aliases (check the syntax and default values indefaults/main.yml)my_shell_additional_bash_aliases: list of additional bash aliases in case you do not want to overloadmy_shell_bash_aliasesmy_shell_command_complete: list of completion scripts for commands (check the syntax and default values indefaults/main.yml)
Ansible Variables
my_shell_ansible_forks: number of forks ansible should usemy_shell_ansible_callback_whitelist: callback plugins to whitelistmy_shell_ansible_cows: set this tofalseto prevent ansible to render its output throughtcowsaywhen it is installedmy_shell_ansible_pipelining: set this totrueto enable ansible pipelining
See the my_shell_ansible_config variable in defaults/main.yml to further
configure ansible.
Hosts file Variables
my_shell_add_hosts_from_inventory: set this totrueto automatically add hosts from your inventory file to your/etc/hostsfile. Your inventory file should have a structure similar to this:
---
all:
hosts:
my_host_1:
ansible_host: 10.0.0.1
my_host_2:
ansible_host: 10.0.0.2
SSH Variables
my_shell_ssh_user: your username when login on remote servers by SSHmy_shell_ssh_key: location of your main SSH key (optional, defaults to~/.ssh/id_rsa)
Dependencies
None.
Example Playbook
- name: Install shell utilities and deploy various dotfiles
hosts: all
roles:
- hadrienpatte.my_shell
License
MIT
Author Information
Install
ansible-galaxy install hadrienpatte.my_shellLicense
mit
Downloads
645
Owner
Automation enthusiast
