1.Run the rpm -qa|grep ansibleagent command to check whether Ansible Agent exists on this server.
[root@localhost ~]# rpm -qa|grep ansibleagent
rabbitmq-server-3.7.7-1.el7.noarch
2.If it exists, complete the following steps to uninstall it:
1)Run the cd /usr/lib/netbrain/installer/ansibleagent command to navigate to the ansibleagent directory.
2)Run the ./uninstall.sh command under the ansibleagent directory.
3)Specify whether to remove all Ansible Agent data. To remove data, type y or yes., otherwise, type n or no.
[root@localhost ~]# cd /usr/lib/netbrain/installer/ansibleagent
root@localhost ansibleagent]# ./uninstall.sh
INFO: Creating installation log file
INFO: Component Name: Ansible Agent
INFO: RPM name: netbrainansibleagent
INFO: Preprocessing SUCCEEDED
INFO: Starting to check system
...
INFO: Starting uninstall Ansible Agent ...
WARNING: Do you want to remove the log files after uninstalling the Ansible Agent component? y
Uninstalling service netbrainansibleagent. Please wait...
Clean files.
NetBrain Ansible Agent has been uninstalled.
INFO: Rpm package removing SUCCEEDED
INFO: /var/log/netbrain/ansibleagent has been successfully removed