Migrate shell to FQCN.
This commit is contained in:
@@ -2,16 +2,16 @@
|
||||
# Facts that must be gathered after running tasks.
|
||||
|
||||
- name: General | Facts | Gather | Locate bash
|
||||
shell: which bash
|
||||
ansible.builtin.shell: which bash
|
||||
register: bash_exec
|
||||
ignore_errors: true
|
||||
|
||||
- name: General | Facts | Gather | Locate ansible-pull
|
||||
shell: which ansible-pull
|
||||
ansible.builtin.shell: which ansible-pull
|
||||
register: ansible_pull_exec
|
||||
ignore_errors: true
|
||||
|
||||
- name: General | Facts | Gather | Locate zsh
|
||||
shell: which zsh
|
||||
ansible.builtin.shell: which zsh
|
||||
register: zsh_exec
|
||||
ignore_errors: true
|
||||
|
||||
@@ -102,7 +102,7 @@
|
||||
ansible_pkg_mgr_file: "{{ prov_dir }}/ansible_pkg_mgr.txt"
|
||||
|
||||
- name: General | Facts | Package | Update Command | Store Variables
|
||||
shell: "{{ item }}"
|
||||
ansible.builtin.shell: "{{ item }}"
|
||||
loop:
|
||||
- "echo '{{ ansible_distribution }}' > {{ ansible_distribution_file }}"
|
||||
- "echo '{{ ansible_pkg_mgr }}' > {{ ansible_pkg_mgr_file }}"
|
||||
@@ -269,7 +269,7 @@
|
||||
|
||||
# Flatpaks
|
||||
- name: General | Facts | Package | Update Command | Flatpak | Check
|
||||
shell: which flatpak
|
||||
ansible.builtin.shell: which flatpak
|
||||
register: flatpak_exec
|
||||
ignore_errors: true
|
||||
|
||||
@@ -293,7 +293,7 @@
|
||||
|
||||
# Firmware
|
||||
- name: General | Facts | Package | Update Command | Firmware | Check
|
||||
shell: which fwupdmgr
|
||||
ansible.builtin.shell: which fwupdmgr
|
||||
register: fwupdmgr_exec
|
||||
ignore_errors: true
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
## Load Config File ##
|
||||
|
||||
- name: Miner | Facts | Config File | Download
|
||||
shell: "scp {{ file_server }}:{{ config_file_remote }} {{ config_file_local }}; chmod 700 {{ config_file_local }}"
|
||||
ansible.builtin.shell: "scp {{ file_server }}:{{ config_file_remote }} {{ config_file_local }}; chmod 700 {{ config_file_local }}"
|
||||
|
||||
- name: Miner | Facts | Config File | Load Wallets
|
||||
set_fact:
|
||||
@@ -17,7 +17,7 @@
|
||||
- name: Miner | Facts | Config File | DEBUG
|
||||
debug:
|
||||
var: "{{ item }}"
|
||||
loop:
|
||||
loop:
|
||||
- wallet_xmr
|
||||
- wallet_eth
|
||||
|
||||
@@ -25,4 +25,4 @@
|
||||
## Clean Up ##
|
||||
|
||||
- name: Miner | Facts | Config File | Delete
|
||||
shell: "mv {{ config_file_local }} ~/TRASH/"
|
||||
ansible.builtin.shell: "mv {{ config_file_local }} ~/TRASH/"
|
||||
|
||||
Reference in New Issue
Block a user