Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added ansible/README.md
Empty file.
48 changes: 48 additions & 0 deletions ansible/galaxy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
namespace: marinatedconcrete
name: config

# The version of the collection. Must be compatible with semantic versioning
version: 0.1.0

readme: README.md

# A list of the collection's content authors. Can be just the name or in the format 'Full Name <email> (url)
# @nicks:irc/im.site#channel'
authors:
- robarnold
- sdwilsh

# Either a single license or a list of licenses for content inside of a collection. Ansible Galaxy currently only
# accepts L(SPDX,https://spdx.org/licenses/) licenses. This key is mutually exclusive with 'license_file'
license:
- BSD-3-Clause

# A list of tags you want to associate with the collection for indexing/searching. A tag name has the same character
# requirements as 'namespace' and 'name'
tags:
- zsh

# Collections that this collection requires to be installed for it to be usable. The key of the dict is the
# collection label 'namespace.name'. The value is a version range
# L(specifiers,https://python-semanticversion.readthedocs.io/en/latest/#requirement-specification). Multiple version
# range specifiers can be set and are separated by ','
dependencies: {}

# The URL of the originating SCM repository
repository: https://github.com/marinatedconcrete/config
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is where I think maybe we want a repo for our own collection. That, or we rename this to be something to indicate it's a monorepo


# The URL to any online docs
documentation: lol
Comment thread
robarnold marked this conversation as resolved.

# The URL to the homepage of the collection/project
homepage: https://github.com/marinatedconcrete/config

# The URL to the collection issue tracker
issues: https://github.com/marinatedconcrete/config/issues

# A list of file glob-like patterns used to filter any files or directories that should not be included in the build
# artifact. A pattern is matched from the relative path of the file or directory of the collection directory. This
# uses 'fnmatch' to match the files or directories. Some directories and files like 'galaxy.yml', '*.pyc', '*.retry',
# and '.git' are always filtered
build_ignore: []

21 changes: 21 additions & 0 deletions ansible/roles/zsh/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
- name: Install zsh
Comment thread
robarnold marked this conversation as resolved.
ansible.builtin.apt:
name: zsh
state: present
when: ansible_facts['os_family'] == 'Debian'
- name: Set up zsh config
ansible.builtin.template:
src: zshrc
dest: "~{{ item }}/.zshrc"
mode: u+rw-x,o-rwx,g-rwx
owner: "{{ item }}"
group: "{{ item }}"
loop: "{{ zsh__users }}"
- name: Set up zsh environment
ansible.builtin.template:
src: zshenv
dest: "~{{ item }}/.zshenv"
mode: u+rw-x,o-rwx,g-rwx
owner: "{{ item }}"
group: "{{ item }}"
loop: "{{ zsh__users }}"
4 changes: 4 additions & 0 deletions ansible/roles/zsh/templates/zshenv
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
if [ -f .cargo/env ]; then
. "$HOME/.cargo/env"
fi
export PATH="$HOME/.local/bin:$PATH"
23 changes: 23 additions & 0 deletions ansible/roles/zsh/templates/zshrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
HISTSIZE=1000
SAVEHIST=1000
unsetopt autocd
bindkey -v
# End of lines configured by zsh-newuser-install
# The following lines were added by compinstall
zstyle :compinstall filename '/home/{{ item }}/.zshrc'

autoload -Uz compinit
compinit
# End of lines added by compinstall

LS_COLORS=ExGxBxDxCxEgEdxbxgxcxd
alias ls='ls --color=auto'
alias grep='grep --color=auto'

{% raw -%}
PROMPT="%F{cyan}%n@%m%f:%F{green}%5(~Q…%4dQ%~)%f %(!.#.$) "
RPROMPT="%F{cyan}%* %D{%m/%d}%f"
export EDITOR=vim
{% endraw %}