通过 Snap 在 Ubuntu 上安装 Thunderbird 的 Ansible playbook
这将从 Snap 商店安装最新版本的 Thunderbird。 如果 Thunderbird 已安装,它将什么都不做。
thunderbird_playbook.yaml
---
- name: Install Thunderbird
hosts: all
become: true
tasks:
- name: Ensure snapd is installed
apt:
name: snapd
state: present
update_cache: yes
when: ansible_os_family == "Debian"
- name: Install Thunderbird snap
snap:
name: thunderbird
state: present
classic: true使用方式:
run_thunderbird_playbook.sh
ansible-playbook -i thunderbird.yamlIf this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow