Compare commits

...

7 Commits

6 changed files with 13 additions and 8 deletions

View File

@ -1,9 +1,9 @@
[kube-master] [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] [kube-node]
node1 ansible_host=192.168.1.11 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 node2 ansible_host=192.168.1.12 ansible_user=ubuntu ansible_ssh_common_args='-o StrictHostKeyChecking=no'
[all:vars] #[all:vars]
ansible_python_interpreter=/usr/bin/python3 #ansible_python_interpreter=/usr/bin/python3

View File

@ -3,6 +3,7 @@
become: yes become: yes
roles: roles:
- common - common
- vaultwarden
- kubernetes - kubernetes
- kube-master - kube-master

View File

@ -40,12 +40,12 @@
debug: debug:
var: flannel_manifest.stdout var: flannel_manifest.stdout
- name: Adicionar --iface=eth1 ao flanneld - name: Adicionar --iface=eth0 ao flanneld
become: true become: true
ansible.builtin.lineinfile: ansible.builtin.lineinfile:
path: /tmp/kube-flannel.yml path: /tmp/kube-flannel.yml
insertafter: ' - --kube-subnet-mgr' insertafter: ' - --kube-subnet-mgr'
line: ' - --iface=eth1' line: ' - --iface=eth0'

View File

@ -14,7 +14,7 @@ for doc in docs:
"Backend": { "Backend": {
"Type": "vxlan" "Type": "vxlan"
}, },
"Interface": "eth1" "Interface": "eth0"
}''' }'''
with open("/tmp/kube-flannel.yml", "w") as f: with open("/tmp/kube-flannel.yml", "w") as f:

View File

View File

@ -0,0 +1,4 @@
- name: Buscar secret do Vaultwarden
command: "bw get item 'nome-do-secret'"
register: secret_raw
#no_log: true