Browse Source

Minor fixes

dev
root 4 years ago
parent
commit
3564adf881
  1. 2
      Makefile
  2. 10
      roles/lxc_swarm/handlers/main.yml
  3. 13
      roles/lxc_swarm/tasks/lxc_prepare.yml

2
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

10
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

13
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

Loading…
Cancel
Save