mirror of
https://gitea.fenix-dev.com/fenix-gitea-admin/iac-ansible-private.git
synced 2025-10-27 16:53:04 +00:00
Compare commits
5 Commits
880c7b23f1
...
kubernetes
| Author | SHA1 | Date | |
|---|---|---|---|
| c3a225ca05 | |||
| 9385da0ed1 | |||
| feefc19d09 | |||
| 3c990702ed | |||
| 55ac95fc90 |
@ -2,7 +2,7 @@ name: IACAnsible
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
branches: [ kubernetes-vazio ]
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
[kube-master]
|
||||
master1 ansible_host=192.168.1.10 ansible_user=ubuntu
|
||||
master1 ansible_host=192.168.1.10 ansible_user=ubuntu ansible_ssh_common_args='-o StrictHostKeyChecking=no'
|
||||
|
||||
[kube-node]
|
||||
node1 ansible_host=192.168.1.11 ansible_user=ubuntu
|
||||
node2 ansible_host=192.168.1.12 ansible_user=ubuntu
|
||||
node1 ansible_host=192.168.1.11 ansible_user=ubuntu ansible_ssh_common_args='-o StrictHostKeyChecking=no'
|
||||
node2 ansible_host=192.168.1.12 ansible_user=ubuntu ansible_ssh_common_args='-o StrictHostKeyChecking=no'
|
||||
|
||||
[all:vars]
|
||||
ansible_python_interpreter=/usr/bin/python3
|
||||
#[all:vars]
|
||||
#ansible_python_interpreter=/usr/bin/python3
|
||||
@ -40,12 +40,12 @@
|
||||
debug:
|
||||
var: flannel_manifest.stdout
|
||||
|
||||
- name: Adicionar --iface=eth1 ao flanneld
|
||||
- name: Adicionar --iface=eth0 ao flanneld
|
||||
become: true
|
||||
ansible.builtin.lineinfile:
|
||||
path: /tmp/kube-flannel.yml
|
||||
insertafter: ' - --kube-subnet-mgr'
|
||||
line: ' - --iface=eth1'
|
||||
line: ' - --iface=eth0'
|
||||
|
||||
|
||||
|
||||
|
||||
@ -14,7 +14,7 @@ for doc in docs:
|
||||
"Backend": {
|
||||
"Type": "vxlan"
|
||||
},
|
||||
"Interface": "eth1"
|
||||
"Interface": "eth0"
|
||||
}'''
|
||||
|
||||
with open("/tmp/kube-flannel.yml", "w") as f:
|
||||
|
||||
Reference in New Issue
Block a user