I am here to share my knowledge in Linux with all.The opinions expressed and topics discussed on this blog are my own and don't necessarily reflect those of my employer.
Tuesday, September 21, 2021
Ansible Playbook to collect uptime of servers
Wednesday, May 12, 2021
How to copy block of lines to end of file through Ansible
Following playbook can be used to push block of lines in list.cfg(in this case) to nrpe.cfg at End of file.
We can push to many number of servers from single ansible Control node.
---
- name: copy the repo
hosts: localhost
tasks:
- blockinfile:
block: "{{ lookup('file', 'list.cfg') }}"
dest: /etc/nagios/nrpe.cfg
backup: yes
register: output
Ansible Playbook to collect uptime of servers
Hi, This is to explain how we can write a small playbook to collect uptime of all servers in our environment. We can use our own server l...
-
Hi, This is to explain how we can write a small playbook to collect uptime of all servers in our environment. We can use our own server l...
-
Operating system: RHEL 5 Problem: Network card driver is not getting installed in RHEL 5 Error: If the command # make install is gi...
-
First check whether telnet-server rpm in installed, # rpm -q telnet-s erver telnet-server-0.17-38.el5 If it is installed, then edit # vi ...