doc/researchAnsible: added snippet reconfiguring docker network
Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
This commit is contained in:
parent
8b56069a38
commit
262c560f38
|
|
@ -664,6 +664,49 @@ The same way as we added our getting started template we add a new template:
|
|||
- Press Launch
|
||||
|
||||
|
||||
This job performs the basic installations on the host including docker. But docker comes with an network configuration
|
||||
in a range which conflicts the NetModule test network. Thus the docker network range needs to be reconfigured. Hence,
|
||||
similar to the job above before the job ``Reconfigure Docker Network`` is added and launched. The output look as
|
||||
follows:
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
changed: [192.168.223.221]
|
||||
TASK [Verify docker IP address] ************************************************
|
||||
changed: [192.168.223.221]
|
||||
TASK [Display IP verification output] ******************************************
|
||||
ok: [192.168.223.221] => {
|
||||
"msg": [
|
||||
"3: docker0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default ",
|
||||
" link/ether 02:42:7e:7c:6a:e1 brd ff:ff:ff:ff:ff:ff",
|
||||
" inet 192.168.5.1/24 scope global docker0",
|
||||
" valid_lft forever preferred_lft forever"
|
||||
]
|
||||
}
|
||||
TASK [Bring docker up again] ***************************************************
|
||||
changed: [192.168.223.221]
|
||||
TASK [Display Bring-up output] *************************************************
|
||||
ok: [192.168.223.221] => {
|
||||
"msg": [
|
||||
"Chain PREROUTING (policy ACCEPT)",
|
||||
"target prot opt source destination ",
|
||||
"DOCKER all -- 0.0.0.0/0 0.0.0.0/0 ADDRTYPE match dst-type LOCAL",
|
||||
"",
|
||||
"Chain INPUT (policy ACCEPT)",
|
||||
"target prot opt source destination ",
|
||||
"",
|
||||
"Chain OUTPUT (policy ACCEPT)",
|
||||
"target prot opt source destination ",
|
||||
"DOCKER all -- 0.0.0.0/0 !127.0.0.0/8 ADDRTYPE match dst-type LOCAL",
|
||||
"",
|
||||
"Chain POSTROUTING (policy ACCEPT)",
|
||||
"target prot opt source destination ",
|
||||
"MASQUERADE all -- 192.168.5.0/24 0.0.0.0/0 ",
|
||||
…
|
||||
PLAY RECAP *********************************************************************
|
||||
192.168.223.221 : ok=6 changed=4 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
|
||||
|
||||
|
||||
|
||||
Job to Create SSH keypair as Git Server Credentials
|
||||
***************************************************
|
||||
|
|
|
|||
Loading…
Reference in New Issue