add dkhost05

This commit is contained in:
2017-11-04 11:36:32 -04:00
parent 54f9550f10
commit 1d814563e4
5 changed files with 10 additions and 4 deletions

View File

@@ -11,12 +11,13 @@
- swarm: - swarm:
managers: managers:
- dkhost01 - dkhost01
- dkhost03 - dkhost05
- home - home
workers: [] workers: []
removed: removed:
- dkhost04 - dkhost04
- dkhost02 - dkhost02
- dkhost03
history: 1 history: 1

View File

@@ -5,16 +5,18 @@ home ansible_ssh_host=192.168.2.11
home02 ansible_ssh_host=192.168.2.22 home02 ansible_ssh_host=192.168.2.22
dkhost01 ansible_ssh_host=192.168.2.41 dkhost01 ansible_ssh_host=192.168.2.41
#dkhost02 ansible_ssh_host=192.168.2.43 #dkhost02 ansible_ssh_host=192.168.2.43
dkhost03 ansible_ssh_host=192.168.2.53 #dkhost03 ansible_ssh_host=192.168.2.53
#dkhost04 ansible_ssh_host=192.168.2.54 #dkhost04 ansible_ssh_host=192.168.2.54
dkhost05 ansible_ssh_host=192.168.2.55
#logs ansible_ssh_host=192.168.2.42 #logs ansible_ssh_host=192.168.2.42
cubox-i ansible_ssh_host=192.168.2.12 cubox-i ansible_ssh_host=192.168.2.12
[dkhost] [dkhost]
dkhost01 ansible_ssh_host=192.168.2.41 dkhost01 ansible_ssh_host=192.168.2.41
#dkhost02 ansible_ssh_host=192.168.2.43 #dkhost02 ansible_ssh_host=192.168.2.43
dkhost03 ansible_ssh_host=192.168.2.53 #dkhost03 ansible_ssh_host=192.168.2.53
#dkhost04 ansible_ssh_host=192.168.2.54 #dkhost04 ansible_ssh_host=192.168.2.54
dkhost05 ansible_ssh_host=192.168.2.55
home ansible_ssh_host=192.168.2.11 home ansible_ssh_host=192.168.2.11
[ns] [ns]

View File

@@ -29,7 +29,7 @@
# add hosts to swarm # add hosts to swarm
- name: adding manager to swarm - name: adding manager to swarm
command: docker swarm join --token={{manager_token.stdout}} command: docker swarm join --token={{manager_token.stdout}} {{swarm.managers[0]}}
args: args:
creates: /var/lib/docker/swarm/state.json creates: /var/lib/docker/swarm/state.json
when: "ansible_nodename in swarm.managers" when: "ansible_nodename in swarm.managers"

View File

@@ -8,6 +8,7 @@
update_cache: yes update_cache: yes
cache_valid_time: 3600 cache_valid_time: 3600
with_items: with_items:
- "htop"
- "wget" - "wget"
- "apt-transport-https" - "apt-transport-https"
- "ca-certificates" - "ca-certificates"

View File

@@ -30,6 +30,7 @@ dkhost01 IN A 192.168.2.41
dkhost02 IN A 192.168.2.43 dkhost02 IN A 192.168.2.43
dkhost03 IN A 192.168.2.53 dkhost03 IN A 192.168.2.53
dkhost04 IN A 192.168.2.54 dkhost04 IN A 192.168.2.54
dkhost05 IN A 192.168.2.55
; dns servers ; dns servers
ns IN A 192.168.2.22 ns IN A 192.168.2.22
@@ -44,6 +45,7 @@ dkhost IN A 192.168.2.41
;dkhost IN A 192.168.2.43 ;dkhost IN A 192.168.2.43
dkhost IN A 192.168.2.53 dkhost IN A 192.168.2.53
;dkhost IN A 192.168.2.54 ;dkhost IN A 192.168.2.54
;dkhost IN A 192.168.2.55
; service domains ; service domains
fs IN CNAME dkhost fs IN CNAME dkhost