Merge "Skip notification prompt for newlist command"
This commit is contained in:
commit
eb965a7992
@ -14,7 +14,9 @@
|
|||||||
MAILMAN_SITE_DIR: "{{ mm_site_root }}"
|
MAILMAN_SITE_DIR: "{{ mm_site_root }}"
|
||||||
register: listlists
|
register: listlists
|
||||||
- name: Create the site list if it doesn't exist
|
- name: Create the site list if it doesn't exist
|
||||||
command: "newlist {% if mailman_test_mode is defined and mailman_test_mode %} -q {% endif %} {{ mm_list_name }} {{ mm_list_admin }} {{ mm_list_password }}"
|
command:
|
||||||
|
cmd: "newlist {% if mailman_test_mode is defined and mailman_test_mode %} -q {% endif %} {{ mm_list_name }} {{ mm_list_admin }} {{ mm_list_password }}"
|
||||||
|
stdin: ''
|
||||||
environment:
|
environment:
|
||||||
MAILMAN_SITE_DIR: "{{ mm_site_root }}"
|
MAILMAN_SITE_DIR: "{{ mm_site_root }}"
|
||||||
when:
|
when:
|
||||||
@ -27,7 +29,9 @@
|
|||||||
command: list_lists --bare
|
command: list_lists --bare
|
||||||
register: listlists
|
register: listlists
|
||||||
- name: Create the list if it doesn't exist
|
- name: Create the list if it doesn't exist
|
||||||
command: "newlist {% if mailman_test_mode is defined and mailman_test_mode %} -q {% endif %} {{ mm_list_name }} {{ mm_list_admin }} {{ mm_list_password }}"
|
command:
|
||||||
|
cmd: "newlist {% if mailman_test_mode is defined and mailman_test_mode %} -q {% endif %} {{ mm_list_name }} {{ mm_list_admin }} {{ mm_list_password }}"
|
||||||
|
stdin: ''
|
||||||
when:
|
when:
|
||||||
- ( listlists.stdout_lines | intersect([ mm_list_name ]) | length | int ) == 0
|
- ( listlists.stdout_lines | intersect([ mm_list_name ]) | length | int ) == 0
|
||||||
when: mm_site_name == "_default"
|
when: mm_site_name == "_default"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user