site24x7 / ansible-site24x7 Goto Github PK
View Code? Open in Web Editor NEWAnsible playbook to bulk install Site24x7 monitoring agent.
Ansible playbook to bulk install Site24x7 monitoring agent.
It would be nice to uninstall the service from a machine no longer being monitored using a nice ansible script.
Running this playbook, I receive an error because of the format of the init script.
Server is CentOS Stream
TASK [service] ***********************************************************************************************************************************************************[WARNING]: The service (site24x7monagent) is actually an init script but the system is managed by systemd
fatal: [puma]: FAILED! => {"changed": false, "msg": "Unable to start service site24x7monagent: Failed to start site24x7monagent.service: Unit site24x7monagent.service not found.\n"}
Thanks for any help you can provide.
- name: Download 64 bit Site24x7 agent from public URL
shell: wget -r https://staticdownloads.site24x7.com/server/Site24x7_Linux_64bit.install
when: ansible_machine == "x86_64"
wget -r make no sense here as you get :
-rw-r--r-- 1 root root 7884199 Aug 5 13:05 staticdownloads.site24x7.com/server/Site24x7_Linux_64bit.install
But on the next command, you change the rights on the file on the current directory :
- name: Change permission of the downloaded 64 bit install file
file: path=Site24x7_Linux_64bit.install mode=0755
You can either do a "wget" without "-r" or change the path in the second command.
Also, you playbook doesn't remove the Site24x7_Linux_64bit.install after execution.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.