Compare commits
3 Commits
6d82582a05
...
78a7bcc8f4
| Author | SHA1 | Date | |
|---|---|---|---|
| 78a7bcc8f4 | |||
| dbb636d94e | |||
| 178b7e7f89 |
@@ -1,4 +1,5 @@
|
||||
---
|
||||
ansible_user: xadmin
|
||||
|
||||
packages_common:
|
||||
- 'bash'
|
||||
|
||||
@@ -30,6 +30,10 @@ munin-v1 ansible_host=munin-v1.int.metaunix.net
|
||||
ns3 ansible_host=ns3.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]
|
||||
pitty ansible_host=10.7.10.175
|
||||
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user