remove grafana ansible grafana
root@localhost ~]# yum remove grafana
Loaded plugins: fastestmirror, langpacks
Resolving Dependencies
--> Running transaction check
---> Package grafana.x86_64 0:4.3.0-1 will be erased
--> Finished Dependency Resolution
Dependencies Resolved
=======================================================================================
Package Arch Version Repository Size
=======================================================================================
Removing:
grafana x86_64 4.3.0-1 installed 133 M
Transaction Summary
=======================================================================================
Remove 1 Package
Installed size: 133 M
Is this ok [y/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Erasing : grafana-4.3.0-1.x86_64 1/1
Verifying : grafana-4.3.0-1.x86_64 1/1
Removed:
grafana.x86_64 0:4.3.0-1
Complete!
[root@localhost ~]# ansible-playbook graf.yml
PLAY [all] ****************************************************************************
TASK [Gathering Facts] ****************************************************************
ok: [192.168.1.7]
TASK [install grafana rpm key] ********************************************************
ok: [192.168.1.7]
TASK [install grafana rpm repository] ************************************************
ok: [192.168.1.7]
TASK [install grafana] ****************************************************************
changed: [192.168.1.7]
TASK [grafana is installed] ***********************************************************
ok: [192.168.1.7]
TASK [grafana is running and enabled] *************************************************
ok: [192.168.1.7]
PLAY RECAP ****************************************************************************
192.168.1.7 : ok=6 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
[root@localhost ~]#
Loaded plugins: fastestmirror, langpacks
Resolving Dependencies
--> Running transaction check
---> Package grafana.x86_64 0:4.3.0-1 will be erased
--> Finished Dependency Resolution
Dependencies Resolved
=======================================================================================
Package Arch Version Repository Size
=======================================================================================
Removing:
grafana x86_64 4.3.0-1 installed 133 M
Transaction Summary
=======================================================================================
Remove 1 Package
Installed size: 133 M
Is this ok [y/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Erasing : grafana-4.3.0-1.x86_64 1/1
Verifying : grafana-4.3.0-1.x86_64 1/1
Removed:
grafana.x86_64 0:4.3.0-1
Complete!
[root@localhost ~]# ansible-playbook graf.yml
PLAY [all] ****************************************************************************
TASK [Gathering Facts] ****************************************************************
ok: [192.168.1.7]
TASK [install grafana rpm key] ********************************************************
ok: [192.168.1.7]
TASK [install grafana rpm repository] ************************************************
ok: [192.168.1.7]
TASK [install grafana] ****************************************************************
changed: [192.168.1.7]
TASK [grafana is installed] ***********************************************************
ok: [192.168.1.7]
TASK [grafana is running and enabled] *************************************************
ok: [192.168.1.7]
PLAY RECAP ****************************************************************************
192.168.1.7 : ok=6 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
[root@localhost ~]#
[root@localhost ~]# rpm -qa | grep grafana
grafana-6.3.5-1.x86_64
[root@localhost ~]#
Comments
Post a Comment