|
|
@ -3,6 +3,7 @@ |
|
|
|
package: |
|
|
|
package: |
|
|
|
name: snapd |
|
|
|
name: snapd |
|
|
|
state: present |
|
|
|
state: present |
|
|
|
|
|
|
|
register: snapd_install |
|
|
|
|
|
|
|
|
|
|
|
- name: Ensure snapd is enabled. |
|
|
|
- name: Ensure snapd is enabled. |
|
|
|
systemd: |
|
|
|
systemd: |
|
|
@ -15,6 +16,12 @@ |
|
|
|
dest: /snap |
|
|
|
dest: /snap |
|
|
|
state: link |
|
|
|
state: link |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Update snap after install. |
|
|
|
|
|
|
|
shell: sudo snap install core; sudo snap refresh core |
|
|
|
|
|
|
|
changed_when: true |
|
|
|
|
|
|
|
failed_when: false |
|
|
|
|
|
|
|
when: snapd_install is changed |
|
|
|
|
|
|
|
|
|
|
|
- name: Install certbot via snap. |
|
|
|
- name: Install certbot via snap. |
|
|
|
snap: |
|
|
|
snap: |
|
|
|
name: certbot |
|
|
|
name: certbot |
|
|
|