### # ansible-playbook -l $hosts -K --diff --check deploy-kvmstats.yml --- - hosts: all become: yes pre_tasks: - include_role: name: etc-git tasks_from: commit.yml vars: commit_message: "Ansible pre-run deploy-kvmstats.yml" tasks: - name: kvmstats is installed copy: src: kvmstats dest: /usr/share/scripts/kvmstats mode: "0700" - name: cron for kvmstats is installed copy: src: kvmstats.cron dest: /etc/cron.hourly/kvmstats mode: "0755" - name: entry for kvmstats in web page is present lineinfile: dest: /var/www/index.html insertbefore: '' line: '
  • kvmstats
  • ' post_tasks: - include_role: name: etc-git tasks_from: commit.yml vars: commit_message: "Ansible post-run check_ssl.yml"