diff --git a/Makefile b/Makefile index 77c6fd0..d02a109 100644 --- a/Makefile +++ b/Makefile @@ -10,4 +10,4 @@ config: /bin/bash ./ansible_swarm_config.sh swarm_deploy: - /bin/bash docker stack deploy -c swarm-galera.yml stack + docker stack deploy -c swarm-galera.yml stack diff --git a/roles/lxc_swarm/handlers/main.yml b/roles/lxc_swarm/handlers/main.yml index aae94dc..3ca31d8 100644 --- a/roles/lxc_swarm/handlers/main.yml +++ b/roles/lxc_swarm/handlers/main.yml @@ -1,15 +1,5 @@ --- # handlers file for roles/galera_swarm -- name: Restart lxc - systemd: - name: lxc - state: restarted - -- name: Restart lxc-net - systemd: - name: lxc-net - state: restarted - - name: Restart docker systemd: name: docker diff --git a/roles/lxc_swarm/tasks/lxc_prepare.yml b/roles/lxc_swarm/tasks/lxc_prepare.yml index d059af4..5d5f1de 100644 --- a/roles/lxc_swarm/tasks/lxc_prepare.yml +++ b/roles/lxc_swarm/tasks/lxc_prepare.yml @@ -10,11 +10,20 @@ src: lxc_dhcp.conf.j2 dest: /etc/lxc/dhcp.conf remote_src: no - notify: Restart lxc - name: lxc-net template template: src: lxc_net.j2 dest: /etc/default/lxc-net remote_src: no - notify: Restart lxc-net + +- name: Restart lxc-net + systemd: + name: lxc-net + state: restarted + +- name: Restart lxc + systemd: + name: lxc + state: restarted +