This commit is contained in:
2020-04-02 17:23:57 -06:00
parent 66fd90a649
commit 2ff187ba34
6 changed files with 67 additions and 39 deletions

View File

@@ -2,24 +2,8 @@
# Install pyenv
- include_tasks: install-pyenv.yml
# Copy scripts to /usr/local/bin
- name: Copying scripts to /usr/local/bin
copy:
src: "{{ item }}"
dest: /usr/local/bin/
owner: toor
group: staff
mode: 0775
with_fileglob:
- bin/*
# Copy profiles to /etc/profile.d/
- name: Copying profiles to /etc/profile.d
copy:
src: "{{ item }}"
dest: /etc/profile.d/
owner: root
group: root
mode: 0755
with_fileglob:
- profile.d/*
- include_tasks: ../../../functions/copy_etc-profile.d.yml
# Copy scripts to /usr/local/bin
- include_tasks: ../../../functions/copy_usr-local-bin.yml

View File

@@ -0,0 +1,10 @@
# Copy profiles to /etc/profile.d/
- name: Copying profiles to /etc/profile.d
copy:
src: "{{ item }}"
dest: /etc/profile.d/
owner: root
group: root
mode: 0755
with_fileglob:
- profile.d/*

View File

@@ -0,0 +1,10 @@
# Copy scripts to /usr/local/bin
- name: Copying scripts to /usr/local/bin
copy:
src: "{{ item }}"
dest: /usr/local/bin/
owner: toor
group: staff
mode: 0775
with_fileglob:
- bin/*

View File

@@ -0,0 +1,40 @@
# mReschke git helpers
alias gits='git status'
alias gitc='git config -l'
function ga() {
git add .
git commit -a -m "$1"
}
function gap() {
git add .
git commit -a -m "$1"
git push
}
function gt() {
git tag -a $1 -m "Tagged for $1 release"
git push origin $1
}
function git-merge-into() {
into=$1
branch=$(git branch | sed -n '/\* /s///p')
if [ "$into" == "" ]; then
echo "Usage: git-merge-into master"
return
elif [ "$branch" == "" ]; then
echo "Please push your current '$branch' branch first"
return
fi
pushed=$(git status | grep -c 'nothing to commit')
if [ $pushed -eq 1 ]; then
read -r -p "You are about to merge $branch into $into. Are you sure? " response
if [ "$response" == "y" ]; then
git checkout $into && git merge $branch && git push && git checkout $branch
fi
fi
}

View File

@@ -1,2 +1,2 @@
rsync -vaP --delete linstore:/store/data/manup/nwq/vimrc/source/vimrc-current/etc/vim/ ./vim
rsync -vaP --delete --exclude .git linstore:/store/data/manup/nwq/vimrc/source/vimrc-current/etc/vim/ ./vim
find ./vim -type d -name '.git' -exec rm -rf {} \;

View File

@@ -1,25 +1,9 @@
---
# Copy profiles to /etc/profile.d/
- name: Copying profiles to /etc/profile.d
copy:
src: "{{ item }}"
dest: /etc/profile.d/
owner: root
group: root
mode: 0755
with_fileglob:
- profile.d/*
- include_tasks: ../../../functions/copy_etc-profile.d.yml
# Copy scripts to /usr/local/bin
- name: Copying scripts to /usr/local/bin
copy:
src: "{{ item }}"
dest: /usr/local/bin/
owner: toor
group: staff
mode: 0775
with_fileglob:
- bin/*
- include_tasks: ../../../functions/copy_usr-local-bin.yml
# Rsync /etc/vim
- name: Synchronizing /etc/vim