Add file to reduce typing when testing.
This commit is contained in:
parent
bc9f7e9f3b
commit
10cf5ee2e5
@ -16,6 +16,8 @@
|
|||||||
- include: tasks/general/start.yml
|
- include: tasks/general/start.yml
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
|
- include: tasks/general/scripts/root.yml
|
||||||
|
|
||||||
- include: tasks/general/software/packages.yml
|
- include: tasks/general/software/packages.yml
|
||||||
- include: tasks/general/software/services.yml
|
- include: tasks/general/software/services.yml
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
@ -75,7 +77,7 @@
|
|||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
### CPU SECTION ###
|
### CPU SECTION ###
|
||||||
# Monero
|
# Monero #
|
||||||
- include: tasks/miner/cpu/xmr.yml
|
- include: tasks/miner/cpu/xmr.yml
|
||||||
become_user: mfn
|
become_user: mfn
|
||||||
when: cpu is defined and xmr is defined
|
when: cpu is defined and xmr is defined
|
||||||
@ -85,7 +87,7 @@
|
|||||||
- include: tasks/miner/drivers/amdgpu.yml
|
- include: tasks/miner/drivers/amdgpu.yml
|
||||||
when: ansible_distribution == "Ubuntu" and amdgpu is defined
|
when: ansible_distribution == "Ubuntu" and amdgpu is defined
|
||||||
|
|
||||||
# Ethereum
|
# Ethereum #
|
||||||
- include: tasks/miner/gpu/ethminer.yml
|
- include: tasks/miner/gpu/ethminer.yml
|
||||||
become_user: mfn
|
become_user: mfn
|
||||||
when: (amdgpu is defined or nvidia is defined) and eth is defined
|
when: (amdgpu is defined or nvidia is defined) and eth is defined
|
||||||
|
15
tasks/general/scripts/root.yml
Normal file
15
tasks/general/scripts/root.yml
Normal file
@ -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
|
Loading…
x
Reference in New Issue
Block a user