X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=playbook.yml;h=19683208be372d68d5a782f98238640e3acd345e;hb=29203a454c495039001f59cd9204d33013f6c2f4;hp=a9a7bba7fbe83a602a6daaab328c4039833fb202;hpb=203ffcbfc31abb06c306d3adbde7e44dce9afca2;p=github%2Ffretlink%2Fansible-rabbitmq.git diff --git a/playbook.yml b/playbook.yml index a9a7bba..1968320 100644 --- a/playbook.yml +++ b/playbook.yml @@ -2,7 +2,7 @@ - hosts: all become: true vars: - - pri_domain_name: 'test.vagrant.local' + pri_domain_name: 'test.vagrant.local' roles: tasks: - name: updating /etc/hosts @@ -11,15 +11,15 @@ regexp: "^{{ hostvars[item].ansible_ssh_host }} {{ item }} {{ item }}.{{ pri_domain_name }}" line: "{{ hostvars[item].ansible_ssh_host }} {{ item }} {{ item }}.{{ pri_domain_name }}" state: present - with_items: groups['all'] - + with_items: "{{ groups['all'] }}" + - hosts: all become: true vars: - - config_rabbitmq_ha: true - - enable_rabbitmq_clustering: true - - pri_domain_name: 'test.vagrant.local' - - rabbitmq_master: 'node0' + pri_domain_name: 'test.vagrant.local' + rabbitmq_config_ha: true + rabbitmq_enable_clustering: true + rabbitmq_master: 'node0' roles: - role: ansible-rabbitmq tasks: