Browse Source

Minor fixes

dev
root 5 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 /bin/bash ./ansible_swarm_config.sh
swarm_deploy: 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 # 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 - name: Restart docker
systemd: systemd:
name: docker name: docker

13
roles/lxc_swarm/tasks/lxc_prepare.yml

@ -10,11 +10,20 @@
src: lxc_dhcp.conf.j2 src: lxc_dhcp.conf.j2
dest: /etc/lxc/dhcp.conf dest: /etc/lxc/dhcp.conf
remote_src: no remote_src: no
notify: Restart lxc
- name: lxc-net template - name: lxc-net template
template: template:
src: lxc_net.j2 src: lxc_net.j2
dest: /etc/default/lxc-net dest: /etc/default/lxc-net
remote_src: no 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