- hosts: 127.0.0.1 # connection: local gather_facts: yes tasks: - name: update respository index ansible.builtin.apt: update_cache: yes upgrade: safe