2021-02-11 20:04:27 -06:00
|
|
|
---
|
|
|
|
# Create file to easily push git changes and call SCM.
|
|
|
|
|
2021-02-11 20:16:23 -06:00
|
|
|
- name: General | Scripts | Root | scm.sh
|
2021-02-11 20:04:27 -06:00
|
|
|
blockinfile:
|
|
|
|
path: /root/scm.sh
|
|
|
|
block: |
|
|
|
|
# 20210211 - Make life easier!
|
2021-02-11 20:14:21 -06:00
|
|
|
ssh ling@leet "cd Code/Ansible/ansible-pull; git push"
|
|
|
|
curl https://scm.hyperling.com | bash
|
2021-02-11 20:52:33 -06:00
|
|
|
marker: '{mark}'
|
|
|
|
marker_start: "#!{{ bash_exec.stdout }}"
|
|
|
|
marker_end: "exit 0"
|
2021-02-11 20:04:27 -06:00
|
|
|
state: present
|
|
|
|
create: yes
|
2021-02-11 20:16:23 -06:00
|
|
|
backup: yes
|
|
|
|
|
|
|
|
- name: General | Scripts | Root | scm.sh Permissions
|
|
|
|
file:
|
|
|
|
path: /root/scm.sh
|
|
|
|
mode: '0755'
|