53 lines
1.2 KiB
YAML
Raw Normal View History

---
# Create file to easily push git changes and call SCM.
2021-02-11 20:16:23 -06:00
- name: General | Scripts | Root | scm.sh
blockinfile:
2021-02-12 07:50:38 -06:00
path: "{{ user_root.home }}/bin/scm.sh"
block: |
# 20210211 - Make life easier!
push.sh
2021-02-12 06:02:28 -06:00
time curl https://scm.hyperling.com | bash
2021-02-11 20:52:33 -06:00
marker: '{mark}'
2021-02-12 06:01:43 -06:00
marker_begin: "#!{{ bash_exec.stdout }}"
2021-02-11 20:52:33 -06:00
marker_end: "exit 0"
state: present
create: yes
2021-02-11 20:16:23 -06:00
- name: General | Scripts | Root | scm.sh Permissions
file:
2021-02-12 07:50:38 -06:00
path: "{{ user_root.home }}/bin/scm.sh"
mode: '0755'
- name: General | Scripts | Root | scm-dev.sh
blockinfile:
path: "{{ user_root.home }}/bin/scm-dev.sh"
block: |
# 20210713 - Make life easier for development!
## Variables ##
# Use a specific branch if it was asked for.
branch="dev"
if [[ $1 != "" ]]; then
branch="$1"
fi
## Main ##
push.sh
time {{ ansible_pull_exec.stdout }} -U {{ repo_github }} --checkout $branch
marker: '{mark}'
marker_begin: "#!{{ bash_exec.stdout }}"
marker_end: "exit 0"
state: present
create: yes
- name: General | Scripts | Root | scm-dev.sh Permissions
file:
path: "{{ user_root.home }}/bin/scm-dev.sh"
mode: '0755'