--- - name: install apt-transport-https for secure repo become: true apt: name: apt-transport-https state: "{{ goaccess__state }}" update_cache: true - name: add goaccess apt_key become: true apt_key: url: https://deb.goaccess.io/gnugpg.key state: present - name: add goaccess apt_repository become: true apt_repository: repo: "deb https://deb.goaccess.io/ {{ ansible_distribution_release | lower }} main" state: present filename: goaccess - name: install goaccess become: true apt: name: goaccess state: "{{ goaccess__state }}" update_cache: true cache_valid_time: 3600