--- - name: Converge hosts: all vars: docker_daemon_run_options: "--dns 1.1.1.1 --dns 1.0.0.1" pre_tasks: - name: Update apt cache. ansible.builtin.apt: update_cache: true cache_valid_time: 86400 roles: - role: cuqmbr.docker