remove.yml 392 B

123456789101112131415161718
  1. ---
  2. - name: remove Anaconda home dir
  3. file:
  4. dest: "{{ anaconda_home_dir }}"
  5. state: absent
  6. - name: remove path to anaconda
  7. lineinfile:
  8. dest: "{{ item }}"
  9. create: true
  10. state: absent
  11. line: 'export PATH="{{ anaconda_install_dir }}/bin:$PATH"'
  12. with_items:
  13. - /etc/bash.bashrc.local
  14. - /etc/ksh.kshrc.local
  15. - /etc/zsh.zshrc.local
  16. - /etc/ash.ashrc.local