Compare commits
8 Commits
Author | SHA1 | Date |
---|---|---|
RNRod | af9dd051fe | |
RNRod | d699edc89d | |
RNRod | 6f0b9c30f7 | |
RNRod | 5a450b00c4 | |
RNRod | dde81a58d6 | |
RNRod | 4907593ea2 | |
RNRod | 1adde4217a | |
RNRod | ae78e7e0a9 |
|
@ -6,6 +6,12 @@ yq:
|
|||
version: v4.31.2
|
||||
binary: yq_linux_amd64
|
||||
# --------------------------------------
|
||||
# -- kubectl version
|
||||
# --------------------------------------
|
||||
kubectl:
|
||||
version: v1.25.0
|
||||
arch: amd64
|
||||
# --------------------------------------
|
||||
# -- Path to k8s admin config
|
||||
# --------------------------------------
|
||||
k8s_config_path: /etc/kubernetes/admin.conf
|
||||
|
|
|
@ -25,18 +25,39 @@
|
|||
# -------------------------
|
||||
# -- Prepare kubectl repo
|
||||
# -------------------------
|
||||
- name: Add an apt signing key for Kubernetes
|
||||
become: yes
|
||||
apt_key:
|
||||
url: https://packages.cloud.google.com/apt/doc/apt-key.gpg
|
||||
state: present
|
||||
# - name: Add an apt signing key for Kubernetes
|
||||
# become: yes
|
||||
# apt_key:
|
||||
# url: https://packages.cloud.google.com/apt/doc/apt-key.gpg
|
||||
# state: present
|
||||
|
||||
# - name: Create a directory
|
||||
# become: true
|
||||
# ansible.builtin.file:
|
||||
# path: /etc/apt/trusted.gpg.d
|
||||
# state: directory
|
||||
# mode: '0755'
|
||||
|
||||
- name: Adding apt repository for Kubernetes
|
||||
become: yes
|
||||
apt_repository:
|
||||
repo: deb https://apt.kubernetes.io/ kubernetes-xenial main
|
||||
state: present
|
||||
filename: kubernetes.list
|
||||
# - name: Install python3-apt
|
||||
# become: true
|
||||
# ansible.builtin.package:
|
||||
# name: python3-apt
|
||||
# state: present
|
||||
|
||||
# - name: Add apt repository key.
|
||||
# become: true
|
||||
# ansible.builtin.get_url:
|
||||
# url: https://packages.cloud.google.com/apt/doc/apt-key.gpg
|
||||
# dest: /etc/apt/trusted.gpg.d/google.asc
|
||||
# mode: '0644'
|
||||
# force: true
|
||||
|
||||
# - name: Adding apt repository for Kubernetes
|
||||
# become: yes
|
||||
# apt_repository:
|
||||
# repo: deb https://apt.kubernetes.io/ kubernetes-xenial main
|
||||
# state: present
|
||||
# filename: kubernetes.list
|
||||
|
||||
# --------------------------------------
|
||||
# -- Install yq
|
||||
|
@ -48,15 +69,23 @@
|
|||
dest: /usr/bin/yq
|
||||
mode: "0777"
|
||||
|
||||
- name: Ensure kubectl and openssl are installed
|
||||
- name: Ensure kubectl is installed
|
||||
become: yes
|
||||
get_url:
|
||||
url: "https://storage.googleapis.com/kubernetes-release/release/{{ kubectl.version }}/bin/linux/{{ kubectl.arch }}/kubectl"
|
||||
dest: /usr/bin/kubectl
|
||||
mode: "0777"
|
||||
|
||||
- name: Ensure openssl are installed
|
||||
become: yes
|
||||
package:
|
||||
name: "{{ packages }}"
|
||||
state: present
|
||||
update_cache: yes
|
||||
vars:
|
||||
packages:
|
||||
- kubectl
|
||||
- openssl
|
||||
- python3-module-cryptography
|
||||
|
||||
- name: Generate openssl certificate
|
||||
tags: openssl
|
||||
|
|
Loading…
Reference in New Issue