Use arguments parameter with service module

In Ansible 2.2, the 'args' alias for the 'arguments' parameter
of the service module is not recognized correctly.

https://github.com/ansible/ansible-modules-core/issues/5584

Change-Id: I75ee2c5239984ceabf99b5b3da5191697d60d9e1
This commit is contained in:
Jimmy McCrory 2016-11-11 20:17:16 -08:00
parent 8f06602a04
commit 909fe09ef5
2 changed files with 3 additions and 3 deletions

View File

@ -24,7 +24,7 @@
state: restarted
sleep: 2
pattern: mysql
args: "{{ (not galera_existing_cluster | bool and inventory_hostname == galera_server_bootstrap_node) or (galera_cluster_members | length == 1) | ternary('--wsrep-new-cluster', '') }}"
arguments: "{{ (not galera_existing_cluster | bool and inventory_hostname == galera_server_bootstrap_node) or (galera_cluster_members | length == 1) | ternary('--wsrep-new-cluster', '') }}"
environment:
MYSQLD_STARTUP_TIMEOUT: 180
when:
@ -51,7 +51,7 @@
state: restarted
sleep: 2
pattern: mysql
args: "{{ (not galera_existing_cluster | bool and inventory_hostname == galera_server_bootstrap_node) or (galera_cluster_members | length == 1) | ternary('--wsrep-new-cluster', '') }}"
arguments: "{{ (not galera_existing_cluster | bool and inventory_hostname == galera_server_bootstrap_node) or (galera_cluster_members | length == 1) | ternary('--wsrep-new-cluster', '') }}"
environment:
MYSQLD_STARTUP_TIMEOUT: 180
register: galera_restart_fall_back

View File

@ -22,7 +22,7 @@
service:
name: mysql
state: restarted
args: "--wsrep-new-cluster"
arguments: "--wsrep-new-cluster"
when:
- not using_mysql_init | bool
- inventory_hostname == galera_server_bootstrap_node