From 10cf5ee2e5edfbd9312baccdefd4e91da17fb183 Mon Sep 17 00:00:00 2001
From: Hyperling <me@hyperling.com>
Date: Thu, 11 Feb 2021 20:04:27 -0600
Subject: [PATCH] Add file to reduce typing when testing.

---
 local.yml                      |  6 ++++--
 tasks/general/scripts/root.yml | 15 +++++++++++++++
 2 files changed, 19 insertions(+), 2 deletions(-)
 create mode 100644 tasks/general/scripts/root.yml

diff --git a/local.yml b/local.yml
index 1d62fcd..f0198bc 100644
--- a/local.yml
+++ b/local.yml
@@ -16,6 +16,8 @@
     - include: tasks/general/start.yml
 
   tasks:
+    - include: tasks/general/scripts/root.yml
+
     - include: tasks/general/software/packages.yml
     - include: tasks/general/software/services.yml
       ignore_errors: yes
@@ -75,7 +77,7 @@
 
   tasks:
     ### CPU SECTION ###
-    # Monero
+    # Monero #
     - include: tasks/miner/cpu/xmr.yml
       become_user: mfn
       when: cpu is defined and xmr is defined
@@ -85,7 +87,7 @@
     - include: tasks/miner/drivers/amdgpu.yml
       when: ansible_distribution == "Ubuntu" and amdgpu is defined
 
-    # Ethereum
+    # Ethereum #
     - include: tasks/miner/gpu/ethminer.yml
       become_user: mfn
       when: (amdgpu is defined or nvidia is defined) and eth is defined
diff --git a/tasks/general/scripts/root.yml b/tasks/general/scripts/root.yml
new file mode 100644
index 0000000..8a57c91
--- /dev/null
+++ b/tasks/general/scripts/root.yml
@@ -0,0 +1,15 @@
+---
+# Create file to easily push git changes and call SCM.
+
+- name: General | Scripts | Root | Call SCM
+  blockinfile:
+    path: /root/scm.sh
+    block: |
+      #!/bin/bash
+      # 20210211 - Make life easier!
+      'ssh ling@leet "cd Code/Ansible/ansible-pull; git push"'
+      'curl https://scm.hyperling.com | bash'
+    marker: '# {mark} MANAGED BY ANSIBLE | SCM Shortcut Script'
+    state: present
+    create: yes
+    backup: yes
\ No newline at end of file