- name: "set grub timeout" become: yes lineinfile: dest: "{{ grub_file }}" line: GRUB_TIMEOUT="{{ grub_timeout }}" regexp: '^GRUB_TIMEOUT="' notify: - Update grub - name: "setup network" become: yes template: src: "{{ network_config.src }}" dest: "{{ network_config.dest }}" owner: root group: root mode: '0644' notify: - Restart networking - name: "flush all notified handler" meta: flush_handlers - name: "setup initial package" become: yes package: name: "{{ initial_package }}" update_cache: yes state: present notify: Start qemu-guest service