# tasks file for stats script - name: Remove crontab get info day ansible.builtin.cron: name: "get info day" cron_file: "get_info_day_cron" state: absent vars: ansible_become: yes ansible_become_method: sudo ansible_become_password: "{{ sudo_password }}" - name: Remove crontab get info week ansible.builtin.cron: name: "get info week" cron_file: "get_info_week_cron" state: absent vars: ansible_become: yes ansible_become_method: sudo ansible_become_password: "{{ sudo_password }}" - name: Remove crontab get info month ansible.builtin.cron: name: "get info month" cron_file: "get_info_month_cron" state: absent vars: ansible_become: yes ansible_become_method: sudo ansible_become_password: "{{ sudo_password }}" - name: Remove getinfo script file: path: "/usr/local/bin/sentinel/getinfo_{{ item }}.sh" state: absent with_items: - day - week - month vars: ansible_become: yes ansible_become_method: sudo ansible_become_password: "{{ sudo_password }}" - name: Remove token file: path: "/etc/sentinel/token" state: absent vars: ansible_become: yes ansible_become_method: sudo ansible_become_password: "{{ sudo_password }}" - name: Remove template virtualhost file: path: /etc/sentinel/virtualhost state: absent vars: ansible_become: yes ansible_become_method: sudo ansible_become_password: "{{ sudo_password }}"