Skip to content

Commit

Permalink
mail: fix mailctl dependency and remove mail-oauth group
Browse files Browse the repository at this point in the history
  • Loading branch information
dezeroku committed May 2, 2024
1 parent e92dccd commit f5677b4
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 12 deletions.
12 changes: 1 addition & 11 deletions playbooks/mail.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,9 @@
- {role: imapnotify, tags: ['imapnotify']}
- {role: isync, tags: ['isync']}
- {role: msmtp, tags: ['msmtp']}
- {role: mailctl, tags: ['mailctl'], when: 'email_client | dict2items | selectattr("value.oauth", "defined") | selectattr("value.oauth", "equalto", true) | list | items2dict'}
tags:
- mail
- mail-oauth
- never

- name: Mail (with XOAUTH2 support)
hosts: all
become: true
become_user: "{{ user_name }}"
roles:
- {role: mailctl, tags: ['mailctl']}
tags:
- mail-oauth
- never

- name: Mail PIM
Expand Down
1 change: 1 addition & 0 deletions roles/imapnotify/meta/main.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
dependencies:
- role: isync
- {role: mailctl, when: 'email_client | dict2items | selectattr("value.oauth", "defined") | selectattr("value.oauth", "equalto", true) | list | items2dict'}
3 changes: 3 additions & 0 deletions roles/isync/meta/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
dependencies:
- {role: mailctl, when: 'email_client | dict2items | selectattr("value.oauth", "defined") | selectattr("value.oauth", "equalto", true) | list | items2dict'}
3 changes: 3 additions & 0 deletions roles/msmtp/meta/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
dependencies:
- {role: mailctl, when: 'email_client | dict2items | selectattr("value.oauth", "defined") | selectattr("value.oauth", "equalto", true) | list | items2dict'}
2 changes: 1 addition & 1 deletion roles/vdirsyncer/meta/main.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
dependencies:
- role: mailctl
- {role: mailctl, when: 'email_client | dict2items | selectattr("value.google", "defined") | selectattr("value.google", "equalto", true) | list | items2dict'}

0 comments on commit f5677b4

Please sign in to comment.