Compare commits

..

3 Commits

3 changed files with 45 additions and 0 deletions
+1
View File
@@ -1,4 +1,5 @@
--- ---
ansible_user: xadmin
packages_common: packages_common:
- 'bash' - 'bash'
+4
View File
@@ -30,6 +30,10 @@ munin-v1 ansible_host=munin-v1.int.metaunix.net
ns3 ansible_host=ns3.int.metaunix.net ns3 ansible_host=ns3.int.metaunix.net
ns4 ansible_host=ns4.int.metaunix.net ns4 ansible_host=ns4.int.metaunix.net
[orangepi]
orangepi3lts ansible_host=10.7.10.97
orangepi3zerow ansible_host=10.7.10.96
[serial_ttyd] [serial_ttyd]
pitty ansible_host=10.7.10.175 pitty ansible_host=10.7.10.175
+40
View File
@@ -0,0 +1,40 @@
---
- name: CPU Info
hosts: all
become: true
tasks:
- name: Show system CPU info
ansible.builtin.shell: lscpu
register: shell_result
changed_when: false
- name: Print stdout to terminal
ansible.builtin.debug:
var: shell_result.stdout_lines
- name: RAM Info
hosts: all
become: true
tasks:
- name: Show free and used memory
ansible.builtin.shell: free -h
register: shell_result
changed_when: false
- name: Print stdout to terminal
ansible.builtin.debug:
var: shell_result.stdout_lines
- name: Disk Info
hosts: all
become: true
tasks:
- name: Show mounted disks and their usage
ansible.builtin.shell: df -h
register: shell_result
changed_when: false
- name: Print stdout to terminal
ansible.builtin.debug:
var: shell_result.stdout_lines