Compare commits
No commits in common. "c1776ffb7931193cac46669291fccd77d8844dcf" and "7b1d20c9cdb915f9a57f3c50d8e8522f5cb6501a" have entirely different histories.
c1776ffb79
...
7b1d20c9cd
1 changed files with 14 additions and 2 deletions
|
|
@ -41,6 +41,16 @@
|
|||
group: root
|
||||
mode: 0644
|
||||
|
||||
#- hosts: swarm:!NAS
|
||||
# tasks:
|
||||
# - name: Mount NFS
|
||||
# mount:
|
||||
# path: /mnt/nfs
|
||||
# src: grace.lan:/
|
||||
# fstype: nfs4
|
||||
# opts: rw,nosuid,fsc
|
||||
# state: mounted
|
||||
|
||||
- name: Install docker python module
|
||||
pip:
|
||||
executable: pip3
|
||||
|
|
@ -50,13 +60,15 @@
|
|||
- name: Join swarm as manager
|
||||
docker_swarm:
|
||||
state: join
|
||||
advertise_addr: "{{ ansible_default_ipv4.address }}"
|
||||
join_token: "{{ docker_swarm_join_token_manager }}"
|
||||
remote_addrs: ["{{ docker_swarm_address }}"]
|
||||
remote_addrs: ['192.168.168.200:2377']
|
||||
when: docker_swarm_manager
|
||||
|
||||
- name: Join swarm as worker
|
||||
docker_swarm:
|
||||
state: join
|
||||
advertise_addr: "{{ ansible_default_ipv4.address }}"
|
||||
join_token: "{{ docker_swarm_join_token_worker }}"
|
||||
remote_addrs: ["{{ docker_swarm_address }}"]
|
||||
remote_addrs: ['192.168.168.200:2377']
|
||||
when: not docker_swarm_manager
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue