Uninstalling Ansible Agent

1.Run the rpm -qa|grep ansibleagent command to check whether Ansible Agent exists on this server.

[[email protected] ~]# rpm -qa|grep ansibleagent
netbrainansibleagent-8.0.3-el7.x86_64

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.

[[email protected] ~]# cd /usr/lib/netbrain/installer/ansibleagent
[email protected] 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