擅长:python、mysql、java
<p>我能够使用Ubuntu上的<code>snap</code>ansible模块安装snap软件包<code>Ubuntu 20.04.1 LTS</code></p>
<p>代码:</p>
<pre><code> -
- name: Playbook for installing required packages
hosts: localhost
gather_facts: True
connection: local
become: yes
become_user: root
tasks:
- name: Install required packages
snap:
classic: yes
state: present
name:
- bitwarden
- clion
</code></pre>