Provision the iCloud Thunderbird profile on GNOME desktops

Seed a Thunderbird profile on ikaros and nymph with the iCloud account
already declared: IMAP imap.mail.me.com:993 over SSL/TLS, SMTP
smtp.mail.me.com:587 over STARTTLS, identity and folder mapping, one
CalDAV calendar and one CardDAV address book.

Account defaults are rendered into a managed user.js because Thunderbird
rewrites prefs.js on exit, while user.js is re-applied at every start.
profiles.ini is seeded only when absent so a profile list Thunderbird
already owns is never replaced.

The address comes from vault_icloud_email and the display name from
vault_personal_full_name. The app-specific password is deliberately not
stored: Thunderbird requests it on first use and keeps it in its own
credential store.

Validated by rendering the templates and running Thunderbird 158 headless
against a sandbox profile: the account was accepted, Local Folders was
created by Thunderbird itself, the CalDAV calendar registered as default
and the CardDAV directory instantiated its abook-icloud.sqlite.
This commit is contained in:
2026-11-01 19:30:10 +01:00
parent 4e8665a7d4
commit 1e40a867e7
7 changed files with 176 additions and 0 deletions

View File

@@ -639,6 +639,29 @@ Run locally on each workstation (`ansible_connection: local`); use `--limit nymp
on the laptop. With a cold RPM cache, check mode reports that dependency resolution
is not validated; the real run downloads, verifies, and installs the package.
### Thunderbird iCloud profile on Fedora
`profile_desktop_gnome` seeds a Thunderbird profile for `ikaros` and `nymph` so the
iCloud account is already declared: IMAP `imap.mail.me.com:993` over SSL/TLS, SMTP
`smtp.mail.me.com:587` over STARTTLS, the identity and folder mapping, one CalDAV
calendar (`caldav.icloud.com`) and one CardDAV address book (`contacts.icloud.com`).
The account defaults live in a managed `user.js`, not in `prefs.js`: Thunderbird
rewrites `prefs.js` on exit, while `user.js` is re-applied at every start.
`profiles.ini` is only seeded when absent, so a profile list Thunderbird already
owns is never replaced.
The address comes from `vault_icloud_email` and the display name from
`vault_personal_full_name`. The password is deliberately not stored: iCloud mail
requires an app-specific password, which Thunderbird requests on first use and
keeps in its own credential store. Set `thunderbird_icloud_enabled: false` to stop
managing the profile without deleting it.
```bash
ansible-playbook ansible/site.yml --limit ikaros --tags thunderbird --check --diff
ansible-playbook ansible/site.yml --limit ikaros --tags thunderbird -K
```
## Main roles
| Role | What it does |