diff options
| author | Avesh Agarwal <avagarwa@redhat.com> | 2015-08-14 17:26:45 -0400 | 
|---|---|---|
| committer | Avesh Agarwal <avagarwa@redhat.com> | 2015-08-17 11:03:00 -0400 | 
| commit | 008aa1b39a8c27cf227c87cdf225182a18a992e6 (patch) | |
| tree | c8cacc14c210cab03636c46b911d2b153ba5633f | |
| parent | 472ecf8ac4bd63556b91b70a779e2e738546f77c (diff) | |
| download | openshift-008aa1b39a8c27cf227c87cdf225182a18a992e6.tar.gz openshift-008aa1b39a8c27cf227c87cdf225182a18a992e6.tar.bz2 openshift-008aa1b39a8c27cf227c87cdf225182a18a992e6.tar.xz openshift-008aa1b39a8c27cf227c87cdf225182a18a992e6.zip | |
Updated tutorial reset file and made following chages:
1. Included openshift clean up
2. Renamed file to atomic_openshift_tutorial_reset.yml
3. docker service is not not stopped
4. docker containers and images are removed
5. /etc/openshift-sdn are removed too now
| -rw-r--r-- | playbooks/adhoc/atomic_openshift_tutorial_reset.yml (renamed from playbooks/adhoc/atomic_enterprise_tutorial_reset.yml) | 25 | 
1 files changed, 23 insertions, 2 deletions
| diff --git a/playbooks/adhoc/atomic_enterprise_tutorial_reset.yml b/playbooks/adhoc/atomic_openshift_tutorial_reset.yml index 77bc13b17..91159ad8e 100644 --- a/playbooks/adhoc/atomic_enterprise_tutorial_reset.yml +++ b/playbooks/adhoc/atomic_openshift_tutorial_reset.yml @@ -10,7 +10,9 @@    tasks:      - service: name={{ item }} state=stopped        with_items: -        - docker +        - openshift-master +        - openshift-node +        - openvswitch          - atomic-enterprise-master          - atomic-enterprise-node @@ -22,6 +24,11 @@          - atomic-enterprise-node          - atomic-enterprise-sdn-ovs          - tuned-profiles-atomic-enterprise-node +        - openshift +        - openshift-master +        - openshift-node +        - openshift-sdn-ovs +        - tuned-profiles-openshift-node      - shell: systemctl reset-failed        changed_when: False @@ -32,14 +39,28 @@      - shell: find /var/lib/atomic-enterprise/openshift.local.volumes -type d -exec umount {} \; 2>/dev/null || true        changed_when: False +    - shell: find /var/lib/openshift/openshift.local.volumes -type d -exec umount {} \; 2>/dev/null || true +      changed_when: False + +    - shell: docker ps -a -q | xargs docker stop +      changed_when: False + +    - shell: docker ps -a -q| xargs docker rm +      changed_when: False + +    - shell:  docker images -q |xargs docker rmi +      changed_when: False +      - file: path={{ item }} state=absent        with_items:          - /var/lib/atomic-enterprise          - /etc/sysconfig/atomic-enterprise          - /etc/atomic-enterprise          - /etc/openshift -        - /var/lib/docker +        - /etc/openshift-sdn          - /root/.kube +        - /etc/sysconfig/openshift +        - /var/lib/openshift      - user: name={{ item }} state=absent remove=yes        with_items: | 
