ansible remove glusterfs dashboard

[root@localhost ~]# cat glusterfs.yml
---
- name: remove gluster gui
  hosts: localhost
  connection: local
  gather_facts: no
  tasks:
  - name: install ovirt-release repo
    yum:
     name: https://resources.ovirt.org/pub/yum-repo/ovirt-release43.rpm
  - name: remove cockpit cockpit-ovirt-dashboard httpd
    yum: name={{item}} state=absent
    with_items:
      - cockpit
      - cockpit-ovirt-dashboard
      - httpd
      - ovirt-release43
      - ovirt*

  - name: restart cockpit

    service: name=cockpit enabled=true state=stopped



[root@localhost ~]# ansible-playbook glusterfs.yml

PLAY [remove gluster gui] ******************************************************

TASK [install ovirt-release repo] **********************************************
ok: [localhost]

TASK [remove cockpit cockpit-ovirt-dashboard httpd] ****************************

changed: [localhost] => (item=[u'cockpit', u'cockpit-ovirt-dashboard', u'httpd'])

TASK [stop cockpit] *********************************************************
ok: [localhost]

PLAY RECAP *********************************************************************
localhost                  : ok=3    changed=0    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0 

[root@localhost ~]#

Comments

Popular posts from this blog

ansible redhat cluster qorum qdevice

PE 3.9.0 on centos 6

gfs2 cluster