Merge "Use newlist's automate option"
This commit is contained in:
commit
2863b5a509
@ -11,8 +11,7 @@
|
|||||||
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:
|
command:
|
||||||
cmd: "newlist {% if mailman_test_mode is defined and mailman_test_mode %} -q {% endif %} {{ mm_list_name }} {{ mm_list_admin }} {{ mm_list_password }}"
|
cmd: "newlist -a {{ mm_list_name }} {{ mm_list_admin }} {{ mm_list_password }}"
|
||||||
stdin: ''
|
|
||||||
environment:
|
environment:
|
||||||
HOST: "{{ mm_site_listdomain }}"
|
HOST: "{{ mm_site_listdomain }}"
|
||||||
when:
|
when:
|
||||||
@ -26,8 +25,7 @@
|
|||||||
register: listlists
|
register: listlists
|
||||||
- name: Create the list if it doesn't exist
|
- name: Create the list if it doesn't exist
|
||||||
command:
|
command:
|
||||||
cmd: "newlist {% if mailman_test_mode is defined and mailman_test_mode %} -q {% endif %} {{ mm_list_name }} {{ mm_list_admin }} {{ mm_list_password }}"
|
cmd: "newlist -a {{ 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"
|
||||||
|
@ -1,2 +1 @@
|
|||||||
mailman_list_password: notarealpassword
|
mailman_list_password: notarealpassword
|
||||||
mailman_test_mode: true
|
|
||||||
|
@ -1,2 +1 @@
|
|||||||
mailman_list_password: notarealpassword
|
mailman_list_password: notarealpassword
|
||||||
mailman_test_mode: true
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user