Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---
- # Your custom playbooks should go in your DeepOps configuration directory,
- # under `config/playbooks`.
- #
- # These playbooks can be used to make any customizations to your cluster
- # that aren't already provided by DeepOps!
- # For example, this playbook installs `cowsay` on all your Kubernetes nodes.
- #
- # For more details on how to write Ansible playbooks, see the Ansible
- # documentation:
- # https://docs.ansible.com/ansible/latest/user_guide/playbooks.html
- - hosts: all
- become: yes
- tasks:
- - name: delete extra hosts files
- find:
- paths: /etc/
- patterns: "hosts.*~"
- register: wildcard_files_to_delete
- - name: Ansible remove file wildcard
- file:
- path: "{{ item.path }}"
- state: absent
- with_items: "{{ wildcard_files_to_delete.files }}"
Add Comment
Please, Sign In to add comment